/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown a {
  color: white;
  padding: 10px;
  text-decoration: none;
}

/* HIDDEN MENU */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #0b2a4a;
  min-width: 220px;
  border-radius: 6px;
  top: 100%;     /* ✅ better than fixed 40px */
  left: 0;       /* ✅ VERY IMPORTANT */
  z-index: 999;  /* ✅ keeps it above */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Show when active */
.dropdown.active .dropdown-menu {
  display: block;
}
/* MENU LINKS */
.dropdown-menu a {
  display: block;
  padding: 10px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu a:hover {
  background: #00eaff;
  color: #000;
}

/* HERO */
.events-hero {
  background: linear-gradient(135deg, #0b2a4a, #071c33);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.events-hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.events-hero p {
  font-size: 18px;
  opacity: 0.8;
}

/* SECTION */
.events-section {
  padding: 60px 8%;
  background: #071c33;
}

.events-section.light-bg {
  background: #eef3ff;
}

/* TITLE */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: #fff;
}

.light-bg .section-title h2 {
  color: #0b2a4a;
}

/* GRID (IMPORTANT FIX) */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* CARD */
.event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.event-card:hover {
  transform: translateY(-10px);
}

/* CONTENT */
.event-content {
  padding: 20px;
}

.event-date {
  font-size: 14px;
  color: #5f87e6;
  margin-bottom: 10px;
}

.event-card h3 {
  margin-bottom: 10px;
  color: #0b2a4a;
}

.event-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* BUTTON */
.event-btn {
  display: inline-block;
  background: #0b2a4a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.event-btn:hover {
  background: #062a63;
}

/* MOBILE */
@media (max-width: 768px) {
  .events-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 768px) {





  /* HERO TEXT */
  .events-hero h1 {
    font-size: 26px;
    text-align: center;
  }

  .events-hero p {
    font-size: 14px;
    text-align: center;
  }

  /* EVENTS CARDS */
 .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

  .event-card {
    margin: 0 auto;
    width: 100%;
  }

  /* SECTION SPACING */
  .events-section {
    padding: 40px 20px;
  }

  /* FIX OVERFLOW */
  body {
    overflow-x: hidden;
  }
}