/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

ul {
  list-style: none;
}

/* Site Header - Fixed, Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-height: 60px; /* Ensure content adaptation */
  background-color: transparent; /* This will be covered by header-top and main-nav */
}

/* Header Top - Desktop */
.header-top {
  background-color: #00008B; /* Dark Blue */
  width: 100%;
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Gold */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure logo is visible */
}

.desktop-nav-buttons {
  display: flex; /* Show on desktop */
  gap: 12px;
}

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

.btn-primary {
  background-color: #FFD700; /* Gold */
  color: #00008B; /* Dark Blue */
  border: none;
}

.btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: #00008B; /* Dark Blue */
  color: #FFD700; /* Gold */
  border: 1px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #000066; /* Slightly darker blue */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
  background-image: linear-gradient(45deg, #FFD700, #FFA500); /* Gold to Orange gradient */
  color: #00008B;
  border: none;
}

.btn-tertiary:hover {
  background-image: linear-gradient(45deg, #e6c200, #e09300);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Main Navigation - Desktop */
.main-nav {
  background-color: #FFD700; /* Gold */
  width: 100%;
  display: flex; /* Show on desktop */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
  gap: 25px; /* Spacing between nav links */
}

.nav-link {
  color: #00008B; /* Dark Blue */
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #00008B; /* Dark Blue underline */
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #333;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active-link {
  color: #333;
}

.nav-link.active-link::after {
  width: 100%;
}

/* Mobile specific elements - Hidden by default on desktop */
.mobile-header-top,
.mobile-button-area,
.hamburger-menu,
.mobile-nav,
.mobile-menu-overlay {
  display: none;
}

/* Site Footer */
.site-footer {
  background-color: #00008B; /* Dark Blue */
  color: #f0f0f0;
  padding: 40px 0 20px;
  margin-top: 50px; /* Ensure footer is below main content */
}

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

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

.footer-col h3 {
  color: #FFD700; /* Gold */
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.footer-nav ul {
  padding: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-bottom {
  background-color: #000066; /* Slightly darker blue for bottom bar */
  padding: 15px 0;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    /* padding-top will be set by JS dynamically */
  }

  /* Hide desktop elements */
  .header-top,
  .main-nav,
  .desktop-nav-buttons {
    display: none;
  }

  /* Show mobile elements */
  .mobile-header-top,
  .mobile-button-area {
    display: block;
    width: 100%;
  }

  .mobile-header-top {
    background-color: #00008B; /* Dark Blue */
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001; /* Above button area, below mobile nav */
  }

  .mobile-header-top .mobile-container {
    width: 100%;
    max-width: none; /* Crucial for mobile container */
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-menu {
    display: block; /* Show hamburger */
    background: none;
    border: none;
    font-size: 30px;
    color: #FFD700; /* Gold */
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 1002; /* Above logo and buttons */
    transition: transform 0.3s ease;
  }

  .hamburger-menu.active {
    transform: rotate(90deg); /* Example: rotate to X */
  }

  .mobile-header-top .logo {
    font-size: 24px;
    text-align: center;
    flex-grow: 1; /* Allow logo to take available space and center */
    color: #FFD700;
  }

  .mobile-header-spacer {
    width: 40px; /* Balance hamburger space for logo centering */
  }

  .mobile-button-area {
    background-color: #000066; /* Slightly darker blue */
    padding: 10px 0;
    position: fixed;
    top: 60px; /* Assuming mobile-header-top height is 60px */
    left: 0;
    width: 100%;
    z-index: 999; /* Below mobile-header-top */
  }

  .mobile-button-area .mobile-container {
    width: 100%;
    max-width: none; /* Crucial for mobile container */
    padding: 0 15px;
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 8px;
    flex-wrap: wrap;
  }

  .mobile-button-area .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }

  .mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Full height from top */
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100%;
    background-color: #00008B; /* Dark Blue */
    /* padding-top will be set by JS dynamically */
    transform: translateX(-100%); /* Off-canvas */
    transition: transform 0.3s ease-out;
    z-index: 1001; /* Above overlay */
    overflow-y: auto; /* Allow scrolling for long menus */
  }

  .mobile-nav.active {
    display: flex; /* Show menu */
    flex-direction: column;
    transform: translateX(0);
  }

  .mobile-nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .mobile-nav .nav-link {
    color: #FFD700; /* Gold */
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Light separator */
  }

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

  .mobile-nav .nav-link:hover {
    color: #fff;
    transform: translateX(5px);
  }

  .mobile-nav .nav-link::after { /* Remove underline effect for mobile */
    display: none;
  }

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000; /* Below mobile nav */
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

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

  /* Footer adjustments for mobile */
  .site-footer .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }

  .footer-col h3 {
    margin-top: 20px;
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 0;
  }

  .footer-nav li {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: 20px;
  }
}

/* No scroll for body when menu is open */
body.no-scroll {
  overflow: hidden;
}