:root {
    --primary-red: #E31E24;
    --accent-gold: #FDB913;
    --bg-deep: #080808;
    --bg-card: #141414;
    --text-primary: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: #222;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-deep); color: var(--text-primary); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gold { color: var(--accent-gold); }

/* --- NAVIGATION --- */
.top-bar { background: #000; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.flex-bar { display: flex; justify-content: space-between; }
.social-meta a { color: var(--text-muted); margin-left: 15px; transition: 0.3s; }
.social-meta a:hover { color: var(--primary-red); }

.main-nav { background: rgba(8, 8, 8, 0.95); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 65px; display: block; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: #fff; font-weight: 500; font-size: 15px; }
.nav-btn { background: var(--primary-red); padding: 10px 22px; border-radius: 4px; color: #fff !important; font-weight: 600; text-decoration: none; }

/* --- HERO --- */
.hero { 
    height: 85vh; 
    display: flex; 
    align-items: center; 
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.4)), url('images/hero-bg.jpg.jpeg');
    background-size: cover;
    background-position: center;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge { color: var(--primary-red); font-weight: 800; letter-spacing: 2px; font-size: 12px; margin-bottom: 15px; display: block; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
.btn-main { background: var(--primary-red); color: #fff; padding: 16px 35px; text-decoration: none; border-radius: 4px; font-weight: 700; display: inline-block; transition: 0.3s; }
.btn-alt { border: 2px solid #fff; color: #fff; padding: 14px 35px; text-decoration: none; border-radius: 4px; display: inline-block; margin-left: 15px; transition: 0.3s; }

/* --- IMPACT TILES --- */
.impact-tiles { margin-top: -60px; position: relative; z-index: 5; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.tile { background: var(--bg-card); padding: 45px 35px; border-radius: 10px; border: 1px solid var(--border-color); transition: var(--transition); }
.tile:hover { transform: translateY(-10px); border-color: var(--accent-gold); }
.icon-box { font-size: 35px; color: var(--accent-gold); margin-bottom: 20px; }

/* --- FEATURED SECTION --- */
.featured-program { padding: 100px 0; }
.program-flex { display: flex; align-items: center; gap: 60px; }
.program-text { flex: 1; }
.program-text h2 { font-family: 'Montserrat'; font-size: 2.5rem; margin-bottom: 20px; }
.program-text span { color: var(--primary-red); }
.program-image { flex: 1; border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); }
.program-image img { width: 100%; height: auto; display: block; transition: 0.5s; }
.program-image:hover img { transform: scale(1.05); }

/* --- FOOTER --- */
.main-footer { padding: 80px 0 30px; background: #000; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.footer-logo { height: 90px; margin-bottom: 20px; }
.footer-nav h4 { color: var(--accent-gold); margin-bottom: 20px; }
.footer-nav a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 50px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 13px; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.2s; }
.d2 { transition-delay: 0.4s; }

@media (max-width: 768px) {
    .program-flex { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- GLOBAL THEME --- */
:root {
    --primary-red: #E31E24;
    --accent-gold: #FDB913;
    --bg-deep: #080808;
    --bg-card: #141414;
    --text-primary: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-deep); color: var(--text-primary); font-family: 'Inter', sans-serif; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gold { color: var(--accent-gold); }
.text-red { color: var(--primary-red); }

/* --- NAVIGATION --- */
.top-bar { background: #000; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.flex-bar { display: flex; justify-content: space-between; }
.main-nav { background: rgba(8, 8, 8, 0.95); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 65px; display: block; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: #fff; font-size: 15px; }
.nav-btn { background: var(--primary-red); padding: 10px 22px; border-radius: 4px; color: #fff !important; font-weight: 600; text-decoration: none; }

/* --- HEROES --- */
.page-hero { padding: 140px 0 80px; text-align: center; background: radial-gradient(circle at top, #1a1a1a 0%, #080808 100%); }
.hero-badge { color: var(--primary-red); font-weight: 800; letter-spacing: 2px; font-size: 11px; margin-bottom: 15px; display: block; }
.hero-sub { max-width: 700px; margin: 20px auto 0; font-size: 1.1rem; color: var(--text-muted); }

/* --- ORGANISATIONAL CHART --- */
.chart-wrapper { display: flex; flex-direction: column; align-items: center; margin-top: 50px; }
.node { background: var(--bg-card); padding: 15px 35px; border-radius: 50px; border: 1px solid var(--border-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.node-gold { border-color: var(--accent-gold); color: var(--accent-gold); }
.node-red { border-color: var(--primary-red); color: var(--primary-red); }
.line-v { width: 2px; height: 30px; background: var(--border-color); }

.dept-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-top: 30px; width: 100%; }
.dept-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; text-align: center; transition: 0.3s; }
.dept-card i { display: block; font-size: 1.5rem; color: var(--accent-gold); margin-bottom: 10px; }
.dept-card span { font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* --- OBLIQUE EFFECT --- */
.oblique-box { position: relative; perspective: 1000px; }
.oblique-img { 
    width: 100%; height: 500px; object-fit: cover; border-radius: 20px;
    transform: rotateY(-12deg) rotateX(5deg);
    box-shadow: 25px 25px 50px rgba(0,0,0,0.5);
    transition: 0.6s ease;
}
.oblique-box:hover .oblique-img { transform: rotateY(0) rotateX(0); }
.oblique-label { position: absolute; bottom: 30px; left: -20px; background: var(--primary-red); padding: 20px; border-radius: 8px; }

/* --- FOOTER --- */
.main-footer { padding: 80px 0 30px; background: #000; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.footer-logo { height: 90px; margin-bottom: 20px; }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 50px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 13px; }

/* --- REVEAL ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.2s; }
/* --- GLOBAL THEME --- */
:root {
    --primary-red: #E31E24;
    --accent-gold: #FDB913;
    --bg-dark: #080808;
    --bg-lighter: #141414;
    --text-main: #FFFFFF;
    --text-gray: #A0A0A0;
    --border: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-dark); color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 90px 0; }
.center { text-align: center; }

/* --- HERO & BREADCRUMBS --- */
.story-hero { 
    height: 45vh; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    border-bottom: 4px solid var(--primary-red);
}
.story-hero h1 { font-family: 'Montserrat'; font-size: 3.5rem; margin-bottom: 10px; }
.breadcrumbs { color: var(--accent-gold); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.breadcrumbs a { color: #fff; text-decoration: none; margin-right: 5px; }

/* --- TEXT ELEMENTS --- */
.title-underline { font-family: 'Montserrat'; font-size: 2.5rem; margin-bottom: 25px; position: relative; display: inline-block; }
.title-underline::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 60px; height: 4px; background: var(--primary-red); }
.lead-text { font-size: 1.25rem; color: var(--accent-gold); font-weight: 600; margin-bottom: 20px; }

/* --- MISSION VISION GRID --- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.mv-card { background: var(--bg-lighter); padding: 40px; border-radius: 12px; border: 1px solid var(--border); transition: 0.4s ease; }
.mv-card:hover { border-color: var(--primary-red); transform: translateY(-10px); }
.mv-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 20px; }
.mv-card h3 { font-family: 'Montserrat'; margin-bottom: 15px; font-size: 1.5rem; }

/* --- TIMELINE --- */
.timeline-container { position: relative; max-width: 900px; margin: 50px auto 0; padding: 20px 0; }
.timeline-container::before { content: ''; position: absolute; left: 50%; width: 2px; height: 100%; background: var(--border); }
.timeline-item { width: 50%; padding: 20px 40px; position: relative; margin-bottom: 30px; }
.timeline-item:nth-child(even) { margin-left: 50%; }
.timeline-year { position: absolute; top: 20px; right: -50px; background: var(--primary-red); width: 100px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 4px; z-index: 2; }
.timeline-item:nth-child(even) .timeline-year { left: -50px; }
.timeline-content { background: var(--bg-lighter); padding: 25px; border-radius: 8px; border-left: 4px solid var(--accent-gold); }

/* --- IMPACT BAR --- */
.impact-bar { background: var(--primary-red); padding: 50px 0; }
.impact-flex { display: flex; justify-content: space-around; text-align: center; }
.impact-num { display: block; font-size: 3rem; font-weight: 800; font-family: 'Montserrat'; line-height: 1; }
.impact-label { text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: 1px; }

/* --- OBLIQUE IMAGE --- */
.oblique-img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; transform: rotateY(-10deg) rotateX(5deg); box-shadow: 20px 20px 50px rgba(0,0,0,0.5); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2-center { grid-template-columns: 1fr; }
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; margin-left: 0 !important; }
    .timeline-year { left: -10px !important; width: 60px; }
}
/* --- PRELOADER STYLES --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #080808; /* Matches your background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-logo img {
    width: 140px; /* Small centered size */
    height: auto;
    animation: loaderPulse 2s infinite ease-in-out;
}

@keyframes loaderPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* --- WHAT WE DO PAGE STYLES --- */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 5px solid var(--primary-red);
}

.page-header h1 { font-family: 'Montserrat'; font-size: 3rem; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Program Grid Layout */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.4s ease;
}

.program-img-box {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.program-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.program-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: #fff;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.program-info { padding: 25px; }
.program-info h3 { font-family: 'Montserrat'; font-size: 1.4rem; margin-bottom: 15px; }
.program-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }

.read-more {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.read-more i { margin-left: 5px; transition: 0.3s; }
.program-card:hover { transform: translateY(-10px); border-color: var(--accent-gold); }
.program-card:hover .program-img-box img { transform: scale(1.1); }
.read-more:hover { color: var(--primary-red); }
.read-more:hover i { transform: translateX(5px); }

@media (max-width: 768px) {
    .program-grid { grid-template-columns: 1fr; }
}
/* --- APPROACH CARDS --- */
.approach-grid { gap: 40px; margin-top: 50px; }
.approach-card {
    padding: 40px;
    background: var(--bg-card);
    text-align: center;
    border-radius: 12px;
    border-bottom: 4px solid var(--accent-gold);
}
.approach-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}
.approach-card h4 {
    font-family: 'Montserrat';
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

/* --- RESOURCES SECTION --- */
.resource-flex {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.resource-list {
    flex: 1;
    min-width: 300px;
    background: #111;
    padding: 30px;
    border-radius: 8px;
}
.resource-list h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-gold);
}
.resource-list ul { list-style: none; }
.resource-list li { margin-bottom: 15px; }
.resource-list a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: block;
}
.resource-list a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.bg-darker { background-color: #0c0c0c; }
/* --- CONTACT PAGE STYLES --- */
.contact-header {
    background-color: var(--bg-dark);
    padding: 100px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Info Side */
.contact-info-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    background: rgba(230, 30, 40, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    font-family: 'Montserrat';
    margin-bottom: 5px;
    color: var(--accent-gold);
}

.info-item p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Social Connect */
.social-connect h4 {
    margin: 40px 0 20px;
    font-size: 1.1rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Form Side */
.modern-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    font-family: 'Inter';
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.full-width {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* --- RESPONSIVE MOBILE OVERRIDES --- */

@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding: 0 20px;
    }

    /* Navigation - Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen */
        height: 100vh;
        width: 70%;
        background: #080808;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    /* Hamburger Menu Icon */
    .mobile-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
        z-index: 1100;
    }

    /* Top Bar - Hide email/phone to save space */
    .contact-meta {
        display: none;
    }
    .flex-bar {
        justify-content: center;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .btn-main, .btn-alt {
        width: 100%;
        text-align: center;
    }

    /* Grids to Single Column */
    .grid-3, .footer-grid, .contact-grid, .program-grid, .approach-grid {
        grid-template-columns: 1fr !important;
    }

    /* Featured Program Flex Fix */
    .program-flex {
        flex-direction: column;
        text-align: center;
    }

    .program-image {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 20px;
    }

    /* Resources Flex */
    .resource-flex {
        flex-direction: column;
    }
}

/* --- RESPONSIVE, ACCESSIBLE FINISHING LAYER --- */
.mobile-toggle {
    display: none;
    padding: .55rem;
    border: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.hero-actions .btn-alt { margin-left: 0; }
.grid-2-center { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; }
.section-title { max-width: 740px; margin-bottom: 2rem; }
.section-title h2, .section-title > h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; }
.section-title span { color: var(--primary-red); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .main-nav { padding: 8px 0; }
    .nav-logo { height: 52px; width: auto; }
    .mobile-toggle { display: block !important; }
    .nav-links { width: min(82vw, 340px); }
    .hero { min-height: 580px; height: auto; padding: 100px 0 70px; background-position: 62% center; }
    .hero h1, .story-hero h1, .page-header h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    .hero-badge { font-size: 10px; letter-spacing: 1.3px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-main, .btn-alt { width: 100%; text-align: center; }
    .impact-tiles { margin-top: 0; padding: 24px 0 0; }
    .tile { padding: 30px 25px; }
    .featured-program, .section-padding { padding: 64px 0; }
    .program-flex, .grid-2-center { gap: 32px; }
    .page-header { height: auto; min-height: 290px; padding: 80px 0 55px; }
    .story-hero { min-height: 300px; height: auto; padding: 70px 0 45px; }
    .impact-flex { display: grid; grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { gap: 32px; }
    .footer-logo { height: 72px; width: auto; }
    .modern-form .form-row { flex-direction: column; gap: 0; }
    .contact-info-box { padding: 28px 22px; }
    .info-item { align-items: flex-start; }
    .program-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --- Y4D IDENTITY REFINEMENT: EARTH, SUN & WEAVE --- */
:root {
    --primary-red: #c74b2a;
    --accent-gold: #f4b942;
    --earth: #8a3c23;
    --leaf: #557a4b;
    --bg-deep: #10231e;
    --bg-dark: #10231e;
    --bg-card: #18322a;
    --bg-lighter: #18322a;
    --border-color: rgba(244, 185, 66, 0.22);
    --border: rgba(244, 185, 66, 0.22);
    --text-muted: #c3d0c3;
    --text-gray: #c3d0c3;
}

html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 9% 5%, rgba(244, 185, 66, 0.12), transparent 24rem),
        radial-gradient(circle at 91% 32%, rgba(199, 75, 42, 0.10), transparent 27rem);
}

body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    height: 7px;
    z-index: 2000;
    background: repeating-linear-gradient(90deg, var(--accent-gold) 0 22px, var(--earth) 22px 44px, var(--leaf) 44px 66px, #f7e4b3 66px 88px);
}

.main-nav { background: rgba(16, 35, 30, 0.94); border-bottom-color: var(--border-color); }
.nav-links a { transition: color .25s ease; }
.nav-links a:hover, .footer-nav a:hover, .info-item a:hover { color: var(--accent-gold); }
.nav-btn, .btn-main { background: var(--primary-red); border-radius: 999px; box-shadow: 0 8px 22px rgba(199, 75, 42, .22); }
.btn-main:hover { background: var(--earth); transform: translateY(-2px); }
.btn-alt { border-radius: 999px; }
.hero { min-height: 690px; background-image: linear-gradient(90deg, rgba(10, 30, 24, .92) 0%, rgba(10, 30, 24, .70) 49%, rgba(10, 30, 24, .26) 100%), url('images/hero-bg.jpg.jpeg'); }
.hero-badge, .breadcrumbs { color: var(--accent-gold); }
.hero-badge::before { content: '◆'; margin-right: 9px; color: var(--primary-red); }
.hero h1, .page-header h1, .story-hero h1 { text-wrap: balance; }
.impact-tiles .tile, .mv-card, .dept-card, .program-card, .contact-info-box, .contact-form-wrapper {
    background: linear-gradient(145deg, rgba(30, 59, 48, .96), rgba(19, 42, 34, .98));
    border-color: var(--border-color);
}
.tile { border-radius: 18px; }
.tile::before, .mv-card::before {
    content: '';
    display: block;
    height: 4px;
    width: 64px;
    margin-bottom: 20px;
    background: repeating-linear-gradient(90deg, var(--accent-gold) 0 11px, var(--primary-red) 11px 22px, var(--leaf) 22px 33px);
}
.tile:hover, .mv-card:hover { border-color: var(--accent-gold); box-shadow: 0 16px 35px rgba(0, 0, 0, .22); }
.program-image, .oblique-img { border-color: var(--accent-gold); }
.text-link { color: var(--accent-gold); font-weight: 700; text-decoration: none; }
.text-link:hover { color: #fff; }
.main-footer { background: #0a1914; }
.footer-bottom { border-top-color: var(--border-color); }
.page-header, .story-hero { border-bottom-color: var(--accent-gold); }
.info-item a { color: #fff; text-decoration: none; }
.form-group input, .form-group select, .form-group textarea { background: rgba(7, 25, 19, .75); border-color: rgba(244, 185, 66, .22); }
.form-status { min-height: 1.5rem; margin-top: 14px; color: var(--accent-gold); font-size: .9rem; }

/* --- IMPACT PHOTO GALLERY --- */
.impact-gallery { padding: 95px 0; background: rgba(5, 19, 14, .42); border-top: 1px solid var(--border-color); }
.gallery-heading { max-width: 670px; margin-bottom: 36px; }
.gallery-heading h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4.8vw, 3rem); line-height: 1.15; margin-bottom: 15px; }
.gallery-heading p { color: var(--text-muted); font-size: 1.05rem; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; }
.gallery-card { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-card); }
.gallery-card-tall { min-height: 500px; }
.gallery-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .5s ease; }
.gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 18, 13, .94) 100%); }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.gallery-card strong, .gallery-card span { display: block; }
.gallery-card strong { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 1.08rem; margin-bottom: 4px; }
.gallery-card span { color: #dce6d9; font-size: .88rem; line-height: 1.45; }

@media (max-width: 768px) {
    .impact-gallery { padding: 64px 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-card, .gallery-card-tall { min-height: 365px; }
    .gallery-card figcaption { left: 20px; right: 20px; bottom: 18px; }
}

@media (max-width: 768px) {
    .hero { min-height: 610px; }
    .hero-actions { display: flex; }
    .btn-alt { margin-left: 0; }
}
