/* =====================================================================
   Paarvedan Foundation — Public Site
   Palette shifted toward the greens typically associated with NGO /
   nonprofit branding (growth, hope, sustainability), while keeping the
   client's navy + orange + gold anchors:
     #ee9a40 orange  #ecb963 gold  #0e0e4e navy  #1f7a54 green
   Navy anchors headings/brand/footer, green carries links and body
   accents, orange is reserved for the primary "Donate" call to action
   so it stays the one thing that visually pops, gold trims small
   decorative accents.
   ===================================================================== */

/* No zoom on mobile. The viewport meta stops pinch/double-tap; these stop the
   two zooms it can't: iOS auto-zooming when a sub-16px field takes focus, and
   WebKit inflating text on rotate. Mirrors the block in admin-tailwind.css. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body { touch-action: manipulation; }

@media (max-width: 767px) {
    input, select, textarea,
    input[class], select[class], textarea[class] { font-size: 16px; }
}

:root {
    --pf-brown: #0e0e4e;
    /* headings, brand, footer bg, date badges */
    --pf-brown-soft: #5b6b63;
    /* muted/secondary text */
    --pf-green: #1f7a54;
    /* links, form focus, interactive accents */
    --pf-green-dark: #145c40;
    /* link hover, darker accent */
    --pf-gold: #ecb963;
    /* small decorative accents */
    --pf-rose: #ee9a40;
    /* primary CTA (Donate button, brand tag) */
    --pf-blue: #8fbfa0;
    /* soft sage, minor/secondary accent */
    --pf-cream: #FBF9F5;
    --pf-cream-2: #EDF4EF;
    --pf-ink: #1c2420;
    --pf-line: #E1E7E2;
    --radius: 6px;
    --shadow: 0 10px 30px -12px rgba(14, 14, 78, 0.18);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--pf-ink);
    background: var(--pf-cream);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.display {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--pf-brown);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

a {
    color: var(--pf-green-dark);
    text-decoration: none;
}

a:hover {
    color: var(--pf-rose);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pf-green-dark);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--pf-gold);
    display: inline-block;
}

/* ---------------- Header ---------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--pf-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 52px;
    width: auto;
}

.brand-name {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--pf-brown);
}

.brand-tag {
    font-size: 0.7rem;
    color: var(--pf-green-dark);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: var(--pf-brown-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--pf-green-dark);
}

.nav-toggle {
    display: none;
    background: var(--pf-brown);
    border: none;
    width: 38px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 6px 16px -6px rgba(14, 14, 78, .55);
    transition: background .15s ease, transform .15s ease;
}

.nav-toggle:hover {
    background: var(--pf-green-dark);
    transform: translateY(-1px);
}

.nav-toggle:active {
    transform: translateY(0);
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.is-open {
    background: var(--pf-rose);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-donate {
    background: var(--pf-rose);
    color: var(--pf-brown);
}

.btn-donate:hover {
    color: var(--pf-brown);
    box-shadow: 0 8px 22px -8px rgba(238, 154, 64, .55);
}

.btn-outline {
    background: transparent;
    border-color: var(--pf-brown);
    color: var(--pf-brown);
}

.btn-outline:hover {
    border-color: var(--pf-green-dark);
    color: var(--pf-green-dark);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ---------------- Inner-page banner (consistent across all non-home pages) ---------------- */
.page-banner {
    background: linear-gradient(120deg, var(--pf-brown), var(--pf-green-dark));
    padding: 52px 0;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.page-banner-lead {
    color: rgba(255, 255, 255, .85);
    margin: 0 0 14px;
    font-size: 1rem;
    display: none;
}

.banner-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.breadcrumb-trail {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb-trail a {
    color: var(--pf-blue);
}

.breadcrumb-trail a:hover {
    color: var(--pf-gold);
}

.breadcrumb-trail .sep {
    color: rgba(255, 255, 255, .4);
}

.breadcrumb-trail .current {
    color: #fff;
}

/* ---------------- Hero ---------------- */
.hero {
    padding: 72px 0 88px;
    background-color: var(--pf-cream);
    background-image:
        radial-gradient(circle at 12% 20%, rgba(31, 122, 84, .10), transparent 40%),
        radial-gradient(circle at 88% 15%, rgba(227, 167, 62, .14), transparent 40%);
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 14px 0 18px;
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--pf-brown-soft);
    max-width: 46ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3.1;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo-badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 12px 28px -10px rgba(14, 14, 78, .45);
}

.hero-photo-badge img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 0;
}

.icon-box {
    text-align: left;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #fff;
}

.icon-circle-rose {
    background: var(--pf-rose);
}

.icon-circle-green {
    background: var(--pf-green);
}

.icon-circle-navy {
    background: var(--pf-brown);
}

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

.card-media-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.card-media-body {
    padding: 22px;
}

.card-media-body h3 {
    margin: 10px 0 8px;
}

/* ---------------- Sections ---------------- */
section {
    padding: 72px 0;
}

.section-alt {
    background: var(--pf-cream-2);
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head p {
    color: var(--pf-brown-soft);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

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

.card h3 {
    font-size: 1.15rem;
    margin: 10px 0 8px;
}

.card .tag {
    display: inline-block;
    width: fit-content;
    background: var(--pf-cream-2);
    color: var(--pf-green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.impact-stats .num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 2.4rem;
    color: var(--pf-green-dark);
    font-weight: 700;
}

.impact-stats .label {
    color: var(--pf-brown-soft);
    font-size: 0.9rem;
}

.year-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.year-tab {
    background: #fff;
    border: 1.5px solid var(--pf-line);
    color: var(--pf-brown-soft);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.year-tab:hover {
    border-color: var(--pf-green);
    color: var(--pf-green-dark);
}

.year-tab.active {
    background: var(--pf-green);
    border-color: var(--pf-green);
    color: #fff;
}

.year-tab-content {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--pf-line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    min-height: 180px;
}

.year-tab-content .timeline-year {
    display: inline-block;
    font-weight: 700;
    color: var(--pf-rose);
    font-size: 0.85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.year-tab-content h3 {
    margin: 0 0 10px;
}

.year-tab-content p {
    margin: 0;
    color: var(--pf-brown-soft);
}

.event-card,
.job-card {
    display: flex;
    gap: 18px;
}

.event-card-v2 {
    display: block;
}

.event-thumb {
    position: relative;
}

.event-thumb .event-date-badge {
    position: absolute;
    left: 14px;
    bottom: -18px;
    box-shadow: 0 8px 18px -6px rgba(14, 14, 78, .4);
}

.event-card-v2 .card-media-body {
    padding-top: 30px;
}

.event-date-badge {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 6px;
    background: var(--pf-brown);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.event-date-badge .d {
    font-size: 1.4rem;
    line-height: 1;
}

.event-date-badge .m {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cause-progress-bar {
    background: var(--pf-cream-2);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.cause-progress-fill {
    background: var(--pf-rose);
    height: 100%;
    border-radius: 6px;
}

.cause-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--pf-brown-soft);
    margin-top: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

.moments-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.moments-track::-webkit-scrollbar {
    display: none;
}

.moments-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3.2;
}

.moments-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.moments-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(to top, rgba(14, 14, 78, .82), transparent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .moments-card {
        flex-basis: 220px;
    }
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--pf-brown);
}

form .field {
    margin-bottom: 18px;
}

form input[type=text],
form input[type=email],
form input[type=tel],
form input[type=number],
form input[type=date],
form select,
form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1.5px solid var(--pf-line);
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--pf-ink);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: 2px solid var(--pf-green);
    outline-offset: 1px;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #E3F1E8;
    color: var(--pf-green-dark);
    border: 1px solid #C9E4D3;
}

.alert-error {
    background: #FBE7EC;
    color: #9C2C4F;
    border: 1px solid #F2C2D2;
}

.donate-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.donate-amounts button {
    padding: 10px 18px;
    border-radius: 6px;
    border: 2px solid var(--pf-line);
    background: #fff;
    font-weight: 700;
    color: var(--pf-brown);
    cursor: pointer;
}

.donate-amounts button.active {
    border-color: var(--pf-green);
    background: var(--pf-green);
    color: #fff;
}

footer.site-footer {
    background: var(--pf-brown);
    color: #EFE7D8;
    padding: 56px 0 24px;
}

footer.site-footer h4 {
    color: #fff;
    font-family: 'Poppins', system-ui, sans-serif;
    margin-bottom: 14px;
}

footer.site-footer a {
    color: #C9C2E0;
}

footer.site-footer a:hover {
    color: var(--pf-gold);
}

.footer-logo {
    background: #fff;
    display: inline-block;
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.footer-logo img {
    display: block;
    height: 40px;
    width: auto;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #A79FC4;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .impact-stats,
    .gallery-grid,
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .main-nav {
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--pf-cream);
        flex-direction: column;
        padding: 30px 24px;
        display: none;
        gap: 20px;
        align-items: flex-start;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .grid-3,
    .grid-2,
    .impact-stats,
    .gallery-grid,
    .footer-grid,
    .stat-strip {
        grid-template-columns: 1fr;
    }
}

/* Floating tap-to-call button — mobile only, where a thumb-reachable call
   action matters most; desktop visitors have the header/contact page. */
.mobile-call-btn {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--pf-rose);
    color: var(--pf-brown);
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px -6px rgba(238, 154, 64, .6);
    text-decoration: none;
}

/* ---------------- Volunteer Portal ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}

.badge-green {
    background: var(--pf-cream-2);
    color: var(--pf-green-dark);
}

.badge-gray {
    background: #F0F1EF;
    color: var(--pf-brown-soft);
}

.portal-topbar-greeting {
    color: var(--pf-brown-soft);
    font-weight: 600;
    font-size: 0.92rem;
    margin-right: 6px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.stat-strip .card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.stat-strip .num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1.7rem;
    color: var(--pf-brown);
    font-weight: 700;
    line-height: 1.1;
}

.stat-strip .stat-label {
    color: var(--pf-brown-soft);
    font-size: 0.88rem;
    margin-top: 2px;
}

.portal-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.portal-section-head i {
    color: var(--pf-green-dark);
    font-size: 1.1rem;
}

.portal-section-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px dashed var(--pf-line);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--pf-brown-soft);
}

.empty-state i {
    font-size: 1.3rem;
    color: var(--pf-blue);
    flex-shrink: 0;
}

.mobile-call-btn:hover {
    color: var(--pf-brown);
}

@media (max-width: 640px) {
    .mobile-call-btn {
        display: flex;
    }
}

/* ---------------- Donate page ---------------- */
.donate-hero {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(120deg, rgba(14, 14, 78, .92), rgba(20, 92, 64, .88)), url('https://placehold.co/1600x900/0e0e4e/0e0e4e?text=+') center/cover;
    overflow: hidden;
}

.donate-hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.donate-hero .eyebrow {
    color: var(--pf-gold);
}

.donate-hero .eyebrow::before {
    background: var(--pf-rose);
}

.donate-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin: 14px 0 18px;
}

.donate-hero p.lead {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
    max-width: 48ch;
    margin-bottom: 30px;
}

.donate-hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.donate-hero-stats .stat-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 16px 26px;
    backdrop-filter: blur(2px);
}

.donate-hero-stats .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pf-rose);
}

.donate-hero-stats .label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
}

.donate-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}

.donate-card h3 {
    margin: 0 0 20px;
}

.freq-toggle {
    display: flex;
    background: var(--pf-cream-2);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 22px;
}

.freq-toggle button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pf-brown-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.freq-toggle button.active {
    background: var(--pf-brown);
    color: #fff;
}

.amount-slider-wrap {
    margin-bottom: 18px;
}

.amount-slider-wrap input[type=range] {
    width: 100%;
    accent-color: var(--pf-rose);
    height: 4px;
    cursor: pointer;
}

.amount-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--pf-brown-soft);
    margin-top: 4px;
}

.amount-input-prefix {
    position: relative;
}

.amount-input-prefix span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-brown-soft);
    font-weight: 600;
}

.amount-input-prefix input {
    padding-left: 30px !important;
}

.gift-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--pf-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pf-brown);
    transition: border-color .15s ease, color .15s ease;
}

.carousel-nav-btn:hover {
    border-color: var(--pf-green);
    color: var(--pf-green-dark);
}

.gift-cards-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.gift-card {
    border-bottom: 3px solid var(--pf-rose);
}

.gift-card .amount {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--pf-brown);
    margin: 8px 0 4px;
}

.gift-card .title {
    font-weight: 600;
    margin-bottom: 8px;
}

.gift-card .desc {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--pf-rose);
}

.bank-transfer-panel {
    background: var(--pf-cream-2);
    border-radius: var(--radius);
    padding: 40px;
}

.bank-transfer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.qr-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    text-align: center;
}

.qr-box img {
    border-radius: 4px;
}

.qr-box .qr-caption {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pf-brown-soft);
    margin-bottom: 12px;
}

.bank-detail-row {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bank-detail-row .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pf-brown-soft);
    margin-bottom: 4px;
}

.bank-detail-row .value {
    font-weight: 600;
    color: var(--pf-brown);
    font-size: 1.02rem;
}

.copy-btn {
    border: none;
    background: none;
    color: var(--pf-green-dark);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.copy-btn:hover {
    color: var(--pf-rose);
}

.bank-note {
    display: flex;
    gap: 10px;
    background: #FCEFE0;
    border: 1px solid #F5DCB4;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.86rem;
    color: #7a5b23;
    margin-top: 6px;
}

.bank-note i {
    flex-shrink: 0;
    margin-top: 2px;
}

.tax-benefits-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.checklist-item {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}

.checklist-item .check-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pf-cream-2);
    color: var(--pf-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.checklist-item h4 {
    margin: 0 0 4px;
    font-size: 1.02rem;
}

.checklist-item p {
    margin: 0;
    color: var(--pf-brown-soft);
    font-size: 0.9rem;
}

.ngo-card {
    position: relative;
    text-align: center;
    padding: 36px 30px;
}

.ngo-badge {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--pf-rose);
    color: var(--pf-brown);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -8px rgba(238, 154, 64, .6);
}

.ngo-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.ngo-card h3 {
    margin: 0 0 10px;
    color: var(--pf-rose);
}

.ngo-card p {
    color: var(--pf-brown-soft);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .donate-hero .container {
        grid-template-columns: 1fr;
    }

    .gift-cards-track {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }

    .bank-transfer-grid,
    .tax-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .gift-cards-track {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }

    .bank-transfer-panel {
        padding: 24px;
    }
}

/* ---------------- Careers page ---------------- */
.careers-empty-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 52px 36px;
}

.careers-empty-card .icon-circle {
    margin: 0 auto 22px;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
}

.careers-empty-card p {
    max-width: 46ch;
    margin: 10px auto 28px;
    color: var(--pf-brown-soft);
}

.careers-empty-card .hero-actions {
    justify-content: center;
}

.volunteer-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.volunteer-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3.6;
}

.volunteer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-stat-badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: 0 12px 28px -10px rgba(14, 14, 78, .45);
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-stat-badge .icon-circle {
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-stat-badge .num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    color: var(--pf-brown);
    line-height: 1.1;
}

.floating-stat-badge .label {
    font-size: 0.78rem;
    color: var(--pf-brown-soft);
}

.volunteer-highlight-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 30px;
}

.volunteer-highlight-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.volunteer-highlight-list .icon-circle {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
}

.volunteer-highlight-list h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
}

.volunteer-highlight-list p {
    color: var(--pf-brown-soft);
    margin: 0;
}

.cta-banner-dark {
    background: linear-gradient(120deg, var(--pf-brown), var(--pf-green-dark));
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}

.cta-banner-dark h2 {
    color: #fff;
    margin-bottom: 10px;
}

.cta-banner-dark p {
    color: rgba(255, 255, 255, .82);
    max-width: 52ch;
    margin: 0 auto 26px;
}

.cta-banner-dark form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

.cta-banner-dark form input[type=email] {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
}

.cta-banner-dark form input[type=email]::placeholder {
    color: rgba(255, 255, 255, .65);
}

@media (max-width: 900px) {
    .volunteer-block {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Gallery page ---------------- */
.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-filter-pill {
    background: #fff;
    border: 1.5px solid var(--pf-line);
    color: var(--pf-brown-soft);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.gallery-filter-pill:hover {
    border-color: var(--pf-rose);
    color: var(--pf-brown);
}

.gallery-filter-pill.active {
    background: var(--pf-rose);
    border-color: var(--pf-rose);
    color: #fff;
}

.gallery-search {
    position: relative;
    min-width: 220px;
}

.gallery-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-brown-soft);
}

.gallery-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 999px;
    border: 1.5px solid var(--pf-line);
    background: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--pf-ink);
}

.gallery-search input:focus {
    outline: 2px solid var(--pf-green);
    outline-offset: 1px;
}

.gallery-grid figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-grid figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 10px;
    background: linear-gradient(to top, rgba(14, 14, 78, .82), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.gallery-grid figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-empty-note {
    text-align: center;
    color: var(--pf-brown-soft);
    padding: 30px 0;
}

.gallery-cta-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.gallery-cta-card p {
    color: var(--pf-brown-soft);
    max-width: 50ch;
    margin: 10px 0 0;
}

.gallery-cta-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-cta-form input[type=email] {
    border-radius: 999px;
    background: var(--pf-cream-2);
    border: 1.5px solid var(--pf-line);
    padding: 12px 20px;
    min-width: 240px;
}

.btn-navy {
    background: var(--pf-brown);
    color: #fff;
    border-radius: 999px;
}

.btn-navy:hover {
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(14, 14, 78, .55);
}

@media (max-width: 720px) {
    .gallery-cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .gallery-cta-form {
        justify-content: center;
    }
}

/* =====================================================================
   Gallery Lightbox
   ===================================================================== */
.gallery-grid img,
.gallery-item img {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 20, 0.92);
    padding: 24px;
    opacity: 0;
    transition: opacity .2s ease;
}

.lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lightbox-figure {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    background: #111;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 14px;
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 70ch;
}

.lightbox-counter {
    color: #fff;
    opacity: 0.6;
    font-size: 0.8rem;
    margin-top: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: background .15s ease, transform .15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 22px;
    right: 22px;
}

.lightbox-prev {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.06);
}

@media (max-width: 640px) {

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}
/* =====================================================================
   Public certificate verification page (the QR target).
   ===================================================================== */

.verify-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid var(--pf-border, #e4e7ec);
    border-radius: 6px;
    text-align: center;
}

.verify-stamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(31, 122, 84, 0.1);
    color: var(--pf-green, #1f7a54);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.verify-stamp--warn {
    background: rgba(238, 154, 64, 0.14);
    color: #b26a1d;
}

.verify-eyebrow {
    margin: 0 0 6px;
    color: var(--pf-brown-soft, #5b6b63);
    font-size: 0.95rem;
}

.verify-name {
    margin: 0 0 28px;
    color: var(--pf-brown, #0e0e4e);
    font-size: 2.3rem;
    line-height: 1.25;
}

.verify-name--small { font-size: 1.5rem; margin-bottom: 12px; }

.verify-facts {
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--pf-border, #e4e7ec);
    text-align: left;
}

.verify-facts > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f4f7;
}

.verify-facts > div:last-child { border-bottom: 0; }

.verify-facts dt {
    flex: 0 0 170px;
    color: var(--pf-brown-soft, #5b6b63);
    font-size: 0.86rem;
}

.verify-facts dd {
    flex: 1 1 220px;
    margin: 0;
    color: var(--pf-brown, #0e0e4e);
    font-weight: 500;
}

.verify-number {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 0.5px;
}

/* --- event photo carousel --- */

.verify-gallery { max-width: 720px; margin: 40px auto 0; }

.verify-gallery-title {
    margin: 0 0 16px;
    color: var(--pf-brown, #0e0e4e);
    font-size: 1.2rem;
    text-align: center;
}

.verify-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f2f4f7;
}

.verify-slide { display: none; margin: 0; }
.verify-slide.is-active { display: block; }

.verify-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.verify-slide figcaption {
    padding: 12px 16px;
    background: #fff;
    color: var(--pf-brown-soft, #5b6b63);
    font-size: 0.88rem;
    text-align: center;
}

.verify-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pf-brown, #0e0e4e);
    font-size: 1.1rem;
    cursor: pointer;
}

.verify-nav:hover { background: #fff; }
.verify-prev { left: 12px; }
.verify-next { right: 12px; }

.verify-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.verify-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d5dd;
    cursor: pointer;
}

.verify-dots button.is-active { background: var(--pf-green, #1f7a54); }

.verify-foot {
    max-width: 720px;
    margin: 32px auto 0;
    color: var(--pf-brown-soft, #5b6b63);
    font-size: 0.86rem;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 575px) {
    .verify-card { padding: 28px 20px; }
    .verify-name { font-size: 1.7rem; }
    .verify-facts dt { flex-basis: 100%; }
}

/* =====================================================================
   Header top bar — contact details plus the staff/volunteer entry points.
   Sits above .site-header, which is sticky, so this scrolls away with the
   page rather than eating vertical space on every screen.
   ===================================================================== */

.top-bar {
    background: var(--pf-brown, #0e0e4e);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.top-bar-contact,
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
}

.top-bar a:hover { color: var(--pf-gold, #ecb963); }

.top-bar i { font-size: 0.85rem; }

/* The admin entry point is the one thing on this bar people go looking for,
   so it reads as a control rather than another line of contact text. */
.top-bar-admin {
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.top-bar-admin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pf-gold, #ecb963);
}

@media (max-width: 767px) {
    /* Contact details are already in the footer and on the floating call
       button — on a phone the bar keeps only the sign-in links. */
    .top-bar-contact { display: none; }

    .top-bar .container { justify-content: center; }

    .top-bar-links { gap: 14px; }

    .top-bar { font-size: 0.78rem; }
}

/* =====================================================================
   Membership signup (/join).
   ===================================================================== */

.join-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .join-grid { grid-template-columns: 1fr 420px; gap: 48px; }
}

.join-invited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(31, 122, 84, 0.1);
    color: var(--pf-green-dark, #145c40);
    font-size: 0.9rem;
}

.join-intro h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.join-intro p { margin: 0 0 20px; color: var(--pf-brown-soft, #5b6b63); }

.join-points { margin: 0; padding: 0; list-style: none; }

.join-points li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    color: var(--pf-ink, #1c2420);
}

.join-points i { color: var(--pf-green, #1f7a54); }

.join-form-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--pf-line, #E1E7E2);
    border-radius: var(--radius, 6px);
    box-shadow: var(--shadow);
}

.join-form-card h3 { margin: 0 0 18px; font-size: 1.2rem; }

.join-form-card label {
    display: block;
    margin: 14px 0 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--pf-brown, #0e0e4e);
}

.join-form-card label span { color: #d74b3a; }

.join-form-card input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--pf-line, #E1E7E2);
    border-radius: var(--radius, 6px);
    font-family: inherit;
    font-size: 0.95rem;
}

.join-form-card input:focus {
    outline: none;
    border-color: var(--pf-green, #1f7a54);
}

.join-form-card small { display: block; margin-top: 5px; color: var(--pf-brown-soft, #5b6b63); font-size: 0.78rem; }

.join-form-card button { margin-top: 22px; }

.join-errors {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: var(--radius, 6px);
    background: rgba(215, 75, 58, 0.08);
    border: 1px solid rgba(215, 75, 58, 0.25);
}

.join-errors p { margin: 0 0 4px; color: #a3382a; font-size: 0.86rem; }
.join-errors p:last-child { margin-bottom: 0; }

.join-login { margin: 16px 0 0; text-align: center; font-size: 0.88rem; color: var(--pf-brown-soft, #5b6b63); }

/* Photo on the public ID-card check page. */
.verify-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pf-line, #E1E7E2);
}
