/* 
    Muluga Chester Initiative (NGO) - Global Stylesheet
    Unified branding and design system.
*/

:root {
    /* Color Palette */
    --orange: #adab32;
    --orange-dark: #adab32;
    --navy: #0a9d12;
    --navy-light: hsl(133, 52%, 29%);
    --green: #2D9B5A;
    --teal: #1A8C7A;
    --yellow: #E0A020;
    --cream: #F5EDE0;
    --cream-dark: #EDE0CD;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-mid: #3D3D5C;
    --text-light: #6B7280;
    --border: #E5D9CC;

    /* Shadows & Radii */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .16);
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;

    /* Typography */
    --font: 'Poppins', sans-serif;
    --serif: 'Playfair Display', serif;

    /* Transitions */
    --transition: all .25s ease;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 105, 58, .35);
}

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

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

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

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--orange);
    color: var(--orange);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    margin-top: 10px;
    transition: var(--transition);
}

.btn-read-more:hover {
    gap: 12px;
    color: var(--navy);
}

/* ── TOP BAR ── */
.top-bar {
    background: var(--navy);
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-text {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .5px;
}

.top-bar-socials {
    display: flex;
    gap: 8px;
}

.top-bar-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-socials a:hover {
    background: var(--orange);
    color: #fff;
}

/* ── NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .09);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon-fallback {
    font-size: 22px;
    color: var(--orange);
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 800;
    font-size: 13px;
    color: var(--navy);
    letter-spacing: .5px;
}

.sub-brand {
    font-size: 11px;
    font-weight: 500;
    color: var(--orange);
    letter-spacing: .4px;
}

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

.nav-links a {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-mid);
    padding: 6px 9px;
    border-radius: 4px;
    letter-spacing: .5px;
    position: relative;
    transition: color .2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .2s ease;
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

/* ── DROPDOWN MENU ── */
.nav-dropdown {
    position: relative;
    padding-bottom: 2px; /* Gap closer for hover */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1050;
    border: 1px solid rgba(0, 0, 0, .05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu a::after {
    display: none; /* No underline in dropdown */
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--orange);
}

/* ── NAVBAR (CONT.) ── */
.nav-donate-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
}

/* ── HOME HERO ── */
.home-hero {
    height: 480px;
    position: relative;
    background: var(--navy);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.home-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 400%; /* 4 images */
    height: 100%;
    animation: heroSlide 20s infinite ease-in-out;
}

.hero-slider img {
    width: 25%; /* 1/4 of container */
    height: 100%;
    object-fit: cover;
}

@keyframes heroSlide {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--white) 0%,
            var(--white) 10%,
            rgba(255, 255, 255, 0.98) 25%,
            rgba(255, 255, 255, 0.92) 50%,
            rgba(255, 255, 255, 0) 85%);
    z-index: 1;
}

.home-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-hero-text {
    max-width: 520px;
}

.home-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.home-hero p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.home-hero-btns {
    display: flex;
    gap: 16px;
}

.btn-hero-donate {
    background: var(--orange);
    color: var(--white);
    border-radius: 8px;
    /* Matching the soft rounded corners in image */
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(232, 105, 58, 0.2);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    border: 1.5px solid #111;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
}

/* ── STATS BAR ── */
.stats-bar {
    padding: 0;
    margin-top: -36px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 32px 20px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── MISSION QUOTE ── */
.mission-quote-box {
    position: relative;
    border-left: 5px solid var(--orange);
    padding: 20px 0 20px 30px;
    margin: 30px 0;
    background: transparent;
}

.mission-quote-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    font-style: italic;
    text-align: left;
    max-width: 100%;
}

.mission-quote-box h3 span {
    color: var(--orange);
}

/* ── PAGE HERO (Global) ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2a4a 60%, #1a3f5c 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(232, 105, 58, .08);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-breadcrumb {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, .55);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    max-width: 560px;
    line-height: 1.7;
}

/* ── SECTION HELPERS ── */
.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(232, 105, 58, .12);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 10px;
}

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

.section-title h2 {
    font-weight: 800;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* ── CTA BANNER (Global) ── */
.cta-banner {
    background: var(--orange);
    padding: 52px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-weight: 800;
    font-size: 28px;
    color: var(--white);
    line-height: 1.25;
    max-width: 500px;
}

.cta-inner p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    margin-top: 8px;
}

.cta-btn {
    background: var(--white);
    color: var(--orange);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ── FOOTER ── */
.footer {
    background: var(--navy);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-col-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-col p,
.footer-col a {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-col p i,
.footer-col a i {
    color: var(--orange);
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
}

.social-row a:hover {
    background: var(--orange);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
}

.footer-bottom a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}

.footer-bottom a:hover {
    color: var(--orange);
}

.footer-deco {
    position: absolute;
    bottom: -30px;
    right: 40px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, .06);
    transform: rotate(45deg);
    border-radius: 10px;
}

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

    .menu-toggle {
        display: block;
    }

    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 !important; /* Managed by JS in part but let's override */
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: var(--cream);
    }
    
    .dropdown-menu a {
        background: transparent !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

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

@media (max-width: 640px) {
    .home-hero {
        height: auto;
        padding: 60px 0;
        min-height: 400px;
    }

    .home-hero h1 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 24px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── TEAM SECTION ── */
.team-member-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--orange-light);
}

.team-member-photo-wrapper {
    width: 100%;
    padding-top: 110%; /* Aspect ratio 1:1.1 */
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.team-member-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member-card:hover .team-member-photo {
    transform: scale(1.08);
}

.team-member-info {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-member-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.2;
}

.team-member-role {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── PROGRAMS PAGE ── */
.prog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 12px;
    background: var(--cream);
}

.prog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prog-detail-card:hover .prog-card-image img {
    transform: scale(1.1);
}

.prog-detail-card {
    transition: all 0.4s ease;
}

.prog-detail-card:hover {
    border-color: var(--orange-light) !important;
    transform: translateY(-5px);
}

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

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