/* ═══════════════════════════════════════
   BASE RESET
═══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f4f4;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #cc0000;
}

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
.top-bar {
    background: #0a1835;
    color: #fff;
    font-size: 13px;
}

.top-bar .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    gap: 12px;
}

.tb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tb-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tb-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    transition: background 0.2s, border-color 0.2s;
}

.tb-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    text-decoration: none;
    color: #fff;
}

.tb-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.tb-nav {
    display: flex;
}

.tb-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
    white-space: nowrap;
}

.tb-nav a:first-child {
    padding-left: 0;
}

.tb-nav a:last-child {
    border-right: none;
}

.tb-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.tb-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.tb-search input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    width: 140px;
}

.tb-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tb-search button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.tb-search button:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
header {
    background: linear-gradient(135deg, #0047b3 0%, #0070e0 55%, #0099ff 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

header .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    min-height: 72px;
}

.logo-block {
    display: flex;
    align-items: center;
    padding-right: 24px;
    flex-shrink: 0;
}

.logo-block img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ── Main nav ── */
.main-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: stretch;
}

.main-nav ul li {
    display: flex;
    align-items: stretch;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: #cc0000;
    text-decoration: none;
    color: #fff;
}

/* ── Nút SỬA NGAY ── */
.sua-ngay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #cc0000;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.25;
    padding: 0 20px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: background 0.15s;
}

.sua-ngay-btn:hover {
    background: #aa0000;
    text-decoration: none !important;
}

/* ── Hamburger ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 6px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   FLOATING CALL BUTTON (mobile only)
═══════════════════════════════════════ */
.mobile-call {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: #cc0000;
    color: #fff !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 1100;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(204, 0, 0, 0.5);
    animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(204, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }
}

/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
    background: #e8e8e8;
    padding: 7px 0;
    font-size: 12px;
}

.breadcrumb .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════ */
.page-wrapper {
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   ARTICLE CARD
═══════════════════════════════════════ */
.article-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 22px 24px;
    margin-bottom: 18px;
    overflow: hidden;
}

/* Floating washing machine image */
.float-img {
    float: left;
    width: 280px;
    max-width: 45%;
    margin: 0 22px 12px 0;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

/* Clearfix after float */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Page title: red, uppercase, bold */
.page-title {
    font-size: 18px;
    color: #cc0000;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Hotline text below title */
.hotline-line {
    color: #cc0000;
    text-align: center;
    font-size: 14px;
    margin-bottom: 14px;
}

/* Bold sub-heading inside content (e.g. "Những Sự Cố Thường Gặp") */
.sub-heading {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* Issues / general list */
.issues-list {
    padding-left: 20px;
    margin-bottom: 10px;
}

.issues-list li {
    line-height: 1.85;
}

/* Lưu ý note (red italic) */
.luu-y {
    color: #cc0000;
    font-style: italic;
    margin: 14px 0;
    line-height: 1.75;
    font-size: 13px;
    clear: both;
}

/* Numbered conditions list */
.conditions-list {
    padding-left: 22px;
    margin-bottom: 12px;
}

.conditions-list li {
    line-height: 1.85;
    margin-bottom: 5px;
}

.article-card p {
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Section headings: simple, no background box */
.article-card h2 {
    font-size: 19px;
    color: #222;
    font-weight: bold;
    margin: 24px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.article-card h3 {
    font-size: 14px;
    color: #cc0000;
    margin: 14px 0 8px;
    font-weight: bold;
}

/* Mobile: float becomes block */
@media (max-width: 600px) {
    .float-img {
        float: none;
        max-width: 100%;
        margin: 0 0 14px 0;
        display: inline;
    }
}

/* ═══════════════════════════════════════
   BRANCH TABLES
═══════════════════════════════════════ */
.branch-area {
    margin-bottom: 18px;
}

.branch-area h3 {
    background: #003087;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 3px 3px 0 0;
    margin-bottom: 0;
}

.branch-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.branch-table th {
    background: #f0f4ff;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #ccc;
}

.branch-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: top;
}

.branch-table tbody tr:last-child td {
    border-bottom: none;
}

.branch-table tbody tr:hover td {
    background: #f8faff;
}

/* FIX: selector was "td .phone" (descendant) — correct is "td.phone" (same element) */
.branch-table td.phone {
    color: #cc0000;
    font-weight: bold;
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   CTA BOX
═══════════════════════════════════════ */
.cta-box {
    background: linear-gradient(135deg, #003087, #0055cc);
    color: #fff;
    border-radius: 6px;
    padding: 20px;
    margin: 18px 0;
    text-align: center;
}

.cta-box p {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.55;
}

.cta-btn {
    display: inline-block;
    background: #cc0000;
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    padding: 11px 32px;
    border-radius: 4px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: #ee0000;
    text-decoration: none !important;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar-hotline {
    background: #cc0000;
    color: #fff;
    border-radius: 4px;
    padding: 16px 14px;
    margin-bottom: 14px;
    text-align: center;
}

.sidebar-hotline .label {
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.sidebar-hotline .number {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sidebar-hotline .sub {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.9;
}

.sidebar-block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.sidebar-block .sb-title {
    background: #003087;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.sidebar-block ul {
    list-style: none;
}

.sidebar-block ul li {
    border-bottom: 1px solid #eee;
}

.sidebar-block ul li:last-child {
    border-bottom: none;
}

.sidebar-block ul li a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.45;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-block ul li a::before {
    content: "›";
    color: #cc0000;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-block ul li a:hover {
    background: #f5f5f5;
    color: #cc0000;
    text-decoration: none;
}

/* Giờ làm việc */
.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    line-height: 1.5;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    background: #1a1a2e;
    color: #bbb;
    padding: 32px 0 0;
    margin-top: 24px;
}

footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

footer .col {
    flex: 1;
    min-width: 180px;
    padding-bottom: 24px;
}

footer .col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #2e2e4a;
    padding-bottom: 8px;
}

footer .col p,
footer .col li {
    font-size: 13px;
    line-height: 1.85;
}

footer .col ul {
    list-style: none;
}

footer .col a {
    color: #aaa;
}

footer .col a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding: 14px 20px;
    border-top: 1px solid #2e2e4a;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 960px
═══════════════════════════════════════ */
@media (max-width: 960px) {

    .tb-nav,
    .tb-search {
        display: none;
    }

    .main-nav ul li a {
        padding: 0 12px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
═══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Thêm padding dưới cho floating button */
    body {
        padding-bottom: 88px;
    }

    /* ── Top bar ── */
    .top-bar .inner {
        height: auto;
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tb-email {
        display: none;
    }

    .tb-right {
        display: none;
    }

    /* ── Header ── */
    header .inner {
        padding: 0 15px;
        min-height: 58px;
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo-block {
        padding-right: 10px;
    }

    .logo-block img {
        height: 36px;
    }

    /* Nav dropdown */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #003d99;
        z-index: 999;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav ul li {
        display: block;
    }

    .main-nav ul li a {
        display: flex;
        align-items: center;
        padding: 0 20px;
        min-height: 50px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .sua-ngay-btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-call {
        display: flex;
    }

    /* ── Breadcrumb ── */
    .breadcrumb .inner {
        padding: 0 15px;
    }

    /* ── Layout ── */
    .page-wrapper {
        flex-direction: column;
        padding: 0 12px;
        margin-top: 12px;
        gap: 14px;
    }

    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sidebar-hotline {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .sidebar-block {
        margin-bottom: 0;
    }

    /* ── Article ── */
    .article-card {
        padding: 16px 14px;
    }

    .article-card h1 {
        font-size: 18px;
    }

    /* CTA full-width */
    .cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }

    /* ── Branch tables → card layout ── */
    .branch-area {
        margin-bottom: 20px;
    }

    .branch-table {
        border: none;
        min-width: 0;
    }

    .branch-table thead {
        display: none;
    }

    .branch-table tbody {
        display: block;
    }

    .branch-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #e0e6f0;
        border-radius: 6px;
        margin-bottom: 8px;
        padding: 10px 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .branch-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .branch-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 3px 0;
        border: none;
        font-size: 13px;
        line-height: 1.5;
    }

    .branch-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #666;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        min-width: 72px;
        flex-shrink: 0;
        padding-top: 1px;
    }

    /* Override white-space for mobile card */
    .branch-table td.phone {
        white-space: normal;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  ≤ 480px
═══════════════════════════════════════ */
@media (max-width: 480px) {
    .top-bar {
        display: none;
    }

    header .inner {
        min-height: 52px;
    }

    .logo-block img {
        height: 30px;
    }

    .article-card {
        padding: 14px 12px;
    }

    .article-card h1 {
        font-size: 16px;
    }

    .article-card h2 {
        font-size: 14px;
    }

    .cta-box {
        padding: 14px 12px;
    }

    .cta-box p {
        font-size: 13px;
    }

    /* Sidebar: stack 1 cột */
    .sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-hotline {
        grid-column: auto;
    }

    /* Footer: stack 1 cột */
    footer .inner {
        flex-direction: column;
        gap: 0;
    }

    footer .col {
        min-width: 100%;
        padding-bottom: 18px;
        border-bottom: 1px solid #2a2a45;
    }

    footer .col:last-child {
        border-bottom: none;
    }

    .footer-bottom {
        font-size: 11px;
    }
}