/* Base Styles & Variables */
:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #81c784;
    --secondary: #ff8f00;
    --secondary-dark: #e65100;
    --accent: #00796b;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --light-gray: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
  }
  
  p {
    margin-bottom: 1.5rem;
  }
  
  a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 143, 0, 0.1);
    border-radius: 50px;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
  }
  
  .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: var(--white);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }


/* Story Page Specific Styles */
.story-page {
    padding-top: var(--navbar-height);
}

/* Story Hero Section */
.story-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    color: var(--white);
}

.hero-content {
    width: 100%;
}

.story-hero h1 {
    font-size: 2.8rem;
    margin: 1rem 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--white);
    font-weight: 500;
}

.story-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.story-meta i {
    margin-right: 0.5rem;
}

/* Story Content */
.story-content {
    padding: 4rem 0;
    background-color: var(--white);
}

.content-grid {
    display: flex;
    gap: 3rem;
}

.story-text {
    flex: 2;
}

.story-sidebar {
    flex: 1;
    min-width: 300px;
}

.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(46, 125, 50, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.program-badge i {
    font-size: 1.2rem;
}

.story-text h2 {
    color: var(--primary-dark);
    margin: 2rem 0 1.5rem;
    position: relative;
}

.story-text h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.story-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text);
    position: relative;
}

blockquote:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    color: rgba(46, 125, 50, 0.1);
    font-family: serif;
    line-height: 1;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-dark);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

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

.feature-list i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.impact-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: rgba(46, 125, 50, 0.05);
    border-radius: var(--radius-sm);
}

.impact-stat .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.impact-stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Story Sidebar */
.author-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 2rem;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.author-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-light);
}

.related-stories h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.story-card {
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.story-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.story-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.story-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* Story Gallery */
.story-gallery {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.story-gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Story CTA */
.story-cta {
    padding: 4rem 0;
    background-color: var(--primary);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .content-grid {
        flex-direction: column;
    }
    
    .story-hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .story-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .story-hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .story-hero {
        height: 60vh;
    }
    
    .story-hero h1 {
        font-size: 1.8rem;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}