/* 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);
  }
  
/* Stories Page Styles */
.impact-stories-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    padding-top: var(--navbar-height) !important;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.story-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.story-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.story-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1.4;
    text-transform: capitalize;
    font-weight: 600;
}

.story-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0.8rem 0;
}

.story-meta .location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.story-meta .location i {
    color: var(--primary);
    font-size: 0.9rem;
}

.story-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }
.story-card:nth-child(5) { animation-delay: 0.5s; }
.story-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
    
    .story-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .impact-stories-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}