/* Equipping You Foundation: site styles
   Brand colours, section styles, navigation, animations, testimonials and
   graduation gallery. Loaded by index.html after Bootstrap 5.3. */

/* Custom Styles for EYF Branding */
:root {
    --eyf-primary: #28a745; 
    --eyf-secondary: #28a745; 
    --eyf-gold: #ffc107; 
    --eyf-dark: #212529; 
    --eyf-darker: #111827;
}
.navbar-brand-custom {
    font-size: 1.75rem;
    font-weight: 800;
}
.navbar-brand-custom img {
    height: 40px;
    width: auto;
}
.hero-section {
    background: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8)), url('../Jpg/desktop.jpg') no-repeat center center/cover;
    height: 90vh; 
    color: white;
    display: flex;
    align-items: center;
}
.text-eyf-primary { color: var(--eyf-primary) !important; }
.bg-eyf-primary { background-color: var(--eyf-primary) !important; }
.btn-eyf-primary { 
    background-color: var(--eyf-primary); 
    border-color: var(--eyf-primary);
    color: white;
    transition: all 0.3s;
}
.btn-eyf-primary:hover { 
    background-color: #218838; 
    border-color: #1e7e34;
    color: white;
}
.btn-outline-eyf-primary {
    color: var(--eyf-primary);
    border-color: var(--eyf-primary);
    transition: all 0.3s;
}
.btn-outline-eyf-primary:hover {
    color: white;
    background-color: var(--eyf-primary);
}
.text-eyf-secondary { color: var(--eyf-secondary) !important; }
.bg-eyf-secondary { background-color: var(--eyf-secondary) !important; }

.summary-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}
.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Update Session Animation */
@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.animate-pulse {
    animation: pulse-red 1.5s infinite ease-in-out;
}

/* ---- about section ---- */
:root {
    --eyf-primary: #28a745; 
    --eyf-secondary: #28a745; 
    --eyf-gold: #ffc107; 
    --eyf-dark: #212529;
}
.border-eyf-secondary { border-color: var(--eyf-secondary) !important;
}
.hero-about {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Jpg/about-us_773186-1363.avif') no-repeat center center/cover; 
    background-size: cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.mission-vision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}
.mission-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.team-member-card {
    border: none;
    border-bottom: 5px solid var(--eyf-primary);
    transition: all 0.3s;
    border-radius: 10px;
}
.team-member-card:hover {
    border-color: var(--eyf-secondary);
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* ---- programs section ---- */
.hero-programs {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Jpg/Website images (13).png.webp') no-repeat center center/cover; 
    background-size: cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.program-card {
    border: none;
    border-top: 5px solid var(--eyf-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25) !important;
}
.program-card.highlight {
    border-color: var(--eyf-gold);
    box-shadow: 0 0.5rem 1.5rem rgba(255, 193, 7, 0.3) !important;
}

/* ---- program-details section ---- */
.hero-detail {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Jpg/Equipping-Believers-Flyer-cropped.jpg') no-repeat center center/cover;
    padding: 100px 0;
    color: white;
}
.info-sidebar {
    border-left: 4px solid var(--eyf-gold);
    padding-left: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 0 10px 10px 0;
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--eyf-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}
.curriculum-step {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}
.curriculum-step:last-child { border-bottom: none;
}

/* ---- impact section ---- */
.hero-impact {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Jpg/impact_logo.png') no-repeat center center/cover;
    background-size: cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.impact-card {
    transition: all 0.3s;
    border-left: 5px solid var(--eyf-primary);
    background-color: white !important; 
    border-radius: 8px;
}
.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25) !important;
    border-left: 5px solid var(--eyf-secondary);
}

/* ---- partner section ---- */
.hero-partner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Jpg/hands-holding-puzzle-business-problem-solving-concept_53876-129016.avif') no-repeat center center/cover; 
    background-size: cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.partner-option-card {
    border: none;
    border-bottom: 5px solid var(--eyf-primary);
    transition: all 0.3s;
}
.partner-option-card:hover {
    transform: translateY(-5px);
    border-color: var(--eyf-secondary);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25) !important;
}
.table-funding th, .table-funding td {
    vertical-align: middle;
}
.table-funding .immediate {
    background-color: var(--eyf-gold) !important;
    color: var(--eyf-dark) !important;
    font-weight: bold;
}

/* ---- news section ---- */
.btn-outline-eyf-secondary {
    color: var(--eyf-secondary);
    border-color: var(--eyf-secondary);
    transition: all 0.3s;
}
.btn-outline-eyf-secondary:hover {
    color: white;
    background-color: var(--eyf-secondary);
    border-color: var(--eyf-secondary);
}
.hero-news {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Jpg/istockphoto-1456511797-612x612.jpg') no-repeat center center/cover; 
    background-size: cover;
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.story-card {
    transition: transform 0.3s;
    border: none;
    border-left: 5px solid var(--eyf-secondary);
}
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25) !important;
    border-left: 5px solid var(--eyf-primary);
}
.story-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ---- donate section ---- */
.donation-hero {
    background: linear-gradient(rgba(33, 37, 41, 0.8), rgba(33, 37, 41, 0.8)), url('../Jpg/Empowering-your-staff-members-.jpg') no-repeat center center/cover;
    color: white;
    padding: 5rem 0;
}
.donation-amount-btn {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: var(--eyf-dark);
    font-size: 1.25rem;
    padding: 1rem;
    transition: all 0.2s;
}
.donation-amount-btn:hover, .donation-amount-btn.active {
    background-color: var(--eyf-secondary);
    border-color: var(--eyf-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#customAmountInput {
    font-size: 1.5rem;
    height: 3.5rem;
}
.form-check-input:checked {
    background-color: var(--eyf-secondary);
    border-color: var(--eyf-secondary);
}

/* ---- contact section ---- */
.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Jpg/44602-contact-us-ppt-template.png') no-repeat center center/cover; 
    height: 50vh; 
    display: flex;
    align-items: center;
    color: white;
}
.contact-info-card {
    border: none;
    border-left: 5px solid var(--eyf-primary);
    transition: all 0.3s;
    border-radius: 8px;
    background-color: white !important;
}
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25) !important;
    border-left: 5px solid var(--eyf-gold);
}
.social-link {
    color: var(--eyf-primary);
    transition: color 0.3s;
    display: inline-block;
}
.social-link:hover {
    color: var(--eyf-gold);
}
.map-container iframe {
    border-radius: 8px;
}
.form-floating > .form-control:focus, 
.form-floating > .form-select:focus {
    border-color: var(--eyf-primary);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* ---- single-page layout ---- */
html { scroll-behavior: smooth; }
.page-block { scroll-margin-top: 72px; }
/* wide g-5 gutters pushed some rows past the screen edge on phones */
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* =========================================================
   MODERN NAVIGATION
   ========================================================= */
#scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100;
    background: linear-gradient(90deg, var(--eyf-primary), var(--eyf-gold));
    transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.nav-glass {
    background: rgba(17, 24, 39, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    padding-top: 0.9rem; padding-bottom: 0.9rem;
    transition: padding 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.nav-glass.scrolled {
    background: rgba(17, 24, 39, 0.96);
    padding-top: 0.45rem; padding-bottom: 0.45rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.nav-glass .navbar-brand-custom img { transition: height 0.35s ease, transform 0.35s ease; }
.nav-glass .navbar-brand-custom:hover img { transform: rotate(-8deg) scale(1.05); }
.nav-glass.scrolled .navbar-brand-custom img { height: 34px; }
.nav-glass .nav-link { transition: color 0.25s ease; }
.nav-glass .nav-link.active, .nav-glass .dropdown-toggle.active { color: #fff !important; }
@media (min-width: 992px) {
    .nav-glass .navbar-nav .nav-link { position: relative; }
    .nav-glass .navbar-nav .nav-link::before {
        content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.2rem; height: 2px;
        border-radius: 2px; background: var(--eyf-gold);
        transform: scaleX(0); transform-origin: left center; transition: transform 0.3s ease;
    }
    .nav-glass .navbar-nav .nav-link:hover::before,
    .nav-glass .navbar-nav .nav-link.active::before { transform: scaleX(1); }
}
.nav-glass .dropdown-menu {
    background: rgba(17, 24, 39, 0.98); border: 0; border-radius: 12px; padding: 0.5rem;
    margin-top: 0.6rem !important;
}
.nav-glass .dropdown-menu.show { animation: dropIn 0.22s ease-out; }
.nav-glass .dropdown-item { border-radius: 8px; padding: 0.55rem 0.9rem; font-weight: 600; }
.nav-glass .dropdown-item:hover { background: rgba(255, 255, 255, 0.08); }
.nav-glass .dropdown-item.active, .nav-glass .dropdown-item:active { background: var(--eyf-primary); }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn-donate { position: relative; overflow: hidden; }
.btn-donate::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* side dots (large screens) */
#section-dots {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 1030;
    display: none; flex-direction: column; gap: 14px;
}
@media (min-width: 1200px) { #section-dots { display: flex; } }
#section-dots a {
    position: relative; display: block; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid var(--eyf-primary);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
    transition: transform 0.25s ease, background-color 0.25s ease;
}
#section-dots a:hover, #section-dots a:focus-visible { transform: scale(1.3); }
#section-dots a.active { background: var(--eyf-primary); transform: scale(1.35); }
#section-dots span {
    position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%);
    background: var(--eyf-darker); color: #fff; font-size: 0.75rem; font-weight: 600;
    padding: 0.25rem 0.6rem; border-radius: 6px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
#section-dots a:hover span, #section-dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* back to top with progress ring */
#to-top {
    position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; padding: 0;
    border: 0; border-radius: 50%; background: var(--eyf-darker); color: #fff;
    display: grid; place-items: center; z-index: 1030;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.3s ease;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--eyf-primary); }
#to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#to-top circle { fill: none; stroke-width: 3; }
#to-top .ring-bg { stroke: rgba(255, 255, 255, 0.15); }
#to-top .ring-fg { stroke: var(--eyf-gold); stroke-linecap: round; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.hero-section .container > * { animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-section .container > *:nth-child(2) { animation-delay: 0.15s; }
.hero-section .container > *:nth-child(3) { animation-delay: 0.3s; }
.hero-section .container > *:nth-child(4) { animation-delay: 0.45s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.scroll-cue {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px;
}
.scroll-cue::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--eyf-gold); animation: cueWheel 1.6s ease-in-out infinite;
}
@keyframes cueWheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 575.98px), (max-height: 680px) { .scroll-cue { display: none; } }

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.page-block .btn-lg, .page-block .btn-eyf-primary, .page-block .btn-warning {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.page-block .btn-lg:hover, .page-block .btn-eyf-primary:hover, .page-block .btn-warning:hover {
    transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tm-section { background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%); }
.tm-pills { gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.25rem 0.25rem 0.75rem; }
.tm-pills::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .tm-pills { flex-wrap: wrap; justify-content: center; } }
.tm-pills .nav-link {
    white-space: nowrap; border-radius: 999px; background: #fff; color: var(--eyf-dark);
    border: 1px solid #dee2e6; font-weight: 600; padding: 0.55rem 1.1rem;
    transition: all 0.25s ease;
}
.tm-pills .nav-link:hover { border-color: var(--eyf-primary); color: var(--eyf-primary); transform: translateY(-1px); }
.tm-pills .nav-link.active {
    background: var(--eyf-primary); border-color: var(--eyf-primary); color: #fff;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}
#testimonials .tab-pane.fade { transform: translateY(12px); transition: opacity 0.35s ease, transform 0.35s ease; }
#testimonials .tab-pane.fade.show { transform: none; }
.tm-program {
    position: relative; overflow: hidden; height: 100%; padding: 2rem;
    background: var(--eyf-darker); color: #fff; border-radius: 16px;
}
.tm-program::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px;
    border-radius: 50%; background: radial-gradient(circle, rgba(40, 167, 69, 0.45), transparent 70%);
}
.tm-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(40, 167, 69, 0.18); color: var(--eyf-primary);
}
.tm-card {
    position: relative; height: 100%; padding: 1.75rem; background: #fff; border-radius: 16px;
    border-top: 4px solid var(--eyf-primary); box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14); }
.tm-quote-mark { font-size: 2rem; color: var(--eyf-gold); }
.tm-card blockquote { font-size: 1.05rem; font-style: italic; color: #374151; line-height: 1.6; }
.tm-avatar {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
    background: var(--eyf-primary); color: #fff; font-weight: 700;
}
.tm-card.tm-placeholder { background: #fffdf5; border: 2px dashed var(--eyf-gold); border-top-width: 4px; box-shadow: none; }
.tm-card.tm-placeholder blockquote { color: #8a6d00; }
.tm-flag {
    position: absolute; top: -12px; left: 16px; background: var(--eyf-gold); color: var(--eyf-dark);
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px;
}


/* =========================================================
   GRADUATION GALLERY
   ========================================================= */
.grad-section {
    background:
        radial-gradient(circle at 15% 10%, rgba(40, 167, 69, 0.25), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(255, 193, 7, 0.18), transparent 45%),
        var(--eyf-darker);
}
.grad-pills { gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.5rem; }
.grad-pills::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .grad-pills { flex-wrap: wrap; } }
.grad-pills .nav-link {
    white-space: nowrap; border-radius: 999px; color: #fff; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25); padding: 0.45rem 1rem; transition: all 0.25s ease;
}
.grad-pills .nav-link:hover { border-color: var(--eyf-gold); color: var(--eyf-gold); }
.grad-pills .nav-link.active { background: var(--eyf-gold); border-color: var(--eyf-gold); color: var(--eyf-dark); }

.grad-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense;
}
@media (min-width: 768px) { .grad-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; } }
@media (min-width: 1200px) { .grad-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } }
.grad-loading { grid-column: 1 / -1; text-align: center; padding: 3rem 0; opacity: 0.75; }
.grad-empty { padding: 3rem 1rem; border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 18px; }

.grad-tile {
    position: relative; display: block; padding: 0; border: 0; background: transparent;
    border-radius: 16px; cursor: pointer; text-align: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: gradIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gradIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.grad-tile.featured { grid-column: span 2; grid-row: span 2; }
.grad-frame {
    position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.4s ease;
}
.grad-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.grad-frame::after {   /* light sweep */
    content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg); pointer-events: none;
}
.grad-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.85rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff; font-weight: 600; font-size: 0.9rem;
    transform: translateY(35%); opacity: 0.85; transition: transform 0.4s ease, opacity 0.4s ease;
}
.grad-caption i { color: var(--eyf-gold); margin-right: 0.35rem; }
.grad-tile.featured .grad-caption { font-size: 1.1rem; transform: none; opacity: 1; }
.grad-ribbon {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--eyf-gold); color: var(--eyf-dark); font-weight: 700; font-size: 0.75rem;
    padding: 0.3rem 0.75rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* highlighted image: gentle glow even before hover */
.grad-tile.featured .grad-frame { box-shadow: 0 0 0 3px var(--eyf-gold), 0 18px 40px rgba(0, 0, 0, 0.45); }
.grad-tile.featured .grad-frame::after { animation: gradSweep 4.5s ease-in-out infinite; }
@keyframes gradSweep { 0%, 70% { left: -75%; } 100% { left: 130%; } }

/* celebration on hover / keyboard focus */
.grad-tile:hover, .grad-tile:focus-visible, .grad-tile.celebrating { transform: translateY(-8px) scale(1.02); z-index: 5; }
.grad-tile:focus-visible { outline: none; }
.grad-tile:hover .grad-frame, .grad-tile:focus-visible .grad-frame, .grad-tile.celebrating .grad-frame {
    box-shadow: 0 0 0 3px var(--eyf-gold), 0 0 32px 6px rgba(255, 193, 7, 0.55), 0 22px 44px rgba(0, 0, 0, 0.5);
    animation: gradGlow 1.2s ease-in-out infinite alternate;
}
@keyframes gradGlow {
    from { box-shadow: 0 0 0 3px var(--eyf-gold), 0 0 22px 2px rgba(255, 193, 7, 0.45), 0 22px 44px rgba(0, 0, 0, 0.5); }
    to   { box-shadow: 0 0 0 3px var(--eyf-gold), 0 0 40px 10px rgba(255, 193, 7, 0.65), 0 22px 44px rgba(0, 0, 0, 0.5); }
}
.grad-tile:hover img, .grad-tile:focus-visible img, .grad-tile.celebrating img { transform: scale(1.1); filter: saturate(1.15) brightness(1.05); }
.grad-tile:hover .grad-frame::after, .grad-tile:focus-visible .grad-frame::after { animation: gradSweep 1.1s ease-out 1; }
.grad-tile:hover .grad-caption, .grad-tile:focus-visible .grad-caption, .grad-tile.celebrating .grad-caption { transform: none; opacity: 1; }

.grad-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.grad-fx .confetti {
    position: absolute; left: 50%; top: 55%; width: var(--w, 8px); height: var(--h, 12px);
    background: var(--c); border-radius: var(--br, 2px); opacity: 0;
    animation: confettiBurst 1.4s cubic-bezier(0.15, 0.7, 0.35, 1) var(--d, 0s) forwards;
}
@keyframes confettiBurst {
    0%   { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(0.4); }
    55%  { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.15), calc(-50% + var(--y) + 90px)) rotate(calc(var(--r) * 1.8)) scale(0.9); }
}
.grad-fx .cap-toss {
    position: absolute; left: 50%; top: 50%; font-size: 1.9rem; color: #fff; opacity: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: capToss 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) var(--d, 0s) forwards;
}
@keyframes capToss {
    0%   { opacity: 0; transform: translate(-50%, 0) rotate(0) scale(0.6); }
    15%  { opacity: 1; }
    60%  { opacity: 1; transform: translate(calc(-50% + var(--x)), -130px) rotate(var(--r)) scale(1.1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.2), -60px) rotate(calc(var(--r) * 2)) scale(1); }
}

/* viewer */
#grad-modal .modal-dialog { max-width: min(1100px, 94vw); }
.grad-viewer { position: relative; text-align: center; }
.grad-viewer img {
    max-width: 100%; max-height: 80vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: gradZoom 0.35s ease-out;
}
@keyframes gradZoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.grad-modal-caption { color: #fff; font-weight: 600; margin-top: 0.9rem; }
.grad-close { position: absolute; top: -2.5rem; right: 0; opacity: 0.9; }
.grad-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; z-index: 2;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.2s ease;
}
.grad-nav:hover { background: var(--eyf-primary); }
.grad-prev { left: 10px; } .grad-next { right: 10px; }
.modal-backdrop.show { opacity: 0.85; }


/* gold text: used across the original pages but never defined */
.text-eyf-gold { color: var(--eyf-gold) !important; }

/* =========================================================
   PROGRAMS HERO SLIDESHOW
   ========================================================= */
/* one pinned photo layer behind Programs + Program Details */
.programs-stage { position: relative; isolation: isolate; background: #111827; overflow: clip; clip-path: inset(0); }   /* keep the pinned photos inside this block */
.stage-bg {
    position: sticky; top: 0; z-index: 0; overflow: hidden; pointer-events: none;
    height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh;
}
.stage-bg::after { content: ""; position: absolute; inset: 0; background: rgba(17, 24, 39, 0.5); }
.programs-stage > .page-block { position: relative; z-index: 1; }

.hero-slideshow { position: relative; overflow: hidden; height: auto; min-height: 72vh; background: transparent; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }

/* sections that sit over the photos */
.programs-stage #programs-list { background: transparent !important; }
.programs-stage #programs-list > .container > .text-center h2,
.programs-stage #programs-list > .container > .text-center .lead {
    color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.programs-stage .program-card { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important; }
.programs-stage .page-block > section.bg-eyf-primary {
    background: rgba(40, 167, 69, 0.8) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.programs-stage .hero-detail { background: transparent; }
.programs-stage .hero-detail h1, .programs-stage .hero-detail .lead { text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55); }
.programs-stage #program-details > section.bg-white { background: transparent !important; }
.programs-stage #program-details > section.bg-white > .container {
    background: #fff; border-radius: 20px; padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
@media (max-width: 575.98px) {
    .programs-stage #program-details > section.bg-white > .container { padding: 1.5rem 1.1rem; border-radius: 16px; width: calc(100% - 24px); }
}
.hero-slide {
    position: absolute; inset: -2%; background-size: cover; background-repeat: no-repeat;
    opacity: 0; transform: scale(1.04);
    transition: opacity 1.6s ease-in-out;
    will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: kenBurns 8s ease-out forwards; }
.hero-slide.is-leaving { opacity: 0; transform: scale(1.02) translate3d(0, 0, 0); }
@keyframes kenBurns { from { transform: scale(1.14) translate3d(-1%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero-slideshow::before {     /* darkening so the heading stays readable */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.55) 55%, rgba(17, 24, 39, 0.35) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.75) 0%, transparent 35%);
}
.hero-slideshow > .container { position: relative; z-index: 2; }
.hero-slideshow h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.hs-controls {
    position: absolute; z-index: 3; right: 24px; bottom: 26px;
    display: flex; align-items: center; gap: 12px;
}
.hs-dots { display: flex; gap: 8px; }
.hs-dot {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, 0.45); transition: width 0.35s ease, background-color 0.35s ease;
}
.hs-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hs-dot.is-active { width: 28px; background: var(--eyf-gold); }
.hs-pause {
    width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
    background: rgba(17, 24, 39, 0.4); color: #fff; font-size: 0.8rem;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 0.25s ease;
}
.hs-pause:hover { background: var(--eyf-primary); border-color: var(--eyf-primary); }
.hs-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, 0.12); }
.hs-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--eyf-primary), var(--eyf-gold)); }
.hs-progress span.run { animation: hsBar var(--hs-ms, 6500ms) linear forwards; }
.programs-stage.is-paused .hs-progress span { animation-play-state: paused; }
@keyframes hsBar { from { width: 0; } to { width: 100%; } }
@media (max-width: 575.98px) {
    .hero-slideshow { min-height: 60vh; }
    .hs-controls { left: 0; right: 0; justify-content: center; bottom: 18px; }
}


/* =========================================================
   TYPOGRAPHY
   Headings, subheadings, menu and buttons: Plus Jakarta Sans
   Paragraphs and body text: Source Sans 3
   Sizes come from Bootstrap's scale, unchanged, so the
   heading > subheading > paragraph hierarchy stays the same.
   ========================================================= */
:root {
    --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-font-family: var(--font-body);
}
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;           /* Source Sans runs small; 17px matches the old 16px visually */
    line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    text-wrap: balance;
}
h1, h2, .h1, .h2 { letter-spacing: -0.01em; word-spacing: 0.04em; line-height: 1.18; }
h3, h4, .h3, .h4 { letter-spacing: -0.005em; word-spacing: 0.03em; line-height: 1.25; }
h5, h6, .h5, .h6 { line-height: 1.3; }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { letter-spacing: -0.015em; word-spacing: 0.05em; line-height: 1.1; }
.lead { font-weight: 400; line-height: 1.6; }
p { text-wrap: pretty; }
.navbar, .btn, .badge, .nav-link, .dropdown-item, .breadcrumb,
.navbar-brand-custom, .grad-ribbon, .tm-flag, .grad-caption, .card-title {
    font-family: var(--font-heading);
}
.btn, .nav-link, .dropdown-item { letter-spacing: 0.005em; word-spacing: 0.06em; }
.navbar-brand-custom span { letter-spacing: -0.02em; }
.badge { letter-spacing: 0.01em; }
blockquote, .tm-card blockquote { font-family: var(--font-body); }
.small, small { line-height: 1.55; }
.display-4.fw-bolder, .fw-bolder { font-weight: 800 !important; }

/* respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
