@media (min-width:1440px) {

    .hero-video-box .rlms-title-box {
        transform: translateY(-50%);
    }
}

@media (max-width:1439px) and (min-width:899px) {

    .hero-video-box .rlms-title-box {
        transform: translate(100px, -50%);
    }
}

@media (max-width:1439px) {


    .plan-box-main {
        background: #23272F;
        padding-bottom: clamp(20px, -1533rem + 3200vw, 100px);
    }


    .rlms-tab-device {
        display: block;
    }

    .rlms-header-nav {
        position: fixed;
        z-index: 9;
        background: #1B1F27;
        padding: 30px;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.7s ease;
        bottom: 0;
    }

    .rlms-header-nav ul {
        flex-direction: column;
        gap: 30px;
        align-items: self-start;
    }

    .rlms-header-bg {
        border-color: #ffffff61;
    }

    .rlms-lg-device {
        display: none;
    }

}

@media (max-width:1420px) {

    .rlms-footer-top {
        padding-inline: 0;
    }

    .rlms-footer-top .rlms-ft-left,
    .rlms-footer-top .rlms-ft-right {
        padding: 40px;
    }
}

@media (max-width:1100px) {

    .start-browsing-sec-bg {
        background: rgba(66, 75, 90, 1);
        padding-block: 30px;
    }

    .start-browsing-sec .rlms-title-box {
        transform: inherit;

    }

    .start-browsing-sec {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        text-align: center;


    }
}

@media (max-width:1000px) {

    .ab-hero {
        padding-top: 30px;
        grid-template-columns: auto;
        gap: 20px;
        text-align: center;

        &>*:nth-child(1) {
            order: 1;
        }

        &>*:nth-child(2) {
            order: 3;
        }

        &>*:nth-child(3) {
            order: 2;
        }


        &>*:nth-child(1),
        &>*:nth-child(3) {
            max-width: 400px;
            margin-inline: auto;
            grid-row: inherit;
        }

        img {
            margin-inline: auto;
        }
    }

    .ab-teachers-sec {
        padding-block: 30px;
        grid-template-columns: auto;
        gap: 20px;
        text-align: center;

        &>*:nth-child(1),
        &>*:nth-child(3) {
            max-width: 600px;
            margin-inline: auto;
            grid-row: inherit;
        }

        h1 {
            margin-bottom: 0px;
        }

        img {
            margin-inline: auto;
        }
    }

    .girl-with-text .rlms-title-box {
        transform: translateY(0px);
    }

    .girl-with-text {
        flex-direction: column;
        padding-top: 40px;
        gap: 40px;
        align-items: center;
    }

    .girl-with-text .rlms-title-box {
        align-items: center;
        text-align: center;
    }

    .girl-with-text-bg {
        background: #23272F;
    }

    .girl-with-text {
        flex-direction: column;
    }

    .statistics-box {
        flex: 1 0 calc(50% - 15px);
    }

    .boy-with-text img {
        align-self: auto;
    }

    .boy-with-text .rlms-title-box {
        padding-block: 40px;
    }

    .boy-with-text {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .rlms-title-box .rlms-title-heading {
        margin-inline: auto;
    }

    .rlms-title-box button {
        margin-inline: auto;
    }
}

@media (min-width:899px) {

    .as-seen-on-box-wrapper {
        width: 132px;
        background-color: var(--rlms-white);
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width:900px) {

    .hero-video-box .rlms-title-box {
        transform: translate(-50%, -50%);
        left: 50%;
        text-align: center;

        &>span,
        &>button {
            margin-inline: auto;
        }
    }

    .as-seen-on-box-wrapper {
        width: 100%;
        padding: 20px 0;
    }
}

@media (min-width: 767px) {

    .rlms-form-group-col-2 {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 calc(50% - var(--rlms-gap)/2);
        flex: 1 0 calc(50% - var(--rlms-gap)/2);
    }
}

@media (max-width:767px) {

    .cuf-right button{
        width: 100%;
    }

    .fac-hero-bg {
        padding: 20px 0;
    }

    .fac-hero {
        text-align: center;
        justify-content: center;
    }

    .what-people-say-bg {
        margin-top: 0;
    }

    .start-browsing-sec img {
        width: auto;
        height: 100%;
    }


    .rlms-ft-left span {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .rlms-footer-top .rlms-ft-left,
    .rlms-footer-top .rlms-ft-right {
        padding: 20px;
    }

    .available-courses-box {
        flex: 0 0 calc(50% - 5px);
        text-align: center;
    }

    .plan-box-head svg {
        bottom: -19px;
        width: 40px;
    }

    .statistics-boxes-wrapper {
        padding-inline: 30px;
    }

    .statistics-box h1 {
        font-size: 20px;
    }

    .statistics-box h1::after {
        width: 40px;
        height: 40px;
        top: -5px;
    }

    .statistics>p {
        font-size: 18px;
    }

    .rlms-header-nav {
        left: 0;
    }
}