/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  white-space: nowrap;
}

nav a:hover {
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
}

/* Carousel Styles */
.carousel-container {
  background-color: #fff;
  border-bottom: 2px solid #e9ecef;
  overflow: hidden;
  padding: 0.75rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.carousel-item {
  display: inline-block;
  padding: 0 1rem;
}

.carousel-item a {
  color: #56ab2f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.carousel-item a:hover {
  color: #3d7a22;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(86, 171, 47, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card h2 {
  color: #56ab2f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  color: #3d7a22;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li {
  margin-bottom: 0.5rem;
}

.card a {
  color: #56ab2f;
  text-decoration: none;
  transition: color 0.3s;
}

.card a:hover {
  color: #3d7a22;
  text-decoration: underline;
}

/* Section Styles */
section {
  margin: 3rem 0;
}

section h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Article Styles */
article {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

article h1 {
  font-size: 2.25rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

article h2 {
  font-size: 1.75rem;
  color: #34495e;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

article h3 {
  font-size: 1.35rem;
  color: #495057;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

article p {
  margin-bottom: 1.25rem;
  color: #495057;
  font-size: 1.05rem;
}

article ul, article ol {
  margin: 1.25rem 0 1.25rem 2rem;
  color: #495057;
}

article li {
  margin-bottom: 0.75rem;
}

/* Disclaimer Box */
.disclaimer {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.25rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.disclaimer strong {
  color: #856404;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  color: #56ab2f;
  margin-bottom: 0.5rem;
}

/* Sources Section */
.sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.sources h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sources ul {
  list-style: decimal;
}

.sources li {
  margin-bottom: 0.5rem;
}

.sources a {
  color: #56ab2f;
  text-decoration: none;
}

.sources a:hover {
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: #a8e063;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

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

.footer-column a:hover {
  color: #a8e063;
}

.footer-column p {
  color: #bdc3c7;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: #56ab2f;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding: 1.5rem 0;
  text-align: center;
  color: #95a5a6;
  margin-top: 2rem;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  /* Remove sticky header on mobile */
  header {
    position: relative;
  }
  
  /* Mobile Navigation */
  nav ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu.active {
    max-height: 500px;
  }

  .mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu a {
    display: block;
    padding: 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }

  .mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Hero adjustments */
  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Article adjustments */
  article {
    padding: 1.5rem;
  }

  article h1 {
    font-size: 1.75rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  article h3 {
    font-size: 1.25rem;
  }

  /* Card grid adjustments */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Carousel adjustments */
  .carousel-track {
    gap: 1rem;
  }
  
  /* Enable touch scrolling for carousel on mobile */
  .carousel-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .carousel-track {
    animation: none;
    width: max-content;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  article {
    padding: 1rem;
  }
}
