/* Shared CSS */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color: #333;
  --light-text-color: #f8f9fa;
  --dark-bg-color: #212529;
  --light-bg-color: #f8f9fa;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif; /* Using a common font, could be more specific */
  line-height: 1.6;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: 'Georgia', serif; /* Creative font for logo */
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--secondary-color); /* Auxiliary color for brand emphasis */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem; /* Space between nav items */
}

.main-nav .nav-list li a {
  color: var(--light-text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

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

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  padding: 3rem 0 1rem;
  font-size: 0.9rem;
}

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

.footer-col {
  flex: 1;
  min-width: 250px; /* Minimum width for columns before wrapping */
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-col p, .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--light-text-color);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .main-nav .nav-list {
    gap: 1rem;
  }
}

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

  .logo {
    font-size: 1.8rem;
  }

  .hamburger-menu {
    display: block;
  }

  .main-nav {
    display: none; /* Hide by default */
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-bg-color);
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    right: 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    z-index: 999;
  }

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

  .main-nav .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .main-nav .nav-list li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .main-nav .nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
  }

  /* Hamburger animation */
  .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);
  }

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

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

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

@media (max-width: 480px) {
  .site-header {
    padding: 0.8rem 0;
  }
  .logo {
    font-size: 1.6rem;
  }
  .header-container, .footer-container {
    padding: 0 1rem;
  }
}