/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #333;
  background-color: #f4f4f4;
  transition: padding-top 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Site Header - Fixed Navigation (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 70px; /* Minimum height to ensure content fits */
}

.header-top {
  background-color: #002060; /* Primary dark blue */
  padding: 10px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Secondary gold */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  padding: 5px 0;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}

.btn-primary {
  background-color: #FFD700; /* Secondary gold */
  color: #002060; /* Primary dark blue */
  border: 2px solid #FFD700;
}

.btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Secondary gold */
  border: 2px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #FFD700;
  color: #002060;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.main-nav {
  background-color: #0a3d62; /* Slightly lighter blue for distinction */
  width: 100%;
  display: flex; /* Desktop: visible */
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop: horizontal */
  justify-content: center;
  align-items: center;
  padding: 0 25px;
  flex-wrap: wrap;
}

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

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

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

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

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

/* Site Footer */
.site-footer {
  background-color: #002060;
  color: #f4f4f4;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-section p,
.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #f4f4f4;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile */
    padding: 0 15px;
    justify-content: space-between;
    order: 1; /* Ensure it stays at the top */
  }

  .hamburger-menu {
    display: block;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    order: 0;
    z-index: 1002; /* Above overlay and mobile buttons */
    padding: 0;
    margin-right: 15px;
  }

  .hamburger-menu::before,
  .hamburger-menu::after,
  .hamburger-menu span {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .hamburger-menu::before {
    top: 0;
  }

  .hamburger-menu span {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-menu::after {
    bottom: 0;
  }

  .hamburger-menu.active::before {
    transform: rotate(45deg);
    top: 50%;
    background-color: #FFD700;
  }

  .hamburger-menu.active span {
    opacity: 0;
  }

  .hamburger-menu.active::after {
    transform: rotate(-45deg);
    bottom: 50%;
    background-color: #FFD700;
  }

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

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

  .mobile-nav-buttons {
    display: block;
    width: 100%;
    background-color: #0a3d62; /* Consistent with main nav for mobile */
    padding: 10px 0;
    order: 2; /* Below header-top */
  }

  .mobile-buttons-container {
    width: 100%;
    max-width: none; /* Crucial for mobile */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below fixed header */
    left: 0;
    width: 80%;
    max-width: 300px; /* Limit width for menu */
    height: 100vh;
    background-color: #002060;
    flex-direction: column;
    padding-top: 70px; /* Space for logo in side menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Crucial for display */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    width: 100%;
    max-width: none; /* Crucial for mobile */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
  }

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

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    min-width: unset;
    text-align: center;
  }

  .footer-section h3 {
    margin-bottom: 10px;
  }

  .footer-section ul li {
    margin-bottom: 5px;
  }
}
