:root {
    --primary-color: #F1C40F; /* Gold Theme */
    --secondary-color: #2b5876; /* Deep Blue */
    --mpesa-green: #4ead4e;
    --dark-text: #333;
    --light-bg: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { color: var(--dark-text); line-height: 1.6; background-color: white; }

/* Navigation Container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%; /* Reduced padding to move logo further left */
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Beautiful Two-Tone Branding */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo image and text */
}

.nav-logo {
    height: 70px; /* Increased logo size */
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.word-one {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary-color); /* Navy Blue */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-two {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color); /* Gold Theme */
    text-transform: uppercase;
    letter-spacing: 4px; /* Elegant wide spacing */
    margin-top: 2px;
}

/* Nav Links */
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--dark-text); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.btn-donate {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-donate:hover { background: var(--secondary-color); transform: translateY(-2px); }

/* Hero Section */
.hero {
    height: 80vh; color: white; text-align: center; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('background.jpg') center/cover;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

/* Hero Buttons Fix */
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--primary-color); color: white; border: none; padding: 15px 35px; border-radius: 5px; cursor: pointer; text-decoration: none; font-weight: bold; min-width: 200px; text-align: center; transition: 0.3s; }
.btn-secondary { background: transparent; border: 2px solid white; color: white; padding: 15px 35px; border-radius: 5px; text-decoration: none; font-weight: bold; min-width: 200px; text-align: center; transition: 0.3s; }
.btn-secondary:hover { background: white; color: var(--secondary-color); }

/* Common Layouts */
.section { padding: 80px 8%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.8rem; color: var(--secondary-color); margin-bottom: 10px; }

/* About & Contact Grid */
.about-flex, .contact-container { display: flex; gap: 50px; align-items: flex-start; }
.about-text, .contact-form { flex: 1; }
.about-image, .contact-map { flex: 1; }

/* Mission/Vision Cards */
.mission-vision-container { display: flex; gap: 30px; margin-top: 40px; }
.mv-card {
    flex: 1; padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.mv-card i { font-size: 50px; color: var(--primary-color); margin-bottom: 20px; }

/* Projects Styling */
.projects-container { display: flex; flex-direction: column; gap: 40px; }
.project-row {
    display: flex; gap: 35px; background: white; padding: 30px;
    border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    align-items: center;
}
.project-row img { width: 300px; height: 220px; object-fit: cover; border-radius: 12px; }
.more-text { display: none; }
.read-more-btn { background: none; border: none; color: var(--secondary-color); font-weight: bold; cursor: pointer; text-decoration: underline; margin-top: 10px; }

/* Beautiful Payment Cards */
#donate { background-color: #fdfdfd; }
.donation-options { display: flex; gap: 35px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.payment-card {
    background: white; padding: 45px; border-radius: 20px; width: 380px; text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 6px solid var(--primary-color);
}
.payment-card:hover { transform: translateY(-12px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.payment-card.mpesa { border-top-color: var(--mpesa-green); }
.card-icon { font-size: 60px; margin-bottom: 25px; }
.mpesa-details { background: #f1f8f1; padding: 20px; border-radius: 12px; margin: 25px 0; font-family: 'Courier New', monospace; font-size: 1.2rem; color: #2e7d32; font-weight: bold; }

/* Footer Logo Fix for JPEGs */
.footer-logo {
    height: 110px;        /* Keep it prominent */
    width: auto;
    background: white;    /* Matches the JPEG's white background */
    padding: 10px;        /* Adds space around the logo */
    border-radius: 12px;  /* Smooths the corners of the "box" */
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Adds depth on the dark footer */
    display: inline-block;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .navbar { flex-direction: column; padding: 20px; }
    .nav-links { margin-top: 20px; }
    .nav-links li { margin: 10px; }
    .about-flex, .contact-container, .project-row, .mission-vision-container { flex-direction: column; }
    .project-row img { width: 100%; }
    .hero h1 { font-size: 2.5rem; }
}

/* Support Grid Styling */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.support-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary-color);
    transition: 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
}

.support-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.support-card h3 {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.support-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-small {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--secondary-color);
    color: white;
}

/* Hero Section with your Authentic Photo */
.hero {
    height: 85vh;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('hero-bg.jpg') no-repeat;

    /* FIXES START HERE */
    background-size: cover;        /* Ensures the photo fills the whole space */
    background-position: center;   /* Change this to 'top' or 'bottom' if needed */
    background-attachment: fixed;  /* Keeps the parallax effect */
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}


/* Optimized Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    /* Navbar Mobile Fix */
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
        text-align: center;
    }

    .logo-link {
        flex-direction: column; /* Stacks logo image above the text on small phones */
        gap: 5px;
        margin-bottom: 15px;
    }

    .nav-logo {
        height: 60px; /* Slightly smaller for mobile */
        margin-right: 0;
    }

    .word-one { font-size: 22px; }
    .word-two { font-size: 20px; letter-spacing: 2px; }

    .nav-links {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .nav-links a {
        font-size: 14px;
    }

    /* Hero Section Mobile Fix */
    .hero {
        height: 70vh; /* Shorter on mobile to avoid too much scrolling */
        background-attachment: scroll; /* Disables parallax on mobile for better performance */
    }

    .hero h1 {
        font-size: 2.5rem; /* Shrinks the headline so it fits the screen */
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column; /* Stacks buttons on top of each other */
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Makes buttons full-width for easy tapping */
    }

    /* Layout Fixes */
    .about-flex, .contact-container, .mission-vision-container {
        flex-direction: column;
        gap: 30px;
    }

    .section {
        padding: 50px 5%; /* Less side padding on mobile */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Payment & Support Card Fixes */
    .payment-card, .support-card {
        width: 100%; /* Ensure cards fill the screen width */
        padding: 30px 20px;
    }
}

/* Contact Card Styling */
.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 6px solid #F1C40F; /* Your Gold Theme */
    max-width: 550px;
    margin: 40px auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    color: #001F3F; /* Your Navy Theme */
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Form Elements */
.input-box {
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

.input-box input:focus,
.input-box select:focus,
.input-box textarea:focus {
    outline: none;
    border-color: #F1C40F;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.2);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #001F3F; /* Navy Blue */
    color: #F1C40F; /* Gold Text */
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #003366;
    transform: translateY(-2px);
}

/* Contact Bottom Layout */
.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Map is slightly wider than text */
    gap: 40px;
    margin-top: 60px;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 20px;
}

.contact-details-box h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.sub-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.detail-card:hover {
    transform: translateX(10px);
}

.detail-card i {
    font-size: 1.4rem;
    color: var(--primary-color); /* Gold */
}

.detail-info span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #999;
}

.detail-info p {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .contact-bottom-grid {
        grid-template-columns: 1fr; /* Stacks vertically on phones */
        padding: 15px;
    }
}

/* Variables */
:root {
    --primary-color: #F1C40F; /* Gold */
    --secondary-color: #001F3F; /* Navy Blue */
    --text-dark: #333;
    --bg-light: #f4f7f6;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Contact Layout Grid */
.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;

    /* This ensures both columns start at the exact same pixel at the top */
    align-items: start;
}

/* The Form Card */
.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid var(--primary-color);

    /* Change margin from '40px auto' to '0 auto' to align with the top */
    margin: 0 auto;
}

.contact-details-sidebar h3,
.contact-map-info h3 {
    margin-top: 0;
    padding-top: 0;
    color: var(--secondary-color);
}

.contact-header h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Form Elements */
.input-box {
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #555;
}

.input-box input,
.input-box select,
.input-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #003366;
    transform: translateY(-2px);
}

/* Sidebar Info Cards */
.contact-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: 0.3s ease;
}

.info-card:hover { transform: translateX(10px); }

.info-card i { font-size: 1.5rem; color: var(--secondary-color); }

.info-content h4 { margin: 0; font-size: 0.75rem; color: #888; text-transform: uppercase; }

.info-content p { margin: 3px 0 0; font-weight: bold; color: #333; }

/* Map container */
.map-frame {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 40px;
    background: #222;
    color: white;
}

.footer-brand { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-top: 10px; }

/* Mobile View */
@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; }
}


/* Section Divider with Gold Accents */
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 60px 10% 40px;
    color: #001F3F; /* Navy Blue */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #F1C40F; /* Gold Line */
}

.section-divider span {
    padding: 0 20px;
}

/* The 10-Photo Mosaic Layout */
.activities-mosaic {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 photos across on desktop */
    gap: 15px;
    margin-top: 20px;
}

.activity-photo {
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-photo:hover img {
    transform: scale(1.1);
}

/* Responsive Fixes for Smaller Screens */
@media (max-width: 1024px) {
    .activities-mosaic {
        grid-template-columns: repeat(3, 1fr); /* 3 photos per row on tablets */
    }
}

@media (max-width: 600px) {
    .activities-mosaic {
        grid-template-columns: repeat(2, 1fr); /* 2 photos per row on phones */
    }
}

/* Donation Goal Tracker */
.goal-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.progress-track {
    width: 100%;
    height: 14px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    width: 0%; /* Initial state for animation */
    height: 100%;
    background: linear-gradient(90deg, #4ead4e, #8ec18e);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.trust-badge-mini {
    background: #fff9e6;
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid #f1c40f;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #856404;
}