/* General Styles */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f8f8f8;
  --accent-color-dark: #071a47;
  --button-glow: 0 0 15px var(--secondary-color);
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f4f4f4;
  padding-top: 80px; /* Space for fixed header */
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  min-height: 70px; /* Ensure content fits */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.header-top {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

.main-nav {
  flex-grow: 1;
  text-align: center;
}

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

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

.main-nav a {
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  white-space: nowrap; /* Prevent menu items from wrapping */
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above other elements */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: 0.4s;
}

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

.header-buttons-mobile {
  display: none; /* Hidden by default on desktop */
  width: 100%;
  background-color: var(--accent-color-dark);
  padding: 10px 20px;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) inset;
  z-index: 999; /* Below hamburger menu */
}

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

.btn-primary {
  background: linear-gradient(45deg, var(--secondary-color), #FFC107);
  color: var(--primary-color);
  border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #FFC107, var(--secondary-color));
  box-shadow: var(--button-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(45deg, #4CAF50, #8BC34A);
  color: var(--light-text-color);
  border: 1px solid #4CAF50;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #8BC34A, #4CAF50);
  box-shadow: 0 0 15px #4CAF50;
  transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 40px 20px 20px;
  font-size: 0.9em;
  margin-top: 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--accent-color-dark);
}

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1em;
  text-transform: uppercase;
}

.footer-col p,
.footer-col a {
  color: var(--light-text-color);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .main-nav ul {
    justify-content: flex-end; /* Align right on smaller desktops */
  }
  .main-nav li {
    margin: 0 10px;
  }
  .desktop-buttons {
    gap: 10px;
  }
}

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

  .site-header {
    min-height: auto;
  }

  .header-top {
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 15px;
  }

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

  .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    padding: 10px 0;
    order: 0; /* Keep logo in the middle */
    margin-left: -50px; /* Compensate for hamburger width to truly center */
  }

  .desktop-buttons {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 70px; /* Below header-top */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    flex-basis: 100%; /* Take full width */
    order: 10; /* Push to bottom of header-top flex container */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .main-nav.active {
    max-height: 300px; /* Or a suitable max-height */
  }

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

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

  .main-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: none;
  }
  .main-nav a:hover, .main-nav a.active {
    border-bottom: none;
    color: var(--secondary-color);
  }

  .header-buttons-mobile {
    display: flex;
    position: relative; /* Ensure it's part of the flow */
    top: 0; /* Align right below header-top */
    left: 0;
    width: 100%;
    z-index: 999; /* Below hamburger menu (1001), above main-nav when collapsed (0) */
  }

  .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);
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }
  .btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .header-buttons-mobile {
    padding: 8px 15px;
    gap: 10px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul {
    padding-left: 0;
  }
  .footer-col li a {
    display: inline-block;
  }
}
