.school-stages {
    --stages-bg: #174649;
    --stages-primary: #ffffff;
    --stages-primary-dark: #123739;
    --stages-text: #ffffff;
    --stages-muted: rgba(255, 255, 255, 0.75);
    --stages-gold: #feb449;
    --stages-border: rgba(255, 255, 255, 0.18);
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 6rem);
    background: #174649 !important;
    color: #ffffff;
    font-family: system-ui, sans-serif;
}

/* Organic corner background shapes matching Edukids motif */
.school-stages::before,
.school-stages::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Bottom left radial atmosphere glow */
.school-stages::before {
    inset-inline-start: -6rem;
    inset-block-end: -7rem;
    width: 24rem;
    height: 24rem;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

/* Top right gold atmosphere glow */
.school-stages::after {
    inset-inline-end: -6rem;
    inset-block-start: -7rem;
    width: 26rem;
    height: 26rem;
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    background: radial-gradient(circle, rgba(254, 180, 73, 0.08) 0%, transparent 70%);
}

.school-stages__inner {
    position: relative;
    z-index: 1;
    max-width: 78rem;
    margin: 0 auto;
}

/* Header */
.school-stages__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(1.8rem, 3.5vw, 2.75rem);
}

.school-stages__header-main {
    flex: 1;
    min-width: 0;
}

.school-stages__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    color: var(--stages-gold);
    text-transform: uppercase;
}

.school-stages__eyebrow-line {
    width: 1.85rem;
    height: 3px;
    border-radius: 2px;
    background: var(--stages-gold);
    display: inline-block;
}

.school-stages__heading-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.school-stages__title {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
    white-space: nowrap;
}

.school-stages__divider {
    flex: 1;
    height: 1px;
    background: var(--stages-border);
    display: block;
}

.school-stages__subtitle {
    margin: 0.5rem 0 0;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    color: var(--stages-muted);
    font-weight: 450;
    line-height: 1.4;
}

/* Controls */
.school-stages__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.school-stages__btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.school-stages__btn:hover:not(:disabled) {
    background: var(--stages-gold);
    border-color: var(--stages-gold);
    color: #174649;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 180, 73, 0.3);
}

.school-stages__btn[data-stage-next] {
    background: var(--stages-gold);
    border-color: var(--stages-gold);
    color: #174649;
}

.school-stages__btn[data-stage-next]:hover:not(:disabled) {
    background: #e8a238;
    border-color: #e8a238;
    color: #174649;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(254, 180, 73, 0.4);
}

.school-stages__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Cards track */
.school-stages__cards {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-stages__track {
    --stages-visible: 1;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--stages-visible) - 1) * clamp(1rem, 2vw, 1.75rem)) / var(--stages-visible));
    gap: clamp(1rem, 2vw, 1.75rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
}

.school-stages__track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 48rem) {
    .school-stages__track {
        --stages-visible: 2;
    }
}

@media (min-width: 64rem) {
    .school-stages__track {
        --stages-visible: 3;
    }
}

.school-stages__item {
    min-width: 0;
    scroll-snap-align: start;
}

/* Card item */
.school-stages__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #ffffff;
}

.school-stages__card-media {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    position: relative;
}

.school-stages__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-stages__card:hover .school-stages__card-media img {
    transform: scale(1.05);
}

.school-stages__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0.35rem 0.25rem;
    gap: 1rem;
}

.school-stages__caption-text {
    flex: 1;
    min-width: 0;
}

.school-stages__card-level {
    display: block;
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--stages-muted);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.school-stages__card-title {
    margin: 0;
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    font-weight: 780;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.school-stages__card-arrow {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.school-stages__card:hover .school-stages__card-arrow {
    background: var(--stages-gold);
    border-color: var(--stages-gold);
    color: #174649;
    transform: translateX(3px);
}

/* Dots / Pill pagination indicator */
.school-stages__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: clamp(1.8rem, 3vw, 2.75rem);
}

.school-stages__dot {
    height: 6px;
    width: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.school-stages__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.school-stages__dot.is-active {
    background: var(--stages-gold);
    width: 2.85rem;
}

@media (max-width: 48rem) {
    .school-stages__divider {
        display: none;
    }
    
    .school-stages__header {
        align-items: flex-start;
    }
    
    .school-stages__title {
        white-space: normal;
    }
}
