/* Base Styles & Typography */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Default desktop padding */
}

/* Site Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 60px; /* Ensure content fits */
}

/* Header Top Area - Desktop */
.header-top {
  background-color: #003B80; /* Darker blue from main palette */
  padding: 10px 0;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  color: #FFD700; /* Gold for logo */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 0;
  display: inline-block; /* Ensure it's always visible */
}

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

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

/* Main Navigation Area - Desktop */
.main-nav {
  background-color: #FFD700; /* Gold for main nav */
  padding: 10px 0;
  display: flex; /* Default desktop display */
  flex-direction: row; /* Horizontal on desktop */
  position: static; /* Normal flow on desktop */
}

.main-nav .nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.main-nav .nav-link {
  color: #004AAD; /* Dark blue for nav links */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
}

.main-nav .nav-link:hover, .main-nav .nav-link.active {
  background-color: #004AAD;
  color: #FFD700;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFD700;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #004AAD;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #003B80;
  color: #FFF;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #28a745; /* Example vibrant color for a third button */
  color: #FFFFFF;
}

.btn-tertiary:hover {
  background-color: #218838;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.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.5);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Site Footer */
.site-footer {
  background-color: #004AAD; /* Dark blue for footer */
  color: #f8f8f8;
  padding: 40px 0 20px;
  font-size: 15px;
}

.site-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .footer-column {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.site-footer h3 {
  color: #FFD700; /* Gold for footer headings */
  font-size: 18px;
  margin-bottom: 15px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.site-footer ul li a {
  color: #f8f8f8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer ul li a:hover {
  color: #FFD700;
}

.site-footer p {
  margin: 0 0 10px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  /* Adjust body padding to avoid content being hidden by fixed header and buttons */
  body {
    padding-top: 110px; /* Approx. header-top (60px) + mobile-nav-buttons (50px) */
  }

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none; /* Crucial: no max-width on mobile containers */
    padding: 0 15px; /* Smaller mobile padding */
  }

  /* Header Top - Mobile */
  .header-top .header-container {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .site-header .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    order: 2; /* Logo centered */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Hamburger to the left */
    margin-right: auto; /* Push logo to center */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  /* Hamburger Menu Animation */
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Buttons */
  .mobile-nav-buttons {
    display: block; /* Show mobile buttons */
    background-color: #004AAD; /* Background for button area */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 900; /* Below hamburger menu */
  }

  .mobile-nav-buttons .header-container {
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    flex: 1; /* Distribute space */
    max-width: 120px;
  }

  /* Main Navigation - Mobile */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100%;
    background-color: #004AAD; /* Dark blue for mobile menu */
    padding-top: 80px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Crucial: show menu */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 15px;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 15px;
    color: #f8f8f8;
    border-radius: 0;
  }

  .main-nav .nav-link:hover, .main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700;
  }

  /* Footer - Mobile */
  .site-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-column {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
}
