@media (min-width: 1025px) {
    #topnav .navigation-menu>li .submenu.megamenu {
        width: 1116px !important
    }
}

@media screen and (max-width: 1024px) and (min-width: 992px) {
    #topnav .navigation-menu>li .submenu.megamenu {
        width: 936px !important
    }
}

@media (min-width: 992px) {
    #topnav .navigation-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center
    }

    #topnav .navigation-menu>li .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        padding: 15px 0;
        list-style: none;
        min-width: 180px;
        visibility: hidden;
        opacity: 0;
        margin-top: 10px;
        transition: all .2s ease;
        border-radius: 6px;
        background-color: #fff;
        box-shadow: 0 0 3px rgba(30, 41, 59, 0.15)
    }

    #topnav .navigation-menu>li .submenu li {
        position: relative
    }

    #topnav .navigation-menu>li .submenu li a,
    #topnav .navigation-menu>li .submenu li .sub-menu-span {
        font-size: 14px;
        display: block;
        padding: 0px 20px 5px;
        clear: both;
        white-space: nowrap;
        letter-spacing: 0.04em;
        color: #808080 !important;
        transition: all 0.3s
    }

    #topnav .navigation-menu>li .submenu li .sub-menu-span {
        font-family: 'spartan-bold';
        font-weight: 900;
        padding: 10px 20px;
        color: #1e293b !important;
    }

    #topnav .navigation-menu>li .submenu li a:hover {
        color: var(--bs-primary) !important
    }

    #topnav .navigation-menu>li .submenu li ul {
        list-style: none;
        padding-left: 0;
        margin: 0
    }

    #topnav .navigation-menu>li .submenu.megamenu {
        white-space: nowrap;
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
        top: auto;
        display: flex
    }

    #topnav .navigation-menu>li .submenu.megamenu>li {
        overflow: hidden;
        vertical-align: top;
        width: 20%
    }

    #topnav .navigation-menu>li .submenu.megamenu>li .submenu {
        left: 100%;
        top: 0;
        margin-left: 10px;
        margin-top: -1px
    }

    #topnav .navigation-menu>li .submenu>li .submenu {
        left: 101%;
        top: 0;
        margin-left: 10px;
        margin-top: -1px
    }

    #topnav .navigation-menu>li>a {
        padding: 35px 16px;
        min-height: 72px
    }

    #topnav .navigation-menu>li:hover>.menu-arrow {
        border-color: var(--bs-primary)
    }

    #topnav .navigation-menu>li:hover>a,
    #topnav .navigation-menu>li.active>a {
        color: var(--bs-primary) !important
    }

    #topnav .navigation-menu>li.last-elements .submenu {
        left: auto;
        right: 0
    }

    #topnav .navigation-menu>li.last-elements .submenu:before {
        left: auto;
        right: 10px
    }

    #topnav .navigation-menu>li.last-elements .submenu>li.has-submenu .submenu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 10px
    }

    #topnav .navigation-menu.nav-light>li>a {
        color: var(--bs-black)l
    }

    #topnav .navigation-menu.nav-light>li.active>a {
        color: #fff !important
    }

    #topnav .navigation-menu.nav-light>li:hover>.menu-arrow {
        border-color: var(--bs-primary) !important
    }

    #topnav .navigation-menu.nav-light>li:hover>a {
        color: var(--bs-primary) !important
    }

    #topnav .navigation-menu.nav-light .has-submenu .menu-arrow {
        border-color: var(--bs-black)
    }

    #topnav .navigation-menu.nav-light .has-submenu.active .menu-arrow {
        border-color: #fff !important
    }

    #topnav .navigation-menu.nav-right {
        justify-content: flex-end !important
    }

    #topnav .navigation-menu.nav-right>li:last-child {
        margin-right: 0
    }

    #topnav .navigation-menu.nav-left {
        justify-content: flex-end !important
    }

    #topnav .navigation-menu.nav-left>li.last-elements .submenu {
        left: 0 !important;
        right: auto !important
    }

    #topnav .navigation-menu.nav-left>li.last-elements .submenu:before {
        left: 45px !important;
        right: auto !important
    }


    #topnav .navbar-toggle {
        display: none
    }

    #topnav #navigation {
        display: block !important
    }

    #topnav.scroll {
        top: 0
    }

    #topnav.scroll .navigation-menu>li>a {
        padding-top: 20px;
        padding-bottom: 20px
    }

    #topnav.scroll-active .navigation-menu>li>a {
        padding-top: 25px;
        padding-bottom: 25px
    }
}

@media (max-width: 991px) {

    #topnav,
    .logo-light-mode {
        height: 80px;
    }

    #topnav .buy-button {
        line-height: 80px;
    }

    #topnav .logo .l-dark {
        display: inline-block !important
    }


    #topnav .container {
        width: auto
    }


    #topnav #navigation {
        height: calc(100vh - 80px);
    }

    #topnav .navigation-menu {
        float: none;
    }

    #topnav .navigation-menu>li {
        float: none
    }

    #topnav .navigation-menu>li .submenu {
        display: none;
        list-style: none;
        padding-left: 20px;
        margin: 0
    }

    #topnav .navigation-menu>li .submenu li a {
        font-size: 15px;
        display: block;
        position: relative;
        padding: 7px 15px;
        letter-spacing: 0.04em;
        font-weight: 400;
        color: #1e293b !important;
        transition: all 0.3s
    }

    #topnav .navigation-menu>li .submenu.megamenu li .megamenu-head {
        padding: 7px 15px
    }

    #topnav .navigation-menu>li .submenu.open {
        display: block
    }

    #topnav .navigation-menu>li .submenu .submenu {
        display: none;
        list-style: none
    }

    #topnav .navigation-menu>li .submenu .submenu.open {
        display: block
    }

    #topnav .navigation-menu>li .submenu.megamenu>li>ul {
        list-style: none;
        padding-left: 0
    }

    #topnav .navigation-menu>li .submenu.megamenu>li>ul>li>span {
        display: block;
        position: relative;
        padding: 10px 15px;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 2px;
        color: #94a3b8
    }

    #topnav .navigation-menu>li>a {
        color: #1e293b;
        padding: 10px 20px
    }

    #topnav .navigation-menu>li>a:after {
        position: absolute;
        right: 15px
    }

    #topnav .navigation-menu>li>a:hover,
    #topnav .navigation-menu>li .submenu li a:hover,
    #topnav .navigation-menu>li.has-submenu.open>a {
        color: var(--bs-primary)
    }

    #topnav .menu-extras .menu-item {
        border-color: #94a3b8
    }

    #topnav .navbar-header {
        float: left
    }

    #topnav .buy-button .login-btn-primary {
        display: inline-block !important
    }

    #topnav .buy-button .login-btn-light {
        display: none
    }

    #topnav .has-submenu .submenu .submenu-arrow {
        transform: rotate(45deg);
        position: absolute;
        right: 20px;
        top: 12px
    }

    #topnav .has-submenu.active a {
        color: var(--bs-primary)
    }

    #navigation {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        display: none;
        height: auto;
        padding-bottom: 0;
        overflow: auto;
        border-top: 1px solid #f1f3f9;
        border-bottom: 1px solid #f1f3f9;
        background-color: #fff
    }

    #navigation.open {
        display: block;
        overflow-y: auto
    }

    .buy-button::before {
        display: none;
    }
}

@media (max-width: 768px) {
    #topnav .navigation-menu .has-submenu .menu-arrow {
        left: 8px;
        top: 16px
    }
}

@media (min-width: 768px) {
    #topnav .navigation-menu>li.has-submenu:hover>.submenu {
        visibility: visible;
        opacity: 1;
        margin-top: 0
    }

    #topnav .navigation-menu>li.has-submenu:hover>.submenu>li.has-submenu:hover>.submenu {
        visibility: visible;
        opacity: 1;
        margin-left: 0;
        margin-right: 0
    }

    #topnav .navigation-menu>li.has-submenu:hover>.submenu>li.has-submenu:hover>.submenu>li:hover>.submenu {
        visibility: visible;
        opacity: 1;
        margin-left: 0;
        margin-right: 0
    }

    .navbar-toggle {
        display: block
    }
}

@media (max-width: 425px) {
    #topnav .buy-menu-btn {
        display: block !important;
        margin: 0 10px;
        padding: 10px 20px
    }

    #topnav .buy-menu-btn .dropdown .dropdown-menu.show {
        transform: translate3d(0px, -54px, 0px) !important
    }

    #topnav .navigation-menu>li {
        margin: 0 !important
    }

    #topnav .navigation-menu>li>a {
        padding: 10px 15px
    }

    #topnav .big-logo {
        display: none !important
    }

    #topnav .mobile-logo {
        display: block !important
    }
}

/* <========== header media query end ==========> */
@media (min-width: 992px) {
    .instructor-details .col-lg-3 {
        width: 30%;
    }

    .instructor-details .col-lg-8 {
        width: 70%;
    }
}

@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .edu-search-popup .logo-wrapper {
        margin-left: 0;
    }

    .edu-search-popup .close-btn {
        margin-right: 0;
    }
}

@media screen and (max-width: 991px) {
    body {
        font-size: 14px;
    }

    .fs-section {
        padding: 80px 0;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .btn-fill {
        font-size: 15px;
        padding-left: 30px;
        padding-right: 30px;
    }

    #topnav .buy-button {
        margin-left: 28px;
        padding-left: 22px;
        padding-right: 0;
        margin-right: 0;
    }

    .home-banner {
        padding-top: 0px;
    }

    .home-banner .row {
        gap: 50px;
    }

    .home-banner-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 75px 50px 0;
    }

    .home-banner h1 br {
        display: none;
    }

    .home-banner h1 {
        text-align: center;
    }

    .home-banner p {
        text-align: center;
    }

    .home-banner-left .btn-fill {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .home-banner-right {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 0;
    }

    .home-banner-right .img-block {
        right: 0;
    }

    .banner-instructor-widget {
        left: 10%;
    }

    .home-widgets .col-lg-3:nth-child(2) .home-widgets-box {
        border-right: 0;
    }

    .home-categories {
        padding: 70px 0 85px;
    }

    /* home about us */
    .home-about-img {
        margin-left: auto;
        margin-right: auto;
    }

    .home-about-right {
        margin-right: 0;
        padding-right: 0;
    }

    /* popular course section start */
    .course-box .card-img {
        width: 100%;
        height: 330px;
    }

    .testimonials {
        padding: 80px 0 35px;
    }

    /* get in box */
    .get-in-box {
        flex-direction: column;
        padding: 40px 30px;
        gap: 15px;
    }

    .get-in-box a {
        font-size: 20px;
    }

    .get-in-box div {
        text-align: center;
    }

    .home-instructors-box .img-box {
        max-height: 550px;
    }

    .partner {
        padding: 65px 0;
    }

    .artical {
        padding-bottom: 70px;
    }

    .footer-widgets2 {
        margin-left: 0;
    }

    .footer-widgets .footer-heading {
        margin-bottom: 20px;
    }

    .footer-widgets2,
    .footer-widgets3 {
        padding: 0;
    }

    .progress-wrap {
        right: 25px;
    }

    .artical-box .card-body {
        margin-top: -120px;
    }

    .instructor-details-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .innerbanner-shape1,
    .innerbanner-shape2 {
        display: none;
    }

    .innerbanner h1 {
        font-size: 28px;
    }

    .instructor-details {
        padding: 60px 0;
    }

    .blog-details .sub-images img {
        height: 290px;
    }

    .blog-specific-review svg {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .contactus-right {
        position: relative;
    }

    .contactus {
        padding: 70px 0;
    }

    .location {
        height: 350px;
    }

    .contactus-right {
        padding: 35px;
    }

    .aboutround-shape {
        display: none;
    }

    .about-content {
        padding: 60px 0 100px;
    }

    .about-right {
        width: 50%;
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-counter {
        padding: 60px 0;
    }

    .about-counter-box {
        top: 0;
    }
    
    .faculty-box .content h5
    {
        font-size: 16px;
        padding: 8px 20px 6px;
        margin-bottom: 10px;
    }

    .testishape-img {
        display: none;
    }

    .aboutget-in {
        margin: 70px 0;
    }

    .faculty {
        top: 0;
        margin-bottom: 80px;
    }
    .testi::after
    {
        clip-path: unset;
    }
    .choose-card .icon-box img
    {
        width: 40px;
        height: 40px;
    }
    .Curriculum .accordion-item
    {
        padding: 10px;
    }
    .innerbanner1 .content h1
    {
        font-size: 30px;
    }
    .innerbanner1 .content nav
    {
        margin-bottom: 30px;
    }
    .innerbanner1
    {
        padding-bottom: 60px;
    }
    .course-sidebar
    {
        max-width: 400px;
        top: 0;
    }
    #lessons_sidebar
    {
        flex: 0 0 300px;
    }
    #lessons_sidebarCollapse,
    .lesson-header
    {
        right: 300px;
    }
    .lessons-desc h3.title
    {
        font-size: 22px;
    }
    .faq
    {
        padding: 80px 0;
    }
    .policy
    {
        padding: 60px 0;
    }
    .policy-block h3, .policy-block p, .policy-block h5
    {
        margin-bottom: 20px;
    }
    .policy-block ul li
    {
        padding-right: 20px;
        margin-bottom: 10px;
    }
    
    .policy-block ul li::before
    {
        width: 15px;
        height: 15px;
        top: 3px;
    }
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 34px;
    }

    .home-banner-left {
        padding: 75px 15px 15px;
    }

    .home-banner .row {
        gap: 25px;
    }

    .home-widgets .home-widgets-box {
        border-right: 0;
    }

    .home-categories {
        padding: 50px 0;
    }

    .home-about-left {
        padding: 0;
    }

    .about-widgets2 {
        display: none;
    }

    .counter-inner .counter-box:first-child,
    .counter-inner .counter-box:nth-child(4) {
        border: 0;
    }

    .counter-inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .counter-inner {
        padding: 15px;
    }

    .counter-inner .counter-box {
        padding: 25px;
    }

    .testimonials-box {
        width: calc(100% - 20px);
        margin: 20px 10px;
    }

    .blog-details .sub-images img {
        height: 420px;
    }

    .blog-reply .form-control {
        height: 40px;
    }

    .blog-reply textarea {
        height: 100px;
    }

    .about-right {
        width: 75%;
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
    }
    #lessons_sidebar
    {
        flex: 0 0 300px;
    } 
    #lessons_sidebarCollapse,
    .lesson-header
    {
        right: 300px;
    }

    .signin-box
    {
        padding: 40px 30px;
    }

    .about-video-widgets{
        position: relative !important;
        max-width: 350px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}

@media screen and (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .fs-section {
        padding: 60px 0;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .btn-fill {
        font-size: 16px;
        padding: 10px 24px;
    }

    .edu-search-popup .logo-wrapper {
        margin-top: 0;
    }

    .edu-search-popup .close-btn {
        margin-top: 20px;
    }

    .edu-search-popup .content-wrap {
        min-height: 450px;
    }

    .edu-search-popup .inner {
        margin-top: 80px;
    }

    .header-basket {
        display: none;
    }

    #topnav .navigation-menu .has-submenu .menu-arrow {
        left: 15px;
    }

    .home-banner-right .img-block {
        max-width: 100%;
        height: auto;
    }

    .course-box .card-img {
        height: 270px;
    }

    .partner-box img {
        max-height: 60px;
    }

    .partner-box {
        padding: 10px;
    }

    .artical-box .card-body {
        margin-top: -100px;
    }

    .footer-widgets form {
        flex-direction: column;
    }

    .footer-widgets form .btn-fill {
        width: 100%;
    }

    .footer-widgets ul li a.nav-links {
        margin: 5px 0;
    }

    .instructor-details-left .img-box {
        width: 270px;
        max-width: 100%;
        height: 270px;
    }

    .blog-details .sub-images img {
        height: 280px;
    }

    .blog-details .main-img {
        height: 310px;
    }

    .blog-details .main-img,
    .blog-details .sub-images {
        margin: 30px 0;
    }

    .blog-details p {
        margin-bottom: 20px;
    }

    .blog-service-list li:not(:last-child) {
        margin-bottom: 5px;
    }

    .blog-specific-review {
        padding: 20px;
    }

    .about-right {
        width: 100%;
        gap: 25px;
        margin-top: 70px;
    }

    .about-right-inner2 {
        top: -30px;
    }

    .mission-box img {
        width: 40px;
        height: 40px;
    }
    .about-content
    {
        padding: 40px 0 80px;
    }
    .review-wrapper .card-body
    {
        flex-direction: column;
    }
    .course-desc-box4 .expert
    {
        flex-direction: column;
        gap: 15px;
    }
    .review-box-left
    {
        width: 100%;
    }
    .innerbanner1 .content h1
    {
        font-size: 26px;
    }
    #lessons_sidebar
    {
        flex: 0 0 250px;
    }

    #lessons_sidebarCollapse,
    .lesson-header
    {
        right: 250px;
    }
    .faq .accordion-body
    {
        padding: 18px 32px 22px 20px;
    }
    .faq::after
    {
        left: 0;
    }

    .dynamic-table-open-account {
        width: 100%;
        margin-bottom: 10px;
    }

    .dynamic-table-open-account a {
        width: 100%;
    }

}

@media screen and (max-width: 330px) {
    #topnav .menu-extras {
        margin-left: 0;
    }

    #topnav .buy-button {
        padding-left: 0;
    }
}

@media screen and (max-width: 300px) {
    #topnav .logo .l-light {
        width: 140px;
    }

    .course-box .card-img {
        height: 200px;
    }

    .artical-box .card-img {
        height: 270px;
    }

    .artical-box .card-body {
        padding: 20px;
    }

    .blog-details .sub-images img {
        height: 220px;
    }
    #lessons_sidebar
    {
        flex-basis: 200px;
    }


}