/**
 * Homepage hero slider — immersive campus + toppers slides.
 */

.sx-hero-slider--fullscreen {
    --sx-stats-reserve: 92px;
    --sx-hero-controls-h: 58px;
        502px,
        calc((100dvh - var(--sx-site-header-h, 165px) - var(--sx-stats-reserve)) * 1.32),
        686px
    );
    position: relative;
    overflow: hidden;
    height: var(--sx-hero-h);
}

.sx-hero-banner.sx-hero-slider--fullscreen {
    padding: 0;
    background: var(--sx-navy, #0D1B3E);
}

.sx-hero-slider__viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.sx-hero-slider__track {
    display: flex;
    align-items: stretch;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Slide shell ── */
.sx-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sx-hero-slide__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sx-hero-slide__bg--ken-burns {
    animation: sx-hero-ken-burns 18s ease-in-out infinite alternate;
}

@keyframes sx-hero-ken-burns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.sx-hero-slide__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(13, 27, 62, 0.92) 0%, rgba(13, 27, 62, 0.72) 42%, rgba(13, 27, 62, 0.35) 100%),
        linear-gradient(to top, rgba(13, 27, 62, 0.55) 0%, transparent 45%);
}

.sx-hero-slide__overlay--warm {
    background:
        linear-gradient(105deg, rgba(74, 18, 40, 0.88) 0%, rgba(13, 27, 62, 0.7) 50%, rgba(13, 27, 62, 0.3) 100%),
        linear-gradient(to top, rgba(13, 27, 62, 0.5) 0%, transparent 40%);
}

.sx-hero-slide__overlay--toppers {
    background:
        linear-gradient(105deg, rgba(13, 27, 62, 0.94) 0%, rgba(13, 27, 62, 0.82) 55%, rgba(13, 27, 62, 0.5) 100%);
}

.sx-hero-slide__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: calc(var(--sx-hero-controls-h) + 8px);
}

.sx-hero-slide__content {
    max-width: 580px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.sx-hero-slide.is-active .sx-hero-slide__content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Typography ── */
.sx-hero-slide .section-label.sx-hero-slide__label,
.sx-hero-slide__label {
    color: var(--sx-gold, #C9A84C);
    margin-bottom: 8px;
    font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.sx-hero-slide__session {
    margin: 0 0 12px;
}

.sx-hero-slide__session-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 999px;
}

.sx-hero-slide__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.55rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--sx-white, #fff);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.sx-hero-slide__desc {
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px;
    max-width: 500px;
}

/* ── Actions ── */
.sx-hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sx-hero-slide__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sx-hero-slide__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45);
}

.sx-hero-slide__btn-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sx-hero-slide__btn-primary:hover .sx-hero-slide__btn-icon {
    transform: translateX(3px);
}

.sx-hero-slide__btn-outline {
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #fff !important;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.06) !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sx-hero-slide__btn-outline:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #fff !important;
}

/* ── Toppers slide split ── */
.sx-hero-slide__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    width: 100%;
}

.sx-hero-slide__feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sx-hero-slide__feature-img {
    width: 100%;
    max-height: min(280px, calc(var(--sx-hero-h) - 120px));
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.15));
}

/* Topper highlight list */
.sx-topper-highlight {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    max-width: 480px;
}

.sx-topper-highlight__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.sx-topper-highlight__item--rank-1 {
    grid-column: 1 / -1;
    background: rgba(201, 168, 76, 0.18);
    border-color: var(--sx-gold, #C9A84C);
}

.sx-topper-highlight__rank {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--sx-navy, #0D1B3E);
    background: var(--sx-gold, #C9A84C);
    border-radius: 50%;
}

.sx-topper-highlight__item--rank-2 .sx-topper-highlight__rank {
    background: #c0c0c0;
    color: #1a1a1a;
}

.sx-topper-highlight__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sx-topper-highlight__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--sx-white, #fff);
    line-height: 1.2;
}

.sx-topper-highlight__meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.2px;
}

/* ── Slider footer: progress + controls ── */
.sx-hero-slider__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(13, 27, 62, 0.92) 0%, rgba(13, 27, 62, 0.45) 70%, transparent 100%);
    pointer-events: none;
}

.sx-hero-slider__footer .sx-hero-slider__controls,
.sx-hero-slider__footer .sx-hero-slider__arrow,
.sx-hero-slider__footer .sx-hero-slider__dot {
    pointer-events: auto;
}

.sx-hero-slider__progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.sx-hero-slider__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--sx-gold, #C9A84C);
    transform-origin: left center;
}

.sx-hero-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0 10px;
}

.sx-hero-slider__arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sx-gold, #C9A84C);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
    backdrop-filter: blur(4px);
}

.sx-hero-slider__arrow:hover {
    background: rgba(201, 168, 76, 0.25);
    border-color: var(--sx-gold, #C9A84C);
    transform: scale(1.05);
}

.sx-hero-slider__dots {
    display: flex;
    gap: 10px;
}

.sx-hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, width 0.25s;
}

.sx-hero-slider__dot.is-active {
    background: var(--sx-gold, #C9A84C);
    transform: scale(1.1);
    width: 28px;
    border-radius: 999px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .sx-hero-slider--fullscreen {
        --sx-stats-reserve: 80px;
        --sx-hero-h: clamp(
            475px,
            calc((100dvh - var(--sx-site-header-h, 190px) - var(--sx-stats-reserve)) * 1.32),
            634px
        );
    }

    .sx-hero-slide__split {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sx-hero-slide__feature-media {
        display: none;
    }

    .sx-topper-highlight {
        grid-template-columns: 1fr;
    }

    .sx-topper-highlight__item--rank-1 {
        grid-column: auto;
    }
}

@media (max-height: 760px) {
    .sx-hero-slider--fullscreen {
        --sx-hero-h: clamp(449px, calc((100dvh - var(--sx-site-header-h) - 72px) * 1.32), 554px);
    }

    .sx-hero-slide__title {
        font-size: clamp(1.25rem, 2.8vw, 1.75rem);
        margin-bottom: 8px;
    }

    .sx-hero-slide__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 14px;
        line-height: 1.45;
    }

    .sx-hero-slide__inner {
        padding-top: 12px;
    }

    .sx-hero-slide__btn-primary,
    .sx-hero-slide__btn-outline {
        padding: 9px 18px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .sx-hero-slide__title {
        font-size: 1.35rem;
    }

    .sx-hero-slide__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sx-hero-slide__btn-primary,
    .sx-hero-slide__btn-outline {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }

    .sx-hero-slider__arrow {
        width: 34px;
        height: 34px;
    }

    .sx-hero-slider__controls {
        gap: 12px;
        padding: 8px 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sx-hero-slide__bg--ken-burns {
        animation: none;
    }

    .sx-hero-slide__content {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .sx-hero-slider__track {
        transition-duration: 0.01ms;
    }
}
