/* ==========================================================================
   PALLET GỖ ƯU VIỆT — INDUSTRIAL B2B TECH v4.0
   Brand: #070F1E (Deep Navy) + #C8A96E (Industrial Gold)
   Font: Be Vietnam Pro (Uppercase Heavy)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════ DESIGN TOKENS ═══════════════ */
:root {
    --primary: #013584;
    --primary-dark: #012152;
    --primary-deeper: #001233;
    --primary-light: #1a5be0;
    --primary-rgb: 1, 53, 132;

    --accent: #C8A96E;
    --accent-dark: #A6864C;
    --accent-rgb: 200, 169, 110;

    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #475569;
    --text-light: #94A3B8;

    --border: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.1);

    --success: #10B981;

    --font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;

    /* INDUSTRIAL SHAPES: Sharp corners, highly structured */
    --radius: 4px;
    --radius-lg: 4px;
    --radius-full: 4px;
    /* overridden intentionally to keep it industrial */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.2s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body,
.ckeditor-content {
    font-family: var(--font) !important;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    /* Industrial Strict Vibe */
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--primary);
}

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

::selection {
    background: rgba(var(--accent-rgb), .3);
    color: var(--primary-dark);
}

/* ═══════════════ TECHNICAL GRIDS ═══════════════ */
.blueprint-bg {
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.tech-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.tech-line.dark {
    background: var(--border-dark);
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 4px 4px 0px rgba(var(--accent-rgb), 1);
    transform: translate(-2px, -2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent-dark);
}

.btn-accent:hover {
    background: #DFC086;
    color: var(--primary-dark);
    box-shadow: 4px 4px 0px var(--primary-dark);
    transform: translate(-2px, -2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: #fff;
}

.btn-outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ═══════════════ TOPBAR & NAVBAR ═══════════════ */
.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .6);
    font-size: .75rem;
    padding: .5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-dark);
}

.topbar a {
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
}

.topbar a:hover {
    color: var(--accent);
}

.navbar-uv {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s var(--ease);
    z-index: 1030;
}

.navbar-uv.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand-logo {
    height: 40px;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    font-weight: 600;
}

.navbar-uv .nav-link {
    font-weight: 600;
    font-size: .8rem;
    color: var(--text);
    padding: .5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--duration) var(--ease);
}

.navbar-uv .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar-uv .nav-link:hover::before,
.navbar-uv .nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-uv .nav-link.active {
    color: var(--primary);
}

/* ═══════════════ HERO — DATA DRIVEN ═══════════════ */
.hero {
    background: var(--primary-deeper);
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.hero-box {
    display: flex;
    min-height: 90vh;
}

/* Left: Text & Data */
.hero-content-col {
    flex: 0 0 50%;
    padding: 6rem 4rem 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-transform: none;
    /* keep readable */
}

.hero-data-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
}

.hero-data-item .val {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-data-item .lbl {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Right: Image Fill */
.hero-visual-col {
    flex: 0 0 50%;
    position: relative;
}

/* Use absolute positioning so the image fills the right half perfectly */
.hero-visual-col-inner {
    position: absolute;
    inset: 0;
    padding-left: 2rem;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.9);
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary-deeper), transparent 20%);
    z-index: 1;
}

/* ═══════════════ SECTION SYSTEM ═══════════════ */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-dark {
    background: var(--primary-deeper);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent);
    margin-bottom: .5rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 8px;
}

.section-heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* ═══════════════ TECH SPECS / SERVICES TABLE ═══════════════ */
.spec-module {
    margin-bottom: 4rem;
}

.spec-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin: 0;
}

.spec-tag {
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* LEFT: Data Table */
.spec-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.spec-table th {
    width: 35%;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.spec-table td {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-table tr:first-child th,
.spec-table tr:first-child td {
    padding-top: 0;
}

.spec-desc {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* RIGHT: Image */
.spec-image-wrap {
    position: relative;
    height: 100%;
    min-height: 300px;
    border: 1px solid var(--border);
    padding: 0.5rem;
    background: var(--surface);
}

.spec-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-marker {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ═══════════════ INFO GRID (BENEFITS) ═══════════════ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-dark);
    /* acts as grid lines */
    border: 1px solid var(--border-dark);
}

.info-cell {
    background: var(--primary-deeper);
    padding: 3rem 2rem;
    transition: background var(--duration) var(--ease);
}

.info-cell:hover {
    background: var(--primary-dark);
}

.info-num {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.info-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.info-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    text-transform: none;
}

/* ═══════════════ GALLERY TAPE ═══════════════ */
.gallery-tape {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 2rem 0;
    scrollbar-width: none;
}

.gallery-tape::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 350px;
    height: 250px;
    border: 1px solid var(--border);
    padding: 0.25rem;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer-tech {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--accent);
}

.footer-tech h5 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 0.5rem;
}

.footer-tech ul {
    list-style: none;
    padding: 0;
}

.footer-tech li {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: none;
}

.footer-tech a {
    color: var(--text-light);
}

.footer-tech a:hover {
    color: var(--accent);
}

.footer-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: none;
}

.footer-item i {
    color: var(--accent);
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════ FLOATING ═══════════════ */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border-dark);
}

.float-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.float-btn.zalo {
    background: #0068FF;
    border-color: #0068FF;
}

/* ═══════════════ COMPATIBILITY CLASSES (For existing pages) ═══════════════ */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    font-weight: 300;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-card-img-wrapper .product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.blog-card {
    border: 1px solid var(--border);
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.navbar-top-bar {
    display: none;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Navbar compact for medium-large screens */
@media(max-width: 1399.98px) {

    .topbar span,
    .topbar a {
        font-size: 0.65rem !important;
    }

    .navbar-uv .nav-link {
        font-size: .8rem;
        padding: .5rem .55rem;
        letter-spacing: 0.02em;
    }

    .navbar-brand img {
        height: 42px !important;
    }

    .navbar-brand .brand-text {
        font-size: 1.05rem !important;
    }

    .navbar-brand .brand-sub {
        font-size: 0.65rem !important;
    }

    .navbar-uv .btn {
        font-size: .7rem;
        padding: .6rem 0.5rem;
        white-space: nowrap;
    }
}

@media(max-width: 991.98px) {
    .hero-box {
        flex-direction: column;
    }

    .hero-content-col {
        padding: 5rem 0;
        flex: none;
        width: 100%;
    }

    .hero-visual-col {
        flex: none;
        width: 100%;
        height: 400px;
        margin-top: 0;
    }

    .hero-visual-col-inner {
        position: relative;
        padding-left: 0;
        height: 100%;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-data-row {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .spec-title {
        font-size: 1.4rem;
    }

    .spec-table th {
        width: 45%;
    }
}

/* =========================================================================
   GLOBAL DARK MODE OVERRIDES (ADDED TO FIX TEXT VISIBILITY)
========================================================================= */

.blueprint-bg .text-muted,
.blueprint-bg .text-primary-dark,
.blueprint-bg .info-desc,
.section-dark .text-muted,
.section-dark .text-primary-dark,
.section-dark .info-desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

.blueprint-bg h1.section-heading,
.blueprint-bg h2.section-heading,
.blueprint-bg h3.section-heading,
.section-dark h1.section-heading,
.section-dark h2.section-heading,
.section-dark h3.section-heading,
.blueprint-bg .info-title,
.section-dark .info-title,
.blueprint-bg h1,
.blueprint-bg h2,
.blueprint-bg h3,
.blueprint-bg h4,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #ffffff !important;
}

.blueprint-bg .text-primary,
.section-dark .text-primary {
    color: var(--accent) !important;
}

.hero-title,
.hero-desc,
.hero-data-item .lbl,
.hero-badge {
    color: #ffffff !important;
}

.hero-data-item .lbl {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* =========================================================================
   CẨM NANG REDESIGN (MICRO-ANIMATIONS & EDITORIAL LAYOUT)
========================================================================= */

.blog-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(1, 53, 132, 0.08);
    /* Using the new #013584 color */
    border-color: rgba(1, 53, 132, 0.2);
}

.img-zoom-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.img-zoom-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card:hover .img-zoom-wrap img {
    transform: scale(1.05);
}

.editorial-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
}

.cat-nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.cat-nav a {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    padding-bottom: 0.5rem;
    position: relative;
    white-space: nowrap;
}

.cat-nav a.active {
    color: var(--primary);
}

.cat-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.cat-nav a:hover {
    color: var(--primary);
}

.featured-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.featured-editorial:hover {
    box-shadow: 0 20px 40px rgba(1, 53, 132, 0.08);
}

.featured-editorial .img-zoom-wrap {
    height: 100%;
    min-height: 400px;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 991px) {
    .featured-editorial {
        grid-template-columns: 1fr;
    }

    .featured-editorial .img-zoom-wrap {
        min-height: 250px;
    }

    .featured-content {
        padding: 2rem;
    }
}

/* =========================================================================
   TOPBAR FIX & BAI VIET EDITORIAL LAYOUT
========================================================================= */

/* Force Topbar to 1 line */
.topbar {
    white-space: nowrap !important;
}

.topbar .container .row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.topbar .container .row::-webkit-scrollbar {
    display: none;
}

.topbar span,
.topbar a {
    font-size: 0.8rem;
    white-space: nowrap !important;
}

/* Bai Viet Editorial Layout */
.editorial-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 5px solid var(--accent);
}

.editorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(1, 53, 132, 0.7) 0%, rgba(0, 18, 51, 0.95) 100%);
}

.editorial-hero .container {
    position: relative;
    z-index: 2;
}

.reading-viewport {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.drop-cap::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: var(--primary);
    font-weight: 800;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.editorial-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.premium-contact-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-contact-box::after {
    content: '';
    position: absolute;
    right: -20%;
    bottom: -50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
}

/* Override Hero Title Size */
@media (min-width: 992px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }
}

/* =========================================================================
   MARQUEE GALLERY & ARTICLE SCROLLER
========================================================================= */

/* 1. Marquee Gallery */
.gallery-marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
}

.gallery-marquee {
    display: inline-flex;
    animation: marqueeScroll 40s linear infinite;
}

.gallery-marquee:hover {
    animation-play-state: paused;
}

.gallery-marquee .gallery-item {
    flex: 0 0 auto;
    width: 320px;
    height: 220px;
    margin-right: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-marquee .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-marquee .gallery-item:hover {
    transform: scale(1.02);
}

.gallery-marquee .gallery-item:hover img {
    transform: scale(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 2. Article Scroller (Netflix style) */
.article-scroller-wrap {
    position: relative;
}

.article-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
}

.article-scroller::-webkit-scrollbar {
    display: none;
}

.article-card {
    scroll-snap-align: start;
    flex: 0 0 320px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.article-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================================
   MAGAZINE LAYOUT (Homepage)
========================================================================= */
.mag-section {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
}

.mag-featured {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mag-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 18, 51, 0.95) 0%, rgba(0, 18, 51, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.mag-featured img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.mag-featured:hover img {
    transform: scale(1.05);
}

.mag-featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: #fff;
}

.mag-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mag-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mag-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mag-list-item:first-child {
    padding-top: 0;
}

.mag-list-thumb {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.mag-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-list-item:hover .mag-list-thumb img {
    transform: scale(1.1);
}

.mag-list-item:hover .mag-list-title {
    color: var(--primary);
}

.mag-list-title {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.mag-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================================================
   PARTNER TRUSTED BOX
========================================================================= */
.trusted-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.trusted-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.trusted-title {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.trusted-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.partner-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.partner-tag:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.trusted-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================================
   PREMIUM INTERNAL HERO BACKGROUND
========================================================================= */
.internal-hero-bg {
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    position: relative;
}

/* =========================================================================
   PAGINATION (Bootstrap 5 Custom Theme)
========================================================================= */
.pagination {
    gap: 0.35rem;
}

.pagination .page-item .page-link,
.pagination .page-item>a,
.pagination li>a {
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius) !important;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
}

.pagination .page-item .page-link:hover,
.pagination .page-item>a:hover,
.pagination li>a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link,
.pagination .page-item.active>a,
.pagination li.active>a {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1, 53, 132, 0.3);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled>a,
.pagination li.disabled>a {
    color: var(--text-muted);
    opacity: 0.5;
}

/* =========================================================================
   NEWS LIST SUPPLEMENTARY
========================================================================= */
.mag-list-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* =========================================================================
   ABOUT DETAIL PAGE
========================================================================= */
.about-detail-section {
    padding: 40px 0 60px;
}

.about-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.about-detail-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.about-detail-banner {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.about-detail-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

/* About Content Body Typography */
.content-body-about {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.content-body-about p {
    margin-bottom: 1rem;
}

.content-body-about h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-body-about h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.content-body-about h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-body-about h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.content-body-about h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-body-about h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body-about ul,
.content-body-about ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body-about li {
    margin-bottom: 0.5rem;
}

.content-body-about ul {
    list-style-type: none;
}

.content-body-about ul li {
    position: relative;
    padding-left: 1.5rem;
}

.content-body-about ul li::before {
    content: '\F287';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.content-body-about img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-body-about table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.content-body-about table th,
.content-body-about table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.content-body-about table th {
    background: var(--primary-light);
    font-weight: 600;
    text-align: left;
}

.content-body-about blockquote {
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

.content-body-about a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.3s ease;
}

.content-body-about a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* About Related List (cuối bài) */
.about-related-list {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.about-related-list-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-related-list-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.about-related-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.about-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-related-card-img {
    height: 180px;
    overflow: hidden;
}

.about-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-related-card:hover .about-related-card-img img {
    transform: scale(1.05);
}

.about-related-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 1rem;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.about-related-card:hover h4 {
    color: var(--accent);
}

/* Responsive - About Detail */
@media (max-width: 991px) {
    .about-detail-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575px) {
    .about-detail-title {
        font-size: 1.15rem;
    }

    .content-body-about {
        font-size: 0.95rem;
    }

    .about-related-card-img {
        height: 140px;
    }
}

/* =========================================================================
   PREMIUM ARTICLE CONTENT TYPOGRAPHY (.content-body-news)
========================================================================= */
.content-body-news {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.content-body-news p {
    margin-bottom: 1rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-post img {
    display: unset;
}

.content-body img {
    display: unset;
}

.content-post h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}


.content-post h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}


.content-post h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-post h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body-news h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-body-news h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.content-body-news h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-body-news h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.content-body-news h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body-news h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body-news ul,
.content-body-news ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body-news li {
    margin-bottom: 0.5rem;
}

.content-body-news ul {
    list-style-type: none;
}

.content-body-news ul li {
    position: relative;
    padding-left: 1.5rem;
}

.content-body-news ul li::before {
    content: '\F287';
    /* Bootstrap icon bi-check-circle-fill or similar, using a simple dot here */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent);
    font-size: 0.9rem;
}

.content-body-news blockquote {
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

.content-body-news blockquote p:last-child {
    margin-bottom: 0;
}

.content-body-news img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.content-body-news table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.content-body-news table th,
.content-body-news table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.content-body-news table th {
    background: var(--primary-light);
    font-weight: 600;
    text-align: left;
}

.content-body-news a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.3s ease;
}

.content-body-news a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}