/* Mobile layout adjustments (≤ 767.98px). Desktop styles are untouched. */
@media (max-width: 767.98px) {

    /* ---------- Header: compact bar with full-width divider ---------- */
    .header {
        border-bottom: 1px solid #e9e9e9;
    }
    /* Top bar (promo text, FAQ, language) shown on mobile too, as on desktop */
    .header .header-top {
        display: block;
        padding: 6px 0;
        border-width: 0 0 1px;
        border-color: #e9e9e9;
        font-size: 12px;
        line-height: 18px;
    }
    .header .header-top .container-lg > .d-flex {
        gap: 12px;
    }
    .header .header-top .container-lg > .d-flex > div:first-child {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header .header-top .nav-top {
        flex-wrap: nowrap;
        align-items: center;
    }
    .header .header-top .nav-top .nav-link {
        display: flex;
        align-items: center;
        height: 18px;
        font-size: 12px;
        line-height: 18px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .header .header-top .nav-top .nav-link:before {
        top: 3px;
    }
    .header .header-top .nav-top .nav-link img {
        width: 15px;
        height: auto;
    }
    .header .header-top .nav-top .dropdown-toggle::after {
        margin-left: 4px;
        vertical-align: 2px;
    }
    /* M-Care top bar: contact info on one line, opening hours hidden */
    .header .mcare-top .container-lg {
        padding-left: 8px;
        padding-right: 8px;
    }
    .header .mcare-top .container-lg > .d-flex > div:first-child {
        display: none;
    }
    .header .mcare-top .container-lg > .d-flex > div:last-child {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .header .mcare-top .nav-top {
        padding: 0 !important;
        gap: 10px;
        width: max-content;
        margin: 0 auto; /* centred when it fits, scrollable from the left when it doesn't */
        white-space: nowrap;
    }
    .header .mcare-top .nav-top .nav-item:last-child {
        display: none;
    }
    .header .mcare-top .nav-top a {
        margin: 0 !important;
        font-size: 11px;
        line-height: 18px;
    }
    .header .mcare-top .nav-top a img {
        width: 12px;
        vertical-align: -3px;
    }
    .header .header-top .dropdown-menu {
        font-size: 14px;
        min-width: 8rem;
    }
    .header .header-middle hr {
        display: none;
    }
    .header .header-middle .head-container {
        gap: 16px;
        padding: 10px 0;
        min-height: 60px;
    }
    .header .header-middle .head-container .head-logo {
        width: 112px;
    }
    .header .header-middle .head-container .head-search .nav-mobile {
        gap: 18px;
    }
    .header .header-middle .head-container .head-search .nav-mobile .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        min-height: 40px;
    }
    .header .header-middle .head-container .head-search .nav-mobile .nav-link .ico-search {
        width: 22px;
        height: 22px;
    }
    .header .header-middle .head-container .head-search .nav-mobile .ico-menu {
        width: 26px;
        height: 22px;
    }
    .header .menu-label {
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        line-height: 1;
        margin-top: 2px;
        color: #000;
    }
    .page-wrapper {
        padding-top: 92px; /* top bar 31px + main bar 61px */
    }

    /* ---------- Mobile drawer menu ---------- */
    .list-menu-mobile {
        width: 86%;
        max-width: 360px;
        padding: 12px 20px 32px;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0,0,0,.12);
    }
    .list-menu-mobile .close-btn {
        display: inline-flex;
        padding: 8px;
        margin-right: -8px;
    }
    .list-menu-mobile .close-btn .ico-xmark {
        width: 22px;
        height: 22px;
    }
    .list-menu-mobile .nav {
        gap: 0;
    }
    .list-menu-mobile .nav-item {
        border-bottom: 1px solid #eee;
    }
    .list-menu-mobile .nav-link {
        padding: 15px 2px;
        background: transparent;
        border-radius: 0;
        font-size: 17px;
        font-weight: 500;
        font-family: Poppins, sans-serif;
    }
    .list-menu-mobile .nav-link:hover,
    .list-menu-mobile .nav-link:focus {
        color: #DC4428;
    }
    .list-menu-mobile .dropdown-menu {
        background: #f7f7f7;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .list-menu-mobile .logo-product {
        box-shadow: none;
        border-radius: 8px;
        min-height: 52px;
    }

    /* ---------- Hero banner: tall, image cover, text above pagination ---------- */
    .main-banner .banner-slider .swiper-slide > img {
        height: 44vh;
        min-height: 320px;
        max-height: 380px;
        object-fit: cover;
        object-position: center;
    }
    .main-banner .banner-slider .swiper-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%);
        z-index: 1;
        pointer-events: none;
    }
    .main-banner .banner-slider .swiper-slide .slide-content {
        align-items: flex-end;
        padding-bottom: 52px;
    }
    .main-banner .banner-slider .swiper-slide .slide-content .container-lg {
        padding-left: 20px;
        padding-right: 20px;
    }
    .main-banner .banner-slider .swiper-slide .slide-content h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .main-banner .banner-slider .swiper-slide .slide-content p {
        font-size: 15px;
        line-height: 1.45;
        margin: 0 auto;
        max-width: 320px;
    }
    .main-banner .banner-slider .swiper-pagination {
        bottom: 24px;
        gap: 6px;
    }
    .main-banner .banner-slider .swiper-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        margin: 0 !important;
        background: rgba(255,255,255,.6);
        transition: width .25s ease, background .25s ease;
    }
    .main-banner .banner-slider .swiper-pagination .swiper-pagination-bullet-active {
        width: 18px;
        background: #f7492c !important;
    }

    /* ---------- Section headings ---------- */
    .section .title {
        font-size: 24px;
        line-height: 30px;
    }
    .section .title-desc {
        font-size: 15px;
        line-height: 22px;
    }

    /* ---------- Why Choose Us: horizontal swipe cards ---------- */
    .why-cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
        padding-bottom: 4px;
    }
    .why-cards::-webkit-scrollbar {
        display: none;
    }
    .why-cards > [class*="col-"] {
        flex: 0 0 72%;
        max-width: 72%;
        scroll-snap-align: start;
    }
    .why-cards .card-cs {
        height: 100%;
        padding: 24px 18px;
    }
    .why-cards .card-cs img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }
    .why-cards .card-cs h4 {
        font-size: 18px;
        margin-top: 16px;
        margin-bottom: 8px;
    }
    .why-cards .card-cs p {
        font-size: 14px;
        line-height: 20px;
    }
    .section-why .rounded-5 {
        border-radius: 16px !important;
    }
    .section-why .btn-astech.w-25 {
        width: auto !important;
        min-width: 200px;
        padding: 12px 32px;
        border-radius: 999px;
    }

    /* ---------- Partner logo slider: same box for every logo ---------- */
    .section-client .client-slider .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
    }
    .section-client .client-slider .swiper-slide img {
        width: auto;
        height: auto;
        max-width: 100px;
        max-height: 34px;
        object-fit: contain;
    }

    /* ---------- Coverage counters ---------- */
    /* Fade the dotted map so it no longer competes with the text */
    .section-coverage {
        background:
            linear-gradient(rgba(250,249,249,.88), rgba(250,249,249,.88)),
            url(../images/maps-iIYVIMbt.png) no-repeat center bottom / 160% auto,
            #faf9f9;
    }
    .section-coverage .title-desc {
        color: #333;
    }
    .section-coverage .count-content {
        gap: 8px;
        margin-top: 24px;
        margin-bottom: 8px;
    }
    .section-coverage .count-content .count-item {
        flex: 1 1 0;
        padding: 16px 6px;
        text-align: center;
        background: #fff;
        border-right: 0;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
    }
    .section-coverage .count-content .count-item h5 {
        font-size: 28px;
        margin-bottom: 4px;
    }
    .section-coverage .count-content .count-item p {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    /* ---------- Testimonials ---------- */
    .section-testimoni .row.mb-5 {
        margin-bottom: 24px !important;
    }
    .section-testimoni .testimoni-slider .swiper-slide {
        width: 85%;
    }
    .card-testimoni {
        padding: 20px;
    }
    .card-testimoni > img {
        width: 44px;
    }
    .card-testimoni .testi-content {
        margin: 16px 0;
        font-size: 15px;
        line-height: 22px;
    }
    .card-testimoni .testi-user .avatar {
        width: 48px;
    }

    /* ---------- Footer: compact + accordion link groups ---------- */
    .footer {
        padding-top: 48px;
        font-size: 14px;
    }
    .footer .col-xl-5 img {
        max-width: 160px;
    }
    .footer .col-xl-5 p {
        font-size: 14px;
        line-height: 22px;
        color: rgba(255,255,255,.8);
    }
    .footer .row.gy-4 .row.gy-4 {
        --bs-gutter-y: 0;
    }
    .footer .footer-acc {
        border-bottom: 1px solid rgba(255,255,255,.2);
    }
    .footer .footer-acc:first-child {
        border-top: 1px solid rgba(255,255,255,.2);
    }
    .footer .footer-acc h5 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 16px 0;
        cursor: pointer;
        user-select: none;
    }
    .footer .footer-acc h5::after {
        content: "+";
        font-size: 22px;
        font-weight: 300;
        line-height: 1;
        transition: transform .2s ease;
    }
    .footer .footer-acc.open h5::after {
        transform: rotate(45deg);
    }
    .footer .footer-acc .nav {
        display: none;
        padding-bottom: 12px;
    }
    .footer .footer-acc.open .nav {
        display: flex;
    }
    .footer .footer-acc .nav-link {
        padding-top: 6px;
        padding-bottom: 6px;
        color: rgba(255,255,255,.8);
    }
    .footer .hotline {
        border-top: 0;
        margin-top: 8px !important;
    }
    .footer .hotline h5 {
        font-size: 14px;
        margin-bottom: 2px;
        color: rgba(255,255,255,.6);
        font-weight: 500;
    }
    .footer .hotline .row {
        --bs-gutter-y: 14px;
    }
    .footer .text-center.pb-4 {
        font-size: 12px;
        color: rgba(255,255,255,.6);
    }
}
