/* Base Styles */
:root {
  --primary-color: #1A2B5B;
  --secondary-color: #FFD700;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333;
  --bg-dark: #0f1a30;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: #f9f9f9;
}

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  padding: 15px 20px;
  color: var(--text-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Verdana', sans-serif; /* A more distinct font for the logo */
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

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

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.nav-list li a {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 100%;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--secondary-color);
}

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

.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent buttons from wrapping */
}

.btn-login {
  background-color: #fff;
  color: var(--primary-color);
}

.btn-login:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-register {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-register:hover {
  background-color: #fff;
  color: var(--primary-color);
}

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

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color-light);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Footer Styles */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  padding: 40px 20px 20px;
  font-size: 15px;
}

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

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

.footer-logo {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-info p {
  color: #bbb;
  line-height: 1.8;
}

.site-footer h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

.site-footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

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

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

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--secondary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  color: #bbb;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-list {
    gap: 15px;
  }
  .nav-list li a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    flex-basis: auto;
    margin-right: auto;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-basis: 100%;
    order: 3; /* Push to new line */
    background-color: var(--primary-color);
    position: absolute;
    top: 75px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .header-actions {
    order: 2;
    margin-left: 15px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 14px;
  }

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

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    min-width: unset;
    width: 100%;
  }

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

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

@media (max-width: 480px) {
  .logo {
    font-size: 24px;
  }
  .header-actions {
    flex-direction: column;
    gap: 5px;
  }
  .btn {
    width: 100%;
  }
  .site-header {
    padding: 10px 15px;
  }
  .main-nav {
    top: 65px; /* Adjust for smaller header */
  }
  .footer-col {
    padding: 10px 0;
  }
  .footer-info p {
    font-size: 14px;
  }
}
