/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2E8B57;
    --primary-dark: #1F6B48;
    --accent: #FF8C00;
    --accent-dark: #E67E00;
    --light: #F5F5F5;
    --dark: #2C3E50;
    --text: #333;
    --text-light: #777;
    --white: #fff;
    --gray: #95a5a6;
    --success: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/img1.jpeg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content {
    max-width: 600px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-vision {
    display: grid;
    grid-template-columns: 0.25fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Programs Section - UPDATED FOR HORIZONTAL SCROLL */
.programs-container {
    position: relative;
    width: 100%;
}

.programs-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.programs-grid::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.program-card {
    flex: 0 0 auto;
    width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-content {
    padding: 20px;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.program-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat {
    text-align: center;
    padding: 15px;
    background-color: var(--light);
    border-radius: 5px;
}

.stat h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Partners Section */
.partners {
    background-color: var(--light);
}

.partners-container {
    position: relative;
    width: 100%;
}

.partners-grid {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 30px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners-grid::-webkit-scrollbar {
    display: none;
}

.partner-card {
    flex: 0 0 auto;
    width: 250px;
    height: 150px;
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
}

.gallery-container {
    position: relative;
    width: 100%;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Scroll buttons for programs */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-btn:hover {
    opacity: 1;
}

.scroll-btn.left {
    left: -25px;
}

.scroll-btn.right {
    right: -25px;
}

.scroll-btn i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Get Involved Section */
.get-involved {
    background-color: var(--light);
}

.involved-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.involved-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.involved-card:hover {
    transform: translateY(-5px);
}

.involved-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.involved-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Donate Section */
.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.donate-tier {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.donate-tier:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.donate-tier h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.amount {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-detail i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 15px;
    width: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.copyright a {
    color: var(--gray);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--white);
}

/* Story Page Styles */
.story-container {
    margin-top: 100px;
    padding: 40px 0;
}

.story-header {
    margin-bottom: 40px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-dark);
}

.story-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.story-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.story-text h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 25px 0 15px;
}

.story-text h2:first-child {
    margin-top: 0;
}

.story-text h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 20px 0 12px;
}

.story-text p, .story-text ul, .story-text ol {
    margin-bottom: 15px;
    line-height: 1.7;
}

.story-text ul, .story-text ol {
    padding-left: 20px;
}

.story-text li {
    margin-bottom: 8px;
}

.story-text strong {
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .program-card {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-container,
    .about-vision {
        grid-template-columns: 1fr;
    }

    #about-vision-image{
        display: none;
    }
    
    .scroll-btn {
        display: none;
    }
    
    .programs-grid {
        padding-bottom: 30px;
    }

    .partners-grid,
    .gallery-grid {
        padding-bottom: 30px;
    }

    .story-body {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .programs-grid,
    .involved-options,
    .donate-options,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        width: 300px;
    }
    
    .newsletter {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero {
        height: auto;
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .program-card {
        width: 280px;
    }

    .partner-card {
        width: 200px;
    }

    .gallery-item {
        width: 250px;
        height: 200px;
    }
}