/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: 80px; /* Default padding for fixed header on desktop */
}

body.no-scroll {
  overflow: hidden;
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  background-color: #0A2342; /* Primary color */
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Default to column for stacking elements, will be overridden for desktop */
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  box-sizing: border-box;
}

.header-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700; /* Accent color */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2; /* Desktop: center */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row; /* Desktop: horizontal */
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: #FFD700; /* Accent color */
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  order: 3; /* Desktop: right */
  margin-left: auto; /* Push to the right */
}

.mobile-button-area {
  display: none; /* Hidden by default, shown on mobile */
}

.hamburger-menu {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default, shown when menu is active on mobile */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(2px);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #0A2342;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary {
  background-color: #0A2342;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

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

/* Footer Styles */
.site-footer {
  background-color: #0A2342; /* Primary color */
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
  box-sizing: border-box;
}

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

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

.footer-section h3 {
  color: #FFD700; /* Accent color */
  font-size: 18px;
  margin-bottom: 15px;
}

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

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

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

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 2;
  justify-content: space-around;
}

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

/* Desktop specific overrides for header */
@media (min-width: 769px) {
  .site-header {
    flex-direction: row; /* Desktop: horizontal */
    justify-content: space-between;
    padding: 0 30px;
    min-height: 80px;
  }

  .header-top-bar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo {
    order: 1;
    margin-right: 20px;
    flex-shrink: 0;
  }

  .main-nav {
    order: 2;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
  }

  .desktop-nav-buttons {
    order: 3;
    margin-left: auto;
  }

  .hamburger-menu {
    display: none;
  }

  .mobile-button-area {
    display: none;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 150px; /* Adjust padding for fixed header + mobile button area */
  }

  .site-header {
    padding: 10px 15px;
    flex-direction: column; /* Stack logo and buttons */
    align-items: center;
    justify-content: flex-start; /* Align content to top */
    min-height: auto;
  }

  .header-top-bar {
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    margin: 0;
  }

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto; /* Push hamburger to left */
    position: relative;
    left: 0;
  }

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

  .mobile-button-area {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    background-color: #0A2342; /* Ensure background matches header */
    box-sizing: border-box;
    z-index: 998; /* Below menu, above main content */
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Menu width */
    height: 100%;
    background-color: #0A2342;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 20px;
    box-sizing: border-box;
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease-out;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

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

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    margin: 15px 0;
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
  }

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

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

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