/**
 * Homepage Layout V4 — course slider immediately after navigation
 */

.home-layout-v4 .home-v4 {
    padding-top: 1rem;
}

.home-layout-v4 .home-v4-band {
    padding-top: 0.5rem;
}

.home-layout-v4 .course-slider-banner {
    margin-top: 0.25rem;
}

.home-layout-v4 .course-slider-banner + .hero-section {
    margin-top: 1.35rem;
}

.course-slider-banner {
    position: relative;
    z-index: 1;
    background: var(--knu-blue-deep);
    border-bottom: 4px solid var(--knu-gold);
}

.course-slider-banner__empty {
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(90deg, var(--knu-blue-dark), #063a78);
    font-size: 0.95rem;
}

.course-slider-banner__empty code {
    color: var(--knu-gold);
}

.course-slider-banner__carousel {
    max-height: min(52vh, 520px);
}

.course-slider-banner__figure {
    position: relative;
    margin: 0;
    height: min(52vh, 520px);
    overflow: hidden;
}

.course-slider-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.course-slider-banner__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 0 2rem;
    background: linear-gradient(180deg, rgba(0, 23, 57, 0.05) 20%, rgba(0, 23, 57, 0.82) 100%);
}

.course-slider-banner__badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--knu-gold);
    color: #1a1200;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-slider-banner__title {
    margin: 0 0 0.45rem;
    max-width: 720px;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
}

.course-slider-banner__subtitle {
    margin: 0 0 1rem;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
}

.course-slider-banner__cta {
    font-weight: 800;
    border-radius: 8px;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.course-slider-banner__indicators {
    bottom: 1rem;
    top: auto;
    margin-bottom: 0;
    gap: 0.35rem;
}

.course-slider-banner__indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    opacity: 0.55;
}

.course-slider-banner__indicators .active {
    opacity: 1;
    background-color: var(--knu-gold);
}

.course-slider-banner__control {
    width: 8%;
}

@media (max-width: 991.98px) {
    .course-slider-banner__carousel,
    .course-slider-banner__figure {
        max-height: 360px;
        height: 360px;
    }

    .course-slider-banner__caption {
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .course-slider-banner__carousel,
    .course-slider-banner__figure {
        max-height: 280px;
        height: 280px;
    }

    .course-slider-banner__title {
        font-size: 1.2rem;
    }

    .course-slider-banner__subtitle {
        display: none;
    }

    .course-slider-banner__control {
        display: none;
    }
}
