/* ============================================================
   Base Styles
============================================================ */

body {
  background-color: #000;
  color: #fff;
  font-family: "Helvetica Neue", sans-serif;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   Navigation Bar - Optimized for JS-controlled submenu
============================================================ */

.navbar-brand {
  font-size: 1.3rem;
  color: #f7d084 !important;
}

.navbar-nav .nav-link {
  color: #f7d084 !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ✅ Hover color effect for nav links (highlight on hover) */
.navbar-nav .nav-link:hover {
  color: #000 !important;
  background-color: #f7d084; /* Match menu highlight color */
  border-radius: 4px;
}

.navbar-toggler {
  padding: 0.3rem 0.75rem;
  font-size: 1.25rem;
}

.dropdown-menu {
  background-color: #f7d084;
  border: none;
}

.dropdown-item {
  color: black;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f4c55c; /* Hover color for submenu items */
}

.dropdown-submenu {
  position: relative; /* Important: Enables absolute positioning of child menu */
}

.dropdown-submenu > .dropdown-menu {
  display: none; /* Important: Initial state hidden, controlled by JS */
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
  background-color: #f7d084;
  border: none;
}

.dropdown-submenu > .dropdown-menu.show {
  display: block; /* Important: Show submenu when JS adds 'show' class */
}

/* ============================================================
   Hero Section
============================================================ */

header.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
  animation: fadeIn 1.5s ease-in both;
}

.hero h1 {
  font-size: 3rem;
}

.hero h2.slogan {
  font-size: 1.5rem;
  line-height: 1.6;
}

.hero h5 {
  font-size: 1.2rem;
}

/* ============================================================
   Mission Section
============================================================ */

section.mission {
  background-color: #f7d084;
  color: black;
}

.mission-title {
  color: #f7d084;
}

/* ============================================================
   Program Section
============================================================ */

section.program-section {
  background-color: #4699b0;
  color: #fff;
  animation: fadeIn 1.5s ease-in both;
}

.program-section h2 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.program-section .event-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.program-section .event-item {
  width: calc(33.333% - 2rem);
  text-align: center;
  animation: fadeIn 1.5s ease-in both;
}

.program-section .event-item img {
  aspect-ratio: 7 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.program-section .event-item h5 {
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.program-section .event-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   Footer Section
============================================================ */

.footer-section {
  background-color: #000;
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in both;
}

.footer-section h6 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #f7d084;
  text-decoration: underline;
}

.footer-section img {
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.3rem;
}

.footer-section .copyright {
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
}

.footer-section .credit {
  font-size: 0.85rem;
  color: #ccc;
}

.footer-section .credit a {
  color: #ccc;
  text-decoration: underline;
}

.footer-section .credit a:hover {
  color: #f7d084;
}

/* ============================================================
   Animations
============================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Responsive Styles
============================================================ */

@media (max-width: 768px) {
  .event-item {
    width: calc(50% - 2rem);
  }

  /* Submenu behavior on tablets/mobile */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    display: none; /* Hidden by default, shown with .show */
    margin-left: 1rem;
    background-color: #f7d084;
    border: none;
    box-shadow: none;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block; /* Shown only when .show is added by JS */
  }

  .dropdown-submenu {
    padding-left: 1rem;
  }

  section,
  footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-section .text-md-start,
  .footer-section .text-md-end {
    text-align: center !important;
  }

  .footer-section ul {
    padding-left: 0;
  }

  .footer-section ul li {
    margin-bottom: 0.5rem;
  }

  .footer-section img {
    margin-bottom: 1rem;
  }

  .footer-section .copyright {
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .footer-section .credit a {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .event-item {
    width: 100%;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero h2.slogan {
    font-size: 1rem;
    line-height: 1.4;
  }

  .hero h5 {
    font-size: 0.9rem;
  }

  .program-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-section p,
  .footer-section a,
  .footer-section .credit {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .footer-section .copyright {
    font-size: 0.7rem;
    padding-top: 1rem;
  }
}
