@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary: #1976D2;
    --accent: #FFA000;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --bg-light: #F8FAF8;
    --bg-alt: #EEF2EE;
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(46, 125, 50, 0.08);
    --shadow-hover: 0 20px 50px rgba(46, 125, 50, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-white {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/Picture1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    .hero-content p {
        font-size: 1rem !important;
    }
}

/* About Brief Refined */
.about-flex {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 40px;
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.benefit-list {
    margin-bottom: 40px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.05rem;
}

.benefit-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .about-flex {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-text h2 {
        font-size: 2.5rem;
    }
    .about-image img {
        aspect-ratio: 16/9;
    }
    .image-badge {
        right: 20px;
    }
}

/* Program Cards */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.program-card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(46, 125, 50, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* Footer */
footer {
    background-color: #111;
    color: var(--white);
    padding: 100px 0 50px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px;
    }
}

@media (max-width: 580px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--white);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p, .footer-col li {
    color: #999;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    list-style: none;
    transition: var(--transition);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: #666;
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Make logo white for footer */
}

/* QR Donation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.qr-placeholder {
    width: 250px;
    height: 250px;
    background: #eee;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        align-items: flex-start;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
        padding-right: 15px;
        border-right: 1px solid #eee;
    }

    /* About Brief Mobile */
    .about-brief .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Transparency Mobile */
    .transparency .container > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Section Spacing Mobile */
    section {
        padding: 60px 0 !important;
    }

    .section-title h2 {
        font-size: 2rem !important;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important; /* Default 2 cols for mobile */
        gap: 30px !important;
    }

    .footer-col:first-child, 
    .footer-col:last-child {
        grid-column: span 2; /* About and Contact take full width */
    }
}

/* Blog Layout Refined */
.blog-hero {
    background: linear-gradient(rgba(46, 125, 50, 0.05), rgba(46, 125, 50, 0.05)), var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.blog-filters {
    padding: 20px 0 60px;
    background: var(--white);
}

.filter-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}

.blog-main {
    padding-bottom: 100px;
}

.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    align-items: center;
}

.featured-image {
    position: relative;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 50px;
}

.post-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

.featured-content h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    position: relative;
    height: 220px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-body h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    font-weight: 600;
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 991px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }
    .featured-image {
        height: 300px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .featured-content {
        padding: 30px;
    }
    .featured-content h2 {
        font-size: 1.8rem;
    }
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Transparency Section Refined */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trans-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.trans-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
}

.trans-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: var(--transition);
}

.trans-card:hover .trans-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.trans-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

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

.section-title span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .transparency-grid {
        grid-template-columns: 1fr;
    }
    .trans-card {
        padding: 40px 25px;
    }
}

/* Impact Stats Refined */
.stats {
    padding: 80px 0;
    background: var(--bg-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 40px 20px;
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(46, 125, 50, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.stat-item h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item h2 {
        font-size: 2.5rem;
    }
}
