/*
============================================================
CHAMAL FOUNDATION LIMITED - MAIN WEBSITE STYLES
============================================================

HOW TO EDIT THE WEBSITE COLORS
------------------------------
The most important colors are at the very top inside :root.
Change a value there once and it updates that color throughout
most of the website.

Example:
    --green: #0b6b3a;

Keep a backup before making large changes.
============================================================
*/

/* BRAND COLORS & SHARED SETTINGS */
:root {
    --green: #0b6b3a;
    --green-dark: #07502c;
    --green-soft: #edf8f1;
    --yellow: #ffe613;
    --yellow-deep: #f2bf0a;
    --navy: #2f377f;
    --cyan: #31b9d5;
    --red: #c4232e;
    --orange: #f7941d;
    --ink: #1c2730;
    --muted: #66747d;
    --paper: #ffffff;
    --soft: #f7faf8;
    --line: #e5ece8;
    --shadow: 0 16px 45px rgba(10,48,30,.11);
    --radius: 24px;
}

/* BASIC PAGE RESET & GENERAL ELEMENTS */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial,Helvetica,sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65
}

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

a {
    color: inherit
}

.container {
    width: min(1180px,calc(100% - 36px));
    margin: auto
}

/* HEADER & NAVIGATION */
.top-strip {
    height: 7px;
    background: linear-gradient(90deg,var(--cyan) 0 20%,var(--navy) 20% 40%,var(--red) 40% 60%,var(--yellow) 60% 80%,var(--green) 80% 100%)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06)
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 250px
}

.brand img {
    width: 74px;
    height: 62px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px
}

.brand-copy strong {
    display: block;
    color: var(--green);
    font-size: 18px;
    line-height: 1.05
}

.brand-copy span {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--navy)
}

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

.nav-links a {
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #304039
}

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

.nav-links .donate-nav {
    background: var(--yellow);
    color: #16351f;
    padding-inline: 18px
}

.nav-links .donate-nav:hover {
    background: var(--yellow-deep);
    color: #16351f
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--green);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer
}

/* HOME PAGE HERO / LARGE TOP BANNER */
.hero {
    position: relative;
    min-height: 650px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #173c27
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(7,56,31,.92) 0%,rgba(7,56,31,.70) 44%,rgba(7,56,31,.18) 75%,rgba(7,56,31,.08) 100%);
    z-index: 1
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    padding: 90px 0
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px
}

.hero h1 {
    font-size: clamp(42px,6vw,76px);
    line-height: 1.02;
    margin: 22px 0 18px;
    letter-spacing: -2.3px
}

.hero h1 em {
    font-style: normal;
    color: var(--yellow)
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    color: #f1f7f3
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: .2s ease;
    cursor: pointer;
    font-size: 15px
}

.btn-primary {
    background: var(--yellow);
    color: #17371e
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffef5b
}

.btn-outline {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,.08)
}

.btn-outline:hover {
    background: #fff;
    color: var(--green)
}

.btn-green {
    background: var(--green);
    color: #fff
}

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

.btn-navy {
    background: var(--navy);
    color: #fff
}

.btn-light {
    background: #fff;
    color: var(--green);
    box-shadow: 0 10px 30px rgba(0,0,0,.08)
}

.hero-card {
    position: absolute;
    z-index: 3;
    right: max(24px,calc((100vw - 1180px)/2));
    bottom: 35px;
    background: #fff;
    color: var(--ink);
    width: min(400px,36vw);
    padding: 20px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--yellow)
}

.hero-card strong {
    display: block;
    color: var(--green);
    font-size: 18px
}

.hero-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 5px 0 0
}

/* GENERAL PAGE SECTIONS */
.section {
    padding: 86px 0
}

.section-soft {
    background: linear-gradient(135deg,#f6fbf7,#fffdf1)
}

.section-dark {
    background: linear-gradient(135deg,var(--green-dark),#0a3e27);
    color: #fff
}

.section-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center
}

.section-header.left {
    margin-left: 0;
    text-align: left
}

.kicker {
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px
}

.section-dark .kicker {
    color: var(--yellow)
}

.section h2,.page-hero h1 {
    font-size: clamp(34px,4vw,52px);
    line-height: 1.08;
    margin: 10px 0 14px;
    letter-spacing: -1.3px
}

.section-header p {
    color: var(--muted);
    font-size: 18px
}

.section-dark .section-header p {
    color: #dcece2
}

/* HOME PAGE STORY / INTRODUCTION */
.story-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 42px;
    align-items: center
}

.story-image {
    position: relative
}

.story-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.story-badge {
    position: absolute;
    left: -18px;
    bottom: 30px;
    background: var(--yellow);
    padding: 18px;
    border-radius: 18px;
    max-width: 230px;
    font-weight: 900;
    color: #17371e;
    box-shadow: var(--shadow)
}

.story-copy p {
    color: #59675f;
    font-size: 17px
}

.mission-box {
    border-left: 5px solid var(--yellow);
    background: var(--green-soft);
    padding: 18px 20px;
    border-radius: 0 16px 16px 0;
    margin: 24px 0
}

.mission-box strong {
    color: var(--green);
    display: block;
    margin-bottom: 5px
}

.mission-box p {
    margin: 0;
    color: #34453b
}

/* PROGRAM / SUPPORT CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px
}

.program-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(17,64,36,.08);
    border-top: 5px solid var(--green);
    position: relative;
    overflow: hidden
}

.program-card:nth-child(2) {
    border-top-color: var(--yellow-deep)
}

.program-card:nth-child(3) {
    border-top-color: var(--cyan)
}

.program-card:nth-child(4) {
    border-top-color: var(--red)
}

.program-card:nth-child(5) {
    border-top-color: var(--navy)
}

.program-card:nth-child(6) {
    border-top-color: var(--orange)
}

.icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green);
    font-size: 26px;
    font-weight: 900
}

.program-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
    color: #183928
}

.program-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

/* IMPACT / PRINCIPLES BAND */
.impact-band {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px
}

.impact-item {
    text-align: center;
    padding: 23px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12)
}

.impact-item strong {
    font-size: 30px;
    color: var(--yellow);
    display: block
}

.impact-item span {
    font-size: 14px;
    color: #e4efe8
}

.impact-note {
    margin-top: 24px;
    text-align: center;
    color: #cfe1d6;
    font-size: 14px
}

/* HOME PAGE PHOTO GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    grid-auto-rows: 180px;
    gap: 14px
}

.gallery-grid a {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: #ddd
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s
}

.gallery-grid a:hover img {
    transform: scale(1.045)
}

.gallery-grid a:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2
}

.gallery-grid a:nth-child(2) {
    grid-column: span 5;
    grid-row: span 2
}

.gallery-grid a:nth-child(3),.gallery-grid a:nth-child(4),.gallery-grid a:nth-child(5) {
    grid-column: span 4;
    grid-row: span 2
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 20px;
    color: #fff;
    background: linear-gradient(transparent,rgba(0,0,0,.74));
    font-weight: 800
}

/* CALL-TO-ACTION BOXES */
.cta {
    background: linear-gradient(120deg,var(--navy),#1f265f 60%,var(--green-dark));
    border-radius: 30px;
    padding: 48px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden
}

.cta::after {
    content: "";
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--yellow);
    position: absolute;
    right: -130px;
    top: -130px;
    opacity: .9
}

.cta h2 {
    margin: 0 0 12px;
    font-size: 40px
}

.cta p {
    color: #e1e5f2;
    margin: 0;
    max-width: 700px
}

.cta-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: relative;
    z-index: 1
}

/* INNER PAGE TOP BANNERS */
.page-hero {
    padding: 88px 0 62px;
    background: linear-gradient(135deg,#edf8f1,#fffbe1);
    border-bottom: 1px solid var(--line)
}

.page-hero .breadcrumbs {
    color: var(--green);
    font-weight: 800;
    font-size: 14px
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center
}

.split img {
    border-radius: var(--radius);
    height: 500px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow)
}

/* VALUES & INFORMATION CARDS */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

.value-card {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 9px 30px rgba(11,79,44,.06)
}

.value-card strong {
    display: block;
    color: var(--green);
    font-size: 19px;
    margin-bottom: 6px
}

.value-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.timeline {
    display: grid;
    gap: 16px
}

.timeline-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    align-items: start
}

.timeline-dot {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: #24442d;
    font-weight: 900
}

.timeline-content {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line)
}

.timeline-content h3 {
    margin: 0 0 6px;
    color: var(--green)
}

.timeline-content p {
    margin: 0;
    color: var(--muted)
}

/* DONATE / SUPPORT PAGE */
.donate-panel {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 26px
}

.support-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.support-card h3 {
    margin-top: 0
}

.support-list {
    display: grid;
    gap: 12px;
    margin: 20px 0
}

.support-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 14px;
    background: var(--soft)
}

.support-item b {
    color: var(--green)
}

.notice {
    background: #fff8cc;
    border-left: 5px solid var(--yellow-deep);
    padding: 18px;
    border-radius: 0 15px 15px 0;
    color: #554813
}

.notice strong {
    display: block;
    margin-bottom: 4px
}

.future-payments {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-top: 18px
}

.payment-placeholder {
    border: 2px dashed #ccd8d0;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    background: #fbfdfc
}

.payment-placeholder strong {
    display: block;
    color: #32483a
}

/* CONTACT PAGE & WHATSAPP FORM */
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 26px
}

.contact-card {
    border-radius: 24px;
    padding: 28px;
    background: var(--green-dark);
    color: #fff
}

.contact-card h3 {
    margin-top: 0
}

.contact-line {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.13)
}

.contact-line small {
    display: block;
    color: #b9d5c4;
    text-transform: uppercase;
    letter-spacing: 1px
}

.contact-line a {
    text-decoration: none;
    color: #fff;
    font-weight: 800
}

.form-card {
    padding: 30px;
    background: #fff;
    border-radius: 24px;
    border-top: 5px solid var(--yellow);
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.field {
    display: grid;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-weight: 800;
    color: #34463a
}

.field input,.field select,.field textarea {
    width: 100%;
    border: 1px solid #cedbd3;
    border-radius: 13px;
    padding: 13px 14px;
    font: inherit;
    background: #fff
}

.field textarea {
    min-height: 140px;
    resize: vertical
}

.field input:focus,.field textarea:focus,.field select:focus {
    outline: 3px solid rgba(49,185,213,.17);
    border-color: var(--cyan)
}

/* WEBSITE FOOTER */
.site-footer {
    background: #0b2518;
    color: #dbe9df;
    padding: 58px 0 24px;
    margin-top: 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr .8fr 1fr;
    gap: 30px
}

.footer-brand img {
    width: 150px;
    background: #fff;
    border-radius: 16px;
    padding: 8px
}

.footer-brand p {
    color: #aac2b2;
    max-width: 390px
}

.footer-col h4 {
    color: #fff;
    margin-top: 0
}

.footer-col a {
    display: block;
    color: #bdd1c3;
    text-decoration: none;
    padding: 5px 0
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #94af9d;
    font-size: 13px
}

.safeguarding-note {
    font-size: 12px;
    color: #97b0a0;
    max-width: 650px
}

/* GALLERY IMAGE POP-UP / LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 100;
    place-items: center;
    padding: 30px
}

.lightbox.open {
    display: grid
}

.lightbox img {
    max-width: min(1100px,95vw);
    max-height: 86vh;
    border-radius: 15px
}

.lightbox button {
    position: absolute;
    top: 20px;
    right: 24px;
    border: 0;
    background: #fff;
    color: #222;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer
}

/* TABLET & SMALL LAPTOP RESPONSIVE RULES */
@media(max-width:1000px) {
    .nav-links {
        display: none;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 88px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 14px;
        border-radius: 18px;
        box-shadow: var(--shadow)
    }

    .nav-links.open {
        display: flex
    }

    .menu-btn {
        display: block
    }

    .hero-card {
        display: none
    }

    .story-grid,.split,.donate-panel,.contact-grid,.cta {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: repeat(2,1fr)
    }

    .values-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .impact-band {
        grid-template-columns: repeat(2,1fr)
    }

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

    .cta-actions {
        justify-content: flex-start
    }

}

/* MOBILE PHONE RESPONSIVE RULES */
@media(max-width:680px) {
    .container {
        width: min(100% - 24px,1180px)
    }

    .navbar {
        min-height: 76px
    }

    .brand {
        min-width: 0
    }

    .brand img {
        width: 58px;
        height: 50px
    }

    .brand-copy strong {
        font-size: 15px
    }

    .brand-copy span {
        font-size: 10px;
        letter-spacing: 2px
    }

    .hero {
        min-height: 610px
    }

    .hero-content {
        padding: 70px 0
    }

    .hero h1 {
        letter-spacing: -1px
    }

    .hero p {
        font-size: 17px
    }

    .section {
        padding: 64px 0
    }

    .cards,.values-grid,.impact-band,.footer-grid,.form-grid,.future-payments {
        grid-template-columns: 1fr
    }

    .story-image img,.split img {
        height: 380px
    }

    .story-badge {
        left: 12px;
        right: 12px;
        bottom: 14px;
        max-width: none
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px
    }

    .gallery-grid a,.gallery-grid a:nth-child(n) {
        grid-column: 1;
        grid-row: auto
    }

    .cta {
        padding: 30px 24px
    }

    .cta h2 {
        font-size: 32px
    }

    .footer-bottom {
        display: block
    }

    .timeline-item {
        grid-template-columns: 56px 1fr
    }

    .timeline-dot {
        width: 50px;
        height: 50px
    }

    .page-hero {
        padding: 62px 0 45px
    }

}

/* FULL GALLERY PAGE */
.gallery-all {
    columns: 3 280px;
    column-gap: 16px
}

.gallery-tile {
    display: block;
    position: relative;
    margin: 0 0 16px;
    break-inside: avoid;
    border-radius: 18px;
    overflow: hidden;
    background: #eee
}

.gallery-tile img {
    width: 100%;
    height: auto
}

.gallery-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 13px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(transparent,rgba(0,0,0,.75))
}

/* Detailed content additions */ /* DETAILED CONTENT & SOCIAL MEDIA CARDS */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px
}

.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(11,79,44,.06)
}

.info-card.highlight {
    border-top: 5px solid var(--yellow-deep);
    background: linear-gradient(135deg,#fffdf0,#fff)
}

.info-card h3 {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 22px
}

.info-card p {
    color: var(--muted);
    margin: 0 0 12px
}

.info-card p:last-child {
    margin-bottom: 0
}

.feature-list {
    padding-left: 20px;
    color: var(--muted);
    margin: 14px 0 0
}

.feature-list li {
    margin: 9px 0;
    padding-left: 3px
}

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

.social-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: center;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(10,48,30,.07);
    position: relative;
    transition: .2s ease
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow)
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 900;
    background: var(--green-soft);
    color: var(--green)
}

.social-card.youtube .social-icon {
    background: #fff0f1;
    color: var(--red)
}

.social-card.instagram .social-icon {
    background: #f5f0ff;
    color: var(--navy)
}

.social-card strong {
    display: block;
    font-size: 19px;
    color: #20332a
}

.social-card small {
    display: block;
    color: var(--muted);
    margin-top: 2px
}

.social-status {
    grid-column: 2;
    color: #8a6d00;
    font-size: 12px;
    font-weight: 800
}

.social-card.ready .social-status {
    color: var(--green)
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px
}

.footer-social a {
    display: inline-block!important;
    padding: 5px 9px!important;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px
}

@media(max-width:800px) {
    .detail-grid,.social-grid {
        grid-template-columns: 1fr
    }

}


/* ============================================================
   RECENT OUTREACH PHOTOS
   Used on the Home page and other story sections.
   ============================================================ */
.recent-photo-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 18px;
}

.recent-photo {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #eef3ea;
    box-shadow: var(--shadow-sm);
}

.recent-photo.large {
    min-height: 420px;
}

.recent-photo img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.recent-photo span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--navy);
    font-size: .86rem;
    font-weight: 800;
}

/* ============================================================
   PHOTO STORY STRIPS
   Three simple photographs with captions.
   ============================================================ */
.photo-story-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-story-strip figure {
    margin: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.photo-story-strip img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.photo-story-strip figcaption {
    padding: 14px 16px 16px;
    color: var(--navy);
    font-weight: 800;
}

/* ============================================================
   SIDE-BY-SIDE MEDIA BLOCKS
   Used on Programs, Donate and Contact pages.
   ============================================================ */
.media-split {
    align-items: center;
}

.media-split > img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stacked-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stacked-media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.compact-media-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* ============================================================
   VIDEO CARDS & VIDEO GALLERY
   preload="none" keeps 26 clips from downloading on page load.
   ============================================================ */
.featured-video-grid,
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.video-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 52, 42, .08);
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0f17;
    object-fit: contain;
}

.video-card-copy {
    padding: 16px 17px 18px;
}

.video-card-copy h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 1.02rem;
}

.video-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.55;
}

.video-card.featured .video-card-copy {
    padding: 18px 20px 21px;
}

@media(max-width: 1000px) {
    .recent-photo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .recent-photo.large {
        grid-column: 1 / -1;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media(max-width: 680px) {
    .recent-photo-grid,
    .photo-story-strip,
    .featured-video-grid,
    .video-gallery-grid,
    .stacked-media {
        grid-template-columns: 1fr;
    }

    .recent-photo,
    .recent-photo.large {
        min-height: 320px;
    }

    .photo-story-strip img,
    .stacked-media img {
        height: 300px;
    }
}


/* Quick links at the top of the long media gallery. */
.media-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.media-jump-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    border: 1px solid rgba(15, 52, 42, .12);
    box-shadow: var(--shadow-sm);
}

.media-jump-nav a:hover {
    transform: translateY(-1px);
    border-color: var(--green);
}
