/* General & Resets */
:root {
  --primary-color: #0A2342;
  --secondary-color: #E6B31E;
  --text-color: #f0f0f0;
  --dark-text-color: #333;
  --button-hover-glow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: var(--dark-text-color);
  padding-top: 120px; /* Adjust based on header height, will be dynamic */
}

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

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

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

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

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

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

.main-nav a {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

/* Desktop Actions (Buttons) */
.header-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-login {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-login:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230,179,30,0.5), var(--button-hover-glow);
}

.btn-register {
  background: linear-gradient(45deg, var(--secondary-color), #FFD700);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(230,179,30,0.4);
}
.btn-register:hover {
  background: linear-gradient(45deg, #FFD700, var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,179,30,0.8), var(--button-hover-glow);
}

.btn-download { /* New style for download button */
  background-color: #4CAF50; /* Green for download */
  color: #fff;
  border: 2px solid #388E3C;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-download:hover {
  background-color: #388E3C;
  box-shadow: 0 4px 15px rgba(76,175,80,0.5), 0 0 10px #4CAF50, 0 0 20px #4CAF50;
}

/* Mobile Specifics - Hidden by default on desktop */
.header-main-mobile,
.header-buttons-mobile,
.hamburger-menu,
.mobile-nav {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-section {
  flex: 1;
  min-width: 250px;
}

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

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

.footer-section p,
.footer-section a {
  color: var(--text-color);
  margin-bottom: 10px;
}

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

.logo-footer {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

  .header-main-desktop {
    display: none;
  }

  .header-main-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Hamburger left, logo center, placeholder right */
    padding: 10px 15px;
    min-height: 60px;
    position: relative; /* For z-index context */
    z-index: 1001; /* Above mobile buttons */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's clickable */
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
  }

  /* Hamburger animation */
  .site-header.menu-open .hamburger-menu span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .site-header.menu-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
  }
  .site-header.menu-open .hamburger-menu span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .site-header .logo {
    flex: 1; /* Allows logo to take available space */
    text-align: center; /* Centers the logo within its flex item */
    font-size: 24px; /* Smaller logo on mobile */
  }

  .mobile-placeholder {
    width: 30px; /* Same width as hamburger to balance logo centering */
  }

  .header-buttons-mobile {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--primary-color); /* Same as header */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999; /* Below mobile header, but above page content */
    position: relative; /* For z-index to work */
  }

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

  /* Mobile Navigation */
  .mobile-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 120px; /* Below the main header and buttons */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 999; /* Below header top, but above page content */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  }

  .site-header.menu-open .mobile-nav {
    display: block; /* Show when menu-open */
    max-height: 500px; /* Sufficient height for all items */
    padding: 10px 0;
  }

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

  .mobile-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .mobile-nav a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--secondary-color);
    padding-left: 10px; /* Slight indent on hover/active */
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    text-align: center;
    min-width: unset;
  }

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

  .footer-nav ul {
    align-items: center;
  }
}