/* Base Styles & Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #E0E0E0;
  background-color: #0F1C3F;
}

a {
  text-decoration: none;
  color: #FFD700;
}

ul {
  list-style: none;
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0A192F;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  flex-direction: column; /* Default to column, will be row on desktop */
  justify-content: center;
  align-items: center;
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 10px 20px;
}

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

/* Desktop Navigation */
.main-nav {
  display: flex;
  flex-grow: 1;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #E0E0E0;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none; /* Remove underline */
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.btn-primary:hover {
  background-color: #E6C200;
  border-color: #E6C200;
}

.btn-secondary {
  background-color: #0A192F;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.btn-secondary:hover {
  background-color: #1a2a47;
  color: #FFD700;
}

.btn-tertiary {
  background-color: #333;
  color: #fff;
  border: 2px solid #333;
}

.btn-tertiary:hover {
  background-color: #555;
  border-color: #555;
}

/* Mobile-specific elements (hidden on desktop) */
.hamburger-menu,
.mobile-buttons-area,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #0A192F;
  color: #E0E0E0;
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 1px solid #1a2a47;
}

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

.footer-col {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-col h3 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
  color: #B0B0B0;
  font-size: 14px;
  margin-bottom: 8px;
}

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

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  border-top: 1px solid #1a2a47;
  padding-top: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: #B0B0B0;
}

/* Responsive Styles (Mobile) */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjust based on header + mobile-buttons-area height */
  }

  .site-header {
    min-height: unset; /* Allow height to adjust for two rows */
    flex-direction: column; /* Stack header content and mobile buttons */
    align-items: stretch;
  }

  .header-content-wrapper {
    padding: 10px 15px;
    justify-content: space-between;
    position: relative; /* For proper z-index with hamburger */
    background-color: #0A192F; /* Ensure background for top bar */
    z-index: 1002; /* Above mobile buttons and menu */
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    order: 2;
    font-size: 24px;
    padding: 0 10px; /* Prevent logo from touching hamburger */
  }

  .main-nav {
    display: none; /* Hidden by default, shown via JS */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: #0A192F;
    padding-top: 80px; /* Space for fixed header content */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001; /* Above overlay */
    overflow-y: auto;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    padding: 15px 20px;
    display: block;
    width: 100%;
    color: #E0E0E0;
  }

  .main-nav a:hover {
    background-color: #1a2a47;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1003; /* Above logo and mobile buttons */
    order: 1;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #FFD700;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

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

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

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

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #1a2a47; /* Slightly different background to differentiate */
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 998; /* Below hamburger menu and main nav */
  }

  .mobile-buttons-area .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
  }

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

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

  body.no-scroll {
    overflow: hidden;
  }

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

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

  .footer-nav ul {
    align-items: center;
  }
}