/* ================================================
   JOAF — Jolaade Adeola Foundation Custom Styles
   ================================================ */

/* ── Base font ── */
body, p, li, .nav-link, input, textarea, select, button,
.form-control, .select2-selection, .accordion-body,
.joaf-sidebar-card p, .joaf-prog-detail-card ul li {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ── Brand Palette ── */
:root {
    --joaf-gold:        #c8960c;
    --joaf-navy:        #0d2744;
    --joaf-blue-mid:    #3d6aad;
    --joaf-silver:      #e8ecf0;
}

/* Logo PNG */
.joaf-logo-img {
    height: 52px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
/* Mobile offcanvas logo container */
.logo-small .joaf-logo-img {
    height: 44px;
}
/* On mobile: reduce logo height and hide the "Apply Now" CTA (it's in the menu) */
@media (max-width: 991.98px) {
    .joaf-logo-img { height: 40px; }
    .navbar .donate-btn { display: none !important; }
}

/* White frosted-glass navbar — logo blends seamlessly on light background */
.homestyle-third .navbar:not(.fixed-top) {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

/* ── Full-screen Hero ── */
.joaf-hero-full {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow background layers */
.joaf-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}
.joaf-hero-slide.active { opacity: 1; }
.joaf-hero-slide-1 { background-image: url('../images/slider/hero-nigeria-1.jpg'); }
.joaf-hero-slide-2 { background-image: url('../images/slider/hero-nigeria-2.jpg'); background-position: center 30%; }
.joaf-hero-slide-3 { background-image: url('../images/slider/hero-nigeria-3.jpg'); background-position: center 20%; }

.joaf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(10,15,40,0.92) 0%, rgba(10,15,40,0.72) 50%, rgba(10,15,40,0.30) 100%),
        linear-gradient(to top,   rgba(10,15,40,0.70) 0%, transparent 55%);
}

.joaf-hero-content {
    position: relative;
    z-index: 2;
    padding: 160px 0 100px;
}

.joaf-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0a800;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.joaf-hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: #e0a800;
    flex-shrink: 0;
}

.joaf-hero-headline {
    color: #fff;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    font-family: 'DM Serif Display', Georgia, serif;
    letter-spacing: -0.5px;
}

.joaf-hero-accent {
    color: #e0a800;
    font-style: italic;
}

.joaf-hero-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* Programme badges */
.joaf-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.joaf-badge {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

/* CTA buttons */
.joaf-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.joaf-btn-gold {
    background: #e0a800;
    border: 2px solid #e0a800;
    color: #0a0f28;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 36px;
    border-radius: 50px;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
                transform 0.15s ease-out, box-shadow 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-btn-gold:hover {
        background: #c99700;
        border-color: #c99700;
        color: #0a0f28;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(224, 168, 0, 0.35);
    }
}
.joaf-btn-gold:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

.joaf-btn-ghost {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.45);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
                transform 0.15s ease-out;
    text-decoration: none;
    display: inline-block;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-btn-ghost:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.7);
        color: #fff;
    }
}
.joaf-btn-ghost:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

/* Scroll indicator */
.joaf-hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.joaf-hero-scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}
.joaf-hero-scroll span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: joafScroll 1.8s ease-in-out infinite;
}
@keyframes joafScroll {
    0%   { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* ── Nigeria Map on Mission Section ── */
.welcom-section-3 {
    position: relative;
    overflow: hidden;
}
.welcom-section-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/nigeria-map-bg.svg');
    background-repeat: no-repeat;
    background-position: center right -80px;
    background-size: 600px auto;
    opacity: 0.12;
    pointer-events: none;
}

/* ── Page Title Banner ── */
.joaf-page-title {
    position: relative;
    padding: 130px 0 70px;
    text-align: center;
}
.joaf-page-title-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 40, 0.72);
}
.joaf-page-title .container { position: relative; z-index: 2; }
.joaf-page-title h1 { color: #fff; font-size: 2.8rem; font-weight: 800; font-family: 'DM Serif Display', Georgia, serif; margin-bottom: 1rem; }
.joaf-page-title .breadcrumb { background: transparent; margin: 0; }
.joaf-page-title .breadcrumb-item a { color: #e0a800; }
.joaf-page-title .breadcrumb-item.active { color: rgba(255,255,255,0.75); }
.joaf-page-title .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ── Portrait block ── */
.joaf-portrait-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.joaf-portrait-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.joaf-portrait-badge {
    position: absolute;
    bottom: -20px;
    left: 24px;
    right: 24px;
    background: #0d2744;
    color: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.joaf-portrait-dates {
    display: block;
    color: #e0a800;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.joaf-portrait-title {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── Tribute stats row ── */
.joaf-tribute-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}
.joaf-tribute-stat { text-align: center; }
.joaf-tribute-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e0a800;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
}
.joaf-tribute-label {
    display: block;
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ── Full-width quote ── */
.joaf-quote-section {
    background: #0d2744;
    padding: 80px 0;
}
.joaf-quote-icon {
    font-size: 3rem;
    color: #e0a800;
    display: block;
    margin-bottom: 1.5rem;
}
.joaf-quote-text {
    color: #fff;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    font-family: 'DM Serif Display', Georgia, serif;
    margin-bottom: 1.5rem;
}
.joaf-quote-attr {
    color: #e0a800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Timeline ── */
.joaf-timeline { position: relative; padding-left: 32px; }
.joaf-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e8e8e8;
}
.joaf-timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.joaf-timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d2744;
    border: 3px solid #e0a800;
}
.joaf-timeline-dot-gold { background: #e0a800; }
.joaf-timeline-year {
    display: inline-block;
    background: #f5f0e8;
    color: #e0a800;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}
.joaf-timeline-content h4 { font-size: 1.05rem; font-weight: 700; color: #0d2744; margin-bottom: 0.5rem; }
.joaf-timeline-content p { color: #555; font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ── Values cards ── */
.joaf-value-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-value-card:hover {
        box-shadow: 0 12px 36px rgba(0,0,0,0.1);
        transform: translateY(-4px);
    }
}
.joaf-value-icon {
    font-size: 2.5rem;
    color: #e0a800;
    margin-bottom: 1.25rem;
}
.joaf-value-card h4 { font-size: 1rem; font-weight: 700; color: #0d2744; margin-bottom: 0.75rem; }
.joaf-value-card p { font-size: 0.9rem; color: #666; line-height: 1.7; margin: 0; }

/* ── Legacy CTA banner ── */
.joaf-legacy-cta {
    background: linear-gradient(135deg, #0d2744 0%, #0f3460 100%);
    padding: 80px 0;
    color: #fff;
}
.joaf-legacy-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'DM Serif Display', Georgia, serif;
    color: #fff;
    margin-bottom: 1rem;
}
.joaf-legacy-cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.8; }
.joaf-btn-ghost-dark {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.45);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
                transform 0.15s ease-out;
    text-decoration: none;
    display: inline-block;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-btn-ghost-dark:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.7);
        color: #fff;
    }
}
.joaf-btn-ghost-dark:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

/* ── Apply Page ── */
/* Application status banner */
.joaf-app-status-open,
.joaf-app-status-closed {
    padding: 14px 0;
    font-size: 0.92rem;
    text-align: center;
}
.joaf-app-status-open  { background: #edfdf0; color: #1a5c2a; border-bottom: 1px solid #b7e4c7; }
.joaf-app-status-closed { background: #fdf2f2; color: #7f1d1d; border-bottom: 1px solid #fca5a5; }
.joaf-status-pulse {
    display: inline-block;
    width: 10px; height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: joaf-pulse 1.6s infinite;
}
@keyframes joaf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Form wrapper */
.joaf-form-title { font-size: 1.7rem; font-weight: 800; color: #0d2744; font-family: 'DM Serif Display', Georgia, serif; margin-bottom: 0.4rem; }
.joaf-form-subtitle { color: #666; font-size: 0.92rem; margin-bottom: 2rem; }
.req { color: #c0392b; }

/* Step indicator */
.joaf-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    overflow-x: auto;
}
.joaf-step-ind {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #999;
    border-bottom: 3px solid #eee;
    white-space: nowrap;
    flex: 1;
    cursor: default;
}
.joaf-step-ind span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.joaf-step-ind.active { color: #0d2744; border-color: #e0a800; }
.joaf-step-ind.active span { background: #e0a800; color: #fff; }
.joaf-step-ind.done { color: #22c55e; border-color: #22c55e; }
.joaf-step-ind.done span { background: #22c55e; color: #fff; }

/* Form steps */
.joaf-form-step { display: none; }
.joaf-form-step.active { display: block; }
.joaf-form-step-title { font-size: 1.15rem; font-weight: 700; color: #0d2744; margin-bottom: 1.25rem; }

/* Programme checkboxes */
.joaf-prog-checkbox { display: block; cursor: pointer; }
.joaf-prog-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.joaf-prog-check-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    height: 100%;
}
.joaf-prog-check-card strong { display: block; color: #0d2744; font-size: 0.95rem; margin-bottom: 4px; }
.joaf-prog-check-card span   { color: #777; font-size: 0.83rem; }
.joaf-prog-checkbox input:checked + .joaf-prog-check-card {
    border-color: #e0a800;
    background: #fdf8ec;
}

/* Declaration box */
.joaf-declaration {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 18px 20px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
}

/* Success card */
.joaf-success-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 40px 24px; }
.joaf-closed-card  { background: #fdf8ec; border: 1px solid #f0d88a; border-radius: 12px; padding: 40px 24px; }

/* Sidebar cards */
.joaf-sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}
.joaf-sidebar-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d2744;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.joaf-sidebar-card h5 svg { width: 16px; height: 16px; color: #e0a800; }
.joaf-sidebar-card p { font-size: 0.88rem; color: #555; margin: 0; }

.joaf-sidebar-list { padding-left: 1.1rem; margin: 0; }
.joaf-sidebar-list li { font-size: 0.88rem; color: #555; margin-bottom: 6px; line-height: 1.55; }
.joaf-sidebar-list li::marker { color: #e0a800; }

.joaf-dot-green, .joaf-dot-red {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.joaf-dot-green { background: #22c55e; }
.joaf-dot-red   { background: #ef4444; }

/* ── Programmes Page ── */
.joaf-prog-nav { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.joaf-prog-pill {
    padding: 8px 22px;
    border: 2px solid #0d2744;
    border-radius: 50px;
    color: #0d2744;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.joaf-prog-pill:hover { background:#0d2744; color:#fff; }

.joaf-prog-section { scroll-margin-top: 90px; }

.joaf-prog-tag {
    display: inline-block;
    background: #f5f0e8;
    color: #e0a800;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.joaf-prog-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0d2744;
    font-family: 'DM Serif Display', Georgia, serif;
    margin-bottom: 1rem;
}
.joaf-prog-lead {
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    border-left: 4px solid #e0a800;
    padding-left: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.joaf-prog-logo-wrap {
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 300px;
}
.joaf-prog-logo-blue { background: #002D72; }
.joaf-prog-logo-green { background: #00502E; }
.joaf-prog-logo-img { max-width: 260px; max-height: 200px; object-fit: contain; }

.joaf-prog-detail-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}
.joaf-prog-detail-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0d2744;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.joaf-prog-detail-card h5 svg { width:16px; height:16px; color:#e0a800; }
.joaf-prog-detail-card ul { padding-left: 1.1rem; margin: 0; }
.joaf-prog-detail-card ul li { font-size: 0.88rem; color: #555; margin-bottom: 5px; }

.joaf-text-link { color: #0d2744; font-weight: 600; text-decoration: none; border-bottom: 1px solid #e0a800; padding-bottom: 1px; }
.joaf-text-link:hover { color: #e0a800; }

/* Steps */
.joaf-step-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    height: 100%;
}
.joaf-step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e0a800;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
    margin-bottom: 1rem;
}
.joaf-step-card h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.joaf-step-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* Accordion */
.joaf-accordion .accordion-item { border: 1px solid #eee; border-radius: 10px !important; margin-bottom: 12px; overflow: hidden; }
.joaf-accordion .accordion-button { font-weight: 600; color: #0d2744; background: #fff; font-size: 0.95rem; }
.joaf-accordion .accordion-button:not(.collapsed) { color: #e0a800; background: #faf8f3; box-shadow: none; }
.joaf-accordion .accordion-button::after { filter: none; }
.joaf-accordion .accordion-body { color: #555; font-size: 0.92rem; line-height: 1.75; }

/* Footer — pull back the negative offset now that the subscribe box is gone */
.footer-style-3 {
    margin-top: 0 !important;
}
.footer-style-3 .top-row {
    top: 0 !important;
    padding-top: 1.5rem;
}

/* Apply Now button accent */
.donate-btn.btn-primary,
a.btn.btn-primary {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #0d2744;
    font-weight: 700;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
                transform 0.15s ease-out, box-shadow 0.2s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .donate-btn.btn-primary:hover,
    a.btn.btn-primary:hover {
        background-color: #c79600;
        border-color: #c79600;
    }
}
.donate-btn.btn-primary:active,
a.btn.btn-primary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-out;
}

/* Nav active state */
.nav-link.active {
    color: var(--orange) !important;
    font-weight: 600;
}

/* Programme tag colours */
.causes-wrap .tag { background-color: #0f3460; }

/* Supporter avatar thumbnails — constrain to small square */
.our-donators-slide img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0 0 16px 0 !important;
}

/* "In Her Memory" image — override template's absolute positioning */
.featured-causes-img-2 {
    min-height: 460px;
    margin-bottom: 0 !important;
}
.featured-causes-img-2 img {
    position: relative !important;
    width: 100% !important;
    height: 460px !important;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* JAMB / WAEC logo cards — centred on white background */
.joaf-logo-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 220px;
    padding: 32px 40px;
}
.joaf-logo-card-link img {
    width: auto !important;
    height: 100% !important;
    max-height: 150px;
    object-fit: contain !important;
    position: relative !important;
}

/* Breadcrumb / page title overrides */
.page-title-area h1 { font-size: 2.2rem; }

/* Footer logo text */
.logo-footer span { display: block; }

/* CTA banner */
.callout-style-side-img .heading h2 { font-size: 1.4rem; }

/* Admin link in footer — subtle */
.footer-widget-menu a[href*="admin"] { opacity: 0.6; font-size: 0.85rem; }
.footer-widget-menu a[href*="admin"]:hover { opacity: 1; }

/* ── Impact Page ── */
.joaf-stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 36px 24px;
    height: 100%;
    transition: box-shadow 0.25s ease-out, transform 0.25s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-stat-card:hover {
        box-shadow: 0 12px 36px rgba(0,0,0,0.08);
        transform: translateY(-4px);
    }
}
.joaf-stat-icon {
    margin-bottom: 1rem;
}
.joaf-stat-icon svg { width: 32px; height: 32px; color: #e0a800; stroke-width: 1.5; }
.joaf-stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0d2744;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.joaf-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.joaf-impact-prog-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 32px 28px;
    height: 100%;
    transition: box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
@media (hover: hover) and (pointer: fine) {
    .joaf-impact-prog-card:hover {
        border-color: #e0a800;
        box-shadow: 0 8px 28px rgba(224,168,0,0.1);
    }
}
.joaf-impact-prog-num {
    font-size: 3rem;
    font-weight: 800;
    color: #e0a800;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.joaf-impact-prog-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #0d2744;
    margin-bottom: 0.75rem;
}
.joaf-impact-prog-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.joaf-process-step-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px 20px;
    height: 100%;
}
.joaf-process-num {
    font-size: 2rem;
    font-weight: 800;
    color: #e0a800;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}
.joaf-process-step-card h6 { font-size: 0.9rem; font-weight: 700; color: #0d2744; margin-bottom: 0.5rem; }
.joaf-process-step-card p  { font-size: 0.82rem; color: #666; line-height: 1.65; margin: 0; }

/* ═══════════════════════════════════════════════════════
   MODERN FORM UPGRADE — Apply Page
   ═══════════════════════════════════════════════════════ */

/* Form card */
.joaf-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.07);
    padding: 44px 44px 36px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Step indicator — modern pill track */
.joaf-steps-indicator {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.75rem;
    overflow: visible;
}
.joaf-steps-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(12.5% + 2px);
    right: calc(12.5% + 2px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.joaf-step-ind {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 4px;
    border-bottom: none;
    gap: 0;
    position: relative;
    z-index: 1;
    cursor: default;
}
.joaf-step-ind span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.joaf-step-ind { color: #9ca3af; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px; }
.joaf-step-ind.active { color: #0d2744; font-weight: 700; }
.joaf-step-ind.active span {
    background: #e0a800;
    color: #fff;
    box-shadow: 0 0 0 2px #e0a800, 0 4px 14px rgba(224,168,0,0.35);
}
.joaf-step-ind.done { color: #22c55e; }
.joaf-step-ind.done span {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 0 0 2px #22c55e;
}

/* Section title with divider */
.joaf-form-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d2744;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid #f0f0f0;
}

/* Labels */
.joaf-form .form-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 7px;
    display: block;
}
.joaf-form .form-label .req { font-size: 0.85em; }

/* Text inputs & textareas */
.joaf-form .form-control {
    height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #0d2744;
    background: #f9fafb;
    padding: 0 16px;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.joaf-form .form-control::placeholder { color: #b0b8c1; }
.joaf-form .form-control:focus {
    border-color: #e0a800;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224,168,0,0.13);
    outline: none;
    color: #0d2744;
}
.joaf-form textarea.form-control {
    height: auto;
    padding: 14px 16px;
    line-height: 1.65;
    resize: vertical;
}
.joaf-form select.form-control { appearance: none; }

/* Flatpickr date input */
.joaf-form .flatpickr-input {
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 14px center;
    cursor: pointer;
}

/* Select2 trigger */
.joaf-form .select2-container { width: 100% !important; }
.joaf-form .select2-container--form-dark .select2-selection--single {
    height: 50px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.joaf-form .select2-container--form-dark.select2-container--open .select2-selection--single {
    border-color: #e0a800 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(224,168,0,0.13) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.joaf-form .select2-container--form-dark .select2-selection--single .select2-selection__rendered {
    line-height: 50px !important;
    color: #0d2744 !important;
    padding: 0 4px !important;
    font-size: 0.92rem !important;
}
.joaf-form .select2-container--form-dark .select2-selection--single .select2-selection__placeholder {
    color: #b0b8c1 !important;
}
.joaf-form .select2-container--form-dark .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 10px !important;
}
.joaf-form .select2-container--form-dark .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent !important;
}
.joaf-form .select2-container--form-dark.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #e0a800 transparent !important;
}

/* Select2 dropdown panel — global improvement */
.select2-dropdown {
    border: 1.5px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.10) !important;
    overflow: hidden;
}
.select2-results__options {
    max-height: 220px !important;
    scrollbar-width: thin;
    scrollbar-color: #e0a800 #f0f0f0;
}
.select2-results__options::-webkit-scrollbar { width: 4px; }
.select2-results__options::-webkit-scrollbar-track { background: #f9fafb; }
.select2-results__options::-webkit-scrollbar-thumb { background: #e0a800; border-radius: 4px; }
.select2-results__option {
    padding: 11px 16px !important;
    font-size: 0.91rem !important;
    color: #374151 !important;
    transition: background 0.12s ease !important;
}
.select2-results__option--highlighted[aria-selected] {
    background: #fdf8ec !important;
    color: #0d2744 !important;
}
.select2-results__option[aria-selected="true"] {
    background: #e0a800 !important;
    color: #0d2744 !important;
    font-weight: 600 !important;
}

/* Programme checkbox cards */
.joaf-prog-check-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    height: 100%;
    background: #f9fafb;
}
.joaf-prog-check-card:hover { border-color: #e0a800; background: #fdf8ec; }
.joaf-prog-checkbox input:checked + .joaf-prog-check-card {
    border-color: #e0a800;
    background: #fdf8ec;
    box-shadow: 0 0 0 3px rgba(224,168,0,0.12);
}
.joaf-prog-check-card strong { font-size: 0.92rem; }
.joaf-prog-check-card span { font-size: 0.82rem; }

/* Declaration box */
.joaf-declaration {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
}

/* ── Flatpickr calendar — full override ── */
.flatpickr-calendar {
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14) !important;
    border: 1px solid #e5e7eb !important;
    font-family: inherit !important;
    overflow: hidden;
}

/* Header (month + nav) */
.flatpickr-months {
    background: #0d2744 !important;
    border-radius: 14px 14px 0 0;
    padding: 6px 0;
    align-items: center;
}
.flatpickr-month {
    background: transparent !important;
    height: 44px !important;
}
.flatpickr-current-month {
    font-size: 1rem !important;
    padding-top: 8px !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Month dropdown — strip the box look */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    margin: 0 !important;
    outline: none !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
}
/* Year input — plain white text, hide spinners */
.flatpickr-current-month .numInputWrapper {
    width: 68px !important;
}
.flatpickr-current-month .numInputWrapper input {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    text-align: left !important;
    padding: 0 !important;
    cursor: default !important;
}
.flatpickr-current-month .numInputWrapper input:focus { outline: none !important; }
.flatpickr-current-month .numInputWrapper span { display: none !important; }

/* Nav arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    padding: 10px 14px !important;
    color: #e0a800 !important;
    fill: #e0a800 !important;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(224,168,0,0.18) !important;
    border-radius: 6px !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: #e0a800 !important; }

/* Weekday headers */
.flatpickr-weekdays { background: #0d2744 !important; }
.flatpickr-weekday {
    background: #0d2744 !important;
    color: #e0a800 !important;
    font-weight: 700 !important;
    font-size: 0.73rem !important;
}

/* Day grid */
.flatpickr-days { border: none !important; }
.flatpickr-day {
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-family: inherit !important;
    line-height: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
}
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
    background: #fdf8ec !important;
    border-color: #fdf8ec !important;
    color: #0d2744 !important;
}
.flatpickr-day.today {
    border-color: #e0a800 !important;
    color: #0d2744 !important;
    font-weight: 700 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #e0a800 !important;
    border-color: #e0a800 !important;
    color: #0d2744 !important;
    font-weight: 700 !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #d1d5db !important;
    background: transparent !important;
}
/* Hide overflow days from adjacent months — prevents the extra rows of
   greyed-out dates that bleed into the next month (flatpickr renders 42
   cells by default regardless of how many days the month needs). */
.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .joaf-hero-headline { font-size: 2.6rem; }
    .joaf-hero-content  { padding: 140px 0 80px; }
    .welcom-section-3::before { background-position: center bottom; background-size: 400px auto; }
    .joaf-form-card { padding: 28px 20px; }
}
@media (max-width: 576px) {
    .joaf-hero-headline { font-size: 2rem; }
    .joaf-hero-content  { padding: 120px 0 70px; }
    .joaf-btn-gold, .joaf-btn-ghost { width: 100%; text-align: center; }
    .joaf-form-card { padding: 22px 16px; }
    .joaf-step-ind { font-size: 0.65rem; }
}

/* ── Branded page loader ── */
.joaf-loader-ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(224, 168, 0, 0.2);
    border-top-color: #e0a800;
    border-radius: 50%;
    animation: joafSpin 0.7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes joafSpin { to { transform: rotate(360deg); } }
.joaf-loader-wordmark {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 800;
    letter-spacing: 4px;
    color: #e0a800;
    font-size: 1.1rem;
    text-align: center;
}

/* ── Portrait decorative border ── */
.featured-causes-img-2 {
    position: relative;
}
.featured-causes-img-2::before {
    content: '';
    position: absolute;
    inset: -8px 8px 8px -8px;
    border: 2px solid rgba(224, 168, 0, 0.3);
    border-radius: 18px;
    pointer-events: none;
    z-index: 0;
}

/* ── Scroll-reveal animations ── */
.joaf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.joaf-reveal.joaf-revealed {
    opacity: 1;
    transform: translateY(0);
}
.joaf-reveal-delay-1 { transition-delay: 0.08s; }
.joaf-reveal-delay-2 { transition-delay: 0.16s; }
.joaf-reveal-delay-3 { transition-delay: 0.24s; }
.joaf-reveal-delay-4 { transition-delay: 0.32s; }

/* ── Quote section ── */
.joaf-quote-section {
    background: #0d2744;
    padding: 80px 0;
}
.joaf-quote-icon {
    font-size: 3rem;
    color: #e0a800;
    display: block;
    margin-bottom: 1.5rem;
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1;
}
.joaf-quote-text {
    color: #fff;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
    font-family: 'DM Serif Display', Georgia, serif;
    margin-bottom: 1.5rem;
}
.joaf-quote-attr {
    color: #e0a800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
}

/* ── Final CTA section ── */
.joaf-final-cta {
    background: linear-gradient(135deg, #0d2744 0%, #0f3460 100%);
    padding: 100px 0;
    text-align: center;
}
.joaf-final-cta-eyebrow {
    color: #e0a800;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}
.joaf-final-cta h2 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'DM Serif Display', Georgia, serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.joaf-final-cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}
@media (max-width: 576px) {
    .joaf-final-cta h2 { font-size: 1.8rem; }
    .joaf-final-cta { padding: 70px 0; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    .joaf-hero-scroll span::before,
    .joaf-status-pulse,
    .joaf-loader-ring { animation: none; }

    .joaf-hero-slide { transition: none; }
    .joaf-hero-slide-1 { opacity: 1; }

    .joaf-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .joaf-btn-gold,
    .joaf-btn-ghost,
    .joaf-btn-ghost-dark,
    .donate-btn.btn-primary,
    a.btn.btn-primary,
    .joaf-value-card,
    .joaf-stat-card,
    .joaf-impact-prog-card {
        transition: none;
    }
}

/* ── Hero trust micro-copy ── */
.joaf-hero-trust {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.48);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}
.joaf-hero-trust-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Hero memorial card (desktop) ── */
.joaf-memorial-card {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    max-width: 280px;
    margin-left: auto;
}
.joaf-memorial-card-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(224,168,0,0.6);
    margin: 0 auto 16px;
    display: block;
}
.joaf-memorial-card-name {
    color: #fff;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.joaf-memorial-card-dates {
    color: #e0a800;
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.joaf-memorial-card-divider {
    width: 40px;
    height: 1px;
    background: rgba(224,168,0,0.4);
    margin: 0 auto 16px;
}
.joaf-memorial-card-quote {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    line-height: 1.65;
    font-style: italic;
}
@media (max-width: 991px) {
    .joaf-memorial-card { display: none; }
    .joaf-hero-headline { font-size: 2.8rem; }
    .joaf-hero-content  { padding: 140px 0 80px; }
}
@media (max-width: 575px) {
    .joaf-hero-headline { font-size: 2.1rem; }
    .joaf-hero-content  { padding: 120px 0 70px; }
    .joaf-hero-eyebrow  { font-size: 0.72rem; letter-spacing: 2px; }
}

/* White frosted navbar: dark links on light background */
.homestyle-third .navbar:not(.fixed-top) .navbar-nav .nav-link {
    color: var(--joaf-navy) !important;
    text-shadow: none;
}
.homestyle-third .navbar:not(.fixed-top) .navbar-nav .nav-link:hover,
.homestyle-third .navbar:not(.fixed-top) .navbar-nav .active .nav-link,
.homestyle-third .navbar:not(.fixed-top) .navbar-nav .nav-item:hover .nav-link {
    color: var(--joaf-gold) !important;
    text-shadow: none;
}
/* Hamburger bars — dark on white navbar */
.homestyle-third .navbar:not(.fixed-top) .navbar-toggler .icon-bar {
    background-color: var(--joaf-navy);
}
/* When scrolled (fixed-top + white bg) — restore dark color */
.homestyle-third .navbar.fixed-top .navbar-nav .nav-link {
    color: var(--bistre-color) !important;
    text-shadow: none;
}
.homestyle-third .navbar.fixed-top .navbar-nav .nav-link:hover,
.homestyle-third .navbar.fixed-top .navbar-nav .active .nav-link {
    color: #c8960c !important;
}
