/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding-top: 110px; /* Placeholder, adjusted by JS */
}

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: #0A2463; /* Default background for entire header */
}

.header-top {
  background-color: #0A2463; /* Dark Blue */
  width: 100%;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #FFF;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #FFD700; /* Gold */
  color: #0A2463; /* Dark Blue */
}

.btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #1A3D80; /* Lighter Dark Blue */
  color: #fff;
}

.btn-secondary:hover {
  background-color: #0A2463;
  transform: translateY(-2px);
}

.main-nav {
  background-color: #1A3D80; /* Slightly lighter dark blue, distinct from header-top */
  width: 100%;
  display: flex; /* Desktop: visible, horizontal */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 30px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  border-radius: 5px;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  z-index: 1003; /* Above overlay and mobile nav buttons */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFD700; /* Gold */
  transition: all 0.3s ease-in-out;
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #0A2463; /* Dark Blue */
  color: #fff;
  padding: 40px 0 20px;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
}

.footer-section {
  flex: 1 1 28%; /* Allows 3 columns on desktop, wraps on smaller screens */
  min-width: 280px;
}

.footer-section h3 {
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.8;
}

.footer-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FFD700;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjusted for mobile header + buttons */
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    order: 1;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Will be adjusted to be below mobile buttons if needed */
    left: 0;
    width: 75%; /* Slide-in width */
    height: 100vh;
    background-color: #0A2463; /* Dark Blue */
    flex-direction: column;
    padding-top: 80px; /* Space for logo/hamburger if overlaying */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1002; /* Above overlay */
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must be flex/block to show */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
  }

  .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: #0A2463;
    padding: 10px 15px;
    position: fixed;
    top: 60px; /* Below header-top */
    left: 0;
    z-index: 998; /* Below hamburger menu, above content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Below menu, above mobile buttons */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
  }

  .footer-nav a {
    display: inline-block;
    margin: 0 10px 10px;
  }
}
