:root {
    --brand: #176b67;
    --brand-dark: #0b4643;
    --brand-soft: #e7f4f1;
    --gold: #d89c1d;
    --ink: #1d2733;
    --muted: #65717f;
    --line: #dfe4e8;
    --surface: #ffffff;
    --surface-soft: #f5f7f8;
    --success: #176b46;
    --danger: #a72a2a;
    --shadow: 0 18px 55px rgba(29, 39, 51, .10);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 999; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 20px; }

.top-strip { background: var(--ink); color: #fff; font-size: .82rem; }
.top-strip-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-strip a { color: #fff; text-decoration: none; opacity: .9; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(223,228,232,.9); backdrop-filter: blur(14px); }
.header-main { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 650; letter-spacing: -.03em; box-shadow: 0 9px 25px rgba(23,107,103,.24); }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 1.08rem; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { padding: 10px 12px; border-radius: 10px; color: #3a4652; text-decoration: none; font-size: .92rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav a.active { color: var(--brand); background: var(--brand-soft); }
.primary-nav .nav-cta { margin-left: 8px; color: #fff; background: var(--brand); padding-inline: 18px; }
.primary-nav .nav-cta:hover, .primary-nav .nav-cta.active { color: #fff; background: var(--brand-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { height: 2px; display: block; margin: 5px 0; background: var(--ink); border-radius: 2px; }

.hero { position: relative; overflow: hidden; padding: 90px 0 82px; background: radial-gradient(circle at 78% 20%, rgba(216,156,29,.17), transparent 24%), linear-gradient(120deg, #fff 0%, #fff7f8 55%, #f3f5f7 100%); }
.hero::before { content: ""; position: absolute; width: 320px; height: 320px; border: 70px solid rgba(23,107,103,.045); border-radius: 50%; left: -180px; bottom: -230px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0; color: var(--brand); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: none; display: none; }
.eyebrow.light { color: #ffd98b; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.025em; }
.hero h1 { max-width: 740px; margin-top: 18px; font-size: clamp(2.55rem, 5vw, 4.5rem); }
.hero-copy > p { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; text-decoration: none; font-weight: 650; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 13px 30px rgba(23,107,103,.24); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-light { color: var(--brand-dark); background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #4f5b67; font-size: .87rem; font-weight: 650; }
.trust-row span { position: relative; padding-left: 18px; }
.trust-row span::before { content: "✓"; position: absolute; left: 0; color: var(--success); }
.hero-visual { min-height: 430px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 20px; border-radius: 44% 56% 62% 38% / 43% 35% 65% 57%; background: linear-gradient(145deg, var(--brand), #75471f); box-shadow: var(--shadow); transform: rotate(-4deg); }
.impact-card { position: relative; z-index: 2; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.94); box-shadow: 0 25px 70px rgba(24,28,34,.22); backdrop-filter: blur(16px); }
.impact-main { width: min(88%, 420px); border-radius: 20px; padding: 34px; }
.card-kicker { color: var(--brand); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.impact-main strong { display: block; margin-top: 12px; font-size: 1.55rem; line-height: 1.3; }
.impact-main p { margin: 14px 0 0; color: var(--muted); }
.mini-card { position: absolute; min-width: 150px; border-radius: 14px; padding: 15px 17px; }
.mini-card span { display: block; color: var(--muted); font-size: .72rem; }
.mini-card strong { color: var(--success); }
.mini-one { top: 34px; right: -4px; }
.mini-two { left: -8px; bottom: 45px; }

.section { padding: 82px 0; }
.compact-section { padding-top: 10px; }
.soft-section { background: var(--surface-soft); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading h2, .split-heading h2, .process-intro h2, .cta-card h2, .contact-info h2 { margin-top: 13px; font-size: clamp(2rem, 3.4vw, 3rem); }
.section-heading p, .split-heading > p { color: var(--muted); }
.stats-section { padding-top: 66px; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: 0 9px 26px rgba(29,39,51,.045); }
.stat-card strong { display: block; color: var(--brand); font-size: 2rem; line-height: 1.2; }
.stat-card span { display: block; margin-top: 7px; font-weight: 650; }
.stat-card small { display: block; margin-top: 6px; color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .content-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 26px; }
.feature-card { min-height: 290px; display: flex; flex-direction: column; }
.feature-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.feature-card h3, .content-card h2, .content-card h3 { margin-top: 24px; font-size: 1.25rem; }
.feature-card p, .content-card p { color: var(--muted); }
.feature-card a { margin-top: auto; color: var(--brand); font-weight: 650; text-decoration: none; }
.process-section { color: #fff; background: linear-gradient(120deg, #1d2733, #2e3c49); }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.process-intro p { color: rgba(255,255,255,.72); }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 19px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.05); }
.process-list li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #ffd98b; font-weight: 650; }
.process-list p { margin: 4px 0 0; color: rgba(255,255,255,.68); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-grid.top-gap { margin-top: 28px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 35px rgba(29,39,51,.06); }
.project-image { height: 205px; }
.placeholder-art { position: relative; display: flex; align-items: flex-end; padding: 18px; background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.55), transparent 18%), linear-gradient(135deg, #e7bcc2, #9d2636 56%, #4a141c); }
.placeholder-art::before, .placeholder-art::after { content: ""; position: absolute; border-radius: 50%; border: 18px solid rgba(255,255,255,.15); }
.placeholder-art::before { width: 110px; height: 110px; right: 28px; top: 22px; }
.placeholder-art::after { width: 190px; height: 190px; left: -80px; bottom: -100px; }
.placeholder-art span { position: relative; z-index: 2; color: #fff; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 650; }
.project-body { padding: 24px; }
.project-type, .media-card small, .video-card small { color: var(--brand); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.project-body h3 { margin-top: 8px; font-size: 1.35rem; }
.project-body p { color: var(--muted); }
.progress-bar { height: 8px; overflow: hidden; margin-top: 20px; border-radius: 999px; background: #eceff2; }
.progress-bar span { display: block; height: 100%; background: var(--brand); }
.project-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: .78rem; }
.project-details { display: grid; gap: 8px; margin: 18px 0 0; }
.project-details div { display: flex; justify-content: space-between; gap: 15px; border-top: 1px dashed var(--line); padding-top: 8px; }
.project-details dt { color: var(--muted); }
.project-details dd { margin: 0; font-weight: 650; text-align: right; }
.cta-section { padding-top: 10px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-radius: 24px; padding: 44px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 22px 54px rgba(23,107,103,.23); }
.cta-card p { margin-bottom: 0; color: rgba(255,255,255,.75); }

.page-hero { padding: 72px 0; color: #fff; background: radial-gradient(circle at 85% 25%, rgba(216,156,29,.27), transparent 18%), linear-gradient(120deg, var(--brand-dark), #2a2025); }
.page-hero .container { max-width: 920px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.5rem, 5vw, 4.25rem); }
.page-hero p { max-width: 780px; color: rgba(255,255,255,.76); font-size: 1.08rem; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.timeline-grid article { display: grid; grid-template-columns: 44px 1fr; gap: 16px; border: 1px solid var(--line); border-radius: 15px; padding: 20px; background: #fff; }
.timeline-grid article > span, .flow-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 650; }
.timeline-grid h3 { font-size: 1.05rem; }
.timeline-grid p { margin: 6px 0 0; color: var(--muted); }
.notice { border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; padding: 20px 24px; background: #fff8e8; }
.notice p { margin: 4px 0 0; color: #6f6142; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-links a { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; background: #fff; }
.related-links a:hover { border-color: #c9959c; box-shadow: 0 12px 28px rgba(29,39,51,.07); }
.related-links span { color: var(--brand); font-size: .88rem; }
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-grid article { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.flow-grid h3 { margin-top: 20px; }
.flow-grid p { color: var(--muted); font-size: .9rem; }
.progress-timeline { max-width: 820px; }
.progress-timeline article { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 20px; padding-bottom: 42px; }
.progress-timeline article:not(:last-child)::before { content: ""; position: absolute; top: 22px; left: 10px; bottom: 0; width: 2px; background: var(--line); }
.timeline-dot { position: relative; z-index: 2; width: 22px; height: 22px; margin-top: 4px; border: 6px solid #f5c5cb; border-radius: 50%; background: var(--brand); }
.progress-timeline small { color: var(--brand); font-weight: 650; }
.progress-timeline h3 { margin-top: 4px; }
.progress-timeline p { margin: 7px 0 0; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-card, .video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.media-placeholder, .video-placeholder { min-height: 220px; display: grid; place-items: center; color: rgba(255,255,255,.82); background: linear-gradient(135deg, #687581, #28333d); }
.media-card > div:last-child, .video-card > div:last-child { padding: 22px; }
.media-card h3, .video-card h3 { margin-top: 6px; }
.media-card p, .video-card p { margin-bottom: 0; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-placeholder { min-height: 285px; align-content: center; gap: 10px; background: linear-gradient(135deg, var(--brand-dark), #1d2733); }
.play-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(255,255,255,.12); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-points { display: grid; gap: 12px; margin-top: 28px; }
.contact-points div { display: grid; gap: 3px; border-left: 3px solid var(--brand); padding-left: 14px; }
.contact-points span { color: var(--muted); font-size: .9rem; }
.form-card { border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: #34404c; font-size: .88rem; font-weight: 650; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { width: 100%; border: 1px solid #cfd5da; border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #fff; outline: none; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(23,107,103,.09); }
.form-grid label small { color: var(--danger); font-weight: 600; }
.form-card .button { margin-top: 22px; border: 0; }
.alert { margin-bottom: 20px; border-radius: 11px; padding: 13px 15px; }
.alert.success { color: var(--success); background: #eaf7f1; }
.alert.error { color: var(--danger); background: #fff0f0; }

.site-footer { margin-top: 40px; padding-top: 64px; color: rgba(255,255,255,.72); background: #18212a; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { color: #fff; font-size: 1.45rem; font-weight: 650; }
.footer-grid h2 { color: #fff; font-size: 1rem; }
.footer-grid p { font-size: .9rem; }
.footer-grid a { margin-top: 8px; color: rgba(255,255,255,.72); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-button { border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 8px 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .8rem; }

@media (max-width: 1180px) {
    .menu-toggle { display: block; }
    .primary-nav { position: absolute; top: 100%; left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; box-shadow: var(--shadow); }
    .primary-nav.open { display: flex; }
    .primary-nav .nav-cta { margin-left: 0; text-align: center; }
    .hero-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
    .stats-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid, .media-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .top-strip-inner { justify-content: center; text-align: center; }
    .top-strip-inner a { display: none; }
    .header-main { min-height: 70px; }
    .brand-copy small { display: none; }
    .hero { padding: 64px 0; }
    .hero-grid { gap: 42px; }
    .hero-visual { min-height: 340px; }
    .mini-card { min-width: 130px; padding: 11px 13px; }
    .mini-one { right: 2px; }
    .mini-two { left: 2px; }
    .section { padding: 60px 0; }
    .stats-grid, .feature-grid, .project-grid, .content-grid, .timeline-grid, .media-grid, .video-grid, .flow-grid, .related-links, .form-grid { grid-template-columns: 1fr; }
    .split-heading { grid-template-columns: 1fr; gap: 8px; }
    .project-meta, .footer-bottom { flex-direction: column; }
    .cta-card { align-items: flex-start; flex-direction: column; padding: 30px; }
    .form-grid label.full { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Phase 7: published galleries and videos */
.public-search-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 30px;
}

.public-search-form label {
    flex: 1;
}

.public-search-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 14px;
    background: #fff;
}

.public-search-form button,
.public-search-form a,
.button-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: 11px;
    padding: 11px 18px;
    color: #fff;
    background: var(--brand);
    text-decoration: none;
    font-weight: 650;
    cursor: pointer;
}

.public-search-form a {
    color: var(--brand);
    background: #fff;
}

.published-media-card,
.published-video-card {
    overflow: hidden;
    padding: 0;
}

.published-media-image,
.published-video-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e7ecef;
    text-decoration: none;
}

.published-media-image img,
.published-video-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.published-media-card:hover img,
.published-video-card:hover img {
    transform: scale(1.035);
}

.published-media-card > div,
.published-video-card > div {
    padding: 22px;
}

.published-media-card h3,
.published-video-card h3 {
    margin-top: 8px;
}

.published-media-card h3 a,
.published-video-card h3 a {
    text-decoration: none;
}

.published-media-card p,
.published-video-card p {
    color: var(--muted);
}

.media-count,
.public-play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(20, 28, 36, 0.82);
    font-size: 0.76rem;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

.public-play-badge {
    right: 50%;
    bottom: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0 0 0 3px;
    place-items: center;
    transform: translate(50%, 50%);
    background: rgba(23, 107, 103, 0.92);
    font-size: 1.1rem;
}

.public-project-tag {
    display: inline-flex;
    margin-top: 9px;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 0.76rem;
    font-weight: 650;
}

.public-empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 46px 24px;
    text-align: center;
    background: var(--surface-soft);
}

.public-empty-state p {
    color: var(--muted);
}

.public-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.public-pagination a,
.public-pagination span {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 12px;
    text-decoration: none;
}

.public-pagination span {
    color: var(--muted);
    background: var(--surface-soft);
}

.media-detail-hero {
    padding: 72px 0 62px;
    color: #fff;
    background: radial-gradient(circle at 82% 18%, rgba(216, 156, 29, 0.25), transparent 24%), linear-gradient(125deg, #1c2731, #711522);
}

.media-detail-hero h1 {
    max-width: 900px;
    margin-top: 16px;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
}

.media-detail-hero > .container > p:not(.eyebrow) {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.public-back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 650;
}

.media-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.media-detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.public-prose {
    max-width: 850px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 1.02rem;
}

.public-prose h2 {
    color: var(--ink);
}

.public-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-photo-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(29, 39, 51, 0.06);
}

.public-photo-card > a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e7ecef;
}

.public-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-photo-card figcaption {
    padding: 18px;
}

.public-photo-card figcaption p {
    margin: 7px 0;
    color: var(--muted);
}

.public-photo-card figcaption div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.public-video-detail {
    display: grid;
    gap: 32px;
}

.public-video-player {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: #111820;
    box-shadow: var(--shadow);
}

.public-video-player video,
.public-video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.external-video-card {
    display: grid;
    min-height: 100%;
    place-content: center;
    justify-items: center;
    padding: 30px;
    color: #fff;
    text-align: center;
}

.external-video-card p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
}

.publication-note {
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    background: #fff9eb;
}

.publication-note p {
    margin: 5px 0 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .public-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .public-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .public-photo-grid {
        grid-template-columns: 1fr;
    }

    .media-detail-hero {
        padding: 54px 0 46px;
    }
}

/* Public language switcher */
.public-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    padding: 3px;
    background: #f6f7f8;
    border: 1px solid rgba(25, 34, 43, 0.12);
    border-radius: 999px;
}

.public-language-switcher a {
    display: grid;
    min-width: 32px;
    min-height: 28px;
    place-items: center;
    padding: 3px 8px;
    color: #56616b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.public-language-switcher a.active,
.public-language-switcher a:hover {
    color: #fff;
    background: #176b67;
}

@media (max-width: 980px) {
    .public-language-switcher {
        margin: 8px 0;
        align-self: flex-start;
    }
}

/* ================================================================
   Public Frontend Phase — database-driven Sumnima Paruhang website
   ================================================================ */
:root {
    --brand: #176b67;
    --brand-dark: #0b4643;
    --brand-deep: #083432;
    --brand-soft: #e7f4f1;
    --gold: #dca627;
    --gold-soft: #fff5d9;
    --ink: #17212b;
    --ink-soft: #273746;
    --muted: #687481;
    --line: #e2e7eb;
    --surface: #ffffff;
    --surface-soft: #f6f8f9;
    --surface-warm: #fbf7f4;
    --success: #176846;
    --warning: #a86c0d;
    --danger: #9b2531;
    --shadow-sm: 0 10px 30px rgba(23, 33, 43, .07);
    --shadow: 0 24px 70px rgba(23, 33, 43, .12);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --container: 1220px;
}

body {
    overflow-x: hidden;
    background: #fff;
}

body.menu-open { overflow: hidden; }

.site-header {
    box-shadow: 0 4px 24px rgba(23, 33, 43, .035);
}

.top-strip {
    background: #121b23;
}

.top-strip-inner {
    min-height: 38px;
}

.top-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-trust > span {
    color: #67d39c;
    font-size: .65rem;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-main {
    min-height: 86px;
}

.brand-mark {
    position: relative;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50% 50% 50% 16px;
    background: linear-gradient(145deg, #a92335, #0b4643);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    right: -6px;
    bottom: -6px;
    border: 6px solid rgba(255,255,255,.18);
    border-radius: 50%;
}

.brand-mark span { position: relative; z-index: 1; }
.brand-copy strong { font-size: 1.12rem; }
.brand-copy small { letter-spacing: .01em; }

.primary-nav { gap: 1px; }
.primary-nav > a:not(.nav-cta) { position: relative; background: transparent; }
.primary-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.primary-nav > a:not(.nav-cta):hover::after,
.primary-nav > a:not(.nav-cta).active::after { transform: scaleX(1); }
.primary-nav > a:not(.nav-cta):hover,
.primary-nav > a:not(.nav-cta).active { background: transparent; }

.home-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #301016 0%, #6a1220 48%, #17212b 100%);
}

.home-hero-bg,
.project-detail-bg {
    position: absolute;
    inset: 0;
}

.home-hero-bg img,
.project-detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,5,10,.92) 0%, rgba(55,9,17,.82) 43%, rgba(20,29,37,.48) 100%);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 25%, rgba(220,166,39,.26), transparent 23%),
        linear-gradient(180deg, transparent 65%, rgba(12,17,22,.4));
}

.home-hero-overlay::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -420px;
    top: -250px;
    border: 120px solid rgba(255,255,255,.035);
    border-radius: 50%;
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .7fr);
    gap: 80px;
    align-items: center;
    padding-top: 82px;
    padding-bottom: 82px;
}

.home-hero-copy { max-width: 790px; }
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #ffe2a4;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.home-hero h1 {
    max-width: 800px;
    margin-top: 20px;
    color: #fff;
    font-size: clamp(3rem, 5.6vw, 5.35rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}
.home-hero-copy > p {
    max-width: 690px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    line-height: 1.75;
}
.button-large { min-height: 54px; padding: 14px 24px; }
.button-glass {
    color: #fff;
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(10px);
}
.button-glass:hover { background: rgba(255,255,255,.17); }
.button-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.4);
    background: transparent;
}
.button-outline-light:hover { background: rgba(255,255,255,.1); }
.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 30px;
    color: rgba(255,255,255,.8);
    font-size: .84rem;
    font-weight: 650;
}
.hero-assurances span { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances i {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #123b2a;
    background: #8ee2b7;
    font-size: .67rem;
    font-style: normal;
}

.hero-impact-panel {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 26px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 35px 90px rgba(0,0,0,.23);
    backdrop-filter: blur(18px);
}
.impact-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 23px;
    border-bottom: 1px solid rgba(255,255,255,.13);
    font-size: .8rem;
    font-weight: 650;
}
.impact-panel-top small {
    border-radius: 999px;
    padding: 5px 9px;
    color: #d8ffe9;
    background: rgba(83,192,133,.16);
}
.impact-panel-number { padding: 28px 25px; }
.impact-panel-number strong { display: block; color: #ffe3a4; font-size: 3.35rem; line-height: 1; }
.impact-panel-number span { display: block; max-width: 260px; margin-top: 8px; color: rgba(255,255,255,.75); }
.impact-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.13); }
.impact-panel-grid div { min-height: 104px; padding: 21px 23px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.impact-panel-grid div:nth-child(2n) { border-right: 0; }
.impact-panel-grid strong { display: block; font-size: 1.45rem; }
.impact-panel-grid span { display: block; margin-top: 3px; color: rgba(255,255,255,.67); font-size: .77rem; }
.hero-story-link {
    position: relative;
    display: block;
    padding: 21px 54px 22px 23px;
    color: #17212b;
    background: #fff;
    text-decoration: none;
}
.hero-story-link span { display: block; color: var(--brand); font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.hero-story-link strong { display: block; margin-top: 5px; line-height: 1.35; }
.hero-story-link i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.25rem; font-style: normal; }
.hero-story-empty { background: rgba(255,255,255,.94); }

.hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}
.hero-scroll span { width: 18px; height: 30px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; }
.hero-scroll span::after { content: ""; display: block; width: 3px; height: 6px; margin: 6px auto 0; border-radius: 4px; background: #fff; animation: heroScroll 1.6s infinite; }
@keyframes heroScroll { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(8px);opacity:1} }

.impact-ribbon { border-bottom: 1px solid var(--line); background: #fff; }
.impact-ribbon-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.impact-ribbon article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 28px 24px; border-right: 1px solid var(--line); }
.impact-ribbon article:first-child { padding-left: 0; }
.impact-ribbon article:last-child { border-right: 0; padding-right: 0; }
.impact-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: .72rem; font-weight: 650; }
.impact-ribbon strong { display: block; font-size: .93rem; }
.impact-ribbon p { margin: 4px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }

.home-intro-section { padding-bottom: 55px; }
.home-intro-grid { display: grid; grid-template-columns: 1.1fr .8fr; gap: 100px; align-items: end; }
.intro-heading h2 { max-width: 710px; margin-top: 14px; font-size: clamp(2.2rem, 4vw, 3.65rem); }
.intro-copy p { margin: 0 0 22px; color: var(--muted); font-size: 1.03rem; }
.text-link, .section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 650;
}
.text-link:hover, .section-link:hover { color: var(--brand-dark); }

.projects-showcase-section { padding-top: 50px; background: var(--surface-soft); }
.section-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}
.section-topline > div:first-child { max-width: 760px; }
.section-topline h2 { margin-top: 13px; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.section-topline p { color: var(--muted); }
.home-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-project-card { transition: transform .25s ease, box-shadow .25s ease; }
.public-project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #e8ecef; text-decoration: none; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.public-project-card:hover .project-cover img { transform: scale(1.055); }
.project-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(12,18,23,.48)); }
.project-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 75% 25%, rgba(255,255,255,.6), transparent 22%), linear-gradient(135deg, #eed7d9, #a53545 58%, #56101b); }
.placeholder-symbol { color: rgba(255,255,255,.82); font-size: 4rem; font-weight: 650; }
.project-status { position: absolute; z-index: 2; left: 15px; top: 15px; border-radius: 999px; padding: 7px 11px; color: #fff; background: rgba(23,33,43,.82); font-size: .7rem; font-weight: 650; backdrop-filter: blur(10px); }
.project-status.status-success { background: rgba(23,104,70,.92); }
.project-status.status-info { background: rgba(32,91,126,.92); }
.project-status.status-warning { background: rgba(168,108,13,.92); }
.project-status.status-danger { background: rgba(155,37,49,.92); }
.project-card-body { padding: 23px; }
.project-card-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--brand); font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.project-card-kicker span:last-child { color: #8b949d; }
.project-card-body h3 { margin-top: 11px; font-size: 1.35rem; }
.project-card-body h3 a { text-decoration: none; }
.project-card-body h3 a:hover { color: var(--brand); }
.project-card-body > p { min-height: 70px; margin: 11px 0; color: var(--muted); font-size: .91rem; }
.project-location { display: flex; gap: 7px; align-items: center; color: #53606c; font-size: .81rem; }
.project-location span { color: var(--brand); font-size: 1rem; }
.project-progress-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 18px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e8ecef; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #c98237); }
.project-progress-row strong { color: var(--brand); font-size: .82rem; }
.project-card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.project-card-footer a { color: var(--brand); text-decoration: none; font-weight: 650; }

.visual-empty-state { display: flex; grid-column: 1/-1; align-items: center; gap: 28px; text-align: left; }
.empty-visual { flex: 0 0 118px; height: 100px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); font-weight: 650; }

.donor-section { color: #fff; background: linear-gradient(125deg, #0b4643 0%, #176b67 45%, #263f3b 100%); }
.donor-section-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.donor-story h2 { margin-top: 15px; color: #fff; font-size: clamp(2.15rem, 4vw, 3.5rem); }
.donor-story > p { color: rgba(255,255,255,.72); }
.donor-total-card { margin: 28px 0 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.08); }
.donor-total-card span, .donor-total-card small { display: block; color: rgba(255,255,255,.68); }
.donor-total-card strong { display: block; margin: 7px 0; color: #ffe1a0; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.donor-total-card small { font-size: .75rem; }
.supporter-list { overflow: hidden; border-radius: 23px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(26,4,8,.25); }
.supporter-list-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #fffafa; }
.supporter-list-head span, .supporter-list-head strong { display: block; }
.supporter-list-head > div > span { color: var(--brand); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.supporter-list-head > div > strong { margin-top: 3px; }
.verified-mark { border-radius: 999px; padding: 6px 10px; color: var(--success); background: #eaf8f1; font-size: .72rem; font-weight: 650; }
.supporter-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.supporter-row:last-child { border-bottom: 0; }
.supporter-avatar, .donation-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-weight: 650; }
.supporter-row > div:nth-child(2) strong, .supporter-row > div:nth-child(2) span { display: block; }
.supporter-row > div:nth-child(2) span { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.supporter-amount { text-align: right; }
.supporter-amount strong, .supporter-amount span { display: block; }
.supporter-amount strong { font-size: .84rem; }
.supporter-amount span { color: var(--muted); font-size: .7rem; }
.supporter-empty { padding: 45px 28px; text-align: center; }
.supporter-empty > span { color: var(--brand); font-size: 2.2rem; }
.supporter-empty p { color: var(--muted); }

.photo-stories-section { color: #fff; background: #131d25; }
.section-topline-light h2 { color: #fff; }
.section-topline-light p { color: rgba(255,255,255,.64); }
.light-link { color: #ffe09c; }
.light-link:hover { color: #fff; }
.home-gallery-mosaic { min-height: 570px; display: grid; grid-template-columns: 1.25fr .85fr .85fr; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.mosaic-card { position: relative; min-height: 240px; overflow: hidden; border-radius: 17px; color: #fff; text-decoration: none; }
.mosaic-card-1 { grid-row: 1 / 3; }
.mosaic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.mosaic-card:hover img { transform: scale(1.06); }
.mosaic-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,12,16,.82)); }
.mosaic-content { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.mosaic-content small { color: #ffe09c; font-size: .72rem; font-weight: 650; text-transform: uppercase; }
.mosaic-content h3 { margin-top: 6px; font-size: 1.3rem; }
.mosaic-content > span { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: .75rem; }
.mosaic-placeholder, .video-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #176b67, #153d3a); }
.mosaic-placeholder span, .video-cover-placeholder span { color: rgba(255,255,255,.7); font-size: 2rem; font-weight: 650; }
.gallery-empty-panel { grid-column: 1/-1; display: grid; min-height: 420px; place-content: center; justify-items: center; border: 1px dashed rgba(255,255,255,.22); border-radius: 22px; padding: 40px; text-align: center; background: rgba(255,255,255,.04); }
.gallery-empty-icon { font-size: 3rem; color: #ffe09c; }
.gallery-empty-panel p { max-width: 590px; color: rgba(255,255,255,.65); }

.progress-home-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 75px; align-items: start; }
.progress-home-intro { position: sticky; top: 130px; }
.progress-home-intro h2 { margin-top: 14px; font-size: clamp(2.15rem, 4vw, 3.35rem); }
.progress-home-intro p { color: var(--muted); }
.home-progress-list { display: grid; }
.home-progress-list article { display: grid; grid-template-columns: 64px 20px 1fr; gap: 17px; min-height: 185px; }
.progress-date { padding-top: 3px; text-align: center; }
.progress-date strong { display: block; color: var(--brand); font-size: 1.75rem; line-height: 1; }
.progress-date span { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.progress-line { position: relative; display: flex; justify-content: center; }
.progress-line::before { content: ""; position: absolute; top: 19px; bottom: 0; width: 2px; background: var(--line); }
.progress-line span { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 7px; border: 4px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.progress-update-copy { padding: 0 0 36px; }
.progress-update-copy small a { color: var(--brand); text-decoration: none; font-weight: 650; }
.progress-update-copy h3 { margin-top: 8px; font-size: 1.35rem; }
.progress-update-copy p { margin: 9px 0; color: var(--muted); }
.progress-update-copy > div { display: flex; flex-wrap: wrap; gap: 10px; }
.progress-update-copy > div span { border-radius: 999px; padding: 6px 9px; color: #54616d; background: var(--surface-soft); font-size: .72rem; font-weight: 650; }

.home-video-section { background: var(--surface-warm); }
.home-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.home-video-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.home-video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-video-card:hover img { transform: scale(1.05); }
.play-button { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; color: #fff; background: rgba(23,107,103,.9); transform: translate(-50%,-50%); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.home-video-card > div { padding: 21px; }
.home-video-card small { color: var(--brand); font-weight: 650; }
.home-video-card h3 { margin-top: 7px; }
.home-video-card h3 a { text-decoration: none; }
.home-video-card p { color: var(--muted); font-size: .88rem; }

.home-final-cta { padding-top: 45px; }
.final-cta-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 50px; border-radius: var(--radius-lg); padding: 52px; color: #fff; background: linear-gradient(120deg, #176b67, #75471f); box-shadow: var(--shadow); }
.final-cta-card::after { content: ""; position: absolute; right: -120px; top: -130px; width: 330px; height: 330px; border: 70px solid rgba(255,255,255,.06); border-radius: 50%; }
.final-cta-card > * { position: relative; z-index: 1; }
.final-cta-card > div:first-child { max-width: 730px; }
.final-cta-card h2 { margin-top: 13px; color: #fff; font-size: clamp(2rem, 3.5vw, 3.1rem); }
.final-cta-card p { color: rgba(255,255,255,.72); }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 35px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-promise { display: flex; align-items: center; gap: 18px; }
.footer-seal { flex: 0 0 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #ffe09c; font-weight: 650; }
.footer-promise strong { display: block; color: #fff; }
.footer-promise p { max-width: 680px; margin: 3px 0 0; color: rgba(255,255,255,.58); font-size: .83rem; }
.footer-about { max-width: 340px; }
.footer-language { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: rgba(255,255,255,.5); font-size: .78rem; }
.footer-language a { color: #fff; }
.staff-link { margin-top: 12px; color: rgba(255,255,255,.55) !important; font-size: .77rem !important; }

/* Inner page heroes and public filters */
.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 78px;
    color: #fff;
    background: radial-gradient(circle at 82% 20%, rgba(220,166,39,.24), transparent 23%), linear-gradient(120deg, #0b4643, #176b67 48%, #1a2731);
}
.inner-hero::after { content: ""; position: absolute; right: -130px; bottom: -280px; width: 510px; height: 510px; border: 90px solid rgba(255,255,255,.04); border-radius: 50%; }
.inner-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; }
.inner-hero h1 { max-width: 850px; margin-top: 18px; color: #fff; font-size: clamp(2.7rem, 5vw, 4.6rem); }
.inner-hero p { max-width: 760px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.inner-hero-stat { min-width: 220px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; padding: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.inner-hero-stat strong, .inner-hero-stat span, .inner-hero-stat small { display: block; }
.inner-hero-stat strong { color: #ffe09c; font-size: 3rem; line-height: 1; }
.inner-hero-stat span { margin-top: 7px; font-weight: 650; }
.inner-hero-stat small { margin-top: 4px; color: rgba(255,255,255,.6); }

.public-filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 19px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.public-filter-panel label > span { display: block; margin-bottom: 7px; color: #4f5c68; font-size: .75rem; font-weight: 650; }
.public-filter-panel input,
.public-filter-panel select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; color: var(--ink); background: #fff; outline: none; }
.public-filter-panel input:focus,
.public-filter-panel select:focus { border-color: rgba(23,107,103,.55); box-shadow: 0 0 0 4px rgba(23,107,103,.08); }
.filter-actions { display: flex; gap: 8px; }
.compact-filter { grid-template-columns: 1.6fr .8fr auto; }
.results-summary { display: flex; gap: 10px; align-items: center; margin: 28px 0 20px; color: var(--muted); }
.results-summary > span { color: var(--ink); font-weight: 650; }
.projects-page-grid { margin-top: 28px; }

/* Project detail */
.project-detail-hero { position: relative; min-height: 560px; display: flex; align-items: end; overflow: hidden; color: #fff; background: linear-gradient(125deg, #69121f, #17212b); }
.project-detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,5,8,.92), rgba(46,8,14,.74) 50%, rgba(14,22,29,.45)), linear-gradient(180deg, transparent 40%, rgba(10,16,21,.65)); }
.project-detail-hero-content { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 68px; }
.project-detail-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.project-detail-badges span { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.08); font-size: .73rem; font-weight: 650; }
.project-detail-hero h1 { max-width: 920px; margin-top: 19px; color: #fff; font-size: clamp(2.8rem, 5.4vw, 5rem); }
.project-detail-hero-content > p { max-width: 830px; color: rgba(255,255,255,.75); font-size: 1.07rem; }
.project-detail-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 25px; color: rgba(255,255,255,.8); font-size: .84rem; }
.project-detail-meta span { display: inline-flex; gap: 8px; align-items: center; }
.project-detail-meta i { color: #ffe09c; font-style: normal; }
.project-snapshot-bar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 25px rgba(23,33,43,.04); }
.project-snapshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.project-snapshot-grid article { min-height: 138px; padding: 25px 24px; border-right: 1px solid var(--line); }
.project-snapshot-grid article:first-child { padding-left: 0; }
.project-snapshot-grid article:last-child { border-right: 0; padding-right: 0; }
.project-snapshot-grid span, .project-snapshot-grid strong, .project-snapshot-grid small { display: block; }
.project-snapshot-grid > article > span { color: var(--muted); font-size: .75rem; font-weight: 650; }
.project-snapshot-grid strong { margin-top: 8px; font-size: 1.45rem; }
.project-snapshot-grid small { margin-top: 5px; color: var(--muted); font-size: .72rem; }
.project-snapshot-grid .progress-track { margin-top: 12px; }
.project-overview-grid { display: grid; grid-template-columns: 1.25fr .65fr; gap: 85px; align-items: start; }
.project-story h2 { margin-top: 13px; font-size: clamp(2.2rem,4vw,3.45rem); }
.project-story .public-prose { margin-top: 24px; font-size: 1rem; line-height: 1.85; }
.project-objectives { border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 20px 22px; background: var(--gold-soft); }
.project-objectives p { color: #66542b; }
.project-facts { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--surface-soft); }
.project-facts h2 { font-size: 1.4rem; }
.project-facts dl { margin: 20px 0 0; }
.project-facts dl > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.project-facts dl > div:last-child { border-bottom: 0; }
.project-facts dt { color: var(--muted); font-size: .76rem; }
.project-facts dd { margin: 0; text-align: right; font-size: .82rem; font-weight: 650; }
.milestone-section { background: var(--surface-soft); }
.milestone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.milestone-grid article { border: 1px solid var(--line); border-radius: 17px; padding: 23px; background: #fff; }
.milestone-head, .milestone-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.milestone-head > span { color: var(--brand); font-weight: 650; }
.milestone-head small { border-radius: 99px; padding: 5px 8px; color: var(--success); background: #eaf8f1; }
.milestone-grid h3 { margin-top: 17px; }
.milestone-grid p { min-height: 60px; color: var(--muted); font-size: .85rem; }
.milestone-grid .progress-track { margin: 19px 0 10px; }
.milestone-footer { color: var(--muted); font-size: .74rem; }
.milestone-footer strong { color: var(--brand); }
.project-updates-section { color: #fff; background: #17212b; }
.project-update-timeline { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-update-timeline article { display: grid; grid-template-columns: 72px 1fr; gap: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.045); }
.update-marker { text-align: center; }
.update-marker strong { display: block; color: #ffe09c; font-size: 1.8rem; line-height: 1; }
.update-marker span { display: block; margin-top: 5px; color: rgba(255,255,255,.55); font-size: .68rem; text-transform: uppercase; }
.update-kicker { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.55); font-size: .72rem; }
.update-kicker strong { color: #ffe09c; }
.update-body h3 { margin-top: 8px; color: #fff; }
.update-body p { color: rgba(255,255,255,.66); font-size: .88rem; }
.update-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.update-metrics span { border-radius: 99px; padding: 5px 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); font-size: .69rem; }
.project-gallery-strip { display: grid; grid-template-columns: 1.2fr repeat(3, .8fr); gap: 13px; }
.project-gallery-strip > a { position: relative; min-height: 310px; overflow: hidden; border-radius: 17px; color: #fff; text-decoration: none; }
.project-gallery-strip > a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-gallery-strip > a:hover img { transform: scale(1.05); }
.project-gallery-strip > a > div:last-child { position: absolute; left: 18px; right: 18px; bottom: 17px; }
.project-gallery-strip small { color: #ffe09c; font-weight: 650; }
.project-gallery-strip h3 { margin-top: 5px; font-size: 1.12rem; }
.project-detail-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: var(--surface-soft); }
.project-detail-cta h2 { margin-top: 10px; }
.project-detail-cta p { color: var(--muted); }

/* Donation transparency */
.transparency-seal { width: 190px; height: 190px; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; text-align: center; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.transparency-seal > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #17432f; background: #9ee7bd; font-weight: 650; }
.transparency-seal strong, .transparency-seal small { display: block; }
.transparency-seal strong { margin-top: 10px; }
.transparency-seal small { color: rgba(255,255,255,.6); }
.transparency-stat-section { border-bottom: 1px solid var(--line); background: #fff; }
.transparency-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.transparency-stat-grid article { padding: 28px 23px; border-right: 1px solid var(--line); }
.transparency-stat-grid article:first-child { padding-left: 0; }
.transparency-stat-grid article:last-child { padding-right: 0; border-right: 0; }
.transparency-stat-grid span, .transparency-stat-grid strong, .transparency-stat-grid small { display: block; }
.transparency-stat-grid span { color: var(--muted); font-size: .75rem; }
.transparency-stat-grid strong { margin-top: 6px; color: var(--brand); font-size: 2rem; }
.transparency-stat-grid small { color: #7a858e; }
.currency-total-grid { display: grid; gap: 16px; }
.currency-total-grid article { display: grid; grid-template-columns: 70px 1fr .9fr; gap: 22px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.currency-code { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--brand); font-size: .82rem; font-weight: 650; }
.currency-total-grid span, .currency-total-grid strong, .currency-total-grid small { display: block; }
.currency-total-grid span { color: var(--muted); font-size: .75rem; }
.currency-total-grid strong { margin-top: 4px; font-size: 1.6rem; }
.currency-total-grid small { color: var(--muted); }
.allocation-summary { padding-left: 22px; border-left: 1px solid var(--line); }
.allocation-summary strong { font-size: 1.1rem; }
.allocation-summary .progress-track { margin-top: 9px; }
.public-donation-list { display: grid; gap: 11px; margin-top: 26px; }
.public-donation-list article { display: grid; grid-template-columns: 48px 1fr auto; gap: 17px; align-items: center; border: 1px solid var(--line); border-radius: 15px; padding: 19px; background: #fff; }
.public-donation-photo { width: 48px; height: 48px; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.public-donation-photo img { width: 100%; height: 100%; object-fit: cover; }
.public-donation-photo:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(18, 70, 59, .12); }
.donation-topline { display: flex; align-items: center; gap: 9px; }
.donation-topline h3 { font-size: 1.05rem; }
.verified-pill { border-radius: 99px; padding: 4px 7px; color: var(--success); background: #eaf8f1; font-size: .67rem; font-weight: 650; }
.donation-main p { margin: 5px 0 8px; color: var(--muted); font-size: .85rem; }
.donation-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #7c8790; font-size: .7rem; }
.donation-value { min-width: 170px; text-align: right; }
.donation-value strong, .donation-value span { display: block; }
.donation-value strong { color: var(--brand); }
.donation-value span { color: var(--muted); font-size: .7rem; }
.principle-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 17px; }
.principle-grid article { border-top: 3px solid var(--brand); border-radius: 0 0 15px 15px; padding: 23px; background: var(--surface-soft); }
.principle-grid article > span { color: var(--brand); font-weight: 650; }
.principle-grid h3 { margin-top: 18px; }
.principle-grid p { color: var(--muted); font-size: .86rem; }

/* Progress page */
.public-progress-timeline { max-width: 980px; margin: 45px auto 0; }
.public-progress-timeline > article { display: grid; grid-template-columns: 72px 28px 1fr; gap: 15px; }
.timeline-date { padding-top: 20px; text-align: center; }
.timeline-date strong, .timeline-date span, .timeline-date small { display: block; }
.timeline-date strong { color: var(--brand); font-size: 1.9rem; line-height: 1; }
.timeline-date span { color: var(--ink); font-weight: 650; text-transform: uppercase; }
.timeline-date small { color: var(--muted); }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::before { content: ""; position: absolute; top: 29px; bottom: 0; width: 2px; background: var(--line); }
.timeline-rail span { position: relative; z-index: 1; width: 17px; height: 17px; margin-top: 25px; border: 4px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.timeline-card { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.timeline-card-head { display: flex; justify-content: space-between; gap: 18px; }
.timeline-card-head a { display: block; color: var(--brand); text-decoration: none; font-size: .78rem; font-weight: 650; }
.timeline-card-head div > span { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.timeline-card-head > strong { color: var(--brand); font-size: 1.35rem; }
.timeline-card h2 { margin-top: 15px; font-size: 1.45rem; }
.timeline-card > p { color: var(--muted); }
.timeline-card .progress-track { margin: 18px 0 13px; }
.timeline-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-metrics span { border-radius: 99px; padding: 6px 9px; color: #52606c; background: var(--surface-soft); font-size: .71rem; font-weight: 650; }

/* Existing gallery and video pages refined */
.published-media-grid,
.published-video-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.published-media-card,
.published-video-card { border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.published-media-card:hover,
.published-video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.public-photo-card > a[data-lightbox-item] { cursor: zoom-in; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-scroll span::after { animation: none; }
}

/* Lightbox */
.lightbox { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 40px 80px; background: rgba(7,11,15,.94); }
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1200px, 90vw); max-height: 88vh; margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: auto; border-radius: 10px; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: 13px; color: rgba(255,255,255,.78); }
.lightbox-close,
.lightbox-nav { position: absolute; border: 0; color: #fff; background: transparent; cursor: pointer; }
.lightbox-close { right: 24px; top: 17px; font-size: 2.5rem; }
.lightbox-nav { top: 50%; width: 50px; height: 70px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 2.5rem; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 1120px) {
    .home-hero-grid { grid-template-columns: 1fr .68fr; gap: 45px; }
    .home-hero h1 { font-size: clamp(2.8rem, 5.7vw, 4.6rem); }
    .impact-ribbon-grid { grid-template-columns: repeat(2,1fr); }
    .impact-ribbon article:nth-child(2) { border-right: 0; }
    .impact-ribbon article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .impact-ribbon article:first-child, .impact-ribbon article:nth-child(3) { padding-left: 0; }
    .home-project-grid, .projects-page-grid { grid-template-columns: repeat(2,1fr); }
    .donor-section-grid { gap: 45px; }
    .project-snapshot-grid { grid-template-columns: repeat(2,1fr); }
    .project-snapshot-grid article:nth-child(2) { border-right: 0; }
    .project-snapshot-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .milestone-grid { grid-template-columns: repeat(2,1fr); }
    .project-gallery-strip { grid-template-columns: repeat(2,1fr); }
    .project-gallery-strip > a { min-height: 280px; }
    .principle-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 980px) {
    .home-hero { min-height: auto; }
    .home-hero-grid { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 90px; }
    .hero-impact-panel { max-width: 620px; }
    .home-intro-grid, .donor-section-grid, .progress-home-grid, .project-overview-grid { grid-template-columns: 1fr; gap: 42px; }
    .progress-home-intro { position: static; }
    .home-gallery-mosaic { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,240px); }
    .mosaic-card-1 { grid-row: 1/3; }
    .home-video-grid { grid-template-columns: repeat(2,1fr); }
    .inner-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .inner-hero-stat { min-width: 0; max-width: 300px; }
    .public-filter-panel, .compact-filter { grid-template-columns: repeat(2,1fr); }
    .filter-actions { grid-column: 1/-1; }
    .project-update-timeline { grid-template-columns: 1fr; }
    .currency-total-grid article { grid-template-columns: 70px 1fr; }
    .allocation-summary { grid-column: 2; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .published-media-grid, .published-video-grid { grid-template-columns: repeat(2,1fr); }
    .footer-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
    .home-hero-grid { padding-top: 55px; }
    .home-hero h1 { font-size: clamp(2.55rem, 12vw, 3.65rem); }
    .home-hero-copy > p { font-size: 1rem; }
    .hero-actions .button { width: 100%; }
    .hero-impact-panel { width: 100%; }
    .impact-ribbon-grid, .home-project-grid, .projects-page-grid, .home-video-grid, .principle-grid, .milestone-grid, .project-snapshot-grid, .published-media-grid, .published-video-grid { grid-template-columns: 1fr; }
    .impact-ribbon article { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
    .impact-ribbon article:last-child { border-bottom: 0; }
    .section-topline, .final-cta-card, .project-detail-cta { align-items: flex-start; flex-direction: column; }
    .home-gallery-mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
    .mosaic-card, .mosaic-card-1 { grid-row: auto; min-height: 300px; }
    .supporter-row { grid-template-columns: 42px 1fr; }
    .supporter-amount { grid-column: 2; text-align: left; }
    .home-progress-list article { grid-template-columns: 50px 16px 1fr; gap: 10px; }
    .final-cta-card { padding: 31px 25px; }
    .final-cta-actions { width: 100%; }
    .final-cta-actions .button { width: 100%; }
    .public-filter-panel, .compact-filter { grid-template-columns: 1fr; }
    .filter-actions { grid-column: auto; flex-wrap: wrap; }
    .filter-actions .button { flex: 1; }
    .project-snapshot-grid article { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
    .project-snapshot-grid article:last-child { border-bottom: 0; }
    .project-gallery-strip { grid-template-columns: 1fr; }
    .currency-total-grid article { grid-template-columns: 58px 1fr; gap: 15px; }
    .currency-code { width: 54px; height: 54px; }
    .public-donation-list article { grid-template-columns: 42px 1fr; }
    .donation-value { grid-column: 2; min-width: 0; text-align: left; }
    .public-progress-timeline > article { grid-template-columns: 55px 18px 1fr; gap: 8px; }
    .timeline-card { padding: 18px; }
    .timeline-card-head { flex-direction: column; }
    .visual-empty-state { align-items: flex-start; flex-direction: column; }
    .empty-visual { width: 100%; }
    .lightbox { padding: 55px 14px; }
    .lightbox-nav { width: 38px; height: 55px; font-size: 2rem; }
    .lightbox-prev { left: 3px; }
    .lightbox-next { right: 3px; }
}

/* Public pages completion and consistency fix */
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.public-overview-strip { border-bottom: 1px solid var(--line); background: #fff; }
.public-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-overview-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-overview-grid article { min-height: 132px; padding: 26px 24px; border-right: 1px solid var(--line); }
.public-overview-grid article:first-child { padding-left: 0; }
.public-overview-grid article:last-child { padding-right: 0; border-right: 0; }
.public-overview-grid span,
.public-overview-grid strong,
.public-overview-grid small { display: block; }
.public-overview-grid span { color: var(--muted); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .055em; }
.public-overview-grid strong { margin-top: 8px; color: var(--brand); font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1; }
.public-overview-grid small { margin-top: 7px; color: #75818b; font-size: .75rem; line-height: 1.45; }

.compact-heading { margin-bottom: 24px; }
.compact-heading h2 { max-width: 760px; }

.about-purpose-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
.about-purpose-grid > div:first-child h2 { max-width: 720px; margin-top: 14px; font-size: clamp(2.15rem, 4vw, 3.45rem); }
.about-purpose-grid > div:first-child p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.about-purpose-grid > div:first-child .button { margin-top: 12px; }
.about-principle-stack { display: grid; gap: 14px; }
.about-principle-stack article { display: grid; grid-template-columns: 52px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.about-principle-stack article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); font-weight: 650; }
.about-principle-stack h3 { margin: 0; font-size: 1.06rem; }
.about-principle-stack p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }

.about-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about-service-grid article { display: grid; grid-template-columns: 54px 1fr; gap: 17px; border: 1px solid var(--line); border-radius: 17px; padding: 21px; background: #fff; }
.about-service-grid article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 650; }
.about-service-grid h3 { margin: 0; font-size: 1rem; }
.about-service-grid p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.about-service-grid article:last-child { grid-column: 1 / -1; }

.public-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.public-related-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-related-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-related-grid a { position: relative; overflow: hidden; min-height: 154px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--ink); background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.public-related-grid a:hover { transform: translateY(-3px); border-color: rgba(23,107,103,.26); box-shadow: var(--shadow); }
.public-related-grid a > span { color: var(--brand); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .065em; }
.public-related-grid a > strong { margin-top: 7px; font-size: 1.04rem; }
.public-related-grid a > small { margin-top: 12px; color: var(--muted); }

.gallery-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gallery-trust-grid h2 { margin-top: 12px; font-size: clamp(2rem, 3.6vw, 3rem); }
.gallery-trust-grid p { color: var(--muted); }
.gallery-trust-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.gallery-trust-steps span { border-radius: 999px; padding: 9px 12px; color: var(--brand); background: var(--brand-soft); font-size: .75rem; font-weight: 650; }
.gallery-trust-steps i { color: var(--muted); font-style: normal; }

@media (max-width: 980px) {
    .public-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-overview-grid article:nth-child(2) { border-right: 0; }
    .public-overview-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
    .public-overview-grid article:nth-child(3) { padding-left: 0; }
    .about-purpose-grid,
    .gallery-trust-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 700px) {
    .public-overview-grid,
    .public-overview-grid-three { grid-template-columns: 1fr; }
    .public-overview-grid article,
    .public-overview-grid article:first-child,
    .public-overview-grid article:last-child,
    .public-overview-grid article:nth-child(3) { min-height: 0; padding: 20px 0; border-right: 0; border-top: 1px solid var(--line); }
    .public-overview-grid article:first-child { border-top: 0; }
    .about-service-grid,
    .public-related-grid,
    .public-related-grid-two,
    .public-related-grid-three { grid-template-columns: 1fr; }
    .about-service-grid article:last-child { grid-column: auto; }
}

.footer-address { display: block; color: rgba(255,255,255,.72); margin: 4px 0; }
.footer-social-links { display: flex; gap: 12px; margin-top: 10px; }

/* Optional management-controlled public notice */
.public-notice-bar {
    color: #fff;
    background: #7f1d1d;
}
.public-notice-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: .88rem;
    text-align: center;
}
.public-notice-bar strong { white-space: nowrap; }
@media (max-width: 620px) {
    .public-notice-bar .container { align-items: flex-start; flex-direction: column; gap: 3px; text-align: left; }
}

/* Volunteer work public connection */
.volunteer-summary-section{padding-top:28px;padding-bottom:0}
.volunteer-stat-grid article{padding:1rem 1.15rem;border-radius:16px}
.volunteer-stat-grid article strong{margin-top:.35rem;font-size:1.9rem}
.volunteer-stat-grid article small{display:none}
.volunteer-filter-bar{grid-template-columns:minmax(0,1.4fr) minmax(240px,.9fr) auto;align-items:end}
.volunteer-filter-bar .filter-field{display:block}
.volunteer-filter-bar .filter-field-wide{min-width:0}
.volunteer-filter-bar .filter-field>span{display:block;margin-bottom:7px;color:#4f5c68;font-size:.75rem;font-weight: 650}
.volunteer-filter-bar .filter-actions{justify-content:flex-start;align-self:end}
.volunteer-filter-bar .button{min-height:48px;padding-inline:20px}
.volunteer-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.volunteer-work-card{background:#fff;border:1px solid rgba(34,34,34,.08);border-radius:20px;padding:1.35rem;box-shadow:0 12px 30px rgba(38,28,22,.06);display:flex;flex-direction:column;gap:.8rem;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.volunteer-work-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(38,28,22,.08);border-color:rgba(23,107,103,.16)}
.volunteer-work-card-head{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.volunteer-work-card-head span{display:inline-flex;align-items:center;min-height:31px;padding:.4rem .7rem;border-radius:999px;background:rgba(23,107,103,.08);font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;color:#176b67;font-weight: 650}
.volunteer-work-card-head strong{font-size:.88rem;color:#35302c}
.volunteer-work-card h3{margin:0;font-size:1.12rem;line-height:1.35}
.volunteer-work-card p{margin:0;color:#6a625c;line-height:1.62;font-size:.95rem}
.volunteer-work-card>small,.volunteer-project-code{color:#176b67;font-weight: 650;font-size:.8rem;letter-spacing:.02em}
.volunteer-work-meta{margin-top:auto;padding-top:.9rem;border-top:1px solid rgba(34,34,34,.08);display:flex;justify-content:space-between;gap:1rem;align-items:center;font-size:.84rem;color:#6a625c}
.volunteer-work-meta a{font-weight: 650;color:#176b67;text-decoration:none}
.volunteer-work-meta a:hover{color:var(--brand-dark)}
.public-visibility-option{align-items:flex-start!important;padding:1rem;border:1px solid rgba(23,107,103,.15);border-radius:14px;background:rgba(23,107,103,.035)}
.public-visibility-option span{display:flex;flex-direction:column;gap:.25rem}
.public-visibility-option small{font-weight: 400;color:#6d6660;line-height:1.45}
@media(max-width:1024px){.volunteer-filter-bar{grid-template-columns:1fr 1fr}.volunteer-filter-bar .filter-actions{grid-column:1/-1}}
@media(max-width:900px){.volunteer-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.volunteer-filter-bar{grid-template-columns:1fr}.volunteer-work-grid{grid-template-columns:1fr}.volunteer-work-meta{align-items:flex-start;flex-direction:column}.volunteer-filter-bar .filter-actions .button{flex:1}}
.public-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.public-stat-grid article{background:#fff;border:1px solid rgba(34,34,34,.09);border-radius:18px;padding:1.15rem;box-shadow:0 10px 26px rgba(38,28,22,.05)}
.public-stat-grid span,.public-stat-grid strong,.public-stat-grid small{display:block}
.public-stat-grid span{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;color:#746c66;font-weight: 650}
.public-stat-grid strong{margin:.45rem 0 .25rem;font-size:1.75rem;color:#176b67}
.public-stat-grid small{color:#746c66}
.project-snapshot-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1050px){.project-snapshot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-snapshot-grid article{border-bottom:1px solid var(--line)}.public-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.public-stat-grid{grid-template-columns:1fr}.project-snapshot-grid{grid-template-columns:1fr}}

/* ========================================================================
   Standard typography system
   Keeps the public website readable, balanced and consistent.
   ======================================================================== */
:root {
    --type-xs: 0.75rem;
    --type-sm: 0.875rem;
    --type-base: 1rem;
    --type-md: 1.0625rem;
    --type-lg: 1.2rem;
    --type-xl: 1.5rem;
    --type-2xl: clamp(1.7rem, 2.8vw, 2.35rem);
    --type-3xl: clamp(2.15rem, 4.4vw, 3.55rem);
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 650;
}

html {
    font-size: 15px;
}

body {
    font-size: var(--type-base);
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

body :where(h1, h2) {
    font-weight: var(--weight-bold) !important;
    letter-spacing: -0.018em;
}

body :where(h3, h4, h5, h6) {
    font-weight: var(--weight-semibold) !important;
    letter-spacing: -0.014em;
}

body :where(strong, b) {
    font-weight: var(--weight-semibold) !important;
}

.brand-mark,
.brand-copy strong,
.footer-brand,
.footer-seal {
    font-weight: var(--weight-bold) !important;
}

.primary-nav a,
.button,
.form-grid label,
.public-filter-panel label > span,
.text-arrow-link,
.feature-card a,
.project-card-kicker,
.project-type,
.card-kicker,
.eyebrow,
.verified-pill,
.timeline-metrics span,
.gallery-trust-steps span,
.volunteer-work-card-head span,
.public-stat-grid span,
.public-overview-grid span {
    font-weight: var(--weight-semibold) !important;
}

.hero h1,
.home-hero h1 {
    font-size: var(--type-3xl) !important;
    line-height: 1.12;
}

.page-hero h1,
.inner-hero h1,
.project-detail-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.35rem) !important;
    line-height: 1.14;
}

.section-heading h2,
.split-heading h2,
.process-intro h2,
.cta-card h2,
.contact-info h2,
.intro-heading h2,
.section-topline h2,
.donor-story h2,
.progress-home-intro h2,
.final-cta-card h2,
.project-story h2,
.about-purpose-grid > div:first-child h2,
.gallery-trust-grid h2 {
    font-size: var(--type-2xl) !important;
    line-height: 1.22;
}

.feature-card h3,
.content-card h2,
.content-card h3,
.project-body h3,
.project-card-body h3,
.progress-update-copy h3,
.timeline-card h2,
.volunteer-work-card h3 {
    font-size: var(--type-lg) !important;
    line-height: 1.35;
}

.hero-copy > p,
.home-hero-copy > p,
.page-hero p,
.inner-hero p,
.project-detail-hero-content > p {
    font-size: var(--type-md) !important;
    font-weight: var(--weight-regular) !important;
    line-height: 1.65;
}

.section-topline p,
.section-heading p,
.about-purpose-grid p,
.gallery-trust-grid p,
.public-empty-state p,
.timeline-card > p,
.volunteer-work-card p,
.media-detail-hero > .container > p:not(.eyebrow),
.public-prose p {
    font-weight: var(--weight-regular) !important;
}

body :where(
    .stat-card strong,
    .public-stat-grid strong,
    .public-overview-grid strong,
    .transparency-stat-grid strong,
    .project-snapshot-grid strong,
    .currency-total-grid strong,
    .timeline-card-head > strong,
    .donor-total-card strong
) {
    font-weight: var(--weight-bold) !important;
}

.stat-card strong,
.public-stat-grid strong,
.transparency-stat-grid strong {
    font-size: 1.75rem !important;
}

.impact-panel-number strong {
    font-size: clamp(2.2rem, 4vw, 2.75rem) !important;
    font-weight: var(--weight-bold) !important;
}

.inner-hero-stat strong {
    font-size: 2.25rem !important;
    font-weight: var(--weight-bold) !important;
}

.button {
    font-size: 0.94rem;
}

@media (max-width: 720px) {
    html {
        font-size: 14.5px;
    }

    .hero h1,
    .home-hero h1,
    .page-hero h1,
    .inner-hero h1,
    .project-detail-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem) !important;
    }

    .section-heading h2,
    .split-heading h2,
    .process-intro h2,
    .cta-card h2,
    .contact-info h2,
    .intro-heading h2,
    .section-topline h2,
    .donor-story h2,
    .progress-home-intro h2,
    .final-cta-card h2,
    .project-story h2,
    .about-purpose-grid > div:first-child h2,
    .gallery-trust-grid h2 {
        font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
    }
}

/* Public contributor QR profile */
.contributor-profile-hero {
    padding: clamp(48px, 7vw, 88px) 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 32%),
        linear-gradient(135deg, #71111d, #9d1d2e 58%, #61101a);
    color: #fff;
}

.contributor-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
}

.contributor-profile-avatar {
    display: grid;
    flex: 0 0 auto;
    width: clamp(128px, 18vw, 190px);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 6px solid rgba(255,255,255,.9);
    border-radius: 30px;
    background: rgba(255,255,255,.15);
    box-shadow: 0 24px 60px rgba(39, 4, 10, .28);
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 760;
}

.contributor-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contributor-profile-heading h1 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
}

.contributor-profile-heading p {
    margin: 6px 0;
    color: rgba(255,255,255,.82);
}

.contributor-code {
    font-weight: 700;
    letter-spacing: .08em;
}

.verified-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-weight: 650;
}

.verified-profile-badge span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #176b67;
}

.contributor-trust-note {
    display: grid;
    grid-template-columns: minmax(180px, .35fr) 1fr;
    gap: 22px;
    margin-bottom: 26px;
    padding: 22px 24px;
    border: 1px solid #ead7da;
    border-radius: 18px;
    background: #fff8f9;
}

.contributor-trust-note p {
    margin: 0;
}

.contributor-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.contributor-stat-grid article {
    display: grid;
    gap: 7px;
    padding: 22px;
    border: 1px solid #ece7e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(49, 24, 29, .06);
}

.contributor-stat-grid span,
.contributor-stat-grid small {
    color: #6d6265;
}

.contributor-stat-grid strong {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.contributor-money-summary {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 28px;
    border-radius: 22px;
    background: #171717;
    color: #fff;
}

.contributor-money-summary h2,
.contributor-money-summary p {
    color: inherit;
}

.contributor-money-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.contributor-money-list article {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
}

.contributor-money-list strong {
    font-size: 24px;
}

.contributor-record-list {
    display: grid;
    gap: 14px;
}

.contributor-record-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid #e8e4e5;
    border-radius: 18px;
    background: #fff;
}

.contributor-record-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: #f8e9ec;
    color: #176b67;
    font-weight: 760;
}

.contributor-record-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.contributor-record-heading h3 {
    margin: 8px 0 0;
}

.contributor-record-heading time,
.record-reference {
    color: #776c6f;
}

.record-reference {
    margin: 5px 0 12px;
    font-size: 13px;
}

.record-amount {
    font-size: 24px;
}

.contributor-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contributor-item-list span {
    padding: 8px 10px;
    border-radius: 10px;
    background: #f7f5f5;
}

.contributor-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contributor-work-card {
    padding: 22px;
    border: 1px solid #e8e4e5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(49, 24, 29, .05);
}

.contributor-work-meta,
.contributor-project-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.contributor-work-card h3 {
    margin: 18px 0 8px;
}

.contributor-project-link {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eee9ea;
}

.contributor-work-description {
    margin: 14px 0 0;
    color: #6d6265;
}

.contributor-profile-footer-section {
    padding-top: 0;
}

.contributor-profile-footer-card {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border-radius: 22px;
    background: #f6eff0;
}

@media (max-width: 900px) {
    .contributor-stat-grid,
    .contributor-work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contributor-money-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contributor-profile-hero-inner,
    .contributor-profile-footer-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .contributor-profile-avatar {
        width: 118px;
        border-radius: 24px;
    }

    .contributor-trust-note,
    .contributor-stat-grid,
    .contributor-work-grid {
        grid-template-columns: 1fr;
    }

    .contributor-record-card {
        grid-template-columns: 1fr;
    }

    .contributor-record-heading {
        flex-direction: column;
        gap: 8px;
    }
}

/* Community directory and QR contribution profiles */
.home-community-section {
    background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.community-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(29, 39, 51, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 107, 103, .28);
    box-shadow: 0 22px 55px rgba(29, 39, 51, .13);
}

.community-card-photo {
    position: relative;
    display: grid;
    height: 260px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #d9eee8, var(--brand) 62%, var(--brand-dark));
    text-decoration: none;
}

.community-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.community-card:hover .community-card-photo img { transform: scale(1.035); }

.community-card-initials {
    display: grid;
    width: 110px;
    height: 110px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 18px 45px rgba(63, 10, 19, .22);
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

.community-card-type {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(22, 29, 36, .72);
    color: #fff;
    font-size: .72rem;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

.community-card-body { padding: 22px; }
.community-card-code {
    margin: 0 0 5px;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.community-card h3 { font-size: 1.3rem; }
.community-card h3 a { text-decoration: none; }
.community-card-location {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .86rem;
}
.community-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.community-card-stats div {
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
}
.community-card-stats strong { display: block; color: var(--brand-dark); font-size: 1.08rem; }
.community-card-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }
.community-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-weight: 650;
    text-decoration: none;
}

.community-directory-section { padding-top: 42px; }
.community-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.community-summary-grid article {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(29, 39, 51, .05);
}
.community-summary-grid span { display: block; color: var(--muted); font-size: .82rem; }
.community-summary-grid strong { display: block; margin-top: 5px; color: var(--brand); font-size: 1.75rem; line-height: 1.1; }
.community-directory-toolbar { margin-top: 28px; }
.community-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.community-search-form input,
.community-search-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px 13px;
    color: var(--ink);
    background: #fff;
}
.community-search-form input:focus,
.community-search-form select:focus {
    outline: 3px solid rgba(23, 107, 103, .12);
    border-color: var(--brand);
}
.community-directory-grid { margin-top: 30px; }
.community-empty-state { grid-column: 1 / -1; }
.community-empty-home { grid-column: 1 / -1; }
.contributor-back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(255,255,255,.86);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .community-search-form { grid-template-columns: 1fr 220px auto; }
    .community-search-form .button-secondary { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 780px) {
    .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-search-form { grid-template-columns: 1fr; }
    .community-search-form .button-secondary { grid-column: auto; justify-self: stretch; }
    .community-card-photo { height: 230px; }
}

@media (max-width: 520px) {
    .community-grid,
    .community-summary-grid { grid-template-columns: 1fr; }
    .community-card-photo { height: 300px; }
}

/* --------------------------------------------------------------------------
   Sumnima Paruhang visual system
   A distinct Himalayan teal, forest and copper identity layered over the
   mature transparency components inherited from the welfare workflow.
   -------------------------------------------------------------------------- */
:root {
    --brand: #176b67;
    --brand-dark: #0b4643;
    --brand-soft: #e7f4f1;
    --gold: #c98237;
    --ink: #173432;
    --muted: #627773;
    --line: #d8e5e1;
    --surface: #fffefb;
    --surface-soft: #f2f7f5;
    --success: #2f7a55;
    --danger: #a7473d;
    --shadow: 0 22px 58px rgba(16, 70, 66, .12);
    --radius: 22px;
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(201,130,55,.07), transparent 23rem),
        var(--surface);
}

.top-strip {
    background: linear-gradient(90deg, #0b4643, #176b67 60%, #9a5e27);
}

.site-header {
    border-bottom-color: rgba(23,107,103,.13);
    box-shadow: 0 8px 30px rgba(11,70,67,.04);
}

.header-main { min-height: 88px; }

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50% 50% 14px 14px;
    background:
        linear-gradient(150deg, rgba(255,255,255,.15), transparent 45%),
        linear-gradient(145deg, var(--brand), var(--brand-dark));
    border: 2px solid rgba(201,130,55,.55);
    box-shadow: 0 12px 30px rgba(11,70,67,.24);
    font-weight: 800;
}

.primary-nav a { border-radius: 999px; }
.primary-nav .nav-cta {
    background: linear-gradient(135deg, var(--gold), #a96227);
    box-shadow: 0 10px 24px rgba(169,98,39,.2);
}
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta.active { background: #92501f; }

.hero {
    padding: 104px 0 94px;
    background:
        radial-gradient(circle at 82% 18%, rgba(201,130,55,.22), transparent 18rem),
        radial-gradient(circle at 12% 92%, rgba(23,107,103,.12), transparent 22rem),
        linear-gradient(125deg, #fbf8f0 0%, #f3faf7 54%, #eaf4f1 100%);
}
.hero::before {
    width: 390px;
    height: 390px;
    border: 54px double rgba(23,107,103,.06);
    left: -235px;
    bottom: -250px;
}
.hero-visual::before {
    border-radius: 55% 45% 35% 65% / 43% 62% 38% 57%;
    background:
        radial-gradient(circle at 72% 22%, rgba(255,220,166,.36), transparent 18%),
        linear-gradient(145deg, #176b67, #0b4643 68%, #8a5225);
    transform: rotate(3deg);
}

.button-primary,
.timeline-grid article > span,
.flow-grid article > span,
.report-icon { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.button-primary { box-shadow: 0 14px 32px rgba(23,107,103,.24); }

.process-section {
    background:
        radial-gradient(circle at 90% 15%, rgba(201,130,55,.18), transparent 18rem),
        linear-gradient(125deg, #0d3533, #17615d 56%, #243f3b);
}
.process-list li > span { background: #f3c67f; }

.page-hero,
.media-detail-hero {
    background:
        radial-gradient(circle at 86% 22%, rgba(238,184,103,.30), transparent 17rem),
        linear-gradient(120deg, #0b4643, #176b67 60%, #75471f);
}

.project-card,
.media-card,
.video-card,
.feature-card,
.content-card,
.stat-card {
    border-color: rgba(23,107,103,.14);
    box-shadow: 0 14px 36px rgba(16,70,66,.07);
}

.placeholder-art {
    background:
        radial-gradient(circle at 75% 25%, rgba(255,255,255,.48), transparent 18%),
        linear-gradient(135deg, #83b8aa, #176b67 56%, #0b4643);
}

.cta-card {
    background:
        radial-gradient(circle at 80% 15%, rgba(246,205,143,.25), transparent 15rem),
        linear-gradient(135deg, #176b67, #0b4643 70%, #75471f);
    box-shadow: 0 24px 58px rgba(11,70,67,.25);
}

.site-footer {
    background:
        radial-gradient(circle at 8% 15%, rgba(201,130,55,.16), transparent 19rem),
        #0d302f;
}

@media (max-width: 760px) {
    .header-main { min-height: 74px; }
    .brand-mark { width: 46px; height: 46px; }
    .hero { padding: 72px 0 64px; }
}

/* Continuous community profile marquee */
.community-marquee {
    width: 100%;
    overflow: hidden;
    padding: 8px 0 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.community-marquee-track {
    display: flex;
    width: max-content;
    animation: community-marquee-scroll 64s linear infinite;
    will-change: transform;
}
.community-marquee-group {
    display: flex;
    gap: 18px;
    padding-right: 18px;
}
.community-card-marquee {
    width: 300px;
    flex: 0 0 300px;
}
.community-card-marquee .community-card-photo { height: 210px; }
.community-marquee:hover .community-marquee-track,
.community-marquee:focus-within .community-marquee-track { animation-play-state: paused; }
.community-marquee-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
}
.community-marquee-actions > span { color: var(--muted); font-size: .82rem; }
@keyframes community-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 720px) {
    .community-marquee { -webkit-mask-image: none; mask-image: none; }
    .community-card-marquee { width: 260px; flex-basis: 260px; }
    .community-card-marquee .community-card-photo { height: 190px; }
    .community-marquee-actions { align-items: flex-start; flex-direction: column; }
    .community-marquee-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .community-marquee { overflow-x: auto; scroll-snap-type: x proximity; }
    .community-marquee-track { animation: none; }
    .community-marquee-group:nth-child(2) { display: none; }
    .community-card-marquee { scroll-snap-align: start; }
}


/* Contributor QR profile spacing and overflow fixes */
.contributor-profile-heading {
    min-width: 0;
    max-width: 820px;
}

.contributor-profile-heading h1,
.contributor-profile-heading p,
.contributor-profile-heading a {
    overflow-wrap: anywhere;
}

.contributor-profile-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin-top: 18px;
}

.contributor-profile-trust span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.94);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
}

.contributor-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.contributor-summary-grid article {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 22px;
    border: 1px solid #ece7e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(49, 24, 29, .06);
}

.contributor-summary-grid span,
.contributor-summary-grid small {
    overflow-wrap: anywhere;
    color: #6d6265;
    line-height: 1.4;
}

.contributor-summary-grid strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.contributor-work-card {
    min-width: 0;
}

.contributor-work-meta,
.contributor-project-link {
    flex-wrap: wrap;
    align-items: flex-start;
}

.contributor-project-link a,
.contributor-project-link strong,
.contributor-work-card h3,
.contributor-work-card p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contributor-project-link a,
.contributor-project-link strong {
    max-width: 70%;
    text-align: right;
}

@media (max-width: 900px) {
    .contributor-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .contributor-profile-hero {
        padding: 38px 0 46px;
    }

    .contributor-profile-heading {
        width: 100%;
    }

    .contributor-profile-trust {
        width: 100%;
    }

    .contributor-profile-trust span {
        width: 100%;
        border-radius: 14px;
    }

    .contributor-summary-grid {
        grid-template-columns: 1fr;
    }

    .contributor-project-link {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .contributor-project-link a,
    .contributor-project-link strong {
        max-width: none;
        text-align: left;
    }
}


/* ========================================================================
   2026-08 public contributor profile contrast fix
   ======================================================================== */
.contributor-profile-hero .contributor-profile-heading,
.contributor-profile-hero .contributor-profile-heading h1,
.contributor-profile-hero .contributor-profile-heading p,
.contributor-profile-hero .contributor-profile-heading .eyebrow,
.contributor-profile-hero .contributor-profile-heading .contributor-code,
.contributor-profile-hero .contributor-profile-heading .contributor-location,
.contributor-profile-hero .contributor-profile-heading .contributor-back-link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.contributor-profile-hero .contributor-profile-heading .contributor-back-link:hover,
.contributor-profile-hero .contributor-profile-heading .contributor-back-link:focus-visible {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration-color: rgba(255, 255, 255, .75);
}
