/**
 * ============================================================================
 * HIGHGEN MOBILE UI/UX POLISH (Scoped strictly to Tablet & Mobile breakpoints)
 * Tối ưu toàn diện trải nghiệm di động: Header, Banner, Dịch vụ, Case Study,
 * Blog, Landing Page, Contact & Footer — không ảnh hưởng giao diện Desktop.
 * ============================================================================
 */

html, body {
    overflow-x: clip;
    max-width: 100%;
}

/* Chống tràn ngang toàn trang */
.page-wrapper {
    overflow-x: clip;
}

@media (max-width: 991.98px) {
    /* 1. HEADER & TOP BAR GỌN GÀNG TRÊN MOBILE/TABLET */
    .main-header .header-top {
        padding: 6px 0;
    }
    .main-header .header-top .top-left {
        display: none !important;
    }
    .main-header .header-top .inner-container {
        justify-content: flex-end !important;
    }
    .main-header .header-lower .main-box {
        padding: 10px 0 !important;
        min-height: 60px;
    }
    .main-header .logo-box .logo img {
        max-height: 36px;
        width: auto;
    }
    .main-header .outer-box {
        gap: 10px !important;
    }
    .main-header .header-phone_box {
        font-size: 13px !important;
        padding: 6px 10px !important;
        white-space: nowrap;
    }

    /* 2. HERO BANNER TRANG CHỦ */
    .banner-section .banner-slide .outer-box {
        min-height: 440px !important;
        padding: 60px 0 50px !important;
    }
    .banner-section .content-column .inner-column {
        padding: 20px 0 !important;
        text-align: left;
    }
    .banner-section .content-column .title {
        font-size: 30px !important;
        line-height: 1.28 !important;
        margin-bottom: 14px !important;
    }
    .banner-section .content-column .circle {
        display: none !important;
    }
    .banner-section .content-column .right-box {
        margin-top: 10px !important;
        max-width: 100% !important;
    }
    .banner-section .content-column .right-box .text {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    /* 3. LANDING PAGE DỊCH VỤ */
    .hg-service-scope .slider-five .outer-box {
        padding: 40px 0 48px !important;
    }
    .hg-service-scope .slider-five .title {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
    .hg-service-scope .price-block_one .price {
        font-size: 28px !important;
        white-space: normal !important;
    }
}

@media (max-width: 767.98px) {
    /* 4. KHOẢNG CÁCH SECTION & TIÊU ĐỀ CHUẨN THẨM MỸ MOBILE */
    section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    .sec-title,
    .sec-title_two {
        margin-bottom: 28px !important;
    }
    .sec-title h2,
    .sec-title h3,
    .sec-title_two .title,
    .sec-title .tx-split-text {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    .sec-title .sub-title,
    .sec-title_two .sub-title {
        font-size: 12.5px !important;
        margin-bottom: 8px !important;
    }

    /* Ẩn chữ watermark khổng lồ dễ gây tràn ngang trên mobile */
    .solution-section .big-title {
        font-size: 38px !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
        word-break: break-word;
    }
    .solution-section .solution-count,
    .success-section-two .success-count {
        margin-bottom: 20px !important;
        text-align: center;
    }
    .solution-section .solution-content {
        margin-top: 20px !important;
        padding: 28px 20px !important;
        border-radius: 16px;
    }
    .solution-section .solution-title {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }

    /* Success section */
    .success-section-two .inner-container {
        padding: 24px 18px !important;
        border-radius: 16px;
    }
    .success-section-two .content .title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    /* 5. KHỐI DỊCH VỤ TRANG CHỦ */
    .service-section-four {
        padding: 50px 0 !important;
    }
    .service-block_four .inner {
        padding: 18px !important;
        border-radius: 14px !important;
        margin-bottom: 18px !important;
    }
    .service-block_four .inner img {
        border-radius: 10px;
        margin-bottom: 14px;
        width: 100%;
    }
    .service-block_four .title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    .service-block_four .text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }

    /* 6. KHỐI CASE STUDY */
    .service-section-thirteen {
        padding: 50px 0 !important;
    }
    .service-block_ten .inner {
        padding: 20px 18px !important;
        border-radius: 16px !important;
    }
    .service-block_ten .title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }
    .service-block_ten .image {
        margin-top: 18px;
        border-radius: 12px;
        overflow: hidden;
    }
    .service-block_ten .case-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 14px 0 !important;
    }
    .service-block_ten .case-stats .stat-item {
        font-size: 13px !important;
        padding: 6px 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
    }

    /* 7. NÚT BẤM, BẢNG GIÁ & STICKY CTA TRÊN MOBILE */
    .button-theme1,
    .button-theme2,
    .button-theme3,
    .button-theme-white,
    .button-theme-border2 {
        min-height: 42px;
        font-size: 13.5px !important;
    }
    .button-theme2 .theme-btn,
    .button-theme1 .theme-btn,
    .button-theme3 .theme-btn {
        padding: 10px 18px !important;
    }
    .pricing-card {
        padding: 28px 20px !important;
        transform: none !important;
    }
    .pricing-card.featured {
        background: linear-gradient(135deg, #00255c 0%, #001330 100%) !important;
        transform: none !important;
    }
    .floating-cta-bar {
        padding: 10px 0 !important;
    }
    .floating-cta-bar .cta-content {
        justify-content: center !important;
        gap: 8px !important;
        padding-right: 34px;
    }
    .floating-cta-bar .cta-text {
        font-size: 12.5px !important;
    }
    .floating-cta-bar .cta-text span {
        font-size: 14px !important;
    }
    .main-header .header-phone_box {
        display: none !important;
    }

    /* 8. CHI TIẾT BLOG & CHUYỂN ĐỔI */
    .blog-details__title {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }
    .content p, .content li {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
    .content h2 { font-size: 22px !important; }
    .content h3 { font-size: 19px !important; }
    .hg-author-box {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 18px !important;
        gap: 12px !important;
    }
    .hg-blog-cta-box {
        padding: 22px 18px !important;
    }
    .hg-blog-cta-box h3 {
        font-size: 19px !important;
    }
    .hg-btn-cta-primary,
    .hg-btn-cta-outline {
        width: 100%;
        justify-content: center;
    }
    .hg-sidebar-lead {
        margin-top: 28px;
    }

    /* 9. CONTACT SECTION & FOOTER GỌN SẠCH */
    .contact-section .image {
        display: none !important;
    }
    .contact-section .form-outer {
        padding: 28px 18px !important;
    }
    .contact-section .form-outer .tx-split-text {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    .main-footer {
        padding-top: 48px !important;
    }
    .main-footer .widgets-box {
        padding-bottom: 24px !important;
    }
    .main-footer .footer-logo img {
        max-height: 38px;
    }
    .main-footer .lower-box .big-title {
        font-size: clamp(46px, 17vw, 110px) !important;
        line-height: 1.05 !important;
        letter-spacing: 2px;
    }
    .main-footer .copyright {
        font-size: 13px !important;
        padding: 14px 0 !important;
    }
}
