/* ========================================================================== 
   MOBILE HOME SLIDER - TOP SLOT AUTHORITY
   --------------------------------------------------------------------------
   Purpose
   - Styles ONLY the dedicated mobile slider from tblLogo.MobileSlider = 1.
   - Keeps desktop banner/slider untouched.
   - Hides the old wide mobile header banner only when the dedicated slider
     actually exists. The partial adds body.has-mobile-home-slider at runtime.
   - CSS is intentionally kept outside Razor so @media is parsed only by CSS,
     not by Razor Source Generator.
   ========================================================================== */

.mobile-home-slider {
    display: none;
}

@media (max-width: 768px) {
    body.has-mobile-home-slider .brand-header-banner-wide,
    body.has-mobile-home-slider .inner-header-banner-wide,
    body.has-mobile-home-slider .home-banner-stage,
    body.has-mobile-home-slider .mh-banner,
    body.has-mobile-home-slider .news-home-top-banner,
    body.has-mobile-home-slider .edu-hero-slider,
    body.has-mobile-home-slider .fs-banner {
        display: none !important;
    }

    body.has-mobile-home-slider .mobile-home-slider {
        display: block !important;
        position: relative;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #eef2f7;
        margin: 0 0 8px;
        border-radius: 0;
    }

    .mobile-home-slider-track {
        height: 100%;
        display: flex;
        transition: transform .42s ease;
        will-change: transform;
    }

    .mobile-home-slider-slide {
        display: block;
        min-width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mobile-home-slider-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .mobile-home-slider-btn {
        position: absolute;
        top: 50%;
        z-index: 3;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 999px;
        background: rgba(0, 0, 0, .36);
        color: #fff;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-home-slider-btn.prev { left: 8px; }
    .mobile-home-slider-btn.next { right: 8px; }

    .mobile-home-slider-dots {
        position: absolute;
        z-index: 3;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .2);
    }

    .mobile-home-slider-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .62);
    }

    .mobile-home-slider-dot.active {
        width: 20px;
        border-radius: 8px;
        background: #fff;
    }
}
