/* Clean, Minimal Design */
:root {
  --primary-green: #6a8e22;
  --light-green: #ebf8d1;
  --accent-yellow: #fcd501;
  --dark-green: #556f1b;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-white: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --h1-size: clamp(1.8rem, 5vw, 2.5rem);
  --h2-size: clamp(1.5rem, 4vw, 2rem);
  --h3-size: clamp(1.2rem, 3vw, 1.8rem);
  --body-size: clamp(0.95rem, 2vw, 1.1rem);
  --small-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

h2,
h3,
h4 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Base Layout */
.stories-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Hero Section - Simplified */
.story-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(20px, 4vw, 40px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-green);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.hero-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

/* Stats - Minimal */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(15px, 3vw, 25px);
  margin-top: 20px;
}

.stat {
  padding: 20px;
  text-align: center;
  background: var(--light-green);
  border-radius: var(--border-radius);
}

.stat .number {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Sections */
.story-content {
  padding: 40px;
}

.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-header h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-light);
  /* max-width: 600px; */
  margin: 0 auto;
  font-weight: 500;
}

/* Challenge & Solution Grid */
.challenge-grid,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 30px);
  margin: 30px 0;
}

.challenge-item,
.solution-item {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(106, 142, 34, 0.1);
}

.challenge-item i,
.solution-item i {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Impact Gallery - Simplified */
.impact-gallery {
  margin: 40px -40px;
  padding: 40px;
  background: var(--primary-green);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(15px, 3vw, 30px);
}

.gallery-item {
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-weight: 500;
}

/* Results Section */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 30px);
}

.impact-card {
  /* background: var(--light-green); */
  padding: 24px;
  border-radius: var(--border-radius);
}

.impact-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.impact-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

.impact-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.impact-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-green);
}

/* Support Section - Clean */
.support-section {
  margin: 40px -40px -40px;
  padding: 40px;
  background: var(--primary-green);
  color: white;
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.tier {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--border-radius);
  text-align: center;
  color: var(--text-dark);
}

.tier .amount {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.tier p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Buttons */
.donate-btn {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.donate-btn:hover {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stories-section {
    padding: 20px;
  }

  .story-hero {
    padding: 30px;
  }
}

@media (max-width: 992px) {
  .story-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-media {
    max-height: 400px;
    order: -1; /* Move image above content on tablet */
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .story-hero {
    padding: 20px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-grid,
  .solution-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .donation-tiers {
    grid-template-columns: 1fr;
  }

  .story-content {
    padding: 20px;
  }

  .impact-gallery,
  .support-section {
    margin: 20px -20px;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .story-hero {
    padding: 15px;
  }

  .hero-media {
    aspect-ratio: 1/1;
    max-height: 300px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 15px;
  }

  .challenge-item,
  .solution-item,
  .impact-card {
    padding: 20px;
  }

  .section-header h3 {
    font-size: 1.5rem;
  }

  .category {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
}

/* Button Improvements */
.donate-btn,
.play-btn {
  display: inline-block;
  width: auto;
  min-width: 120px;
  padding: 12px 24px;
  text-align: center;
  border-radius: 25px;
  margin: 10px 0;
}

/* Fix button container */
.button-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Ensure images don't break layout */
img {
  max-width: 100%;
  height: auto;
}

/* Card improvements */
.challenge-item,
.solution-item,
.impact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Fix content overflow */
.story-content {
  overflow-x: hidden;
}

/* Ensure proper spacing in mobile */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 30px;
  }

  .button-container {
    justify-content: center;
  }

  .donate-btn,
  .play-btn {
    width: 100%;
    max-width: 300px;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
  }

  .stat .number {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
}

/* Image Handling Improvements */

/* Hero Image */
.hero-media {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Gallery Images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-item.main {
  grid-column: 1 / -1;
  height: 400px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Impact Section Images */
.impact-image {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-media {
    height: 400px;
  }

  .gallery-item.main {
    height: 350px;
  }

  .gallery-item {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .story-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-media {
    height: 380px;
    margin: 0 auto;
    max-width: 700px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    height: 260px;
  }

  .gallery-item.main {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-media {
    height: 340px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.main {
    height: 300px;
  }

  .impact-image {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-media {
    height: 280px;
  }

  .gallery-item,
  .gallery-item.main {
    height: 240px;
  }

  .impact-image {
    height: 200px;
  }
}

/* Image Hover Effects */
.hero-media:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Image Overlays */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
}

.image-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.image-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Image Loading */
.image-wrapper {
  position: relative;
  background: #f5f5f5;
}

.image-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enhanced Responsive Behavior */

/* Responsive Grid System */
.story-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(20px, 4vw, 40px);
  align-items: center;
}

/* Responsive Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(15px, 3vw, 25px);
}

/* Responsive Content Grids */
.challenge-grid,
.solution-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 4vw, 30px);
}

/* Responsive Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(15px, 3vw, 30px);
}

/* Responsive Spacing */
.section-spacing {
  padding: clamp(30px, 6vw, 60px) 0;
}

/* Card Responsive Padding */
.card-padding {
  padding: clamp(15px, 3vw, 25px);
}

/* Enhanced Media Queries */
@media (min-width: 1400px) {
  .stories-section {
    padding: 0 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .hero-media {
    height: clamp(300px, 50vw, 400px);
  }

  .gallery-item {
    height: clamp(250px, 40vw, 300px);
  }
}

@media (max-width: 992px) {
  .story-hero {
    text-align: center;
  }

  .button-container {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .story-content {
    padding: clamp(15px, 3vw, 25px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .button-container {
    flex-direction: column;
  }

  .donate-btn,
  .play-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: left;
  }

  .button-container {
    align-items: stretch;
  }

  .section-header {
    text-align: left;
  }
}

/* Responsive Navigation */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }

  .desktop-nav {
    display: none;
  }
}

/* Responsive Images */
.responsive-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Fluid Containers */
.fluid-container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

/* Responsive Cards */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: clamp(10px, 2vw, 20px);
}

/* Responsive Text Alignment */
@media (max-width: 768px) {
  .text-center-desktop {
    text-align: left;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .hover-effect {
    display: none;
  }

  .touch-friendly {
    min-height: 44px;
    min-width: 44px;
    padding: clamp(12px, 3vw, 20px);
  }
}

/* Modern Blog Styling */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
}

/* Header Styling */
.post-header {
  text-align: left;
  margin-bottom: 4rem;
  position: relative;
}

.post-category {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary-green);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-header h1 {
  font-size: var(--h1-size);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-family: "Unbounded", sans-serif;
  color: var(--text-dark);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Featured Image */
.post-image {
  margin: 3rem 0;
  position: relative;
}

.post-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* Content Styling */
.post-content {
  font-size: var(--body-size);
}

.post-intro {
  font-size: 1.25em;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.6;
}

.post-content h2 {
  font-size: var(--h2-size);
  margin: 4rem 0 1.5rem;
  color: var(--text-dark);
  font-family: "Unbounded", sans-serif;
  position: relative;
}

.post-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin-top: 1rem;
}

.post-content h3 {
  font-size: var(--h3-size);
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
  font-family: "Unbounded", sans-serif;
}

.post-content p {
  margin-bottom: 1.8rem;
  color: var(--text-dark);
}

/* Lists Styling */
.skill-list,
.feature-list {
  padding-left: 0;
  margin: 2rem 0;
  list-style: none;
}

.skill-list li,
.feature-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.skill-list li::before,
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

.skill-list li strong,
.feature-list li strong {
  color: var(--primary-green);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

/* Author Bio */
.post-footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.author-bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--light-green);
  padding: 2rem;
  border-radius: 12px;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-family: "Unbounded", sans-serif;
}

.author-info p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-post {
    padding: 2rem 1.5rem;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .post-image {
    margin: 2rem 0;
  }

  .author-bio {
    padding: 1.5rem;
  }
}

/* Reading Experience Enhancements */
@media (min-width: 1200px) {
  .blog-post {
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .blog-post {
    max-width: 100%;
    padding: 0;
  }

  .post-image {
    margin: 2rem 0;
  }

  .author-bio {
    break-inside: avoid;
  }
}

/* Feedback Section */
.feedback-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
  margin: 2rem 0;
}

.feedback-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefit-card h4 {
  color: #13a446;
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e6f3ea;
  color: #13a446;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .feedback-section {
    padding: 2rem 1rem;
  }
}
