/* --- Variables & Reset --- */
:root {
    /* Colors extracted from your design */
    --primary-blue: #1E88E5;
    /* The button blue */
    --primary-hover: #1565C0;
    --dark-bg: #1F2937;
    /* Footer background */
    --light-bg: #F8FAFC;
    /* Hero/Section background */
    --text-dark: #111827;
    --text-gray: #4B5563;
    --white: #FFFFFF;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-gray);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #E5E7EB;
    color: var(--text-dark);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #D1D5DB;
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    background: var(--light-bg);
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-blue);
    /* Placeholder for logo img */
    border-radius: 4px;
}

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

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--light-bg);
    padding: 80px 20px 100px;
    /* Top/Side/Bottom */
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* --- Initiatives (Cards) --- */
.initiatives {
    background-color: var(--white);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Areas of Focus --- */
.focus-area {
    background-color: var(--light-bg);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.check-icon {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
    background: #E0F2FE;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-bg);
    color: #D1D5DB;
    padding: 60px 0 20px;
}

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

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p {
    line-height: 1.6;
    max-width: 300px;
}

.footer-links li,
.contact-list li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for code brevity */
    .mobile-menu-toggle {
        display: block;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}



/* --- About Page Specific Styles --- */

/* --- Fix for About Us Page Title --- */

.about-intro {
    background-color: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
    /* This forces the Title to the center */
}

.about-intro h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    /* This centers the paragraph block */
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Info Cards (Mission/Philosophy) */
.about-cards-section {
    background-color: var(--white);
}

.info-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-blue);
}

.info-card h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--text-dark);
}

.info-card p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Focus Areas Grid (Detailed) */
.focus-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.focus-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-blue);
}

.focus-box h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.focus-box p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Team Section */
.team-section {
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Fix for Button in Nav */
.nav-btn {
    padding: 8px 20px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    /* Hide donate button inside menu on mobile if needed */
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        /* Below navbar */
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
}



/* --- Initiatives Page Styles --- */

/* --- Fix for Page Headers --- */

.page-header-section {
    background-color: var(--light-bg);
    padding: 80px 20px;
    /* Increased padding for better look */
    margin-bottom: 50px;
    text-align: center;
    /* This forces the text to center */
    width: 100%;
}

.page-header-section .container {
    max-width: 800px;
    /* Restricts width so text doesn't stretch too far */
    margin: 0 auto;
}

.page-header-section h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.2;
}

.page-header-section p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    /* Centers the paragraph block itself */
}

/* Activity Card Styling */
.activity-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.activity-card .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activity-card .card-body {
    padding: 24px;
    flex-grow: 1;
    /* Ensures buttons align at bottom if you add them later */
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

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

/* Specific Style for the Big Tree Plantation Card (Optional) */
.single-row {
    grid-template-columns: 1fr;
}

.wide-card {
    display: flex;
    flex-direction: row;
}

.wide-card .card-image {
    width: 50%;
}

.wide-card .card-image img {
    height: 100%;
}

.wide-card .card-body {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile fix for the wide card */
@media (max-width: 768px) {
    .wide-card {
        flex-direction: column;
    }

    .wide-card .card-image,
    .wide-card .card-body {
        width: 100%;
    }
}





/* --- Gallery Page Styles --- */

.gallery-section {
    background-color: var(--white);
    padding-top: 20px;
}

.gallery-grid {
    display: grid;
    /* This magic line makes it responsive automatically: */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    /* Fixed height for uniformity */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the box without stretching */
    transition: transform 0.4s ease;
}

/* Hover Effect: Gentle Zoom */
.gallery-item:hover img {
    transform: scale(1.08);
}




/* --- Contact & Donate Page Styles --- */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    gap: 60px;
    align-items: start;
}

/* Left Column Styling */
.contact-column h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.sub-text {
    margin-bottom: 30px;
    color: var(--text-gray);
}

.contact-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-row .icon {
    font-size: 1.5rem;
    background: #EFF6FF;
    /* Light Blue Circle */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-row strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.image-box-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

/* Right Column (Donation Card) Styling */
.donation-card {
    background: var(--primary-blue);
    /* The main Blue color */
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.3);
}

.donation-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.donation-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

/* Bank Details Box inside the Blue Card */
.bank-details-box {
    background: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bank-details-box h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    /* Allows wrapping on very small screens */
}

.detail-row .label {
    opacity: 0.8;
    font-size: 0.9rem;
}

.detail-row .value {
    font-weight: 600;
    text-align: right;
}

/* QR Code Section */
.qr-placeholder {
    background: var(--white);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.qr-placeholder .small-note {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 5px;
    font-weight: 600;
}

.qr-placeholder img {
    width: 120px;
    height: 120px;
}

.tax-note {
    margin-top: 20px;
    font-size: 0.85rem !important;
    opacity: 0.7;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        /* Stack them vertically */
        gap: 40px;
    }

    .donation-card {
        padding: 30px 20px;
    }
}




/* --- Certificate Page Styles --- */

.certificate-section {
    background-color: var(--white);
    padding-top: 20px;
}

.cert-grid {
    display: grid;
    /* Responsive: 1 column on mobile, 2 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cert-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* The Frame holding the image */
.cert-image-box {
    height: 350px;
    /* Fixed height makes the grid look even */
    background-color: #F3F4F6;
    /* Light gray background to show document edges */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.cert-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* MAGIC LINE: Ensures image is never cropped */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow on the paper itself */
    background: white;
}

.cert-details {
    padding: 20px;
    text-align: center;
}

.cert-details h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cert-details p {
    font-size: 0.9rem;
    color: var(--text-gray);
}