/* =========================================================
   XE GHÉP HÀ NỘI - TÂN KỲ
   THEME: DARK BLUE - RED - WHITE
========================================================= */

/* =========================================================
   1. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: #07142b;
    scroll-padding-top: 20px;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px;
    line-height: 1.75;

    color: #ffffff !important;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(30, 80, 162, 0.25),
            transparent 45%
        ),
        #07142b !important;

    overflow-x: hidden;
}

/* =========================================================
   2. BIẾN MÀU
========================================================= */

:root {
    --blue: #1e50a2;
    --blue-dark: #123875;
    --blue-deep: #07142b;
    --blue-deeper: #061735;
    --blue-light: #2d68c7;

    --red: #ff5858;
    --red-dark: #d93636;
    --red-soft: rgba(255, 88, 88, 0.15);

    --white: #ffffff;
    --text: #ffffff;
    --text-soft: #dbe7ff;

    --border: rgba(255, 255, 255, 0.16);
    --border-red: rgba(255, 88, 88, 0.65);

    --radius: 14px;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    --shadow-red:
        0 0 22px rgba(255, 88, 88, 0.12);
}

/* =========================================================
   3. KHUNG WEBSITE
========================================================= */

.container {
    position: relative;
    z-index: 1;

    width: min(95%, 1100px);

    margin: 25px auto;
    padding: 12px;

    color: var(--white) !important;

    background:
        linear-gradient(
            180deg,
            rgba(18, 57, 122, 0.97),
            rgba(6, 23, 53, 0.99)
        );

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

    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(30, 80, 162, 0.12);
}

/* =========================================================
   4. ẢNH NỀN ĐẦU TRANG
========================================================= */

.image_background {
    width: 100%;

    overflow: hidden;

    background: var(--blue-dark);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.image_background img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    border-radius: 12px;
}

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

.header_info {
    display: flex !important;

    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 22px;

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

    background:
        linear-gradient(
            135deg,
            rgba(11, 36, 84, 0.98),
            rgba(18, 57, 122, 0.92)
        );

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

    box-shadow: var(--shadow-red);
}

.left_info {
    display: flex;

    align-items: center;
    gap: 16px;

    flex: 1 1 400px;
    min-width: 0;

    color: var(--white) !important;
}

.header_profile {
    width: 100px;
    height: 100px;

    flex-shrink: 0;

    padding: 0;
    margin: 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.4);
}

.header_profile img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.left_info h1,
.header_info h1 {
    margin: 0;

    color: var(--white) !important;

    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;

    line-height: 1.35;

    overflow-wrap: anywhere;

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.1);
}

.left_info h1 strong {
    color: var(--white) !important;
    font-weight: 800;
}

/* =========================================================
   6. SOCIAL MEDIA
========================================================= */

.right_info {
    display: flex !important;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 10px;

    margin-left: auto;
}

.right_info a {
    display: inline-flex;

    text-decoration: none !important;

    outline-offset: 4px;
}

.logo_social {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid var(--border-red);
    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%;

    padding: 5px;

    object-fit: contain;

    filter: none !important;
    opacity: 1;
}

.right_info a:hover .logo_social {
    transform: translateY(-3px);

    background: rgba(255, 88, 88, 0.14);

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

/* =========================================================
   7. BIO BOX
========================================================= */

.bio_box {
    position: relative;

    width: 100%;
    margin-top: 20px;

    padding: 20px;

    color: var(--white) !important;

    background:
        linear-gradient(
            180deg,
            rgba(18, 57, 122, 0.95),
            rgba(7, 20, 43, 0.99)
        ) !important;

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

    box-shadow:
        0 0 25px rgba(255, 88, 88, 0.12),
        inset 0 0 25px rgba(0, 0, 0, 0.12);

    overflow: hidden;
}

.bio_box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--red);

    box-shadow:
        0 0 10px var(--red),
        0 0 22px var(--red);

    z-index: 2;
}

/* =========================================================
   8. TLG FUTURE
========================================================= */

.tlg-future {
    position: relative;

    width: 100%;

    color: var(--white) !important;

    background:
        linear-gradient(
            180deg,
            rgba(18, 57, 122, 0.96),
            rgba(7, 20, 43, 0.99)
        ) !important;

    border: 1px solid rgba(255, 88, 88, 0.4);
    border-radius: 10px;

    overflow: hidden;
}

.tlg-future::before {
    content: "XE GHÉP HÀ NỘI - TÂN KỲ";

    display: block;

    padding: 10px 16px;

    color: var(--white) !important;

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

    border-bottom: 1px solid var(--border-red);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================================
   9. TLG SHELL
========================================================= */

.tlg-shell {
    position: relative;

    width: 100%;
    padding: 24px;

    color: var(--white) !important;

    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =========================================================
   10. NỘI DUNG CHÍNH
========================================================= */

.xe-ghep-content {
    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    color: var(--white) !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8;

    overflow-wrap: break-word;
}

.xe-ghep-content section {
    display: block;

    width: 100%;

    margin: 0 0 30px;
    padding: 0;

    scroll-margin-top: 20px;
}

.xe-ghep-content section:last-child {
    margin-bottom: 0;
}

/* =========================================================
   11. H1 - H2 - H3
========================================================= */

.bio_box h1,
.tlg-shell h1,
.xe-ghep-content h1 {
    color: var(--white) !important;
}

.xe-ghep-content h1 {
    margin: 0 0 20px;

    padding-bottom: 12px;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.4;

    border-bottom: 2px solid var(--border-red);
}

.bio_box h2,
.tlg-shell h2,
.xe-ghep-content h2 {
    margin: 32px 0 17px;
    padding: 13px 16px;

    color: var(--white) !important;

    font-size: clamp(21px, 2.4vw, 25px);
    font-weight: 800;

    line-height: 1.45;

    background:
        linear-gradient(
            90deg,
            rgba(255, 88, 88, 0.1),
            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;

    overflow-wrap: anywhere;
}

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

.bio_box h3,
.tlg-shell h3,
.xe-ghep-content h3 {
    margin: 24px 0 12px;
    padding: 10px 14px;

    color: var(--white) !important;

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

    line-height: 1.5;

    background:
        linear-gradient(
            135deg,
            rgba(18, 56, 117, 0.98),
            rgba(11, 36, 84, 0.98)
        );

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

.xe-ghep-content h2 strong,
.xe-ghep-content h3 strong {
    color: var(--white) !important;
}

/* =========================================================
   12. ĐOẠN VĂN
========================================================= */

.bio_box p,
.tlg-shell p,
.xe-ghep-content p {
    margin: 0 0 16px;

    color: var(--text-soft) !important;

    font-size: 16px;
    line-height: 1.8;
}

.xe-ghep-content p:last-child {
    margin-bottom: 0;
}

.bio_box strong,
.bio_box b,
.tlg-shell strong,
.tlg-shell b,
.xe-ghep-content strong,
.xe-ghep-content b {
    color: var(--white) !important;

    font-weight: 800;
}

/* =========================================================
   13. DANH SÁCH
========================================================= */

.bio_box ul,
.bio_box ol,
.tlg-shell ul,
.tlg-shell ol,
.xe-ghep-content ul,
.xe-ghep-content ol {
    margin: 16px 0 20px;

    padding: 16px 22px 16px 43px;

    color: var(--text-soft) !important;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.bio_box li,
.tlg-shell li,
.xe-ghep-content li {
    margin: 0 0 9px;

    padding-left: 3px;

    color: var(--text-soft) !important;

    line-height: 1.75;
}

.bio_box li:last-child,
.tlg-shell li:last-child,
.xe-ghep-content li:last-child {
    margin-bottom: 0;
}

.bio_box li::marker,
.tlg-shell li::marker,
.xe-ghep-content li::marker {
    color: var(--red);
}

/* =========================================================
   14. LIÊN KẾT
========================================================= */

.bio_box a,
.tlg-shell a,
.xe-ghep-content a {
    color: #ffffff !important;

    font-weight: 700;

    text-decoration-line: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;

    text-underline-offset: 4px;

    overflow-wrap: anywhere;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.bio_box a:hover,
.tlg-shell a:hover,
.xe-ghep-content a:hover {
    color: #ffdada !important;

    text-decoration-color: #ffffff;
}

.xe-ghep-content a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

/* =========================================================
   15. BẢNG GIÁ - RESPONSIVE TABLE
========================================================= */

.table-responsive {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 20px 0 25px;

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

    -webkit-overflow-scrolling: touch;

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

    background: #0b2454;

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

.bio_box table,
.tlg-shell table,
.xe-ghep-content table {
    width: 100%;
    min-width: 620px;

    margin: 0;

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

    color: var(--white) !important;

    background: #0b2454 !important;

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

.xe-ghep-content thead {
    background: #123875 !important;
}

.bio_box th,
.bio_box td,
.tlg-shell th,
.tlg-shell td,
.xe-ghep-content th,
.xe-ghep-content td {
    padding: 13px 14px;

    color: var(--text-soft) !important;

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

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

    overflow-wrap: break-word;
}

.bio_box th,
.tlg-shell th,
.xe-ghep-content th {
    color: var(--white) !important;

    background: #123875 !important;

    font-weight: 800;

    text-align: center;
    vertical-align: middle;
}

.bio_box td strong,
.tlg-shell td strong,
.xe-ghep-content td strong {
    color: var(--white) !important;
}

.bio_box tbody tr:nth-child(even) td,
.tlg-shell tbody tr:nth-child(even) td,
.xe-ghep-content tbody tr:nth-child(even) td {
    background: #102e65 !important;
}

.bio_box tbody tr:hover td,
.tlg-shell tbody tr:hover td,
.xe-ghep-content tbody tr:hover td {
    background: #173d80 !important;

    transition: background 0.2s ease;
}

/* =========================================================
   16. LỊCH TRÌNH XE
========================================================= */

.schedule-list {
    margin: 18px 0 24px;

    padding: 5px 18px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 56, 117, 0.9),
            rgba(11, 36, 84, 0.95)
        );

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

    border-radius: 10px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);
}

.schedule-list ul {
    margin: 10px 0;

    background: transparent;

    border: 0;
}

.schedule-list li {
    padding: 5px 0;
}

/* =========================================================
   17. FAQ
========================================================= */

#faq {
    margin-top: 35px;
}

.faq-item {
    margin: 16px 0;
    padding: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 56, 117, 0.8),
            rgba(7, 20, 43, 0.85)
        );

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 4px solid var(--red);

    border-radius: 10px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.1);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-red);

    background:
        linear-gradient(
            135deg,
            rgba(18, 56, 117, 0.95),
            rgba(11, 36, 84, 0.95)
        );
}

.faq-item h3 {
    margin: 0 0 14px;

    padding: 0;

    color: var(--white) !important;

    font-size: 18px;
    line-height: 1.6;

    background: transparent;

    border: 0;
    border-radius: 0;
}

.faq-item p {
    margin: 0;

    color: var(--text-soft) !important;
}

.faq-item p strong {
    color: var(--white) !important;
}

/* =========================================================
   18. KHU VỰC LIÊN HỆ
========================================================= */

#lien-he {
    margin-top: 35px;
    padding-top: 5px;
}

#lien-he > p:first-of-type {
    margin-bottom: 20px;
}

#lien-he > p a[href^="tel:"],
#huong-dan-dat-xe a[href^="tel:"] {
    font-weight: 800;

    text-decoration-thickness: 2px;
}

#lien-he > p a[href^="https://zalo.me/"],
#huong-dan-dat-xe a[href^="https://zalo.me/"] {
    display: inline-block;

    margin: 5px 0;
}

/* =========================================================
   19. HÌNH ẢNH TRONG NỘI DUNG
========================================================= */

.xe-ghep-content img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 18px auto;

    border-radius: 10px;
}

.xe-ghep-content figure {
    max-width: 100%;

    margin: 20px auto;

    text-align: center;
}

.xe-ghep-content figcaption {
    margin-top: 8px;

    color: var(--text-soft);

    font-size: 14px;
    font-style: italic;
}

/* =========================================================
   20. ĐƯỜNG PHÂN CÁCH
========================================================= */

.xe-ghep-content hr {
    height: 1px;

    margin: 25px 0;

    background: rgba(255, 88, 88, 0.45);

    border: 0;
}

/* =========================================================
   21. BẢO ĐẢM MÀU CHỮ TRONG NỘI DUNG
========================================================= */

.bio_box,
.bio_box .tlg-future,
.bio_box .tlg-shell,
.bio_box .xe-ghep-content {
    color: var(--white) !important;
}

.xe-ghep-content h1,
.xe-ghep-content h2,
.xe-ghep-content h3,
.xe-ghep-content strong,
.xe-ghep-content b,
.xe-ghep-content th {
    color: var(--white) !important;
}

/* =========================================================
   22. TABLET
========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .container {
        width: 96%;

        margin: 15px auto;
        padding: 8px;
    }

    .header_info {
        justify-content: center;

        gap: 18px;

        margin: 15px 0 20px;
        padding: 16px;
    }

    .left_info {
        flex: 1 1 100%;

        justify-content: center;

        gap: 14px;
    }

    .left_info h1,
    .header_info h1 {
        font-size: clamp(21px, 4vw, 29px);

        text-align: left;
    }

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

    .right_info {
        justify-content: center;

        width: 100%;

        margin-left: 0;

        gap: 10px;
    }

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

    .bio_box {
        padding: 12px;
    }

    .tlg-shell {
        padding: 18px;
    }

    .xe-ghep-content {
        font-size: 15px;
    }

    .xe-ghep-content h2 {
        margin-top: 27px;
        padding: 12px 13px;

        font-size: 22px;
    }

    .xe-ghep-content h3 {
        margin-top: 20px;
        padding: 9px 12px;

        font-size: 18px;
    }

    .xe-ghep-content p {
        font-size: 15px;
    }

    .table-responsive {
        margin: 16px 0 22px;

        border-radius: 8px;
    }

    .xe-ghep-content table {
        min-width: 600px;

        font-size: 14px;
    }

    .xe-ghep-content th,
    .xe-ghep-content td {
        padding: 11px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item h3 {
        font-size: 17px;
    }
}

/* =========================================================
   23. MOBILE
========================================================= */

@media (max-width: 480px) {

    html,
    body {
        width: 100%;
    }

    body {
        font-size: 14px;
        line-height: 1.7;
    }

    .container {
        width: calc(100% - 12px);

        margin: 6px auto;
        padding: 5px;

        border-radius: 10px;
    }

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

    .header_info {
        gap: 15px;

        margin: 12px 0 15px;
        padding: 13px;

        border-radius: 10px;
    }

    .left_info {
        flex-direction: column;

        flex: 1 1 100%;

        align-items: center;

        text-align: center;

        gap: 10px;
    }

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

    .left_info h1,
    .header_info h1 {
        width: 100%;

        font-size: 22px;

        line-height: 1.4;

        text-align: center;
    }

    .right_info {
        gap: 8px;
    }

    .logo_social {
        width: 36px;
        height: 36px;

        border-radius: 8px;
    }

    .logo_social img {
        padding: 4px;
    }

    .bio_box {
        margin-top: 12px;

        padding: 7px;

        border-radius: 10px;
    }

    .tlg-future {
        border-radius: 7px;
    }

    .tlg-future::before {
        padding: 9px 10px;

        font-size: 10px;

        letter-spacing: 1px;
    }

    .tlg-shell {
        padding: 13px 10px;
    }

    .xe-ghep-content {
        font-size: 14px;
        line-height: 1.75;
    }

    .xe-ghep-content section {
        margin-bottom: 25px;
    }

    .xe-ghep-content h1 {
        font-size: 23px;
    }

    .xe-ghep-content h2 {
        margin: 25px 0 13px;
        padding: 10px 11px;

        font-size: 19px;
        line-height: 1.5;

        border-left-width: 4px;

        border-radius: 4px 7px 7px 4px;
    }

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

    .xe-ghep-content h3 {
        margin: 20px 0 10px;
        padding: 8px 10px;

        font-size: 16px;
        line-height: 1.55;

        border-left-width: 3px;
    }

    .xe-ghep-content p {
        margin-bottom: 13px;

        font-size: 14px;
        line-height: 1.8;
    }

    .xe-ghep-content ul,
    .xe-ghep-content ol {
        margin: 13px 0 17px;

        padding: 13px 12px 13px 31px;

        border-radius: 8px;
    }

    .xe-ghep-content li {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .table-responsive {
        margin: 14px 0 20px;

        border-width: 1px;
        border-radius: 7px;
    }

    .xe-ghep-content table {
        min-width: 570px;

        font-size: 13px;
        line-height: 1.6;
    }

    .xe-ghep-content th,
    .xe-ghep-content td {
        padding: 9px;
    }

    .schedule-list {
        padding: 4px 10px;

        border-left-width: 4px;
    }

    .schedule-list ul {
        padding-left: 25px;
    }

    .faq-item {
        margin: 12px 0;
        padding: 12px;

        border-radius: 8px;
    }

    .faq-item h3 {
        margin-bottom: 10px;

        font-size: 16px;
    }

    .faq-item p {
        font-size: 14px;
    }

    #lien-he > p a {
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   24. MÀN HÌNH RẤT NHỎ
========================================================= */

@media (max-width: 350px) {

    .container {
        width: calc(100% - 8px);

        padding: 4px;
    }

    .left_info h1,
    .header_info h1 {
        font-size: 19px;
    }

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

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

    .tlg-shell {
        padding: 10px 7px;
    }

    .xe-ghep-content h2 {
        font-size: 18px;
    }

    .xe-ghep-content h3 {
        font-size: 15px;
    }

    .xe-ghep-content table {
        min-width: 540px;
    }
}

/* =========================================================
   25. ACCESSIBILITY - GIẢM CHUYỂN ĐỘNG
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}