/* =========================================================
   TIRDEM — Ministry Website Stylesheet
   Fonts: Playfair Display (headings) + Inter (body)
   Palette: Navy #1e3a5f | Gold #c9a84c | Off-white #f8f7f4
   ========================================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background: #f8f7f4;
    color: #1f2937;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: 72px;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    color: #1e3a5f;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    letter-spacing: 0.02em;
}
.btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
.btn-primary  { background: #c9a84c; color: #1e3a5f; }
.btn-primary:hover  { background: #b8963e; }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover  { background: #fff; color: #1e3a5f; border-color: #fff; }
.btn-navy     { background: #1e3a5f; color: #fff; }
.btn-navy:hover     { background: #152d4a; }

/* === SITE HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: #1e3a5f;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.1;
}
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #c9a84c;
}
.brand-sub {
    font-size: 0.65rem;
    color: #bfdbfe;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 0.1rem; }
.site-nav a {
    color: #dbeafe;
    font-size: 0.88rem;
    padding: 0.42rem 0.7rem;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.site-nav a:hover  { background: rgba(201,168,76,0.15); color: #c9a84c; }
.site-nav a.active { color: #c9a84c; font-weight: 600; }
.site-nav .nav-donate {
    background: #c9a84c;
    color: #1e3a5f;
    font-weight: 700;
    margin-left: 0.5rem;
    padding: 0.42rem 1rem;
    border-radius: 3px;
}
.site-nav .nav-donate:hover { background: #b8963e; color: #fff; box-shadow: none; }
.site-nav .nav-admin {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    margin-left: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 3px;
    font-size: 0.83rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.site-nav .nav-admin:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
    background: linear-gradient(160deg, #1e3a5f 0%, #0f2340 60%, #1a3352 100%);
    color: #fff;
    padding: 5.5rem 0 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: #c9a84c;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(201,168,76,0.3);
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.1rem;
}
.hero h1 span { color: #c9a84c; }
.hero-lead { font-size: 1.08rem; color: #bfdbfe; max-width: 640px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === HERO INFO STRIP === */
.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bfdbfe;
    font-size: 0.88rem;
}
.hero-info-item svg { flex-shrink: 0; opacity: 0.7; }

/* === STATS BAR === */
.stats-bar { background: #c9a84c; padding: 1.25rem 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1rem;
}
.stat-item { color: #1e3a5f; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; }
.stat-label  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.7; margin-top: 0.1rem; }

/* === SECTIONS === */
.section { padding: 4.5rem 0; }
.section-light { background: #fff; }
.section-muted { background: #f1ede6; }
.section-navy  { background: #1e3a5f; color: #fff; }
.section-navy h2, .section-navy h3 { color: #c9a84c; }
.section-navy p { color: #bfdbfe; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.6rem; }
.section-header p  { color: #6b7280; max-width: 560px; margin: 0 auto; }
.eyebrow {
    display: inline-block;
    color: #c9a84c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* === CARDS === */
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }

.card {
    background: #fff;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(30,58,95,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(30,58,95,0.06);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(30,58,95,0.12); }
.program-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}
.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(201,168,76,0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon svg { color: #c9a84c; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #1e3a5f; }
.card p  { color: #6b7280; font-size: 0.93rem; }

/* === NEWS CARDS === */
.news-card { display: flex; flex-direction: column; }
.news-card .card-date {
    font-size: 0.75rem;
    color: #c9a84c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card h3 a { color: #1e3a5f; transition: color 0.15s; }
.news-card h3 a:hover { color: #c9a84c; }
.news-card .excerpt  { color: #6b7280; font-size: 0.93rem; flex: 1; }
.news-card .read-more {
    margin-top: 1rem;
    color: #c9a84c;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.news-card .read-more:hover { text-decoration: underline; }

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.gallery-item {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #1e3a5f;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5184 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201,168,76,0.4);
}
.gallery-placeholder svg { width: 40px; height: 40px; }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    padding: 1.5rem 0.85rem 0.65rem;
    font-size: 0.8rem;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(160deg, #1e3a5f, #0f2340);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}
.cta-section h2 {
    color: #c9a84c;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.cta-section p {
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
    background: linear-gradient(160deg, #1e3a5f 0%, #0f2340 100%);
    padding: 3.5rem 0 3rem;
    text-align: center;
    color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p  { color: #93c5fd; font-size: 1rem; }
.breadcrumb   { font-size: 0.78rem; color: rgba(201,168,76,0.75); margin-top: 0.75rem; }
.breadcrumb a { color: #c9a84c; }
.breadcrumb a:hover { text-decoration: underline; }

/* === ABOUT PAGE === */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-intro-text p { color: #374151; margin-bottom: 1rem; }
.about-badge {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: #b8963e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.85rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.about-visual {
    background: #fff;
    border-radius: 6px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(30,58,95,0.09);
    border: 1px solid #e5e7eb;
}

.objectives-list { counter-reset: obj; display: grid; gap: 0.75rem; }
.objective-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #c9a84c;
    box-shadow: 0 1px 6px rgba(30,58,95,0.05);
}
.objective-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #c9a84c;
    color: #1e3a5f;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}
.objective-item p { color: #374151; font-size: 0.95rem; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.value-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 4px;
    padding: 1.5rem;
}
.value-card h4 { color: #c9a84c; margin-bottom: 0.4rem; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.value-card p  { color: #bfdbfe; font-size: 0.88rem; }

/* === DONATIONS PAGE === */
.donation-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.bank-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(30,58,95,0.08);
    border: 1px solid #e2e8f0;
}
.bank-card-header {
    background: #1e3a5f;
    color: #c9a84c;
    padding: 1.2rem 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.bank-details { padding: 1.5rem; display: grid; gap: 0; }
.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.bank-row:last-child { border-bottom: none; }
.bank-label { font-size: 0.78rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bank-value { font-weight: 600; color: #1e3a5f; font-size: 0.93rem; }
.mobile-card {
    background: linear-gradient(160deg, #1e3a5f, #0f2340);
    border-radius: 6px;
    padding: 1.75rem;
    color: #fff;
}
.mobile-card h3 { color: #c9a84c; margin-bottom: 1rem; font-size: 1.05rem; }
.mobile-card p  { color: #bfdbfe; font-size: 0.93rem; }

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2  { margin-bottom: 0.75rem; }
.contact-info .lead { color: #6b7280; margin-bottom: 2rem; }
.contact-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.contact-detail-icon {
    width: 42px;
    height: 42px;
    background: rgba(201,168,76,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c9a84c;
}
.contact-detail-text strong { display: block; color: #1e3a5f; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.contact-detail-text span   { color: #6b7280; font-size: 0.93rem; }

/* === FORMS === */
.form-card {
    background: #fff;
    border-radius: 6px;
    padding: 2.25rem;
    box-shadow: 0 2px 20px rgba(30,58,95,0.08);
    border: 1px solid #e2e8f0;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1f2937;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* === ALERTS === */
.alert { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.25rem; font-size: 0.93rem; }
.alert ul { padding-left: 1.2rem; list-style: disc; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }

/* === NEWS ARTICLE PAGE === */
.news-article-header { margin-bottom: 2rem; }
.news-article-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
.article-meta { color: #9ca3af; font-size: 0.85rem; }
.article-body { font-size: 1.02rem; line-height: 1.85; color: #374151; }
.article-body p { margin-bottom: 1.25rem; }

/* === FOOTER === */
.site-footer {
    background: #0f2340;
    color: #bfdbfe;
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.5rem;
}
.footer-brand .brand-name { font-size: 1.35rem; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; color: #93c5fd; max-width: 280px; }
.footer-col h4 {
    color: #c9a84c;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #93c5fd; font-size: 0.88rem; transition: color 0.15s; }
.footer-col ul a:hover { color: #c9a84c; }
.footer-col address { font-style: normal; font-size: 0.88rem; color: #93c5fd; line-height: 1.8; }
.footer-col address a { color: #93c5fd; transition: color 0.15s; }
.footer-col address a:hover { color: #c9a84c; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-bottom p { color: #475569; }
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: #bfdbfe;
    transition: background 0.15s, color 0.15s;
}
.social-links a:hover { background: #c9a84c; color: #1e3a5f; }

/* === GALLERY — LIGHTBOX + FILTER === */
.gallery-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    pointer-events: none;
    transition: background 0.2s;
}
.gallery-media-item:hover .gallery-play-btn { background: rgba(201,168,76,0.9); }
.gallery-type-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff; font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    border-radius: 2px;
    pointer-events: none;
}
.gallery-filter {
    padding: 0.38rem 0.95rem;
    border: 1.5px solid #d1d5db;
    background: #fff;
    border-radius: 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.gallery-filter:hover  { border-color: #c9a84c; color: #1e3a5f; }
.gallery-filter.active { background: #c9a84c; border-color: #c9a84c; color: #1e3a5f; }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}
.lightbox-caption {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    max-width: 760px;
}
.lightbox-description {
    color: #94a3b8;
    font-size: 0.88rem;
    text-align: center;
    max-width: 700px;
    line-height: 1.65;
}
.lightbox-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: min(860px, 92vw);
}
.lightbox-close {
    position: fixed;
    top: 1rem; right: 1.25rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 42px; height: 42px;
    border-radius: 3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    z-index: 10000;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    font-size: 1.4rem;
    width: 46px; height: 46px;
    border-radius: 3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
    z-index: 10000;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(201,168,76,0.7); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-3, .about-intro, .donation-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #1e3a5f;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.2rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(201,168,76,0.2);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.65rem 1rem; }
    .site-nav .nav-donate { margin-left: 0; text-align: center; }
    body { padding-top: 64px; }
    .site-header { position: fixed; top: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-2, .about-intro, .donation-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .lightbox-prev { left: 0.25rem; }
    .lightbox-next { right: 0.25rem; }
}
@media (max-width: 480px) {
    .container { width: min(100% - 1.5rem, 1140px); }
    .header-inner { padding: 0.7rem 0; }
    .brand { gap: 0.45rem; min-width: 0; }
    .brand-name { font-size: 1.22rem; }
    .brand-sub { font-size: 0.57rem; letter-spacing: 0.04em; }
    .btn { width: 100%; padding: 0.75rem 1rem; }
    .hero-actions { width: 100%; gap: 0.7rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 3rem 0; }
}

/* === UTILITY === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* Quick page navigation */
.quick-scroll { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 100; }
.quick-scroll button { width: 58px; height: 58px; border: 2px solid #334155; border-radius: 50%; background: #fff; color: #1e293b; box-shadow: 0 4px 14px rgba(15,35,64,.18); cursor: pointer; display:flex; align-items:center; justify-content:center; transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease; }
.quick-scroll button:hover { background: #1e3a5f; border-color:#1e3a5f; color: #fff; transform: translateY(-3px); }
#scrollTop { opacity: 1; pointer-events: auto; }
.whatsapp-contact { position:fixed; right:1.25rem; bottom:1.25rem; z-index:100; width:54px; height:54px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 5px 16px rgba(0,0,0,.24); transition:transform .2s ease; }
.whatsapp-contact:hover { transform:scale(1.08); color:#fff; }
.facebook-contact { position:fixed; right:1.25rem; bottom:5.35rem; z-index:100; width:54px; height:54px; border-radius:50%; background:#1877f2; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 5px 16px rgba(0,0,0,.24); transition:transform .2s ease; }
.facebook-contact:hover { transform:scale(1.08); color:#fff; }
.share-page { display:flex; justify-content:center; align-items:center; gap:.7rem; padding:1rem; font-size:.8rem; color:#64748b; background:#fff; border-top:1px solid #e5e7eb; }
.share-page a { color:#1e3a5f; font-weight:700; }
.share-page a:hover { color:#c9a84c; }

/* Featured content hero: Programs, News and Gallery */
.legacy-hero { display: none; }
.feature-hero { position: relative; height: calc(100svh - 72px); min-height: 560px; background: #102d50; overflow: hidden; color: #fff; }
.feature-slide { display: none; height: 100%; align-items: center; position: relative; background: linear-gradient(90deg, rgba(10,31,57,.95), rgba(10,31,57,.72)), var(--slide-image, linear-gradient(135deg,#1e3a5f,#102846)); background-size: cover; background-position: center; }
.feature-slide.active { display: flex; animation: feature-slide-in .7s ease both; }
.feature-content { max-width: 780px; padding: clamp(1.5rem,4vh,3.5rem) 4.5rem clamp(2.5rem,5vh,4rem) 0; }
.feature-content h1 { color: #fff; font-size: clamp(2.15rem,4.3vw,3.7rem); line-height: 1.05; margin: .6rem 0 .9rem; }
.feature-content p { color: #dbeafe; font-size: clamp(.98rem,1.7vw,1.12rem); line-height: 1.55; max-width: 690px; margin-bottom: 1.25rem; }
.feature-info { display:flex; flex-wrap:wrap; gap:.5rem 1.2rem; border-top:1px solid rgba(255,255,255,.2); margin:-.2rem 0 1.1rem; padding-top:.8rem; color:#c7dcfa; font-size:.88rem; }.feature-info span { display:block; }.feature-info span:nth-child(3) { flex-basis:100%; }
.feature-control { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.5); background: rgba(12,35,64,.65); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; cursor: pointer; }
.feature-control:hover { background: #c9a84c; color: #102d50; }.feature-control.prev { left: 1.25rem; }.feature-control.next { right: 1.25rem; }
.feature-dots { position: absolute; z-index: 3; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; }.feature-dots button { border: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }.feature-dots button.active { width: 28px; border-radius: 9px; background: #c9a84c; }
@keyframes feature-slide-in { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 768px) { .feature-hero { height: calc(100svh - 64px); min-height: 540px; }.feature-content { padding: 2.25rem 2.8rem 3.75rem; }.feature-content h1 { font-size: clamp(2rem,9vw,3rem); }.feature-content p { font-size:.96rem; }.feature-info { font-size:.8rem; }.feature-control { width: 38px; height: 38px; font-size: 1.5rem; }.feature-control.prev { left: .45rem; }.feature-control.next { right: .45rem; } }
@media (max-width: 480px) {
    .feature-hero { min-height: 510px; }
    .feature-content { padding: 1.5rem 2.35rem 3.2rem; }
    .feature-content h1 { font-size: clamp(1.8rem, 9vw, 2.45rem); margin: .45rem 0 .7rem; }
    .feature-content p { font-size: .88rem; line-height: 1.45; margin-bottom: .85rem; }
    .feature-info { gap: .3rem .65rem; margin-bottom: .85rem; padding-top: .65rem; font-size: .72rem; }
    .feature-control { width: 32px; height: 32px; font-size: 1.2rem; }
    .feature-dots { bottom: .8rem; }
    .quick-scroll { right: .65rem; }
    .quick-scroll button { width: 46px; height: 46px; }
    .whatsapp-contact { right:.65rem; bottom:.75rem; width:46px; height:46px; }
    .facebook-contact { right:.65rem; bottom:4.45rem; width:46px; height:46px; }
    .carousel-control { width: 34px; height: 34px; font-size: 1.25rem; }
}

/* Auto-sliding homepage content rows */
.home-carousel-wrap { position: relative; }
.home-carousel {
    display: flex !important;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 1rem;
}
.home-carousel::-webkit-scrollbar { display: none; }
.home-carousel > * {
    /* Show one full card and a preview of the next, so even two items slide. */
    flex: 0 0 min(78%, 390px);
    scroll-snap-align: start;
}
.home-carousel.gallery-grid > * { min-height: 220px; }
.carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.92);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 35, 64, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-control:hover { background: #c9a84c; transform: translateY(-2px); }
.carousel-control.prev { left: -1.1rem; }
.carousel-control.next { right: -1.1rem; }
@media (max-width: 768px) {
    .home-carousel > * { flex-basis: 86%; }
    .carousel-control.prev { left: 0.25rem; }
    .carousel-control.next { right: 0.25rem; }
}

/* === SUBTLE HOME PAGE MOTION === */
.hero-content { animation: hero-enter 1.1s cubic-bezier(.22,.8,.25,1) both; }
.hero::before { animation: hero-glow 8s ease-in-out infinite alternate; }
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.home-reveal { transform: translateX(-90px); transition-duration: 0.95s; transition-timing-function: cubic-bezier(.22,.8,.25,1); }
.home-reveal.visible { transform: translateX(0); }
.home-reveal .stat-item { transition: transform 0.2s ease; }
.home-reveal.visible .stat-item:nth-child(1) { transition-delay: 0.05s; }
.home-reveal.visible .stat-item:nth-child(2) { transition-delay: 0.1s; }
.home-reveal.visible .stat-item:nth-child(3) { transition-delay: 0.15s; }
.home-reveal.visible .stat-item:nth-child(4) { transition-delay: 0.2s; }
.stat-item:hover { transform: translateY(-3px); }
.card, .value-card, .objective-item, .gallery-item { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover, .value-card:hover, .objective-item:hover, .gallery-item:hover {
    transform: translateY(-4px);
}
@keyframes hero-enter {
    from { opacity: 0; transform: translateX(-90px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-glow {
    from { opacity: 0.42; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
