/* =====================
   GLOBAL
   ===================== */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #3CB371;
    --accent-color: #228B22;
    --light-green: #98FB98;
    --dark-green: #006400;
    --light-color: #f8f8f8;
    --white: #ffffff;
    --text-color: #333333;
    --gray: #e0e0e0;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

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

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark-green);
    line-height: 1.2;
}

h1 {
    font-size: 2.7rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--light-green);
    margin: 0.5rem auto 0;
    border-radius: 4px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #555;
    font-size: 0.97rem;
}

/* Links & Buttons */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    border-radius: 6px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.98rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

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

/* =====================
   HEADER / NAV
   ===================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo img {
    height: 52px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

nav a {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--dark-green);
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-donate {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--white);
}

.nav-donate::after {
    display: none;
}

/* Mobile nav button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =====================
   HERO
   ===================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(46,139,87,0.86), rgba(46,139,87,0.86)),
        url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1350&q=80")
        center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 80px; /* header offset */
    color: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero p {
    color: #f5f5f5;
    margin-bottom: 1.7rem;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-highlight {
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.7rem 1.5rem;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-soft);
}

.hero-stat + .hero-stat {
    margin-top: 1rem;
}

.hero-stat span {
    font-weight: 700;
    font-size: 1.02rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: 0.9rem;
    color: #f0f0f0;
}

/* simple fade-in */
.fade-in {
    animation: fadeIn 0.9s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(18px); }
}

/* =====================
   ABOUT / PILLARS
   ===================== */
.about {
    padding: 4.5rem 0 1rem;
    background: var(--light-color);
}

.pillars {
    padding: 3rem 0 4rem;
    background: var(--light-color);
}

.pillars-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 1.8rem;
}

.pillar-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.7rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.pillar-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* =====================
   PROGRAMS
   ===================== */
.programs {
    padding: 4.5rem 0;
    background: var(--white);
}

.programs-grid {
    margin-top: 2.3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1.8rem;
}

.program-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-color);
}

.program-card h3 {
    margin-bottom: 0.7rem;
    color: var(--primary-color);
}

.program-highlight {
    border-left-color: var(--accent-color);
    background: linear-gradient(to right, rgba(152,251,152,0.4), rgba(248,248,248,1));
}

/* =====================
   PROJECTS
   ===================== */
.projects {
    padding: 4.5rem 0;
    background: var(--white);
}

.projects h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

/* reuse .gallery-item styles */

/* =====================
   GALLERY
   ===================== */
.gallery {
    padding: 4.5rem 0;
    background: var(--light-color);
}

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

.gallery-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 0.9rem 1rem 1.2rem;
    font-size: 0.9rem;
}

/* =====================
   SUCCESS / IMPACT
   ===================== */
.success {
    padding: 4.5rem 0;
    background: var(--white);
}

/* =====================
   TEAM
   ===================== */
.team {
    padding: 4.5rem 0;
    background: var(--white);
}

.team-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}

.team-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem 1.7rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* =====================
   GET INVOLVED
   ===================== */
.get-involved {
    padding: 4.5rem 0;
    background: linear-gradient(
        rgba(46,139,87,0.9),
        rgba(46,139,87,0.9)
    ),
    url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1350&q=80")
    center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.get-involved h2 {
    color: var(--white);
}

.get-involved h2::after {
    background: var(--light-green);
}

.get-involved .section-intro {
    color: #f0f0f0;
}

.involvement-grid {
    margin-top: 2.7rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}

.involvement-card {
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
    backdrop-filter: blur(4px);
}

.involvement-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-green);
}

.involvement-card p {
    color: #f5f5f5;
    margin-bottom: 1.5rem;
}

/* =====================
   CONTACT
   ===================== */
.contact {
    padding: 4.5rem 0;
    background: var(--light-color);
}

.contact-grid {
    margin-top: 2.7rem;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.2fr);
    gap: 2.4rem;
}

.contact-info {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    color: var(--white);
}

.contact-info h3 {
    margin-bottom: 1.3rem;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--light-green);
    margin-top: 0.25rem;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    font-size: 1.4rem;
    margin-right: 0.8rem;
    color: var(--white);
}

.social-links a:hover {
    color: var(--light-green);
}

.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--gray);
    margin-bottom: 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* =====================
   FOOTER
   ===================== */
footer {
    background: var(--dark-green);
    color: var(--white);
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand img {
    height: 52px;
    margin-bottom: 0.9rem;
}

.footer-brand p {
    font-size: 0.94rem;
    color: rgba(255,255,255,0.85);
}

.footer-links h4,
.footer-newsletter h4 {
    margin-bottom: 0.9rem;
    font-size: 1.02rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.4rem;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    font-size: 0.94rem;
}

.footer-links a:hover {
    color: var(--light-green);
}

.footer-newsletter p {
    font-size: 0.94rem;
    margin-bottom: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.footer-newsletter input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    border: none;
    margin-bottom: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.22);
    text-align: center;
    padding: 0.9rem 0;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.9);
}

/* =====================
   WHATSAPP FLOAT
   ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    z-index: 1000;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1.2fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.65rem 0;
    }

    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: center;
        background: var(--white);
        padding: 1rem 0;
        gap: 0.8rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-item img {
        height: 190px;
    }
}
/* =====================
   MONTHLY IMPACT REPORT
   ===================== */
.impact-report {
    padding: 4rem 0;
    background: var(--light-color);
}

.impact-summary-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.impact-summary-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-color);
}

.impact-summary-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
}

.impact-total {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Table */
.report-table-wrapper {
    overflow-x: auto;
    margin-top: 2.5rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.report-table thead {
    background: var(--primary-color);
    color: #fff;
}

.report-table th,
.report-table td {
    padding: 1rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.report-table tbody tr:hover {
    background: #f5fff5;
}

/* Chart */
.impact-chart-wrapper {
    margin-top: 3rem;
    background: var(--white);
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.impact-chart-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--dark-green);
}

/* FINAL canvas height — only ONE rule! */
.impact-chart-wrapper canvas {
    width: 100% !important;
    max-width: 100%;
    height: 180px;   /* 👈 you can adjust: try 150px, 160px, 180px */
}

.impact-actions {
    margin-top: 2rem;
    text-align: center;
}

.impact-note {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}
