/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    background: #07142b;
}

body {
    margin: 0 !important;
    padding: 0;
    background: #07142b !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #ffffff !important;
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

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

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

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

    --border: rgba(255, 255, 255, 0.18);
    --border-red: rgba(255, 88, 88, 0.7);

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

/* =========================================================
   KHUNG WEBSITE
========================================================= */

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

    width: min(95%, 1000px);
    margin: 25px auto;
    padding: 12px;

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

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

    color: #ffffff;

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

/* =========================================================
   ẢNH BANNER
========================================================= */

.image_background {
    width: 100%;
    overflow: hidden;

    border-radius: 12px;
    background: var(--blue-dark);
}

.image_background img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 12px;
    object-fit: cover;
}

/* =========================================================
   HEADER
========================================================= */

.header_info {
    display: flex !important;

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

    gap: 20px;
    flex-wrap: wrap;

    margin: 20px 0 30px;
    padding: 18px;

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

    border: 1px solid rgba(255, 88, 88, 0.35) !important;
    border-radius: 14px;

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

.left_info {
    display: flex;
    align-items: center;

    gap: 15px;
    min-width: 0;
    flex: 1;
}

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

    padding: 0;
    margin: 0;

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

    overflow: hidden;
    flex-shrink: 0;

    background: var(--blue-dark);

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

.header_profile img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

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

    color: #ffffff !important;

    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: anywhere;

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

.left_info h1 strong {
    color: #ffffff !important;
}

/* =========================================================
   MẠNG XÃ HỘI
========================================================= */

.right_info {
    display: flex !important;

    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    margin-left: auto;
}

.right_info a {
    display: inline-flex;

    text-decoration: none !important;
}

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

    width: 48px;
    height: 48px;

    flex-shrink: 0;
    overflow: hidden;

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

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

    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;
    opacity: 1;

    filter: none !important;
}

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

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

    box-shadow:
        0 0 10px rgba(255, 88, 88, 0.45);
}

/* =========================================================
   BIO BOX - KHUNG NỘI DUNG CHÍNH
========================================================= */

.bio_box {
    position: relative;

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

    color: #ffffff !important;

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

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

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

    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: 1;
}

/* =========================================================
   TLG FUTURE - KHUNG NỘI DUNG THEO FORM MẪU
========================================================= */

.tlg-future {
    position: relative;

    width: 100%;

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

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

    color: #ffffff !important;

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

    overflow: hidden;
}

.tlg-future::before {
    content: "THANH LOAN GO // XE GHÉP";

    display: block;

    padding: 10px 16px;

    color: #ffffff !important;

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

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

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* =========================================================
   TLG SHELL
========================================================= */

.tlg-shell {
    position: relative;

    width: 100%;
    padding: 24px;

    color: #ffffff !important;
    overflow-wrap: break-word;
}

/* Đảm bảo chữ bên trong nội dung hiển thị màu trắng */

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

/* =========================================================
   BÀI VIẾT XE GHÉP
========================================================= */

.xe-ghep-content {
    display: block;

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

    margin: 0 auto;

    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.8;

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

.xe-ghep-content section {
    display: block;
    margin: 0 0 28px;
}

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

.xe-ghep-content p {
    margin: 12px 0 16px;

    color: #ffffff !important;
    line-height: 1.8;
    text-align: left;
}

.xe-ghep-content strong,
.xe-ghep-content b {
    color: #ffffff !important;
    font-weight: 700;
}

.xe-ghep-content em {
    color: #dbe7ff !important;
}

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

.xe-ghep-content h2,
.bio_box h2 {
    position: relative;

    margin: 30px 0 16px;
    padding: 13px 16px;

    color: #ffffff !important;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.015)
        );

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

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

.xe-ghep-content .article-header h2:first-child {
    margin-top: 5px;
}

.xe-ghep-content h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 2px;

    margin-top: 9px;

    background: var(--red);

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

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

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

    color: #ffffff !important;

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

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

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

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);
}

.xe-ghep-content section h3:first-child {
    margin-top: 15px;
}

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

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

    padding: 17px 22px 17px 44px;

    color: #ffffff !important;

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

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

.xe-ghep-content li,
.bio_box li {
    margin: 8px 0;

    padding-left: 3px;

    color: #ffffff !important;
    line-height: 1.75;
}

.xe-ghep-content li::marker,
.bio_box li::marker {
    color: var(--red) !important;
    font-weight: 700;
}

.xe-ghep-content li strong {
    color: #ffffff !important;
}

/* =========================================================
   LINK TRONG BÀI VIẾT
========================================================= */

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

    font-weight: 700;

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

    overflow-wrap: anywhere;

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

.xe-ghep-content a:hover,
.bio_box a:hover {
    color: #ffe1e1 !important;
    text-decoration-color: #ffffff;
}

/* =========================================================
   BẢNG GIÁ - HỖ TRỢ NẾU THÊM BẢNG VÀO BÀI
========================================================= */

.xe-ghep-content .tlg-table-wrap {
    width: 100%;

    margin: 22px 0;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

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

    background: #0b2454;

    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(255, 88, 88, 0.12);
}

.xe-ghep-content table {
    width: 100%;
    min-width: 500px;

    margin: 20px 0;

    border-collapse: collapse;

    color: #ffffff !important;
    background: #0b2454 !important;

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

.xe-ghep-content .tlg-table-wrap table {
    margin: 0;
}

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

    color: #ffffff !important;

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

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

    background: #0b2454 !important;
}

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

    color: #ffffff !important;
    font-weight: 700;
}

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

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

/* =========================================================
   FAQ
========================================================= */

.xe-ghep-content #faq-xe-ghep {
    margin-top: 35px;
}

.xe-ghep-content .faq-item {
    margin: 15px 0;
    padding: 16px 18px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );

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

    border-radius: 10px;

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

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

.xe-ghep-content .faq-item:hover {
    border-color: rgba(255, 88, 88, 0.65);
}

.xe-ghep-content .faq-item h3 {
    margin: 0 0 12px;
    padding: 0;

    color: #ffffff !important;

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

    background: transparent;
    border: 0;
    border-radius: 0;

    box-shadow: none;
}

.xe-ghep-content .faq-item p {
    margin: 0;
}

.xe-ghep-content .faq-item strong {
    color: #ffffff !important;
}

/* =========================================================
   KHUNG LIÊN HỆ
========================================================= */

.xe-ghep-content .contact-section {
    margin-top: 35px;
    padding: 20px;

    color: #ffffff !important;

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

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

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

.xe-ghep-content .contact-section h2 {
    margin-top: 0;
}

.xe-ghep-content .contact-section h3 {
    margin-top: 25px;
}

.xe-ghep-content .contact-section p {
    margin: 12px 0;
}

.xe-ghep-content .contact-section ul {
    background: rgba(0, 0, 0, 0.12);
}

/* =========================================================
   FOOTER BÀI VIẾT
========================================================= */

.xe-ghep-content .article-footer {
    margin-top: 30px;
    padding: 15px 18px;

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

    border: 1px solid rgba(255, 88, 88, 0.45);
    border-left: 5px solid var(--red);

    border-radius: 8px;
}

.xe-ghep-content .article-footer p {
    margin: 0;

    color: #dbe7ff !important;
    font-size: 14px;
}

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

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

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

    margin: 20px auto;

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

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.xe-ghep-content blockquote {
    margin: 20px 0;
    padding: 16px 18px;

    color: #ffffff !important;

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

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 5px solid var(--red);

    border-radius: 8px;

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

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

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

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

    margin: 28px 0;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 88, 88, 0.8),
            transparent
        );
}

/* =========================================================
   SELECTION
========================================================= */

::selection {
    color: #ffffff;
    background: #1E50A2;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .container {
        width: 95%;

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

    .header_info {
        flex-direction: column;

        text-align: center;

        padding: 15px;
        gap: 16px;
    }

    .left_info {
        flex-direction: column;
        justify-content: center;

        width: 100%;
        gap: 12px;
    }

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

        font-size: 25px;
        text-align: center;
    }

    .right_info {
        justify-content: center;

        width: 100%;
        margin-left: 0;
    }

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

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

    .bio_box {
        padding: 12px;
    }

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

    .tlg-shell {
        padding: 17px;
    }

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

    .xe-ghep-content h2,
    .bio_box h2 {
        margin-top: 25px;
        padding: 11px 13px;

        font-size: 21px;
    }

    .xe-ghep-content h3,
    .bio_box h3 {
        margin-top: 20px;
        padding: 9px 11px;

        font-size: 18px;
    }

    .xe-ghep-content ul,
    .xe-ghep-content ol,
    .bio_box ul,
    .bio_box ol {
        padding: 14px 17px 14px 36px;
    }

    .xe-ghep-content .faq-item {
        padding: 14px;
    }

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

    .xe-ghep-content .contact-section {
        padding: 15px;
    }

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

/* =========================================================
   MOBILE NHỎ
========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .container {
        width: 98%;

        margin: 8px auto;
        padding: 5px;

        border-radius: 10px;
    }

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

    .header_info {
        margin: 12px 0 18px;
        padding: 12px;

        border-radius: 10px;
    }

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

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

    .right_info {
        gap: 8px;
    }

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

        border-radius: 8px;
    }

    .bio_box {
        padding: 8px;

        border-radius: 10px;
    }

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

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

        font-size: 10px;
        letter-spacing: 0.08em;
    }

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

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

    .xe-ghep-content p {
        margin: 10px 0 13px;
        line-height: 1.75;
    }

    .xe-ghep-content h2,
    .bio_box h2 {
        margin: 23px 0 12px;
        padding: 10px 11px;

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

        border-left-width: 4px;
    }

    .xe-ghep-content .article-header h2:first-child {
        margin-top: 5px;
    }

    .xe-ghep-content h3,
    .bio_box h3 {
        margin: 19px 0 10px;
        padding: 9px 10px;

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

    .xe-ghep-content ul,
    .xe-ghep-content ol,
    .bio_box ul,
    .bio_box ol {
        margin: 12px 0 16px;
        padding: 12px 12px 12px 30px;

        border-radius: 8px;
    }

    .xe-ghep-content li,
    .bio_box li {
        margin: 7px 0;
    }

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

        border-radius: 8px;
    }

    .xe-ghep-content .faq-item h3 {
        margin: 0 0 10px;
        padding: 0;

        font-size: 16px;
    }

    .xe-ghep-content .contact-section {
        margin-top: 25px;
        padding: 12px;

        border-radius: 9px;
    }

    .xe-ghep-content .article-footer {
        padding: 12px;
    }

    .xe-ghep-content .article-footer p {
        font-size: 13px;
    }

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

        font-size: 13px;
    }

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

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

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

    html {
        scroll-behavior: auto;
    }

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