/* =========================================================
   TUQUI.VN — MOBILE UX v2
   Thêm vào cuối assets/css/style.css  HOẶC load riêng
   ========================================================= */

/* ─── BANNER: ẩn 2 dòng thừa trên mobile ─────────── */
@media (max-width: 768px) {
    .hero-note      { display: none !important; }
    /*.hero-cta-time  { display: none !important; }*/
    .hero-title     { font-size: 22px !important; line-height: 1.1 !important; }
    .hero-sub       { font-size: 13px !important; line-height: 1.25 !important; }
    .hero-cta-group { margin-top: 8px; }
}

/* ─── NAV MOBILE: 1 hàng cố định ─────────────────── */

/* Ẩn desktop ul trên mobile */
@media (max-width: 768px) {
    .nav-desktop-list { display: none !important; }
}

/* Ẩn mobile nav trên desktop */
.nav-mobile-row { display: none; }

@media (max-width: 768px) {

    .nav-mobile-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 4px;
        position: relative;
    }

    /* Item thường */
    .nav-m-item {
        display: inline-flex;
        align-items: center;
        padding: 9px 5px;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-m-item.active {
        color: #e60012;
        border-bottom-color: #e60012;
    }

    /* Home icon */
    .nav-m-home { padding: 9px 8px; }
    .nav-m-home svg { display: block; }

    /* Nút Khác */
    .nav-m-more {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 5px 8px;
        font-size: 11.5px;
        font-weight: 600;
        color: #374151;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        margin: 5px 0;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Khác active (trang hiện tại trong dropdown) */
    .nav-m-more.active {
        background: #e60012;
        color: #fff;
        border-color: #e60012;
    }

    /* Dropdown */
    .nav-m-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 2px);
        right: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(0,0,0,.15);
        z-index: 999;
        min-width: 220px;
        overflow: hidden;
    }

    .nav-m-dropdown.open {
        display: block;
    }

    .nav-m-dropdown a {
        display: block;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 500;
        color: #374151;
        border-bottom: 1px solid #f3f4f6;
        text-decoration: none;
    }

    .nav-m-dropdown a:last-child { border-bottom: none; }
    .nav-m-dropdown a:active { background: #f8f9fb; }
    .nav-m-dropdown a.deep { color: #1a73e8; }

    .nav-m-dropdown a.active {
        color: #e60012;
        font-weight: 700;
        background: #fff5f5;
    }

    .nav-dd-active-mark {
        font-size: 10px;
        margin-left: 4px;
    }
}

/* ─── DESKTOP: giữ nguyên ul gốc ─────────────────── */
@media (min-width: 769px) {
    .nav-mobile-row { display: none !important; }
    .nav-desktop-list {
        display: flex !important;
        flex-wrap: wrap;
        margin: 0;
        padding: 0 12px;
        list-style: none;
    }
}

/* ─── SERVICE CARDS (trang chủ) ──────────────────── */

.home-section { padding: 20px 0 8px; }
.home-section h2 { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 14px; }

.home-service-group { margin-bottom: 12px; }

.home-group-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.home-group-tag-deep {
    color: #1d4ed8;
    background: #eff6ff;
}

.home-tag-si {
    background: #0d7f5f;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
}

/* Grid 2 cột */
.home-service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

/* Card */
.home-svc-card {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 4px 6px;
    text-decoration: none;
    transition: box-shadow .15s;
}

.home-svc-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.07); }

.home-svc-card-deep {
    background: #f8fbff;
    border: 1.5px solid #1a73e8;
}

/* Ảnh 35×60 dọc */
.home-svc-img {
    width: 35px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-svc-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.home-svc-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.home-svc-desc {
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Desktop: 4 cột */
@media (min-width: 769px) {
    .home-service-row { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .home-svc-img { width: 48px; height: 72px; }
    .home-svc-name { font-size: 13px; }
    .home-svc-desc { font-size: 11px; }
}

/* ─── WHY COMPACT ─────────────────────────────────── */
.why-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.why-card-compact {
    display: flex;          /* ← thêm */
    align-items: flex-start; /* ← thêm */
    gap: 8px;               /* ← thêm */
    background: #f8f9fb;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;.nav-m-item
}

.why-card-compact strong { color: #111827; }
/* Thêm ngay dưới dòng trên */
.why-dot {
    width: 7px;
    height: 7px;
    background: #0d7f5f;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .why-grid-compact { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .why-card-compact { padding: 7px 11px; }
}

/* ─── ĐỊNH DẠNG ĐẠI LÝ TRONG INDEX ─────────────────────────────────── */

.partner-banner-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0d4f3c, #0d7f5f);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 16px;
    text-decoration: none;
}
.partner-banner-home strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: block;
}
.partner-banner-home span {
    color: rgba(255,255,255,.85);
    font-size: 12px;
    margin-top: 3px;
    display: block;
}
.partner-banner-home > span {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

/* FONT SCALE ĐỒNG BỘ */
.home-svc-name              { font-size: 14px !important; }
.home-svc-desc              { font-size: 13px !important; }
.why-card-compact           { font-size: 14px !important; }
.why-card-compact strong    { font-size: 14px !important; font-weight: 400; }
.branch-list-name           { font-size: 15px; font-weight: 600; }
.branch-list-addr           { font-size: 12px; color: #6b7280; }
.branch-list-phone          { font-size: 14px; }
.review-card p              { font-size: 13px !important; }
.home-cta-final h2          { font-size: 18px !important; }

/* BRANCH LIST C1 */
.branch-list-home {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.branch-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.branch-list-item:last-child { border-bottom: none; }
.branch-list-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.branch-list-info { flex: 1; min-width: 0; }
.branch-list-name { color: #111827; margin-bottom: 2px; }
.branch-list-addr { margin-bottom: 6px; line-height: 1.4; }
.branch-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.branch-list-phone {
    font-weight: 500;
    color: #111827;
    text-decoration: none;
}
.branch-list-map {
    font-size: 12px;
    font-weight: 500;
    color: #1a73e8;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #c7d9f8;
    border-radius: 20px;
    background: #f0f6ff;
}

/* Desktop: 3 cột */
@media (min-width: 769px) {
    .branch-list-home {
        flex-direction: row;
        gap: 12px;
        border: none;
        background: transparent;
        overflow: visible;
    }
    .branch-list-item {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        padding: 16px;
    }
    .branch-list-item picture {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
    .branch-list-item picture img,

    .branch-list-thumb {
        width: 100%;
        height: 120px;        /* ← tăng lên 120px cho ảnh ngang đẹp hơn */
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-picture img {
        max-height: 200px !important;
        object-fit: cover !important;
        object-position: center center;  /* ← đổi top → center */
    }
}