/* General reset and base styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 70px 0 0 0; /* Added padding-top for fixed header */
  box-sizing: border-box;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Header Styles */
.site-header {
  background-color: #007BFF; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed; /* Make header sticky */
  top: 0;
  width: 100%;
  z-index: 1000; /* Ensure it's above other content */
}

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

.site-header .logo {
  font-size: 2.5em; /* Larger, more prominent */
  font-weight: bold;
  color: #FFD700; /* Secondary color for brand emphasis */
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.site-header .logo:hover {
  color: #fff;
}

.site-header .main-nav ul {
  display: flex;
  gap: 25px;
}

.site-header .main-nav a {
  color: #fff;
  font-size: 1.1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-header .main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FFD700; /* Secondary color for hover effect */
  transition: width 0.3s ease;
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a.active::after {
  width: 100%;
}

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

/* Header Action Buttons (Desktop) */
.header-actions-desktop {
  display: flex; /* Show on desktop */
  gap: 10px; /* Space between buttons */
  margin-left: 20px; /* Space from navigation */
  align-items: center;
}

.header-actions-desktop .btn,
.header-actions-mobile .btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
  text-align: center;
}

.header-actions-desktop .btn-register,
.header-actions-mobile .btn-register {
  background-color: #FFD700; /* Secondary color */
  color: #007BFF; /* Primary color */
  border: 1px solid #FFD700;
}

.header-actions-desktop .btn-register:hover,
.header-actions-mobile .btn-register:hover {
  background-color: #e6c200;
  color: #0056b3;
}

.header-actions-desktop .btn-login,
.header-actions-mobile .btn-login {
  background-color: transparent;
  color: #FFD700; /* Secondary color */
  border: 1px solid #FFD700;
}

.header-actions-desktop .btn-login:hover,
.header-actions-mobile .btn-login:hover {
  background-color: #FFD700;
  color: #007BFF;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001; /* Above nav */
}

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

.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 Spacer */
.mobile-spacer {
  display: none; /* Hidden on desktop */
}

/* Header Action Buttons (Mobile) */
.header-actions-mobile {
  display: none; /* Hidden on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #222;
  color: #eee;
  padding: 40px 0;
  font-size: 0.9em;
  border-top: 3px solid #007BFF; /* Primary color border */
}

.site-footer .footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* Brand info, nav, contact */
  gap: 30px;
}

.site-footer .footer-logo {
  font-size: 2em;
  color: #FFD700; /* Secondary color for brand */
  margin-bottom: 15px;
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.site-footer h3 {
  color: #FFD700; /* Secondary color for headings */
  font-size: 1.2em;
  margin-bottom: 20px;
  position: relative;
}

.site-footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #007BFF; /* Primary color underline */
}

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

.site-footer a {
  color: #ccc;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #007BFF; /* Primary color on hover */
}

.site-footer .copyright {
  margin-top: 20px;
  font-size: 0.85em;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .site-header .main-nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    justify-content: flex-start; /* Align items to the start for mobile layout */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
  }

  .site-header .logo {
    order: 2; /* Place logo second */
    flex-grow: 0; /* Override default flex-grow: 1 to allow centering */
    text-align: center;
    margin: 0 auto; /* Center logo between hamburger and spacer */
  }

  .mobile-spacer {
    display: block; /* Show spacer on mobile */
    order: 3; /* Place spacer after logo */
    flex-grow: 1; /* Push logo to center by taking remaining space */
  }

  .site-header .main-nav {
    display: none; /* Hide main nav by default on mobile */
    width: 100%;
    flex-direction: column;
    background-color: #007BFF; /* Primary color */
    position: absolute;
    top: 130px; /* Adjusted based on new header height (logo row + buttons row) */
    left: 0;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    order: 5; /* Place navigation after mobile actions */
  }

  .site-header .main-nav.active {
    display: flex; /* Show when active */
  }

  .site-header .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .site-header .main-nav li {
    margin: 10px 0;
  }

  .site-header .main-nav a {
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
  }

  .site-header .main-nav a::after {
    display: none; /* Hide underline on mobile */
  }

  /* Hide desktop action buttons on mobile */
  .header-actions-desktop {
    display: none;
  }

  /* Show and style mobile action buttons */
  .header-actions-mobile {
    display: flex;
    width: 100%; /* Take full width */
    justify-content: center; /* Center buttons */
    gap: 15px;
    padding-top: 15px; /* Space from logo/top row */
    order: 4; /* Place after logo/hamburger row */
  }

  .header-actions-mobile .btn {
    padding: 10px 20px; /* Slightly larger buttons for mobile */
    font-size: 1em;
  }

  .site-footer .footer-columns {
    grid-template-columns: 1fr; /* Single column on mobile */
    text-align: center;
  }

  .site-footer .footer-col {
    margin-bottom: 30px;
  }

  .site-footer .footer-col:last-child {
    margin-bottom: 0;
  }

  .site-footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}