/* ============================================================
   Apostle John Mark Global Ministries — Main Stylesheet
   ============================================================ */

/* ── 1. CSS Variables ── */
:root {
    --primary-900: #0c1e4f;
    --primary-800: #0f2766;
    --primary:     #1E3A8A;
    --primary-600: #1d4ed8;
    --primary-400: #3b82f6;
    --primary-100: #dbeafe;
    --primary-50:  #eff6ff;

    --accent:      #D97706;
    --accent-600:  #b45309;
    --accent-400:  #f59e0b;
    --accent-200:  #fde68a;
    --accent-50:   #fffbeb;

    --success:     #059669;
    --success-400: #34d399;
    --success-50:  #ecfdf5;

    --danger:      #dc2626;
    --danger-50:   #fef2f2;

    --white:  #ffffff;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow:     0 4px 16px rgba(0,0,0,.10);
    --shadow-md:  0 8px 32px rgba(0,0,0,.12);
    --shadow-lg:  0 20px 60px rgba(0,0,0,.16);
    --shadow-glow: 0 0 40px rgba(30,58,138,.25);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1200px;
    --section-pad: clamp(4rem, 8vw, 7rem);
    --nav-height: 80px;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-600); }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
address { font-style: normal; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; color: var(--gray-900); }
p { margin-bottom: 0; }

/* ── 3. Accessibility ── */
.skip-nav {
    position: absolute; top: -100px; left: 1rem;
    background: var(--primary); color: var(--white);
    padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 9999;
    transition: top .2s;
}
.skip-nav:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── 4. Layout Utilities ── */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-pad) 0; }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--primary-900); color: var(--white); }
.section-blue { background: var(--primary); color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ── 5. Section Headers ── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-50);
    padding: .35rem 1rem; border-radius: var(--radius-full);
    margin-bottom: 1rem; border: 1px solid var(--accent-200);
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
.section-title span { color: var(--accent); }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); line-height: 1.8; }
.section-dark .section-tag  { color: var(--accent-400); background: rgba(217,119,6,.1); border-color: rgba(217,119,6,.3); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: var(--primary-100); }

/* ── 6. Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.75rem; border-radius: var(--radius-full);
    font-size: .95rem; font-weight: 600; line-height: 1;
    border: 2px solid transparent; transition: all var(--transition);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,.15); transform: scaleX(0);
    transform-origin: left; transition: transform var(--transition); border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); }
.btn-primary {
    background: var(--primary); color: var(--white);
    border-color: var(--primary); box-shadow: 0 4px 16px rgba(30,58,138,.3);
}
.btn-primary:hover { background: var(--primary-800); border-color: var(--primary-800); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,58,138,.4); }
.btn-accent {
    background: var(--accent); color: var(--white);
    border-color: var(--accent); box-shadow: 0 4px 16px rgba(217,119,6,.3);
}
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--white); transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-outline-dark {
    background: transparent; color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-donate {
    background: linear-gradient(135deg, var(--accent), var(--accent-600));
    color: var(--white); border-color: transparent;
    animation: pulse-donate 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(217,119,6,.35);
    padding: .6rem 1.4rem; font-size: .9rem;
}
.btn-donate:hover { color: var(--white); transform: scale(1.05); animation: none; box-shadow: 0 6px 28px rgba(217,119,6,.5); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ── 7. Navigation ── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all var(--transition);
}
.site-header.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.navbar { height: var(--nav-height); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.navbar-logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; width: 44px; height: 44px; }
.logo-icon img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-primary { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.logo-secondary { font-size: .65rem; font-weight: 500; color: var(--gray-500); letter-spacing: .04em; }
.site-header.scrolled .logo-primary { color: var(--primary); }
.navbar-links {
    display: flex; align-items: center; gap: .25rem;
    transition: all var(--transition-slow);
}
.nav-link {
    display: flex; align-items: center; gap: .3rem;
    padding: .5rem .75rem; border-radius: var(--radius-sm);
    font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.9);
    transition: all var(--transition);
}
.site-header.scrolled .nav-link { color: var(--gray-700); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.15); color: var(--white); }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active { background: var(--primary-50); color: var(--primary); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + .5rem); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 220px; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100); padding: .5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown li a {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .9rem; border-radius: var(--radius-sm);
    color: var(--gray-700); font-size: .9rem;
    transition: all var(--transition);
}
.dropdown li a:hover { background: var(--primary-50); color: var(--primary); }
.dropdown li a i { width: 1.2rem; text-align: center; color: var(--accent); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.1);
}
.site-header.scrolled .hamburger { background: var(--gray-100); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: all var(--transition);
}
.site-header.scrolled .hamburger span { background: var(--gray-700); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 998; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ── 8. Hero Section ── */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 60%, #1e40af 100%);
    padding-top: var(--nav-height);
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.04); animation: float-shape 8s ease-in-out infinite;
}
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; animation-delay: 0s; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -150px; animation-delay: -3s; }
.hero-shape-3 { width: 200px; height: 200px; top: 30%; left: 5%; animation-delay: -6s; }
.hero-glow {
    position: absolute; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(217,119,6,.15) 0%, transparent 70%);
    top: -100px; right: -100px; pointer-events: none;
}
.hero-cross {
    position: absolute; opacity: .06; pointer-events: none;
}
.hero-cross svg { fill: var(--white); }

.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 2rem 1.5rem; max-width: 850px; margin: 0 auto;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
    color: var(--accent-400); background: rgba(217,119,6,.15);
    padding: .4rem 1.2rem; border-radius: var(--radius-full);
    margin-bottom: 1.75rem; border: 1px solid rgba(217,119,6,.3);
    animation: fade-in-up .8s ease both;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700;
    color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
    animation: fade-in-up .8s .15s ease both;
}
.hero-title .highlight {
    color: var(--accent-400);
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute; bottom: 2px; left: 0; right: 0;
    height: 3px; background: var(--accent-400); border-radius: 2px; opacity: .5;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.8);
    max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8;
    animation: fade-in-up .8s .3s ease both;
}
.hero-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap;
    animation: fade-in-up .8s .45s ease both;
}
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    animation: fade-in 1s 1s ease both;
    z-index: 2;
}
.scroll-indicator {
    width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.3);
    border-radius: 14px; display: flex; align-items: flex-start; justify-content: center;
    padding-top: 6px;
}
.scroll-dot {
    width: 4px; height: 8px; background: rgba(255,255,255,.6);
    border-radius: 2px; animation: scroll-dot 2s ease-in-out infinite;
}

/* ── 9. Stats Bar ── */
.stats-bar {
    background: var(--white);
    box-shadow: var(--shadow-md); border-radius: var(--radius-lg);
    padding: 2rem 3rem;
    margin: -3rem auto 0; position: relative; z-index: 3;
    max-width: 900px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat-item { text-align: center; padding: 1rem .5rem; }
.stat-item:not(:last-child) { border-right: 1px solid var(--gray-100); }
.stat-number {
    font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700; color: var(--primary); line-height: 1;
    margin-bottom: .25rem;
}
.stat-number span { color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--gray-500); font-weight: 500; letter-spacing: .02em; }

/* ── 10. Program Cards ── */
.program-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.program-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.program-card:hover::before { transform: scaleX(1); }
.program-icon {
    width: 64px; height: 64px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.25rem;
    background: var(--primary-50); color: var(--primary);
    transition: all var(--transition);
}
.program-card:hover .program-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.program-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .75rem; color: var(--gray-900); }
.program-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.7; }
.program-card .program-stat {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1.25rem; font-size: .8rem; font-weight: 600;
    color: var(--success); background: var(--success-50);
    padding: .3rem .75rem; border-radius: var(--radius-full);
}
.program-link {
    display: flex; align-items: center; gap: .4rem;
    margin-top: 1.25rem; font-size: .9rem; font-weight: 600; color: var(--primary);
    transition: gap var(--transition);
}
.program-link:hover { gap: .75rem; }

/* ── 11. Impact Section ── */
.impact-section {
    background: linear-gradient(135deg, var(--primary-900), var(--primary));
    position: relative; overflow: hidden;
}
.impact-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.impact-number {
    font-family: var(--font-head); font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700; color: var(--accent-400); line-height: 1;
}
.impact-label { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: .5rem; }
.impact-divider {
    width: 1px; background: rgba(255,255,255,.1);
    align-self: stretch; margin: 1rem 0;
}

/* ── 12. Testimonials ── */
.testimonial-section { background: var(--gray-50); }
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform var(--transition-slow); }
.testimonial-slide { min-width: 100%; padding: 0 1rem; }
.testimonial-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; box-shadow: var(--shadow);
    max-width: 800px; margin: 0 auto; position: relative;
}
.testimonial-quote {
    font-size: 5rem; font-family: var(--font-head); color: var(--accent-200);
    line-height: .6; margin-bottom: 1rem;
}
.testimonial-text { font-size: 1.05rem; color: var(--gray-600); line-height: 1.9; font-style: italic; margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    background: var(--primary); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 1.2rem; color: var(--white); font-weight: 700;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--gray-900); font-size: 1rem; }
.testimonial-role { font-size: .85rem; color: var(--gray-500); }
.testimonial-stars { color: var(--accent); font-size: .9rem; margin-top: .25rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.carousel-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); color: var(--primary);
    border: 2px solid var(--gray-200); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; cursor: pointer; transition: all var(--transition);
}
.carousel-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
    width: 8px; height: 8px; border-radius: 4px;
    background: var(--gray-300); cursor: pointer; transition: all var(--transition);
}
.carousel-dot.active { width: 24px; background: var(--primary); }

/* ── 13. Event Cards ── */
.event-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); transition: all var(--transition);
    display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-image { height: 200px; background: var(--primary-50); position: relative; overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.event-card:hover .event-image img { transform: scale(1.05); }
.event-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--accent); color: var(--white);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: var(--radius-full);
}
.event-date-box {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--white); border-radius: var(--radius-sm);
    text-align: center; padding: .5rem .75rem;
    box-shadow: var(--shadow-sm);
}
.event-date-day { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.event-date-month { font-size: .65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.event-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.event-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .75rem; }
.event-meta { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.event-meta span { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--gray-500); }
.event-meta i { width: 1rem; text-align: center; color: var(--primary); }
.event-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }

/* ── 14. Blog Cards ── */
.blog-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); transition: all var(--transition);
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-image { height: 220px; background: var(--primary-50); overflow: hidden; position: relative; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-category {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--primary); color: var(--white);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: var(--radius-full);
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.blog-meta span { font-size: .8rem; color: var(--gray-400); display: flex; align-items: center; gap: .35rem; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .75rem; line-height: 1.4; }
.blog-title:hover { color: var(--primary); }
.blog-excerpt { font-size: .9rem; color: var(--gray-500); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.blog-read-more { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--primary); transition: gap var(--transition); }
.blog-read-more:hover { gap: .75rem; }

/* ── 15. Mission / About Section ── */
.mission-section .feature-point {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.feature-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--primary-50); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.feature-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: var(--gray-900); }
.feature-text p { font-size: .9rem; color: var(--gray-500); }

/* ── 16. Volunteer CTA ── */
.volunteer-cta {
    background: linear-gradient(135deg, #0F172A 0%, var(--primary) 50%, #1e40af 100%);
    position: relative; overflow: hidden;
}
.volunteer-cta::before {
    content: ''; position: absolute; right: -200px; top: 50%;
    transform: translateY(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(217,119,6,.15) 0%, transparent 70%);
}

/* ── 17. Donate Page ── */
.donate-hero { background: linear-gradient(135deg, var(--primary-900), var(--primary)); }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.amount-btn {
    padding: 1rem; border-radius: var(--radius); border: 2px solid var(--gray-200);
    background: var(--white); cursor: pointer; transition: all var(--transition);
    text-align: center;
}
.amount-btn:hover { border-color: var(--primary); background: var(--primary-50); }
.amount-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.amount-btn .amount-value { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--primary); display: block; }
.amount-btn.active .amount-value { color: var(--white); }
.amount-btn .amount-impact { font-size: .75rem; color: var(--gray-500); margin-top: .25rem; }
.amount-btn.active .amount-impact { color: rgba(255,255,255,.8); }
.custom-amount { margin-bottom: 1.5rem; }
.custom-amount-input {
    position: relative;
}
.custom-amount-input span {
    position: absolute; left: 1rem; top: 50%;
    transform: translateY(-50%); font-weight: 700; color: var(--gray-500);
}
.custom-amount-input input { padding-left: 2.5rem !important; }
.donate-type-toggle {
    display: flex; background: var(--gray-100); padding: .3rem;
    border-radius: var(--radius-full); margin-bottom: 1.5rem;
}
.donate-type-btn {
    flex: 1; padding: .6rem 1rem; border-radius: var(--radius-full);
    font-size: .9rem; font-weight: 600; color: var(--gray-600);
    cursor: pointer; transition: all var(--transition); text-align: center;
}
.donate-type-btn.active { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.donate-impact-box {
    background: var(--success-50); border: 1px solid var(--success-400);
    border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .75rem; color: var(--success);
}
.payment-security { display: flex; align-items: center; gap: .5rem; color: var(--gray-400); font-size: .8rem; margin-top: 1rem; }

/* ── 18. Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: .4rem; font-weight: 500; font-size: .9rem; color: var(--gray-700); }
.form-label span.required { color: var(--danger); margin-left: .2rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: .75rem 1rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    font-family: var(--font-body); font-size: .95rem; color: var(--gray-800);
    background: var(--white); transition: all var(--transition);
    appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--danger); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; display: block; }
.form-hint { font-size: .8rem; color: var(--gray-400); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: .75rem; }
.checkbox-group input[type="checkbox"] { margin-top: .2rem; accent-color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem;
    display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem;
}
.alert-success { background: var(--success-50); color: var(--success); border: 1px solid #86efac; }
.alert-error { background: var(--danger-50); color: var(--danger); border: 1px solid #fca5a5; }

/* ── 19. Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary) 100%);
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.25rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--accent-400); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── 20. Contact Page ── */
.contact-info-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); display: flex;
    align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
    transition: all var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow); border-color: var(--primary-100); }
.contact-info-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: var(--primary-50); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.contact-info-text p, .contact-info-text a { font-size: .9rem; color: var(--gray-500); }
.contact-info-text a:hover { color: var(--primary); }

/* ── 21. Admin Styles ── */
.admin-body { background: var(--gray-50); min-height: 100vh; }
.admin-sidebar {
    position: fixed; top: 0; left: 0; width: 260px; height: 100vh;
    background: var(--primary-900); color: var(--white);
    display: flex; flex-direction: column; z-index: 100;
    overflow-y: auto;
}
.admin-sidebar-logo {
    padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; gap: .75rem;
}
.admin-sidebar-logo span { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-label { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: .5rem .75rem; margin-top: 1rem; }
.admin-nav-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem .9rem; border-radius: var(--radius-sm);
    color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500;
    transition: all var(--transition); margin-bottom: .15rem;
}
.admin-nav-link i { width: 1.2rem; text-align: center; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,.1); color: var(--white); }
.admin-nav-link.active { background: var(--primary); color: var(--white); }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.admin-content { padding: 2rem; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.stat-card-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    margin-bottom: 1rem;
}
.stat-card-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gray-900); }
.stat-card-label { font-size: .85rem; color: var(--gray-500); }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
th { font-weight: 600; color: var(--gray-600); background: var(--gray-50); }
tbody tr:hover { background: var(--gray-50); }
.badge {
    display: inline-flex; align-items: center; padding: .2rem .65rem;
    border-radius: var(--radius-full); font-size: .75rem; font-weight: 600;
}
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--accent-50); color: var(--accent-600); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--primary-50); color: var(--primary); }

/* ── 22. Utility Images (gradient placeholders) ── */
.img-gradient-blue { background: linear-gradient(135deg, var(--primary-50), var(--primary-100)); }
.img-gradient-gold { background: linear-gradient(135deg, var(--accent-50), var(--accent-200)); }
.img-gradient-green { background: linear-gradient(135deg, var(--success-50), #bbf7d0); }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1; }

/* ── 23. Animations ── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float-shape {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-20px) scale(1.02); }
    66%       { transform: translateY(12px) scale(.98); }
}
@keyframes scroll-dot {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}
@keyframes pulse-donate {
    0%, 100% { box-shadow: 0 4px 20px rgba(217,119,6,.35); }
    50%       { box-shadow: 0 4px 30px rgba(217,119,6,.6), 0 0 0 8px rgba(217,119,6,.08); }
}
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── 24. Footer ── */
.footer-newsletter {
    background: var(--primary); padding: 3rem 0;
}
.newsletter-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem; flex-wrap: wrap;
}
.newsletter-text h3 { font-size: 1.5rem; color: var(--white); margin-bottom: .5rem; }
.newsletter-text p { color: rgba(255,255,255,.75); }
.newsletter-form { flex: 1; min-width: 300px; }
.newsletter-input-group { display: flex; gap: .75rem; }
.newsletter-input-group input {
    flex: 1; padding: .75rem 1.25rem;
    border: 2px solid rgba(255,255,255,.2); border-radius: var(--radius-full);
    background: rgba(255,255,255,.1); color: var(--white);
    font-family: var(--font-body); font-size: .95rem;
}
.newsletter-input-group input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-input-group input:focus { outline: none; border-color: var(--accent); }
.newsletter-msg { margin-top: .75rem; font-size: .85rem; color: var(--accent-400); min-height: 1.2em; }
.newsletter-privacy { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .5rem; }
.footer-main { background: var(--gray-900); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-logo {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none; margin-bottom: 1.25rem;
}
.footer-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.footer-logo-primary { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-logo-secondary { display: block; font-size: .7rem; color: var(--gray-400); }
.footer-mission { color: var(--gray-400); font-size: .9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.07); color: var(--gray-400);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
    display: flex; align-items: center; gap: .5rem;
    color: var(--gray-400); font-size: .9rem; transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-400); }
.footer-col ul li a i { color: var(--gray-600); transition: color var(--transition); }
.footer-col ul li a:hover i { color: var(--accent); }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--gray-400); font-size: .9rem; margin-bottom: 1rem; }
.footer-contact-list li i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }
.footer-contact-list li a { color: var(--gray-400); }
.footer-contact-list li a:hover { color: var(--accent-400); }
.footer-bottom {
    background: rgba(0,0,0,.3); padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--gray-500); font-size: .85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--gray-500); font-size: .85rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--accent-400); }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transition: all var(--transition); transform: translateY(16px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ── 25. Volunteer Page ── */
.volunteer-role-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100); transition: all var(--transition);
}
.volunteer-role-card:hover { border-color: var(--primary-100); box-shadow: var(--shadow); }
.volunteer-role-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: var(--primary-50); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 1rem;
}
.volunteer-tag {
    display: inline-block; font-size: .75rem; font-weight: 600;
    background: var(--accent-50); color: var(--accent-600);
    padding: .2rem .65rem; border-radius: var(--radius-full);
    margin-bottom: .75rem;
}

/* ── 26. Programs Grid ── */
.program-detail-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--gray-100); transition: all var(--transition);
}
.program-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-detail-image {
    height: 240px; position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.program-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.program-detail-body { padding: 2rem; }

/* ── 27. Responsive ── */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:not(:last-child) { border-right: none; }
    .stat-item:nth-child(odd) { border-right: 1px solid var(--gray-100); }
    .stats-bar { padding: 1.5rem; }
    .newsletter-content { flex-direction: column; gap: 1.5rem; }
    .amount-grid { grid-template-columns: repeat(2,1fr); }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar-links {
        position: fixed; top: 0; right: -300px; height: 100vh; width: 280px;
        background: var(--white); flex-direction: column; align-items: flex-start;
        gap: 0; padding: 5rem 1.5rem 2rem; z-index: 999;
        box-shadow: -10px 0 40px rgba(0,0,0,.15);
        transition: right var(--transition-slow);
        overflow-y: auto;
    }
    .navbar-links.open { right: 0; }
    .nav-link { color: var(--gray-700) !important; width: 100%; padding: .75rem 1rem; border-radius: var(--radius); }
    .nav-link:hover, .nav-link.active { background: var(--primary-50) !important; color: var(--primary) !important; }
    .has-dropdown { width: 100%; }
    .dropdown { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; border: none; padding-left: 1rem; pointer-events: auto; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .stats-bar { margin: -1.5rem 1rem 0; padding: 1.25rem; }
    .admin-sidebar { width: 100%; position: static; height: auto; }
    .admin-main { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-input-group { flex-direction: column; }
}

@media (max-width: 480px) {
    :root { --section-pad: 3rem; }
    .grid-4 { grid-template-columns: 1fr; }
    .amount-grid { grid-template-columns: repeat(2,1fr); }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Print */
@media print {
    .site-header, .site-footer, .back-to-top { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}

/* ═══════════════════════════════════════════════════════
   LIVE CHAT WIDGET
═══════════════════════════════════════════════════════ */
#chat-widget {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 9999;
    font-family: var(--font-body);
}

#chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30,58,138,.4);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    position: relative;
}
#chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(30,58,138,.5); background: var(--primary-800); }

#chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: .65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

#chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 340px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
#chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 600; font-size: .95rem; }
.chat-header-status { font-size: .75rem; opacity: .8; display: flex; align-items: center; gap: .3rem; }
.chat-header-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
#chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 1rem;
    padding: .2rem;
    transition: color var(--transition);
}
#chat-close:hover { color: white; }

/* Name form (before session starts) */
#chat-name-form {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}
#chat-name-form p { font-size: .85rem; color: var(--gray-500); margin: 0; }
#chat-name-form input {
    padding: .6rem .9rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: .9rem;
    width: 100%;
    outline: none;
    transition: border-color var(--transition);
}
#chat-name-form input:focus { border-color: var(--primary); }
#chat-name-form button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: .65rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
#chat-name-form button:hover { background: var(--primary-800); }
#chat-name-form button:disabled { opacity: .6; cursor: not-allowed; }

/* Messages area */
#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: .6rem;
    min-height: 220px;
    max-height: 300px;
    background: var(--gray-50);
}

.chat-msg { display: flex; }
.chat-msg--visitor { justify-content: flex-end; }
.chat-msg--admin   { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: .55rem .85rem;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg--visitor .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-msg--admin .chat-bubble {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
    border-bottom-left-radius: 4px;
}
.chat-time {
    display: block;
    font-size: .68rem;
    opacity: .65;
    margin-top: .2rem;
    text-align: right;
}
.chat-msg--admin .chat-time { text-align: left; }

/* Session delete button — visible on session item hover */
.chat-session-item-wrap { position: relative; }
.chat-session-delete-btn {
    position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
    background: rgba(220,38,38,.08); border: none; border-radius: 4px;
    color: #dc2626; font-size: .7rem; padding: .3rem .45rem;
    cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2;
}
.chat-session-item-wrap:hover .chat-session-delete-btn { opacity: 1; }
.chat-session-delete-btn:hover { background: rgba(220,38,38,.2); }

/* Delete button — visible on bubble hover (admin chat only) */
.chat-msg-delete-btn {
    position: absolute; top: .3rem; right: .3rem;
    background: rgba(220,38,38,.08); border: none; border-radius: 4px;
    color: #dc2626; font-size: .65rem; padding: .2rem .35rem;
    cursor: pointer; opacity: 0; transition: opacity .15s;
    line-height: 1;
}
.chat-bubble:hover .chat-msg-delete-btn { opacity: 1; }
.chat-msg-delete-btn:hover { background: rgba(220,38,38,.18); }

.chat-system-msg {
    text-align: center;
    font-size: .78rem;
    color: var(--gray-400);
    padding: .4rem .75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    margin: .25rem auto;
    max-width: 85%;
}

/* Send form */
#chat-send-form {
    padding: .75rem;
    border-top: 1px solid var(--gray-100);
    display: none;
    gap: .5rem;
    align-items: center;
    background: white;
}
#chat-input {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: .5rem 1rem;
    font-size: .88rem;
    outline: none;
    transition: border-color var(--transition);
}
#chat-input:focus { border-color: var(--primary); }
#chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    transition: background var(--transition);
}
#chat-send-btn:hover { background: var(--primary-800); }

/* Dual structure section on homepage */
.dual-arm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.arm-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.arm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.arm-card--ministry { background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: white; }
.arm-card--foundation { background: linear-gradient(135deg, #065f46 0%, #047857 100%); color: white; }
.arm-card-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .9; }
.arm-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.arm-card p { opacity: .85; line-height: 1.7; font-size: .95rem; margin-bottom: 1.5rem; }
.arm-card ul { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .4rem; }
.arm-card ul li { opacity: .9; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.arm-card ul li::before { content: '✓'; font-weight: 700; opacity: .8; }
.arm-card .btn { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4); color: white; }
.arm-card .btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.7); }
.arm-card-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: .06;
    pointer-events: none;
}

/* Transparency / governance page */
.governance-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.trustee-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.trustee-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.financial-bar {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}
.financial-bar-item { display: flex; align-items: center; gap: 1rem; }
.financial-bar-label { font-size: .85rem; color: var(--gray-600); width: 180px; flex-shrink: 0; }
.financial-bar-track { flex: 1; height: 10px; border-radius: 5px; background: var(--gray-100); overflow: hidden; }
.financial-bar-fill { height: 100%; border-radius: 5px; background: var(--primary); transition: width 1s ease; }
.financial-bar-pct { font-size: .85rem; font-weight: 700; color: var(--primary); width: 40px; text-align: right; }

/* Get-involved page */
.involve-tab-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.involve-tab-btn {
    padding: .6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-200);
    background: transparent;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}
.involve-tab-btn.active, .involve-tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Admin chat page */
.chat-session-list { display: flex; flex-direction: column; gap: .5rem; }
.chat-session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--gray-800);
}
.chat-session-item:hover { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.chat-session-item.unread { border-left: 3px solid var(--accent); }
.chat-session-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .95rem;
}
.chat-session-info { flex: 1; min-width: 0; }
.chat-session-name { font-weight: 600; font-size: .9rem; }
.chat-session-preview { font-size: .8rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-session-meta { text-align: right; font-size: .75rem; color: var(--gray-400); }
.chat-unread-pill {
    background: var(--accent);
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 10px;
    margin-left: .5rem;
}

.admin-chat-view { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; height: calc(100vh - 200px); min-height: 500px; }
.admin-chat-sidebar { overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.admin-chat-main { display: flex; flex-direction: column; background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-100); overflow: hidden; }
.admin-chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; background: var(--gray-50); }
.admin-chat-form { padding: 1rem; border-top: 1px solid var(--gray-100); display: flex; gap: .75rem; background: white; }
.admin-chat-form textarea {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: .65rem 1rem;
    font-size: .9rem;
    resize: none;
    height: 60px;
    outline: none;
    transition: border-color var(--transition);
}
.admin-chat-form textarea:focus { border-color: var(--primary); }

@media (max-width: 768px) {
    #chat-window { width: 300px; right: 0; }
    .dual-arm-grid { grid-template-columns: 1fr; }
    .admin-chat-view { grid-template-columns: 1fr; height: auto; }
}
