/* 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: #1e7e34; 
    --eyf-secondary: #1e7e34; 
    --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: url('../Jpg/desktop.jpg') no-repeat center 30%/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: #1e7e34; 
    --eyf-secondary: #1e7e34; 
    --eyf-gold: #ffc107; 
    --eyf-dark: #212529;
}
.border-eyf-secondary { border-color: var(--eyf-secondary) !important;
}
.hero-about {
    background: linear-gradient(rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), #1f2937;
    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: #111827;
    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(135deg, #111827 0%, #14532d 100%);
    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(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), #1f2937;
    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(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), #1f2937;
    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(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), #1f2937;
    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(135deg, #111827 0%, #14532d 100%);
    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; } }
.team-photo {
    position: relative; width: 140px; height: 140px; margin-left: auto; margin-right: auto;
    background: linear-gradient(135deg, var(--eyf-primary), var(--eyf-secondary));
    border: 3px solid var(--eyf-secondary); overflow: hidden;
}
.team-photo::before {
    content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 2.6rem; letter-spacing: 0.04em;
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-sm { width: 104px; height: 104px; }
.team-photo-sm::before { font-size: 1.9rem; }
.story-icon {
    height: 120px; display: grid; place-items: center; color: #fff; font-size: 2.6rem;
    background: linear-gradient(135deg, var(--eyf-primary), var(--eyf-secondary));
}
.give-card { border: 0; border-top: 5px solid var(--eyf-primary); }
.give-icon {
    width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--eyf-primary); color: #fff; font-size: 1.4rem; border-radius: 12px;
}
.give-row {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 0.75rem;
    padding: 0.65rem 0; border-bottom: 1px solid #e9ecef;
}
.give-label { grid-column: 1 / -1; font-size: 0.8rem; color: #6c757d; }
.give-value { font-weight: 800; color: var(--eyf-dark); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.give-copy { white-space: nowrap; }
.give-copy.copied { background: var(--eyf-primary); color: #fff; border-color: var(--eyf-primary); }

/* =========================================================
   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: 0; 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: 0; 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 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: 0; 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; }
}

/* =========================================================
   AUDIT FIXES (Oct 2026)
   ========================================================= */
/* green text stays readable on dark backgrounds */
:is(.bg-dark, footer, .hero-section, .tm-program, .grad-section, .hero-detail) :is(.text-eyf-primary, .text-eyf-secondary):not(.card *),
.navbar-brand-custom .text-eyf-secondary { color: #5fd17b !important; }
.programs-stage .page-block > section.bg-eyf-primary { background: rgba(24, 104, 43, 0.93) !important; }
.blockquote-footer { color: #565e64; }
.bg-eyf-primary .text-eyf-gold, .bg-success .text-eyf-gold { color: #fff !important; }
.bg-dark .text-muted:not(.card *) { color: #c3c9d1 !important; }

/* first screen */
.hero-section { height: auto; min-height: 92vh; padding: 5rem 0 4rem; background-position: center 30% !important; }
.hero-section::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.66) 34%, rgba(17, 24, 39, 0.22) 50%, rgba(17, 24, 39, 0) 62%);
}
.hero-section > .container, .hero-section > .scroll-cue { position: relative; z-index: 1; }
.hero-section > .scroll-cue { position: absolute; }
.hero-name { font-size: clamp(2.3rem, 5vw, 4.25rem); line-height: 1.05; }
.hero-slogan { font-size: clamp(1.2rem, 2.1vw, 1.7rem); }
.hero-lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-section h1, .hero-section p { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
@media (min-width: 992px) {
    .hero-lead { margin-left: 0; }
    .hero-name { max-width: 11ch; }
    .hero-section .proof-strip { margin-left: 0; max-width: 960px; }
}
@media (max-width: 991.98px) {
    .hero-section::before { background: linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, rgba(17, 24, 39, 0.66) 38%, rgba(17, 24, 39, 0.84) 100%); }
}
.hero-textlink { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding: 0.4rem 0.2rem; }
.hero-textlink:hover { color: var(--eyf-gold); }
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; max-width: 1040px; margin: 0 auto; text-align: left; }
.proof-strip li {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem;
    background: rgba(17, 24, 39, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); color: #e5e7eb;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.95rem; line-height: 1.3;
}
.proof-strip i { color: var(--eyf-gold); font-size: 1.25rem; flex-shrink: 0; }
.proof-strip strong { color: #fff; }
@media (max-width: 991.98px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .hero-section { min-height: 0; padding: 5.5rem 0 3rem; }
    .proof-strip { gap: 0.5rem; } .proof-strip li { padding: 0.7rem 0.75rem; font-size: 0.88rem; }
}

/* compact section headers */
.hero-about, .hero-impact, .hero-partner, .hero-news, .hero-contact {
    height: auto !important; min-height: 0 !important; padding: 5rem 0 3rem;
}
.hero-about .container, .hero-impact .container, .hero-partner .container, .hero-news .container, .hero-contact .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.donation-hero { padding: 4.5rem 0 3.5rem; }
.donate-quote { max-width: 760px; margin-top: 1.75rem; padding: 1.1rem 1.4rem; border-left: 4px solid var(--eyf-gold); background: rgba(17, 24, 39, 0.55); text-align: left; }
.donate-quote blockquote { font-style: italic; font-size: 1.05rem; color: #fff; }
.donate-quote figcaption { color: var(--eyf-gold); font-weight: 700; font-size: 0.9rem; }

/* giving: US route and trust facts */
.give-us { background: #f8f9fa; border: 1px solid #e9ecef; border-left: 5px solid var(--eyf-primary); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.75rem; font-size: 0.92rem; color: #374151; }
.trust-strip i { color: var(--eyf-primary); margin-right: 0.35rem; }

/* privacy notice */
.privacy-body p { color: #374151; }
.footer-privacy { font-size: inherit; }

/* comfortable tap targets */
footer .list-unstyled a { display: inline-block; padding: 0.3rem 0; }
.footer-social { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; }
.hs-dots { gap: 0; }
.hs-dot { width: 24px; height: 24px; padding: 7px; box-sizing: border-box; background-clip: content-box; }
.hs-dot.is-active { width: 42px; }
.social-link { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; }
.badge { font-size: 0.8125rem; }
.btn-sm { padding-top: 0.45rem; padding-bottom: 0.45rem; }
#our-team .card-body .mt-3 a { display: inline-grid; place-items: center; width: 44px; height: 44px; }
footer .mt-4 a.d-flex { padding: 0.45rem 0; }
.footer-privacy, footer a[href="#main-nav"] { display: inline-block; padding: 0.5rem 0; }
.give-label { font-size: 0.85rem; }
.grad-ribbon { font-size: 0.8125rem; }
.sponsor-highlight { max-width: 1000px; background: #fff8e1; border: 1px solid #ffe08a; border-left: 6px solid var(--eyf-gold); }
.sponsor-amount { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--eyf-dark); font-family: 'Plus Jakarta Sans', sans-serif; text-align: center; }
.sponsor-amount small { display: block; font-size: 0.85rem; font-weight: 700; color: #4b5563; margin-top: 0.3rem; }
.partners-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4b5563; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.partner-list { gap: 0.9rem; }
.partner-list li {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem;
    min-width: 170px; padding: 0.9rem 1.1rem 0.7rem; background: #fff; border: 1px solid #dee2e6;
}
.partner-list img { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.partner-list span { font-size: 0.85rem; font-weight: 700; color: #374151; font-family: 'Plus Jakarta Sans', sans-serif; }
@media (max-width: 575.98px) { .partner-list li { min-width: 0; flex: 1 1 calc(50% - 0.9rem); } .partner-list img { height: 44px; max-width: 100%; } }
@media (max-width: 767.98px) {
    .story-icon { height: 76px; font-size: 2rem; }
    #our-team .team-photo-sm { width: 84px; height: 84px; }
    #our-team .team-photo-sm::before { font-size: 1.5rem; }
}
.hero-about.bg-in { background: linear-gradient(rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), url('../Jpg/headers/hdr-about.jpg') no-repeat center center/cover; }
.hero-partner.bg-in { background: linear-gradient(rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), url('../Jpg/headers/hdr-partner.jpg') no-repeat center center/cover; }
.hero-news.bg-in { background: linear-gradient(rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), url('../Jpg/headers/hdr-stories.jpg') no-repeat center center/cover; }
.donation-hero.bg-in { background: linear-gradient(rgba(17, 24, 39, 0.74), rgba(17, 24, 39, 0.74)), url('../Jpg/headers/hdr-donate.jpg') no-repeat center center/cover; }

/* =========================================================
   CONNECT (WhatsApp, quick answers, call)
   ========================================================= */
.connect { position: fixed; left: 18px; bottom: 18px; z-index: 1040; font-family: 'Source Sans 3', system-ui, sans-serif; }
.connect-launcher {
    display: inline-flex; align-items: center; gap: 0.55rem; height: 52px; padding: 0 1.2rem 0 1rem;
    border: 0; border-radius: 999px; background: var(--eyf-primary); color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease, background-color 0.2s ease;
}
.connect-launcher i { font-size: 1.35rem; }
.connect-launcher:hover, .connect-launcher[aria-expanded="true"] { background: #17692b; transform: translateY(-2px); }
.connect-launcher:focus-visible, .connect-menu a:focus-visible, .connect-menu button:focus-visible { outline: 3px solid var(--eyf-gold); outline-offset: 3px; }
.connect-menu {
    position: absolute; left: 0; bottom: 64px; width: 260px; padding: 0.4rem; background: #fff;
    border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); display: grid; gap: 0.15rem;
}
.connect-menu[hidden], .connect-panel[hidden] { display: none; }
.connect-menu a, .connect-menu button {
    display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.7rem 0.8rem; border: 0; border-radius: 10px;
    background: transparent; color: #1f2937; text-decoration: none; text-align: left; font-weight: 700; font-size: 1rem;
}
.connect-menu a:hover, .connect-menu button:hover { background: #f1f5f2; }
.connect-menu i { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.05rem; }
.connect-menu .fa-whatsapp { background: #1e8e47; font-size: 1.3rem; }
.connect-menu .fa-comment-dots { background: var(--eyf-primary); }
.connect-menu .fa-phone { background: #374151; }
.connect-menu small { display: block; font-weight: 400; color: #4b5563; font-size: 0.85rem; }
.connect-panel {
    position: absolute; left: 0; bottom: 64px; width: 360px; max-height: min(70vh, 560px);
    display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}
.connect-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; background: var(--eyf-darker); color: #fff; }
.connect-panel__head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.connect-panel__head p { font-size: 0.85rem; margin: 0; color: #d1d5db; }
.connect-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; }
.connect-close:hover { background: rgba(255, 255, 255, 0.24); }
.connect-log { flex: 1; overflow-y: auto; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: #f8f9fa; }
.connect-msg { max-width: 88%; padding: 0.6rem 0.8rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.45; color: #1f2937; }
.connect-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.connect-msg.me { align-self: flex-end; background: var(--eyf-primary); color: #fff; border-bottom-right-radius: 4px; }
.connect-msg a { color: var(--eyf-primary); font-weight: 700; }
.connect-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 1rem; border-top: 1px solid #e5e7eb; }
.connect-chips button {
    border: 1px solid #c7d7cc; background: #fff; color: #17692b; border-radius: 999px;
    padding: 0.4rem 0.75rem; font-size: 0.85rem; font-weight: 700; min-height: 32px;
}
.connect-chips button:hover { background: #eef6f0; }
.connect-form { display: flex; gap: 0.4rem; padding: 0.6rem 1rem; border-top: 1px solid #e5e7eb; }
.connect-form input { flex: 1; min-width: 0; height: 42px; padding: 0 0.8rem; border: 1px solid #ced4da; border-radius: 10px; font-size: 0.95rem; }
.connect-form input:focus { outline: 2px solid var(--eyf-primary); outline-offset: 1px; border-color: var(--eyf-primary); }
.connect-form button { width: 44px; height: 42px; border: 0; border-radius: 10px; background: var(--eyf-primary); color: #fff; }
.connect-human { display: block; padding: 0.65rem 1rem; text-align: center; font-weight: 700; font-size: 0.9rem; color: #17692b; text-decoration: none; border-top: 1px solid #e5e7eb; }
.connect-human:hover { background: #eef6f0; }
@media (max-width: 575.98px) {
    .connect { left: 14px; bottom: 14px; }
    .connect-launcher { width: 52px; padding: 0; justify-content: center; }
    .connect-launcher__label { display: none; }
    .connect-panel { position: fixed; left: 10px; right: 10px; bottom: 76px; width: auto; max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .connect-launcher { transition: none; } }

/* menu bar stays readable over the (now undarkened) home photo */
.nav-glass { background: rgba(17, 24, 39, 0.9); }
.nav-glass .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.82); }
.nav-glass .navbar-nav .nav-link:hover, .nav-glass .navbar-nav .nav-link:focus { color: #fff; }
