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

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #003366; /* Primary dark blue */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  min-height: 60px;
  display: flex;
  flex-direction: column;
}

.header-container { /* Desktop Header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  min-height: 60px;
}

.logo, .logo-mobile {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC00; /* Secondary yellow */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

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

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

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

.header-actions {
  display: flex;
  gap: 10px;
}

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

.btn-primary {
  background-color: #FFCC00; /* Secondary yellow */
  color: #003366; /* Primary dark blue */
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.btn-primary:hover {
  background-color: #e6b800;
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #0056b3; /* A slightly lighter blue for contrast */
  color: #FFCC00;
  border: 2px solid #FFCC00;
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
}

.btn-secondary:hover {
  background-color: #004085;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.6);
  transform: translateY(-2px);
}

/* Hamburger Menu Icon */
.hamburger-menu-mobile {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 45px; /* Fixed width for centering */
  height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu-mobile .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFCC00;
  border-radius: 2px;
  transition: 0.4s;
}

/* Mobile Specific Header Elements */
.header-mobile-wrapper {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
}

.header-top-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  min-height: 60px;
  width: 100%;
}

.logo-mobile {
  flex-grow: 1;
  text-align: center;
}

.empty-space-for-logo-center {
  width: 45px; /* Match hamburger button width for logo centering */
  height: 1px; /* Minimal height */
  visibility: hidden;
}

.header-buttons-mobile {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #003366;
  z-index: 1000; /* Below mobile menu, above main content */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav.mobile-nav {
  display: none; /* Hidden by default */
  position: absolute;
  top: 130px; /* Adjust based on combined height of header-top-mobile (60px) and header-buttons-mobile (~70px) */
  left: 0;
  width: 100%;
  background-color: #003366;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1001; /* Above buttons and content */
  overflow-y: auto;
  max-height: calc(100vh - 130px); /* Ensure menu doesn't overflow viewport */
}

.main-nav.mobile-nav ul {
  flex-direction: column;
  padding: 20px 0;
}

.main-nav.mobile-nav li {
  margin: 0;
  text-align: center;
}

.main-nav.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: #fff;
}

.main-nav.mobile-nav a:hover {
  background-color: #004085;
  color: #FFCC00;
}

.main-nav.mobile-nav.active {
  display: block;
}

/* Footer Styles */
.site-footer {
  background-color: #003366; /* Primary dark blue */
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
  margin-top: 50px; /* Space from main content */
}

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

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 15px;
}

.footer-column h4 {
  font-size: 18px;
  color: #FFCC00; /* Secondary yellow */
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #FFCC00;
}

.footer-column p {
  margin-bottom: 10px;
  color: #ccc;
}

.footer-column a {
  color: #FFCC00;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
}

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

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

.footer-nav a:hover {
  color: #FFCC00;
  text-decoration: underline;
}

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

.copyright {
  color: #aaa;
  font-size: 13px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .main-nav li {
    margin: 0 10px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .header-actions .btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Adjust for mobile header height (top + buttons) */
  }

  .header-container { /* Hide desktop elements */
    display: none;
  }

  .header-mobile-wrapper {
    display: flex;
  }

  .desktop-nav, .desktop-buttons { /* Explicitly hide desktop nav and buttons */
    display: none;
  }

  .hamburger-menu-mobile {
    display: flex; /* Show mobile hamburger */
  }

  .site-header {
    min-height: auto; /* Allow height to adjust based on content */
  }

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

  .footer-column {
    min-width: unset;
    width: 100%;
    text-align: center;
    margin: 15px 0;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav ul {
    padding: 0;
  }
}
