/* ==========================================
   SCHOOL HERO CAROUSEL
========================================== */

.school-carousel {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #111;
    font-family: Arial, Helvetica, sans-serif;
}

/* ==========================================
   TRACK
========================================== */

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================
   SLIDE
========================================== */

.school-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;
}

.school-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ==========================================
   IMAGE
========================================== */

.school-slide img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    display: block;
}

/* ==========================================
   PREMIUM OVERLAY
========================================== */

.slide-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.62) 22%,
            rgba(0, 0, 0, 0.38) 45%,
            rgba(0, 0, 0, 0.12) 72%,
            rgba(0, 0, 0, 0.20) 100%
        );
}

/* ==========================================
   CONTENT
========================================== */

.school-content {
    position: absolute;

    z-index: 3;

    left: 8%;

    top: 50%;

    transform: translateY(-50%);

    width: 560px;
    max-width: 48%;

    color: #fff;
}

/* ==========================================
   SMALL TAG
========================================== */

.school-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    padding-left: 14px;

    border-left: 3px solid #f4c542;

    color: #f4c542;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================
   HEADING
========================================== */

.school-content h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(42px, 4.2vw, 62px);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -1.5px;

    text-shadow:
        0 3px 15px rgba(0, 0, 0, 0.35);
}

.school-content h1 strong {
    display: block;

    margin-top: 5px;

    color: #f4c542;

    font-weight: 700;
}

/* ==========================================
   DESCRIPTION
========================================== */

.school-content p {
    margin: 20px 0 28px;

    max-width: 500px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 17px;

    line-height: 1.55;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   BUTTON
========================================== */

.school-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    min-width: 170px;

    padding: 13px 22px;

    background: #f4c542;

    color: #111;

    border-radius: 4px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    transition:
        all 0.3s ease;
}

.school-btn span {
    font-size: 20px;

    line-height: 1;

    transition:
        transform 0.3s ease;
}

.school-btn:hover {
    background: #fff;

    transform: translateY(-3px);
}

.school-btn:hover span {
    transform: translateX(5px);
}

/* ==========================================
   ARROWS
========================================== */

.carousel-arrow {
    position: absolute;

    z-index: 6;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: 50%;

    background: rgba(0,0,0,0.28);

    backdrop-filter: blur(10px);

    color: #fff;

    font-size: 19px;

    cursor: pointer;

    transition:
        all 0.3s ease;
}

.carousel-arrow:hover {
    background: #f4c542;

    color: #111;

    border-color: #f4c542;
}

.carousel-arrow.prev {
    left: 28px;
}

.carousel-arrow.next {
    right: 28px;
}

/* ==========================================
   DOTS
========================================== */

.carousel-dots {
    position: absolute;

    z-index: 6;

    left: 8%;

    bottom: 28px;

    display: flex;

    align-items: center;

    gap: 7px;
}

.dot {
    width: 25px;
    height: 4px;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background: rgba(255,255,255,0.5);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.dot.active {
    width: 48px;

    background: #f4c542;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .school-carousel {
        height: 560px;
    }

    .school-content {
        left: 7%;

        width: 520px;

        max-width: 60%;
    }

    .school-content h1 {
        font-size: 48px;
    }

    .school-content p {
        font-size: 16px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .school-carousel {
        height: 600px;
    }

    /* IMAGE */

    .school-slide img {
        width: 100%;
        height: 100%;

        /*
           Mobile par image unnecessarily
           stretch nahi hogi.
        */
        object-fit: cover;
        object-position: center center;
    }

    /* MOBILE OVERLAY */

    .slide-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,0.05) 0%,
                rgba(0,0,0,0.18) 28%,
                rgba(0,0,0,0.60) 62%,
                rgba(0,0,0,0.88) 100%
            );
    }

    /* CONTENT */

    .school-content {
        left: 20px;
        right: 20px;

        bottom: 72px;

        top: auto;

        width: auto;

        max-width: none;

        transform: none;
    }

    /* TAG */

    .school-tag {
        margin-bottom: 11px;

        padding-left: 10px;

        border-left-width: 3px;

        font-size: 10px;

        letter-spacing: 2px;
    }

    /* HEADING */

    .school-content h1 {
        font-size: 31px;

        line-height: 1.1;

        letter-spacing: -0.5px;
    }

    .school-content h1 strong {
        margin-top: 3px;
    }

    /* DESCRIPTION */

    .school-content p {
        margin: 13px 0 19px;

        font-size: 14px;

        line-height: 1.45;
    }

    /* BUTTON */

    .school-btn {
        min-width: auto;

        padding: 11px 17px;

        font-size: 13px;

        gap: 10px;
    }

    /* ARROWS */

    .carousel-arrow {
        width: 35px;
        height: 35px;

        font-size: 14px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    /* DOTS */

    .carousel-dots {
        left: 20px;

        bottom: 25px;
    }

    .dot {
        width: 22px;
        height: 3px;
    }

    .dot.active {
        width: 42px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .school-carousel {
        height: 540px;
    }

    .school-content {
        left: 18px;
        right: 18px;

        bottom: 65px;
    }

    .school-content h1 {
        font-size: 27px;
    }

    .school-content p {
        font-size: 13px;
    }
}



