/* =========================================================
   1. RESET & BIẾN MÀU
========================================================= */

:root {
    --blue: #1E50A2;
    --blue-light: #2d68c7;
    --blue-dark: #0b2454;
    --blue-deep: #06142b;

    --red: #ff5858;
    --red-dark: #d93636;

    --white: #ffffff;
    --text: #f2f6ff;
    --text-muted: #c9d7f0;

    --border: rgba(255, 255, 255, 0.14);
    --border-red: rgba(255, 88, 88, 0.5);

    --radius: 12px;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--blue-deep);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--blue-deep);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #ffffff;
    overflow-wrap: anywhere;
}

a:hover {
    color: #ffe1e1;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================================================
   2. KHUNG WEBSITE
========================================================= */

.container {
    position: relative;
    width: calc(100% - 32px);
    max-width: 1100px;
    margin: 25px auto;
    padding: 12px;

    background: linear-gradient(
        180deg,
        #123875 0%,
        #0b2454 45%,
        #07142b 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(30, 80, 162, 0.12);
}

/* =========================================================
   3. ẢNH BANNER
========================================================= */

.image_background {
    width: 100%;
    overflow: hidden;
    background: var(--blue-dark);
    border-radius: 12px;
}

.image_background img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================================
   4. HEADER THÔNG TIN
========================================================= */

.header_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    margin: 20px 0 25px;
    padding: 20px;

    background: linear-gradient(
        135deg,
        rgba(11, 36, 84, 0.98),
        rgba(30, 80, 162, 0.55)
    );

    border: 1px solid var(--border-red);
    border-radius: 14px;

    box-shadow: 0 0 18px rgba(255, 88, 88, 0.07);
}

.left_info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 450px;
    min-width: 0;
}

.header_profile {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;

    background: var(--blue-dark);
    border: 3px solid var(--red);
    border-radius: 50%;

    box-shadow: 0 0 14px rgba(255, 88, 88, 0.3);
}

.header_profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left_info h1,
.header_info h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* =========================================================
   5. CÁC BIỂU TƯỢNG MẠNG XÃ HỘI
========================================================= */

.right_info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.right_info a {
    display: block;
    text-decoration: none;
}

.logo_social {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 5px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 88, 88, 0.35);
    border-radius: 10px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.logo_social img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.right_info a:hover .logo_social {
    transform: translateY(-3px);
    background: rgba(255, 88, 88, 0.13);
    box-shadow: 0 0 12px rgba(255, 88, 88, 0.25);
}

/* =========================================================
   6. KHUNG BÀI VIẾT
========================================================= */

.bio_box {
    width: 100%;
    margin-top: 20px;
}

.tlg-future {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        #123875 0%,
        #0b2454 48%,
        #07142b 100%
    );

    border: 2px solid var(--red);
    border-radius: 14px;

    box-shadow:
        0 0 22px rgba(255, 88, 88, 0.1),
        inset 0 0 25px rgba(0, 0, 0, 0.1);
}

/* Thanh màu đỏ phía trên */

.tlg-future::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--red),
        #ff9999,
        var(--red-dark)
    );

    box-shadow: 0 0 12px rgba(255, 88, 88, 0.5);
}

.tlg-shell {
    width: 100%;
    padding: 28px;
    color: var(--text);
}

/* =========================================================
   7. NỘI DUNG BÀI VIẾT
========================================================= */

.xe-ghep-bac-quang-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: var(--text);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.xe-ghep-bac-quang-content header {
    margin-bottom: 24px;
}

.xe-ghep-bac-quang-content section {
    margin-top: 32px;
}

.xe-ghep-bac-quang-content p {
    margin: 12px 0 16px;
    color: var(--text);
    line-height: 1.85;
    text-align: left;
}

.xe-ghep-bac-quang-content strong,
.xe-ghep-bac-quang-content b {
    color: var(--white);
    font-weight: 700;
}

.xe-ghep-bac-quang-content em {
    color: var(--text-muted);
}

/* =========================================================
   8. TIÊU ĐỀ H2
========================================================= */

.xe-ghep-bac-quang-content h2 {
    margin: 32px 0 18px;
    padding: 14px 17px;

    color: var(--white);
    background: linear-gradient(
        90deg,
        rgba(255, 88, 88, 0.12),
        rgba(255, 255, 255, 0.025)
    );

    border-left: 5px solid var(--red);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px 10px 10px 5px;

    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 800;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

/* Tiêu đề đầu tiên */

.xe-ghep-bac-quang-content > header > h2:first-child {
    margin-top: 0;
}

/* =========================================================
   9. TIÊU ĐỀ H3
========================================================= */

.xe-ghep-bac-quang-content h3 {
    margin: 25px 0 12px;
    padding: 10px 14px;

    color: var(--white);
    background: linear-gradient(
        135deg,
        #123875,
        #0b2454
    );

    border-left: 4px solid var(--red);
    border-radius: 5px;

    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.5;
}

/* =========================================================
   10. DANH SÁCH UL / OL
========================================================= */

.xe-ghep-bac-quang-content ul,
.xe-ghep-bac-quang-content ol {
    margin: 16px 0 22px;
    padding: 18px 22px 18px 44px;

    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.xe-ghep-bac-quang-content li {
    margin: 7px 0;
    padding-left: 3px;
    color: var(--text);
    line-height: 1.75;
}

.xe-ghep-bac-quang-content li::marker {
    color: var(--red);
    font-weight: 700;
}

.xe-ghep-bac-quang-content li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   11. ĐƯỜNG DẪN
========================================================= */

.xe-ghep-bac-quang-content a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.xe-ghep-bac-quang-content a:hover {
    color: #ffdada;
}

/* Liên kết gọi điện */

.xe-ghep-bac-quang-content a[href^="tel:"] {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;

    display: inline-block;
    padding: 2px 5px;

    background: rgba(255, 88, 88, 0.16);
    border-radius: 5px;
}

.xe-ghep-bac-quang-content a[href^="tel:"]:hover {
    background: rgba(255, 88, 88, 0.3);
}

/* Liên kết Zalo */

.xe-ghep-bac-quang-content a[href*="zalo.me"] {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #65a5ff;
}

/* =========================================================
   12. BẢNG GIÁ VÀ BẢNG THÔNG TIN
========================================================= */

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 22px 0;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    border: 1px solid var(--border-red);
    border-radius: 10px;
    background: var(--blue-dark);
}

.xe-ghep-bac-quang-content table {
    width: 100%;
    min-width: 580px;

    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;

    color: var(--text);
    background: var(--blue-dark);

    font-size: 15px;
    line-height: 1.65;
}

.xe-ghep-bac-quang-content thead {
    background: #173d80;
}

.xe-ghep-bac-quang-content th {
    padding: 14px 13px;

    color: var(--white);
    background: #173d80;

    border: 1px solid rgba(255, 255, 255, 0.18);

    font-weight: 800;
    text-align: left;
    vertical-align: middle;
}

.xe-ghep-bac-quang-content td {
    padding: 13px;

    color: var(--text);
    background: #0b2454;

    border: 1px solid rgba(255, 255, 255, 0.12);

    text-align: left;
    vertical-align: top;
}

.xe-ghep-bac-quang-content tbody tr:nth-child(even) td {
    background: #102e65;
}

.xe-ghep-bac-quang-content tbody tr:hover td {
    background: #173d80;
}

/* =========================================================
   13. PHẦN LIÊN HỆ ĐẶT XE
========================================================= */

.xe-ghep-bac-quang-content .contact-xe-ghep {
    margin-top: 36px;
    padding: 22px;

    background: linear-gradient(
        135deg,
        rgba(30, 80, 162, 0.4),
        rgba(11, 36, 84, 0.65)
    );

    border: 1px solid var(--border-red);
    border-radius: 12px;

    box-shadow: 0 0 20px rgba(255, 88, 88, 0.07);
}

.xe-ghep-bac-quang-content .contact-xe-ghep > h2:first-child {
    margin-top: 0;
}

/* Làm nổi bật phần thông tin đơn vị */

.xe-ghep-bac-quang-content .contact-xe-ghep ul {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Nút gọi điện */

.xe-ghep-bac-quang-content .contact-xe-ghep a[href^="tel:"] {
    display: inline-block;
    margin: 3px 0;
    padding: 9px 15px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #e94343,
        #b92135
    );

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;

    text-decoration: none;
    font-weight: 800;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.xe-ghep-bac-quang-content .contact-xe-ghep a[href^="tel:"]:hover {
    color: #ffffff;
    filter: brightness(1.12);
    transform: translateY(-2px);
}

/* Nút nhắn Zalo */

.xe-ghep-bac-quang-content .contact-xe-ghep a[href*="zalo.me"] {
    display: inline-block;
    margin: 3px 0;
    padding: 9px 15px;

    color: #ffffff;
    background: #1769d2;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;

    text-decoration: none;
    font-weight: 800;

    transition: transform 0.2s ease, filter 0.2s ease;
}

.xe-ghep-bac-quang-content .contact-xe-ghep a[href*="zalo.me"]:hover {
    color: #ffffff;
    filter: brightness(1.12);
    transform: translateY(-2px);
}

/* =========================================================
   14. IN ĐẬM VÀ NHẤN MẠNH
========================================================= */

.xe-ghep-bac-quang-content h2,
.xe-ghep-bac-quang-content h3,
.xe-ghep-bac-quang-content strong {
    overflow-wrap: anywhere;
}

.xe-ghep-bac-quang-content section::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 768px) {
    .container {
        width: calc(100% - 20px);
        margin: 15px auto;
        padding: 8px;
        border-radius: 12px;
    }

    .header_info {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding: 18px 14px;
        margin: 15px 0 20px;
    }

    .left_info {
        flex-direction: column;
        flex-basis: auto;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .left_info h1,
    .header_info h1 {
        font-size: clamp(22px, 4vw, 28px);
    }

    .header_profile {
        width: 85px;
        height: 85px;
    }

    .right_info {
        justify-content: center;
        margin: 0;
        gap: 9px;
    }

    .logo_social {
        width: 42px;
        height: 42px;
    }

    .tlg-shell {
        padding: 20px;
    }

    .xe-ghep-bac-quang-content h2 {
        margin-top: 27px;
        padding: 12px 14px;
        font-size: 22px;
    }

    .xe-ghep-bac-quang-content h3 {
        font-size: 18px;
        padding: 9px 12px;
    }

    .xe-ghep-bac-quang-content p {
        line-height: 1.8;
    }

    .xe-ghep-bac-quang-content ul,
    .xe-ghep-bac-quang-content ol {
        padding: 15px 18px 15px 38px;
    }

    .xe-ghep-bac-quang-content .contact-xe-ghep {
        padding: 17px;
    }

    .xe-ghep-bac-quang-content table {
        min-width: 580px;
    }
}

/* =========================================================
   16. ĐIỆN THOẠI
========================================================= */

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.7;
    }

    .container {
        width: calc(100% - 12px);
        margin: 8px auto;
        padding: 5px;
        border-radius: 10px;
    }

    .image_background,
    .image_background img {
        border-radius: 8px;
    }

    .header_info {
        gap: 13px;
        margin: 12px 0 16px;
        padding: 14px 9px;
        border-radius: 10px;
    }

    .left_info {
        gap: 11px;
    }

    .header_profile {
        width: 72px;
        height: 72px;
        border-width: 2px;
    }

    .left_info h1,
    .header_info h1 {
        font-size: 21px;
        line-height: 1.4;
    }

    .right_info {
        gap: 7px;
    }

    .logo_social {
        width: 35px;
        height: 35px;
        padding: 4px;
        border-radius: 8px;
    }

    .bio_box {
        margin-top: 12px;
    }

    .tlg-future {
        border-width: 1px;
        border-radius: 10px;
    }

    .tlg-future::before {
        height: 3px;
    }

    .tlg-shell {
        padding: 14px 11px;
    }

    .xe-ghep-bac-quang-content header {
        margin-bottom: 18px;
    }

    .xe-ghep-bac-quang-content section {
        margin-top: 24px;
    }

    .xe-ghep-bac-quang-content p {
        margin: 10px 0 13px;
        font-size: 14px;
        line-height: 1.8;
    }

    .xe-ghep-bac-quang-content h2 {
        margin: 24px 0 14px;
        padding: 10px 11px;
        font-size: 19px;
        line-height: 1.5;
        border-left-width: 4px;
    }

    .xe-ghep-bac-quang-content h3 {
        margin: 20px 0 10px;
        padding: 8px 10px;
        font-size: 16px;
        line-height: 1.5;
        border-left-width: 3px;
    }

    .xe-ghep-bac-quang-content ul,
    .xe-ghep-bac-quang-content ol {
        margin: 12px 0 17px;
        padding: 12px 12px 12px 30px;
        border-radius: 8px;
    }

    .xe-ghep-bac-quang-content li {
        margin: 6px 0;
        font-size: 14px;
    }

    .table-responsive {
        margin: 16px 0;
        border-radius: 8px;
    }

    .xe-ghep-bac-quang-content table {
        min-width: 540px;
        font-size: 13px;
    }

    .xe-ghep-bac-quang-content th,
    .xe-ghep-bac-quang-content td {
        padding: 10px;
    }

    .xe-ghep-bac-quang-content .contact-xe-ghep {
        margin-top: 25px;
        padding: 13px 10px;
        border-radius: 9px;
    }

    .xe-ghep-bac-quang-content .contact-xe-ghep a[href^="tel:"],
    .xe-ghep-bac-quang-content .contact-xe-ghep a[href*="zalo.me"] {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* =========================================================
   17. GIẢM CHUYỂN ĐỘNG
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}