/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f6;
  color: #333;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1A2E4E; /* Primary color */
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-height: 60px; /* Default min-height */
}

.site-header .logo {
  color: #FFD700; /* Accent color */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  padding: 0 15px;
  letter-spacing: 1px;
}

/* Desktop Header */
.header-desktop-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: #FFD700; /* Accent color */
  transform: translateY(-2px);
}

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

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

.btn-register {
  background-color: #FFD700; /* Accent color */
  color: #1A2E4E;
}

.btn-register:hover {
  background-color: #e6c200;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-login {
  background-color: #3B82F6; /* A vibrant blue */
  color: #fff;
}

.btn-login:hover {
  background-color: #2563eb;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Header */
.header-mobile-content {
  display: none; /* Hidden by default, shown on mobile */
  flex-direction: column;
}

.header-top-mobile {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  min-height: 50px;
}

.header-top-mobile .logo {
  flex: 1;
  text-align: center;
  padding: 0;
  font-size: 24px;
}

.hamburger-menu {
  background: none;
  border: none;
  color: #FFD700;
  font-size: 30px;
  cursor: pointer;
  padding: 0 10px;
  line-height: 1;
  z-index: 1001; /* Above mobile buttons */
}

.mobile-placeholder {
  width: 50px; /* Approximate width of hamburger for centering */
  visibility: hidden;
}

.header-buttons-mobile {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #1A2E4E; /* Same as header */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Below hamburger menu */
}

.header-buttons-mobile .btn {
  flex: 1;
  max-width: 150px;
  padding: 8px 15px;
  font-size: 14px;
}

.main-nav-mobile {
  position: absolute;
  top: 120px; /* Adjusted based on header-top-mobile + header-buttons-mobile height */
  left: 0;
  width: 100%;
  background-color: #1A2E4E;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  z-index: 1001;
}

.main-nav-mobile.active {
  max-height: 400px; /* Max height for menu content */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.main-nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav-mobile li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.main-nav-mobile li:last-child a {
  border-bottom: none;
}

.main-nav-mobile li a:hover, .main-nav-mobile li a.active {
  background-color: #2A446B;
  color: #FFD700;
}

/* Footer Styles */
.site-footer {
  background-color: #1A2E4E;
  color: #f0f0f0;
  padding: 40px 20px 20px;
  font-size: 15px;
}

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

.footer-column {
  flex: 1 1 280px;
  min-width: 200px;
}

.footer-column h3, .footer-column h4 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-column p {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-desktop-content {
    display: none;
  }

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

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

  .site-header .logo {
    font-size: 26px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .footer-column {
    min-width: unset;
    flex: 1 1 100%;
  }

  .footer-brand h3 {
    text-align: center;
    width: 100%;
  }

  .footer-brand p {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .header-mobile-content {
    display: none;
  }
}
