@media (max-width: 1399px) {
    .banner .sub-title::after {
        top: -35px;
        right: 10%;
    }
}

@media (max-width: 991px) {
    header .nav {
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        border: unset;
        border-radius: unset;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .order-btn {
        margin-left: 0;
        margin-top: 1rem;
    }

    .banner {
        padding-top: 110px;
    }

    .banner .sub-title::after {
        top: -31px;
        right: 29%;
    }

    .hat-img {
        top: 50%;
        left: 23%;
    }

    .banner .title {
        font-size: 32px;
    }

    .book-img {
        bottom: 20%;
        left: 5%;
    }

    .banner .title::after {
        top: -54%;
        right: -5%;
    }

    .banner-img img,
    .experts-image-box img {
        width: 70%;
        margin: 0 auto;
    }

    .banner-cta .cta-inner {
        flex-direction: column;
        gap: 20px;
    }

    .counter-content {
        flex-direction: column;
    }

    .counter-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .service-bg {
        display: none;
    }

}

/* Tablet */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {

    .service-bg,
    .side-image,
    .banner .sub-title::after {
        display: none;
    }

    .container {
        max-width: 96%;
    }

    .banner_usp {
        width: fit-content;
        margin: 0 auto;
        text-align: left;
    }

    .banner .sub-title {
        padding-left: 0;
    }

    .banner .sub-title::before {
        display: none;
    }

    .book-img {
        top: -6%;
        left: 0;
        transform: scale(.5);
    }

    .banner-img img {
        margin-top: 30px;
        width: 100%;
        height: auto;
    }

    .courses-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

    .course-card {
        flex: 0 0 auto;
    }

    .courses-grid::-webkit-scrollbar {
        height: 6px;
    }

    .courses-grid::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .course-card {
        max-width: 290px;
    }

    .counter-boxes {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .table-overflow {
        overflow-x: auto;
    }

    .table {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .orderBtn {
        font-size: 14px;
        padding: 8px 14px;
    }

    .container {
        max-width: 100%;
    }

    h2,
    .counter-text {
        font-size: 26px;
    }

    .banner .title {
        font-size: 30px;
    }

    .banner_usp {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
        margin-top: 10px;
    }

    .hat-img {
        top: 54%;
        left: 10%;
        transform: scale(.7);
    }

    .service-wrap {
        margin-top: 20px;
    }

    .cta-shape1 {
        bottom: -10px;
        width: 137px;
    }

    .feature-bg {
        bottom: -42px;
        left: -14px;
        transform: scale(.7);
    }

    .why-overlay {
        right: 0;
        bottom: 0;
        left: auto;
    }

    .seo-inner {
        padding: 30px;
    }

    .faq-question-text {
        font-size: 18px;
    }

    .about-us .about-feature {
        display: none;
    }

    .feature-boxes {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }


    .feature-box {
        max-width: 300px;
        scroll-snap-align: start;
        flex-shrink: 0;
        border: 1px solid #ddd;
        /* Optional for visibility */
        border-radius: 10px;
        padding: 16px;
        background: #fff;
    }
}