@media screen and (max-width: 1199px) {
    :root {
        --section_space: 62px;
    }

    .header .navbar_nav {
        gap: 17px;
    }

    .header_right {
        margin-left: 16px;
    }

    .hero_section {
        min-height: 680px;
    }

    .about_image_box {
        height: 460px;
    }

    .class_card {
        height: 350px;
    }

    .team_image {
        height: 290px;
    }
}

@media screen and (max-width: 991px) {
    :root {
        --section_space: 54px;
        --content_gap: 20px;
    }

    .header,
    .header .navbar {
        min-height: 66px;
    }

    .header .navbar_collapse {
        position: fixed;
        top: 66px;
        left: 0;
        width: 100%;
        height: calc(100vh - 66px);
        height: calc(100dvh - 66px);
        padding: 24px 16px 34px;
        border-top: 1px solid var(--border_color);
        background-color: var(--bg_surface);
        overflow-y: auto;
    }

    .header .navbar_nav {
        align-items: stretch;
        gap: 0;
    }

    .header .nav_link {
        display: block;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--border_color);
        font-size: var(--fs_md);
    }

    .header .nav_link::after {
        display: none;
    }

    .header_right {
        margin: 22px 0 0;
    }

    .header_right .btn {
        width: fit-content;
    }

    .theme_toggle {
        width: 40px;
        flex: 0 0 auto;
    }

    .hero_section {
        min-height: 620px;
        padding-top: 130px;
        padding-bottom: 90px;
        background-position: 62% center;
    }

    .hero_content {
        max-width: 620px;
    }

    .hero_content p,
    .inner_banner_content p {
        font-size: var(--fs_md);
    }

    .stats_box {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat_item:nth-child(2)::after {
        display: none;
    }

    .stat_item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border_color);
    }

    .about_image_box {
        height: 420px;
        max-width: 620px;
        margin-inline: auto;
    }

    .approach_steps {
        grid-template-columns: 1fr;
    }

    .approach_section {
        background-attachment: scroll;
    }

    .team_image {
        height: 330px;
    }

    .service_detail_card {
        grid-template-columns: 1fr;
    }

    .service_detail_card:nth-child(even) .service_detail_image {
        order: 0;
    }

    .benefit_strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit_item:nth-child(2) {
        border-right: 0;
    }

    .benefit_item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border_color);
    }

    .cta_box {
        align-items: flex-start;
        flex-direction: column;
    }

    .inner_banner {
        min-height: 380px;
        padding-top: 112px;
        padding-bottom: 58px;
    }
}

@media screen and (max-width: 767px) {
    :root {
        --section_space: 46px;
    }

    .title_box {
        margin-bottom: 26px;
    }

    .main_heading {
        font-size: clamp(34px, 11vw, 48px);
    }

    .section_heading {
        font-size: clamp(23px, 7vw, 30px);
    }

    .hero_section {
        min-height: 580px;
        padding-top: 116px;
        padding-bottom: 78px;
        background-position: 68% center;
    }

    .hero_note {
        gap: 9px 16px;
    }

    .stats_section {
        margin-top: -36px;
    }

    .stat_item {
        padding: 20px;
    }

    .stat_value {
        font-size: var(--fs_xl);
    }

    .about_image_box {
        height: 380px;
        padding-right: 18px;
        padding-bottom: 18px;
    }

    .about_float_card {
        right: 0;
        bottom: 40px;
        width: 165px;
    }

    .class_card {
        height: 340px;
    }

    .team_image {
        height: 390px;
    }

    .testimonial_box,
    .pricing_card,
    .contact_form {
        padding: 22px;
    }

    .testimonial_text {
        font-size: var(--fs_md);
    }

    .story_image {
        height: 390px;
    }

    .service_detail_content {
        padding: 25px;
    }

    .service_detail_image {
        min-height: 280px;
    }

    .contact_info_grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding-top: 48px;
    }

    .footer_bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 32px;
    }
}

@media screen and (max-width: 575px) {
    :root {
        --section_space: 40px;
    }

    .navbar_brand {
        font-size: var(--fs_md);
    }

    .brand_mark {
        width: 32px;
        height: 32px;
    }

    .hero_actions,
    .cta_actions {
        width: 100%;
        flex-direction: column;
    }

    .hero_actions .btn,
    .cta_actions .btn {
        width: 100%;
    }

    .stats_box {
        grid-template-columns: 1fr;
    }

    .stat_item {
        text-align: center;
    }

    .stat_item::after {
        display: none;
    }

    .stat_item:not(:last-child) {
        border-bottom: 1px solid var(--border_color);
    }

    .about_image_box {
        height: 330px;
    }

    .about_float_card {
        bottom: 30px;
        width: 150px;
        padding: 13px;
    }

    .common_card,
    .service_card {
        padding: 20px;
    }

    .class_card {
        height: 320px;
    }

    .class_content {
        padding: 18px;
    }

    .team_image {
        height: 360px;
    }

    .benefit_strip {
        grid-template-columns: 1fr;
    }

    .benefit_item {
        border-right: 0 !important;
        border-bottom: 1px solid var(--border_color);
    }

    .benefit_item:last-child {
        border-bottom: 0;
    }

    .inner_banner {
        min-height: 350px;
        padding-top: 104px;
        padding-bottom: 48px;
    }

    .contact_info_card {
        padding: 17px;
    }

    .map_card {
        min-height: 290px;
    }

    .hours_list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .footer_bottom_links {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 420px) {
   

    .theme_toggle,
    .header .navbar_toggler {
        width: 38px;
        height: 38px;
    }

    .about_image_box {
        height: 300px;
        padding-right: 12px;
        padding-bottom: 12px;
    }

    .about_float_card {
        display: none;
    }

    .team_image {
        height: 320px;
    }
}
