/* Homepage — full-width hero slider, partners, animations */

/* Homepage fixed top bars — no gap on scroll */
.page-home,
.page-olympiad {
    --topbar-h: 40px;
    --hero-pad-x: clamp(1rem, 4vw, 1.5rem);
    --hero-pad-top: clamp(6rem, 15vh, 9.5rem);
    --hero-pad-bottom: clamp(5rem, 14vh, 8rem);
}

.page-home:has(.notification-bar),
.page-olympiad:has(.notification-bar) {
    --hero-pad-top: clamp(7.5rem, 17vh, 10.5rem);
}

.page-home .notification-bar,
.page-olympiad .notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    transition: transform 0.25s ease;
}

.page-home.is-scrolled .notification-bar,
.page-olympiad.is-scrolled .notification-bar {
    transform: translateY(-100%);
}

.page-home .site-header,
.page-olympiad .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    box-shadow: none;
    transform: translateY(var(--topbar-h));
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.page-home:not(:has(.notification-bar)) .site-header,
.page-olympiad:not(:has(.notification-bar)) .site-header {
    transform: translateY(0);
}

.page-home.is-scrolled .site-header,
.page-olympiad.is-scrolled .site-header {
    transform: translateY(0);
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.page-home:not(.is-scrolled) .site-header .logo__text,
.page-olympiad:not(.is-scrolled) .site-header .logo__text,
.page-home:not(.is-scrolled) .site-header .main-nav__list > li > a,
.page-olympiad:not(.is-scrolled) .site-header .main-nav__list > li > a,
.page-home:not(.is-scrolled) .site-header .nav-toggle span,
.page-olympiad:not(.is-scrolled) .site-header .nav-toggle span {
    color: #fff;
}

.page-home:not(.is-scrolled) .site-header .main-nav__list > li > a:hover,
.page-olympiad:not(.is-scrolled) .site-header .main-nav__list > li > a:hover,
.page-home:not(.is-scrolled) .site-header .main-nav__list > li > a.active,
.page-olympiad:not(.is-scrolled) .site-header .main-nav__list > li > a.active {
    color: #fff;
    background: rgba(255,255,255,0.16);
}

.page-home:not(.is-scrolled) .site-header .has-dropdown > a svg,
.page-olympiad:not(.is-scrolled) .site-header .has-dropdown > a svg {
    stroke: #fff;
}

.page-home.is-scrolled .site-header .main-nav__list > li > a,
.page-olympiad.is-scrolled .site-header .main-nav__list > li > a {
    color: var(--text);
}

.page-home.is-scrolled .site-header .main-nav__list > li > a:hover,
.page-olympiad.is-scrolled .site-header .main-nav__list > li > a:hover,
.page-home.is-scrolled .site-header .main-nav__list > li > a.active,
.page-olympiad.is-scrolled .site-header .main-nav__list > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.page-home.is-scrolled .site-header .logo__text,
.page-olympiad.is-scrolled .site-header .logo__text {
    color: var(--primary);
}

.page-home:has(.notification-bar) .hero-full__content,
.page-olympiad:has(.notification-bar) .hero-full__content {
    padding-top: var(--hero-pad-top);
}

/* Full-width hero slider */
.hero-full {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 92vh, 900px);
    overflow: hidden;
    background: #0f172a;
}

.hero-full__slides {
    position: absolute;
    inset: 0;
}

.hero-full__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
    pointer-events: none;
}
.hero-full__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.hero-full__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.hero-full__slide.is-active .hero-full__bg {
    transform: scale(1);
}
.hero-full__bg--fallback {
    background: linear-gradient(135deg, #0f2744 0%, #1a5fb4 45%, #4c1d95 100%);
}

.hero-full__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.55) 42%, rgba(15,23,42,0.25) 100%),
        linear-gradient(to top, rgba(15,23,42,0.75) 0%, transparent 45%);
    z-index: 1;
}

.hero-full__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: clamp(520px, 92vh, 900px);
    display: flex;
    align-items: center;
    padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
}

.hero-full__copy {
    max-width: 640px;
    color: #fff;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.hero-full__copy > * {
    opacity: 0;
    transform: translateY(28px);
}
.hero-full__slide.is-active .hero-full__copy > * {
    animation: heroContentIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-full__slide.is-active .hero-full__copy > *:nth-child(1) { animation-delay: 0.1s; }
.hero-full__slide.is-active .hero-full__copy > *:nth-child(2) { animation-delay: 0.2s; }
.hero-full__slide.is-active .hero-full__copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-full__slide.is-active .hero-full__copy > *:nth-child(4) { animation-delay: 0.4s; }
.hero-full__slide.is-active .hero-full__copy > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroContentIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-full__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}
.hero-full__badge-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-full__title {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero-full__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    max-width: 560px;
    line-height: 1.7;
}

.hero-full__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.625rem);
}

.hero-full__actions .btn,
.hero-full__btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    min-height: 42px;
    box-shadow: 0 6px 24px rgba(26,95,180,0.35);
}

.hero-full__actions .btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.75);
}
.btn--outline-light:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.hero-full__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.4rem, 2vw, 0.5rem);
    margin-top: clamp(0.65rem, 2vw, 0.75rem);
}

.hero-full__quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.hero-full__quick-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}

.hero-full__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.hero-full__arrow:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-50%) scale(1.06);
}
.hero-full__arrow--prev { left: clamp(0.75rem, 3vw, 2rem); }
.hero-full__arrow--next { right: clamp(0.75rem, 3vw, 2rem); }

.hero-full__dots {
    position: absolute;
    bottom: clamp(1.5rem, 5vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    padding: 0 var(--hero-pad-x, 1rem);
}
.hero-full__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}
.hero-full__dot.is-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

.hero-full__progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}
.hero-full__progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
    transition: width 0.1s linear;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Stats modern — dark band below hero */
.stats-modern {
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding: var(--section-y, clamp(2.5rem, 6vw, 3rem)) 0;
    background: linear-gradient(180deg, #0b1220 0%, #111827 50%, #0f172a 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.stats-modern__grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.stats-modern__grid--1 { grid-template-columns: minmax(0, 280px); }
.stats-modern__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.stats-modern__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 840px; }
.stats-modern__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1100px; }

.stats-modern__card {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.stats-modern__card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.stats-modern__icon-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26,95,180,0.35), rgba(124,58,237,0.25));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
}
.stat-icon-svg {
    width: 26px;
    height: 26px;
    display: block;
}
.stats-modern__number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.stats-modern__label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
    margin-top: 0.4rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Partners — after stats */
.partners-section {
    padding: var(--section-y, clamp(2.5rem, 6vw, 4rem)) 0 clamp(2.75rem, 7vw, 4.5rem);
    background: #fff;
    overflow: hidden;
}

.partners-section__header { text-align: center; margin-bottom: 2.5rem; }
.partners-section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.partners-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.partners-section__subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.partners-grid__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 148px;
    padding: 1.25rem 1rem 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15,23,42,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.partners-grid__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,95,180,0.12);
    border-color: rgba(26,95,180,0.2);
    color: inherit;
}
.partners-grid__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
}
.partners-grid__logo img {
    max-height: 56px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: filter 0.3s, opacity 0.3s;
}
.partners-grid__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.partners-grid__city {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}
.partners-grid__card:hover .partners-grid__logo img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Register cards */
.register-cards { display: flex; flex-direction: column; gap: 1rem; }
.register-card {
    display: block;
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}
.register-card:hover { transform: translateX(6px); color: inherit; }
.register-card--blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.register-card--purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; }
.register-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.register-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.register-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.register-card__link { font-size: 0.875rem; font-weight: 600; color: var(--primary); }

/* ─── Shared section head ─── */
.section-head { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 3rem); max-width: 640px; margin-left: auto; margin-right: auto; padding: 0 clamp(0, 2vw, 0.5rem); }
.section-head__eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--primary); background: var(--primary-light);
    padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.section-head__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800;
    color: var(--navy); line-height: 1.15; margin-bottom: 0.75rem;
}
.section-head__title span {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-head__subtitle { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__title span {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head--light .section-head__subtitle { color: rgba(255,255,255,0.75); }
.section-head--light .section-head__eyebrow { background: rgba(255,255,255,0.12); color: #fbbf24; }

/* ─── Why Eduno ─── */
.why-eduno {
    padding: var(--section-y-lg, clamp(3rem, 7vw, 4.5rem)) 0;
    background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.why-eduno__header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.why-eduno__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.why-eduno__feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.why-eduno__feature:hover {
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    transform: translateY(-3px);
}
.why-eduno__feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; margin-bottom: 1rem;
}
.why-eduno__feature h3 {
    font-size: 1rem; font-weight: 700; color: var(--navy);
    margin-bottom: 0.5rem; line-height: 1.3;
}
.why-eduno__feature p {
    font-size: 0.875rem; color: var(--text-muted); line-height: 1.65;
}

/* ─── Olympiads — light grid ─── */
.olympiads-showcase--light {
    padding: var(--section-y-lg, clamp(3rem, 7vw, 4.5rem)) 0;
    background: var(--bg-alt);
}
.olympiads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.olympiad-card-lite {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.olympiad-card-lite:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    border-color: var(--accent);
    color: inherit;
}
.olympiad-card-lite__accent {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent);
}
.olympiad-card-lite__head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}
.olympiad-card-lite__icon { font-size: 1.75rem; }
.olympiad-card-lite__code {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    color: var(--accent); background: var(--primary-light);
    padding: 0.25rem 0.5rem; border-radius: 6px;
}
.olympiad-card-lite__name {
    font-size: 1.05rem; font-weight: 700; color: var(--navy);
    margin-bottom: 0.25rem; line-height: 1.3;
}
.olympiad-card-lite__subject {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--accent); margin-bottom: 0.35rem;
}
.olympiad-card-lite__tagline {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;
    margin-bottom: 1rem;
}
.olympiad-card-lite__link {
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
}

/* ─── Explore Showcase ─── */
.explore-showcase { padding: var(--section-y-lg, clamp(3rem, 7vw, 5rem)) 0; background: #fff; }

.explore-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.explore-tile {
    display: grid; grid-template-columns: 140px 1fr;
    gap: 0; border-radius: 24px; overflow: hidden;
    text-decoration: none; color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.explore-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15,23,42,0.12);
    color: inherit;
}
.explore-tile__visual {
    position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; min-height: 160px;
}
.explore-tile--gold .explore-tile__visual { background: linear-gradient(160deg, #fef3c7, #f59e0b); }
.explore-tile--blue .explore-tile__visual { background: linear-gradient(160deg, #dbeafe, #3b82f6); }
.explore-tile--green .explore-tile__visual { background: linear-gradient(160deg, #d1fae5, #10b981); }
.explore-tile--purple .explore-tile__visual { background: linear-gradient(160deg, #ede9fe, #7c3aed); }
.explore-tile__orb {
    position: absolute; width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.25); top: -20px; right: -20px;
}
.explore-tile__emoji { font-size: 3rem; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15)); }
.explore-tile__content { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.explore-tile__content h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.explore-tile__content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.explore-tile__cta {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.875rem; font-weight: 700; color: var(--primary);
    transition: gap 0.3s;
}
.explore-tile:hover .explore-tile__cta { gap: 0.65rem; }

/* ─── Champions Showcase (top schools carousel) ─── */
.champions-showcase,
.toppers-showcase {
    position: relative;
    padding: var(--section-y-lg, clamp(3rem, 7vw, 5rem)) 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #1a5fb4 100%);
    overflow: hidden;
}
.champions-showcase {
    overflow: visible;
}
.champions-showcase > .container {
    overflow: visible;
}
.champions-showcase__bg,
.toppers-showcase__bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.champions-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 3vw, 3.25rem) clamp(1rem, 3vw, 2rem);
}
.champions-slider__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 440px;
    overflow: visible;
}
.champions-slider__panel {
    position: relative;
    flex: 0 0 28%;
    min-width: 0;
    max-width: 300px;
    width: 100%;
    height: 370px;
    border-radius: 22px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1e3a5f;
    border: 2px solid rgba(255,255,255,0.15);
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s ease,
                max-width 0.5s ease,
                opacity 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
    pointer-events: none;
}
.champions-slider__panel.is-active,
.champions-slider__panel.is-prev,
.champions-slider__panel.is-next {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.champions-slider__panel.is-active {
    order: 2;
    flex: 0 0 36%;
    max-width: 400px;
    height: 420px;
    z-index: 3;
    border-color: rgba(251,191,36,0.6);
    box-shadow: 0 28px 64px rgba(0,0,0,0.45);
}
.champions-slider__panel.is-prev {
    order: 1;
    opacity: 0.95;
    cursor: pointer;
    z-index: 2;
}
.champions-slider__panel.is-next {
    order: 3;
    opacity: 0.95;
    cursor: pointer;
    z-index: 2;
}
.champions-slider__panel.is-prev:hover,
.champions-slider__panel.is-next:hover {
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.champions-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.45) 45%, rgba(15,23,42,0.1) 100%);
}
.champions-slider__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem;
    color: #fff;
    z-index: 1;
}
.champions-slider__rank {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.55rem;
}
.champions-slider__name {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.champions-slider__panel.is-active .champions-slider__name {
    font-size: 1.4rem;
}
.champions-slider__city {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 0.4rem;
}
.champions-slider__stat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bfdbfe;
    background: rgba(26,95,180,0.35);
    border: 1px solid rgba(147,197,253,0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}
.champions-slider__achievement {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.champions-slider__year {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}
.champions-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.champions-slider__arrow:hover {
    background: rgba(255,255,255,0.22);
}
.champions-slider__arrow--prev { left: 0; }
.champions-slider__arrow--next { right: 0; }
.champions-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.champions-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}
.champions-slider__dot.is-active {
    background: #fff;
    width: 26px;
    border-radius: 5px;
}

.toppers-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.toppers-podium__card {
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.toppers-podium__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}
.toppers-podium__card--gold { border-color: rgba(251,191,36,0.4); background: linear-gradient(180deg, rgba(251,191,36,0.12) 0%, rgba(255,255,255,0.04) 100%); }
.toppers-podium__card--silver { border-color: rgba(203,213,225,0.4); }
.toppers-podium__card--bronze { border-color: rgba(217,119,6,0.35); }
.toppers-podium__card:nth-child(2) { transform: translateY(-16px); }
.toppers-podium__card:nth-child(2):hover { transform: translateY(-26px); }

.toppers-podium__medal { font-size: 2rem; margin-bottom: 0.5rem; }
.toppers-podium__avatar {
    width: 88px; height: 88px; border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; color: #fff;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}
.toppers-podium__avatar img { width: 100%; height: 100%; object-fit: cover; }

.toppers-podium__rank {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff; padding: 0.3rem 0.85rem; border-radius: 50px;
    margin-bottom: 0.75rem;
}
.toppers-podium__card--silver .toppers-podium__rank { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.toppers-podium__card--bronze .toppers-podium__rank { background: linear-gradient(135deg, #fdba74, #ea580c); }
.toppers-podium__name { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.35rem; }
.toppers-podium__school { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.toppers-podium__meta { font-size: 0.8rem; color: rgba(255,255,255,0.55); display: flex; gap: 0.35rem; justify-content: center; }
.toppers-podium__exam {
    display: block; margin-top: 0.75rem; font-size: 0.75rem;
    color: rgba(255,255,255,0.45); padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn--white-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 0.875rem 1.75rem; border-radius: 50px;
    font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center;
    transition: all 0.3s;
}
.btn--white-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ─── What Schools Say — video cards ─── */
.school-videos-section {
    background: var(--bg-alt);
}

.school-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.school-video-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.school-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.school-video-card__media {
    position: relative;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.school-video-card__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.school-video-card__body {
    padding: 1rem 1.125rem 1.125rem;
}

.school-video-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.school-video-card__school {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.school-video-card__role {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.25s; }
.reveal--delay-3 { transition-delay: 0.35s; }
.reveal--delay-4 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 1024px) {
    .page-home {
        --hero-pad-top: clamp(5.75rem, 14vh, 7.5rem);
        --hero-pad-bottom: clamp(5.5rem, 14vh, 6.5rem);
        --hero-pad-x: clamp(1.125rem, 4.5vw, 1.75rem);
    }

    .page-home:has(.notification-bar) {
        --hero-pad-top: clamp(6.75rem, 15vh, 8.75rem);
    }

    .hero-full { min-height: clamp(460px, 85vh, 720px); }
    .hero-full__content {
        min-height: clamp(460px, 85vh, 720px);
        padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
        align-items: flex-end;
    }
    .hero-full__copy {
        max-width: min(100%, 540px);
        padding-right: clamp(2rem, 7vw, 3rem);
    }
    .hero-full__title { font-size: clamp(1.85rem, 4.5vw, 3rem); }
    .hero-full__subtitle { font-size: clamp(0.95rem, 2vw, 1.1rem); margin-bottom: clamp(1rem, 2.5vw, 1.35rem); }
    .page-home:not(.is-scrolled) .site-header .main-nav__list > li > a,
    .page-home:not(.is-scrolled) .site-header .main-nav__list > li > a:hover,
    .page-home:not(.is-scrolled) .site-header .main-nav__list > li > a.active {
        color: var(--text);
        background: transparent;
    }
    .page-home:not(.is-scrolled) .site-header .main-nav__list > li > a:hover,
    .page-home:not(.is-scrolled) .site-header .main-nav__list > li > a.active {
        background: var(--primary-light);
        color: var(--primary);
    }
    .stats-modern__grid--2,
    .stats-modern__grid--3,
    .stats-modern__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
    .why-eduno__grid { grid-template-columns: repeat(2, 1fr); }
    .school-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toppers-podium__card:nth-child(2) { transform: none; }
    .toppers-podium__card:nth-child(2):hover { transform: translateY(-10px); }
    .champions-slider { padding: 0 2.75rem 1.5rem; }
    .champions-slider__panel.is-active {
        flex: 0 0 34%;
        max-width: 360px;
        height: 400px;
    }
    .champions-slider__panel.is-prev,
    .champions-slider__panel.is-next {
        flex: 0 0 26%;
        max-width: 260px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .page-home {
        --hero-pad-top: clamp(5.25rem, 14vw, 6.5rem);
        --hero-pad-bottom: clamp(5.75rem, 16vw, 7rem);
        --hero-pad-x: clamp(1.25rem, 5vw, 1.75rem);
    }

    .page-home:has(.notification-bar) {
        --hero-pad-top: clamp(6.25rem, 15vw, 7.75rem);
    }

    .hero-full__content {
        padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
    }

    .hero-full__copy {
        padding-right: clamp(2.25rem, 8vw, 3rem);
        padding-left: clamp(0.25rem, 1vw, 0.5rem);
    }

    .section-head { margin-bottom: clamp(1.25rem, 4vw, 2rem); }
    .section-head__title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section-head__subtitle { font-size: 0.95rem; }
    .why-eduno,
    .olympiads-showcase--light,
    .explore-showcase,
    .partners-section,
    .champions-showcase,
    .toppers-showcase { padding: var(--section-y, clamp(2rem, 5vw, 3rem)) 0; }
    .why-eduno__grid { grid-template-columns: 1fr; gap: var(--block-gap, 1rem); }
    .why-eduno__feature { padding: clamp(1rem, 3vw, 1.5rem); }
    .olympiads-grid { grid-template-columns: 1fr; gap: var(--block-gap, 1rem); }
    .explore-bento { grid-template-columns: 1fr; gap: var(--block-gap, 1rem); }
    .explore-tile { grid-template-columns: 100px 1fr; }
    .explore-tile__content { padding: clamp(1rem, 3vw, 1.75rem) clamp(0.875rem, 3vw, 1.5rem); }
    .hero-full__arrow--prev { left: 0.5rem; }
    .hero-full__arrow--next { right: 0.5rem; }
    .toppers-podium { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: var(--block-gap, 1rem); }
    .champions-slider { padding: 0 clamp(0.25rem, 2vw, 1rem) 1.25rem; }
    .champions-slider__stage {
        min-height: 400px;
        gap: 0.75rem;
    }
    .champions-slider__panel.is-prev,
    .champions-slider__panel.is-next {
        flex: 0 0 22%;
        max-width: 140px;
        height: 320px;
        opacity: 0.85;
    }
    .champions-slider__panel.is-active {
        flex: 1 1 auto;
        max-width: none;
        height: 380px;
    }
    .champions-slider__panel.is-prev .champions-slider__achievement,
    .champions-slider__panel.is-next .champions-slider__achievement,
    .champions-slider__panel.is-prev .champions-slider__stat,
    .champions-slider__panel.is-next .champions-slider__stat {
        display: none;
    }
    .champions-slider__panel.is-prev .champions-slider__name,
    .champions-slider__panel.is-next .champions-slider__name {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .page-home {
        --hero-pad-top: clamp(5rem, 15vw, 6.25rem);
        --hero-pad-bottom: clamp(6rem, 18vw, 7.5rem);
        --hero-pad-x: clamp(1.125rem, 5vw, 1.5rem);
    }

    .page-home:has(.notification-bar) {
        --hero-pad-top: clamp(6rem, 16vw, 7.5rem);
    }

    .hero-full { min-height: min(92svh, 680px); }
    .hero-full__content {
        min-height: min(92svh, 680px);
        padding: var(--hero-pad-top) var(--hero-pad-x) var(--hero-pad-bottom);
        align-items: flex-end;
    }
    .hero-full__copy {
        max-width: 100%;
        padding: 0 clamp(0.25rem, 1vw, 0.5rem) 0.5rem;
        padding-right: clamp(2.5rem, 9vw, 3.25rem);
    }
    .hero-full__badge {
        margin-bottom: 0.75rem;
        font-size: 0.72rem;
        padding: 0.35rem 0.8rem;
    }
    .hero-full__title {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    .hero-full__subtitle {
        margin-bottom: 1.15rem;
        max-width: 100%;
        font-size: 0.92rem;
        line-height: 1.6;
    }
    .hero-full__actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero-full__actions .btn,
    .hero-full__btn {
        width: auto;
        flex: 0 1 auto;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
        min-height: 38px;
    }
    .hero-full__quick {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: 0.45rem;
        margin-top: 0.65rem;
    }
    .hero-full__quick-btn {
        width: auto;
        flex: 0 1 auto;
        justify-content: center;
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
    .hero-full__quick-btn svg {
        width: 14px;
        height: 14px;
    }
    .hero-full__arrow { width: 36px; height: 36px; font-size: 1.2rem; }
    .hero-full__arrow--prev { left: clamp(0.5rem, 2vw, 0.75rem); }
    .hero-full__arrow--next { right: clamp(0.5rem, 2vw, 0.75rem); }
    .hero-full__dots { bottom: clamp(1.25rem, 4vw, 1.75rem); }
    .stats-modern { padding: clamp(1.75rem, 5vw, 2.25rem) 0; }
    .stats-modern__grid { gap: 0.75rem; width: 100%; }
    .stats-modern__card { padding: clamp(1.25rem, 4vw, 1.75rem) clamp(0.875rem, 3vw, 1.25rem); }
    .stats-modern__grid--1,
    .stats-modern__grid--2,
    .stats-modern__grid--3,
    .stats-modern__grid--4 { grid-template-columns: 1fr; max-width: 320px; }
    .stats-modern__number { font-size: 1.75rem; }
    .stats-modern__icon-wrap { width: 48px; height: 48px; }
    .stat-icon-svg { width: 22px; height: 22px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: var(--block-gap, 0.75rem); }
    .partners-grid__card { min-height: 132px; padding: clamp(0.875rem, 3vw, 1rem) clamp(0.625rem, 2vw, 0.75rem); }
    .partners-grid__logo { height: 52px; }
    .partners-grid__name { font-size: 0.75rem; }
    .explore-tile { grid-template-columns: 1fr; }
    .explore-tile__visual { min-height: 120px; }
    .school-videos-grid { grid-template-columns: 1fr; gap: 1rem; }
    .school-video-card__body { padding: 0.9rem 1rem 1rem; }
    .champions-slider { padding: 0 0 1.25rem; }
    .champions-slider__arrow--prev { left: 0.25rem; }
    .champions-slider__arrow--next { right: 0.25rem; }
    .champions-slider__stage { min-height: 380px; }
    .champions-slider__panel.is-prev,
    .champions-slider__panel.is-next {
        display: none !important;
    }
    .champions-slider__panel.is-active {
        flex: 0 0 100%;
        max-width: 340px;
        height: 380px;
        margin: 0 auto;
    }
}
