/**
 * Main Stylesheet for NgocNguyen Theme
 * Color Scheme: Deep Royal Navy & Crimson Wine (Xanh dương đậm & Đỏ đô)
 * High-Performance, Pixel-Perfect, Mobile-First CSS
 *
 * @package NgocNguyen
 */

:root {
    /* Color Palette: Xanh dương đậm & Đỏ đô */
    --color-navy-dark: #071426;
    --color-navy: #0b2545;
    --color-navy-light: #134074;
    --color-blue-accent: #1d4ed8;
    --color-blue-tint: #eff6ff;

    --color-crimson-dark: #4c0519;
    --color-crimson: #881337;
    --color-crimson-accent: #be123c;
    --color-crimson-vibrant: #e11d48;
    --color-crimson-light: #fff1f2;
    --color-crimson-border: #fecdd3;

    --color-amber: #f59e0b;
    --color-emerald: #10b981;

    --color-dark: #0f172a;
    --color-text: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #dbeafe;
    --color-border-light: #e2effa;
    --color-bg: #f4f8fc;
    --color-surface: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #07192f 0%, #0b2545 50%, #1d4ed8 100%);
    --gradient-navy-solid: linear-gradient(135deg, #07192f 0%, #0b2545 45%, #1d4ed8 100%);
    --gradient-navy-solid-hover: linear-gradient(135deg, #040d1a 0%, #07192f 45%, #1e40af 100%);
    --gradient-cta: linear-gradient(135deg, #07192f 0%, #0b2545 45%, #134074 100%);
    --gradient-crimson: linear-gradient(135deg, #881337 0%, #be123c 60%, #e11d48 100%);
    --gradient-navy-crimson: linear-gradient(135deg, #07192f 0%, #0b2545 40%, #700c2a 80%, #881337 100%);
    --gradient-card-hover: linear-gradient(90deg, #1d4ed8 0%, #0b2545 100%);
    --gradient-topbar: linear-gradient(90deg, #06111f 0%, #0b2545 100%);

    /* Typography: Quicksand (Headings, Menu & Buttons) & Be Vietnam Pro (Body) */
    --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-sans: var(--font-body);
    --font-mono: 'JetBrains Mono', Consolas, Monaco, "Courier New", monospace;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 20px 35px -10px rgba(11, 37, 69, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-crimson: 0 10px 25px -4px rgba(190, 18, 60, 0.38);
    --shadow-navy: 0 10px 25px -4px rgba(11, 37, 69, 0.4);

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1240px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    font-size: 15.5px;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

#page,
.site-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-top: 0;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul, ol {
    margin-top: 0;
    padding-left: 1.5rem;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .site-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   BUTTON SYSTEM (SHIMMER, HOVER EFFECTS, NO LINE-BREAKS)
   ========================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.btn {
    font-family: var(--font-heading);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    border: 1.5px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s ease;
}
.btn:hover::after {
    left: 170%;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}

/* Hero Solid Button (Navy Gradient) */
.btn-hero-solid,
.btn-hero-crimson {
    background: var(--gradient-navy-solid);
    color: #ffffff !important;
    box-shadow: 0 8px 20px -3px rgba(11, 37, 69, 0.45);
}
.btn-hero-solid:hover,
.btn-hero-crimson:hover {
    box-shadow: 0 14px 28px -5px rgba(11, 37, 69, 0.6);
    background: var(--gradient-navy-solid-hover);
}

/* Hero Navy Button */
.btn-hero-navy {
    background: #ffffff;
    color: var(--color-navy) !important;
    border: 1.5px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.btn-hero-navy:hover {
    border-color: var(--color-navy-light);
    color: var(--color-navy-light) !important;
    background: var(--color-blue-tint);
    box-shadow: 0 8px 20px -3px rgba(11, 37, 69, 0.15);
}

/* Header CTA Button */
.btn-header-cta {
    background: var(--gradient-navy-solid);
    color: #ffffff !important;
    padding: 8px 18px;
    font-size: 13.5px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.35);
}
.btn-header-cta:hover {
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.5);
    background: var(--gradient-navy-solid-hover);
    color: #ffffff !important;
}

/* Primary Common Button */
.btn-primary {
    background: var(--gradient-navy-solid);
    color: #ffffff !important;
    box-shadow: 0 8px 20px -3px rgba(11, 37, 69, 0.45);
}
.btn-primary:hover {
    box-shadow: 0 12px 25px -4px rgba(11, 37, 69, 0.6);
    background: var(--gradient-navy-solid-hover);
}

.btn-outline {
    background: #ffffff;
    color: var(--color-dark) !important;
    border-color: var(--color-border);
}
.btn-outline:hover {
    border-color: var(--color-navy);
    color: var(--color-navy) !important;
    background: var(--color-blue-tint);
}

/* CTA Sidebar & Author Buttons */
.btn-zalo-sidebar,
.btn-cta-sidebar,
.btn-zalo-author {
    width: 100%;
    background: var(--gradient-navy-solid);
    color: #ffffff !important;
    padding: 11px 18px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.35);
}
.btn-zalo-sidebar:hover,
.btn-cta-sidebar:hover,
.btn-zalo-author:hover {
    box-shadow: 0 10px 24px rgba(11, 37, 69, 0.5);
    background: var(--gradient-navy-solid-hover);
}

.btn-drawer-zalo {
    background: var(--gradient-navy-solid);
    color: #ffffff !important;
    padding: 12px 18px;
    font-size: 14px;
}
.btn-drawer-call {
    background: #f1f5f9;
    color: var(--color-navy) !important;
    padding: 12px 18px;
    font-size: 14px;
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   TOP PROMO BAR (ELEMENTOR PRO / PROMOTIONAL ANNOUNCEMENT)
   ========================================================================== */
.site-promo-bar {
    background-color: var(--promo-bg, #f4f1e8);
    color: var(--promo-text, #1c1054);
    font-size: 13.5px;
    line-height: 1.4;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1002;
    max-height: 120px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.site-promo-bar.is-dismissing {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border-bottom: none !important;
}

.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 45px;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    flex-wrap: wrap;
}

.promo-text {
    color: var(--promo-text, #1c1054);
    font-weight: 500;
    letter-spacing: -0.1px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--promo-btn-bg, #e3dac2);
    color: var(--promo-btn-color, #2c2523);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.promo-btn:hover {
    background-color: #d8cdae;
    color: #1a1514;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.promo-btn-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.promo-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #53524f;
    opacity: 0.65;
    border-radius: 4px;
    transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.promo-close-btn:hover {
    opacity: 1;
    color: #1a1a1a;
    background-color: rgba(0, 0, 0, 0.05);
}

.promo-close-btn:active {
    transform: translateY(-50%) scale(0.92);
}

/* Mobile responsive styling - STRICT 9PX FONT SIZE */
@media (max-width: 768px) {
    .site-promo-bar {
        font-size: 9px !important;
        padding: 4px 0 !important;
        line-height: 1.35 !important;
    }

    .promo-bar-inner {
        padding: 0 28px 0 8px !important;
        min-height: 24px;
    }

    .promo-content {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .promo-text {
        font-size: 9px !important;
        line-height: 1.3 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .promo-btn {
        font-size: 9px !important;
        padding: 2px 7px !important;
        gap: 3px !important;
        border-radius: 3px !important;
        flex-shrink: 0;
    }

    .promo-btn-icon {
        width: 10px !important;
        height: 10px !important;
    }

    .promo-close-btn {
        right: 4px !important;
        padding: 3px !important;
    }

    .promo-close-btn svg {
        width: 10px !important;
        height: 10px !important;
        stroke-width: 2.8;
    }
}

@media (max-width: 380px) {
    .site-promo-bar {
        font-size: 9px !important;
    }
    .promo-text {
        font-size: 8.5px !important;
    }
    .promo-btn {
        font-size: 8.5px !important;
        padding: 2px 5px !important;
    }
}

/* ==========================================================================
   SITE TOPBAR
   ========================================================================== */
.site-topbar {
    background: var(--gradient-topbar);
    color: #e2e8f0;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.topbar-badge {
    background: var(--color-crimson-vibrant);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}
.topbar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-right a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar-right a:hover {
    color: #fca5a5;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
    .site-topbar {
        display: none;
    }
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 1000;
    transition: all var(--transition-base);
}
.site-header.is-scrolled {
    box-shadow: 0 4px 25px -2px rgba(11, 37, 69, 0.08);
    background: rgba(255, 255, 255, 0.98);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.custom-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.text-logo .logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.text-logo .logo-title span {
    color: var(--color-crimson);
}
.text-logo .logo-tagline {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

/* Desktop Primary Nav */
.site-navigation .primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-navigation .menu-item {
    position: relative;
}
.site-navigation .menu-item-inner {
    display: flex;
    align-items: center;
}
.site-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-navy);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.site-navigation .nav-link:hover,
.site-navigation .menu-item.is-active > .menu-item-inner > .nav-link {
    color: #1d4ed8;
    background-color: var(--color-blue-tint);
}
.site-navigation .dropdown-toggle {
    display: none;
}

/* Dropdown Sub-menus (Modern Elevated Card with Full-width Blue Hover) */
.site-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -8px rgba(11, 37, 69, 0.16), 0 0 0 1px rgba(11, 37, 69, 0.06);
    border: 1px solid var(--color-border-light);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transform-origin: top left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.site-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}
.site-navigation .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.site-navigation .sub-menu li {
    margin-bottom: 2px;
    width: 100%;
    position: relative;
}
.site-navigation .sub-menu li:last-child {
    margin-bottom: 0;
}
.site-navigation .sub-menu .menu-item-inner {
    width: 100%;
    display: flex;
}
.site-navigation .sub-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-navy);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    border-left: 3px solid transparent;
}
/* Nền xanh bao menu full chiều rộng khi hover và active */
.site-navigation .sub-menu .nav-link:hover,
.site-navigation .sub-menu .menu-item:hover > .menu-item-inner > .nav-link,
.site-navigation .sub-menu .menu-item.is-active > .menu-item-inner > .nav-link {
    color: #1d4ed8;
    background-color: var(--color-blue-tint);
    border-left-color: #1d4ed8;
    padding-left: 17px;
}

/* Arrow indicator on Level 2 items that have Level 3 children */
.site-navigation .sub-menu .has-dropdown > .menu-item-inner > .nav-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #94a3b8;
    border-right: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin-left: 10px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}
.site-navigation .sub-menu .has-dropdown:hover > .menu-item-inner > .nav-link::after {
    border-color: #1d4ed8;
    transform: rotate(45deg) translate(2px, -2px);
}

/* Level 3+ Submenu: Mở sang bên phải (Flyout to the right), không bị đè lên menu cấp 2 */
.site-navigation .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    margin-left: 6px;
    transform: translateX(-10px) scale(0.97);
    transform-origin: top left;
    box-shadow: 0 20px 45px -8px rgba(11, 37, 69, 0.22), 0 0 0 1px rgba(11, 37, 69, 0.08);
}
.site-navigation .sub-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}
.site-navigation .sub-menu .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}
.badge-nav {
    background: var(--gradient-navy-solid);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 800;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.search-toggle-btn {
    background: #f1f5f9;
    border: none;
    color: var(--color-navy);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.search-toggle-btn:hover {
    background: var(--color-blue-tint);
    color: #1d4ed8;
    transform: scale(1.05);
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.mobile-menu-toggle:hover {
    background: #e2e8f0;
}
.hamburger-bar {
    width: 18px;
    height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 991px) {
    .site-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Header Overflow Protection & Sizing Fix */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .site-branding {
        min-width: 0;
        flex: 1 1 auto;
    }
    .custom-logo {
        height: 28px;
        max-width: 135px;
        object-fit: contain;
    }
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    .search-toggle-btn {
        width: 32px;
        height: 32px;
    }
    .search-toggle-btn svg {
        width: 15px;
        height: 15px;
    }
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
    }
    .btn-header-cta {
        padding: 6px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        box-shadow: 0 2px 8px rgba(11, 37, 69, 0.25) !important;
    }
    .btn-header-cta svg {
        width: 15px !important;
        height: 15px !important;
    }
    .btn-header-cta span {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 380px) {
    .custom-logo {
        max-width: 110px;
        height: 25px;
    }
    .btn-header-cta {
        padding: 5px 8px !important;
    }
    .btn-header-cta span {
        font-size: 10px !important;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-crimson);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility var(--transition-smooth);
}
.mobile-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 20, 38, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.mobile-drawer.is-open .drawer-overlay {
    opacity: 1;
}
.drawer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
}
.mobile-drawer.is-open .drawer-container {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
}
.drawer-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
}
.drawer-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-crimson-light);
    border-bottom: 1px solid var(--color-crimson-border);
}
.drawer-profile-avatar img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}
.profile-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-navy);
}
.profile-role {
    display: block;
    font-size: 12px;
    color: var(--color-crimson);
    font-weight: 600;
}
.drawer-body {
    flex: 1;
    padding: 10px 0;
}
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav-menu .menu-item {
    border-bottom: 1px solid #e0edf8;
}
.mobile-nav-menu .menu-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.mobile-nav-menu .nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    flex: 1;
}
.mobile-nav-menu .dropdown-toggle {
    background: #edf6fd;
    border: 1px solid #dbeafe;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all var(--transition-fast);
}
.mobile-nav-menu .has-dropdown.is-active > .menu-item-inner .dropdown-toggle {
    transform: rotate(180deg);
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Mobile Submenu: Gọn gàng, tinh tế với nền xanh dịu và đường line dẫn cây thư mục */
.mobile-nav-menu .sub-menu {
    list-style: none;
    margin: 4px 16px 12px 20px;
    padding: 6px 12px 8px 14px;
    background: #f0f7ff;
    border-left: 2.5px solid #93c5fd;
    border-radius: 0 10px 10px 0;
    display: none;
}
.mobile-nav-menu .has-dropdown.is-active > .sub-menu {
    display: block;
}
.mobile-nav-menu .sub-menu .menu-item {
    border-bottom: 1px dashed #dbeafe;
}
.mobile-nav-menu .sub-menu .menu-item:last-child {
    border-bottom: none;
}
.mobile-nav-menu .sub-menu .menu-item-inner {
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav-menu .sub-menu .nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.mobile-nav-menu .sub-menu .nav-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #93c5fd;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.mobile-nav-menu .sub-menu .nav-link:hover,
.mobile-nav-menu .sub-menu .menu-item.is-active > .menu-item-inner > .nav-link {
    color: #1d4ed8;
    font-weight: 600;
}
.mobile-nav-menu .sub-menu .nav-link:hover::before,
.mobile-nav-menu .sub-menu .menu-item.is-active > .menu-item-inner > .nav-link::before {
    background: #1d4ed8;
    transform: scale(1.3);
}

/* Level 3 on Mobile */
.mobile-nav-menu .sub-menu .sub-menu {
    margin: 4px 6px 8px 10px;
    padding: 4px 10px 6px 12px;
    background: #e2f0fc;
    border-left-color: #60a5fa;
}
.mobile-nav-menu .sub-menu .sub-menu .nav-link {
    font-family: var(--font-heading);
    font-size: 12.5px;
    color: #475569;
}
.drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-socials {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--color-border);
}
.drawer-social-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-social-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.drawer-social-list .social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid #e2e8f0;
}
.drawer-social-list .social-icon:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal-wrap.is-open {
    visibility: visible;
    pointer-events: auto;
}
.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 20, 38, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.search-modal-wrap.is-open .search-modal-backdrop {
    opacity: 1;
}
.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 35px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: scale(0.95);
    opacity: 0;
    transition: all var(--transition-smooth);
}
.search-modal-wrap.is-open .search-modal-content {
    transform: scale(1);
    opacity: 1;
}
.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}
.search-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-crimson);
    margin-bottom: 12px;
    display: block;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 6px 8px 6px 16px;
    transition: all var(--transition-fast);
}
.search-input-wrap:focus-within {
    border-color: var(--color-crimson);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(136, 19, 55, 0.15);
}
.search-input-icon {
    color: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
}
.search-input-field {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15.5px;
    color: var(--color-dark);
    outline: none;
}
.search-submit-btn {
    background: var(--gradient-navy-solid);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.35);
    transition: all var(--transition-fast);
}
.search-submit-btn:hover {
    background: var(--gradient-navy-solid-hover);
    box-shadow: 0 6px 16px rgba(11, 37, 69, 0.5);
}
.search-quick-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.quick-tags-title {
    font-size: 13px;
    color: #64748b;
}
.quick-tag {
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    background: #f1f5f9;
    color: var(--color-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.quick-tag:hover {
    background: var(--color-crimson-light);
    color: var(--color-crimson);
}

/* ==========================================================================
   HERO SECTION (FRONT-PAGE) - FULL WIDTH & CENTERED WITH LIGHT BLUE GRADIENT
   & ANIMATED FLOWING LIGHT STREAKS (INSPIRATION: CAVIN LIGHT MODE)
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 85px 0 75px 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(186, 230, 253, 0.45);
}

/* Background Canvas: Animated ambient light blobs & moving light streaks */
.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Subtle dot grid pattern */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(29, 78, 216, 0.08) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    opacity: 0.6;
}

/* Ambient Soft Glowing Blobs */
.hero-ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    pointer-events: none;
}
.hero-ambient-blob.blob-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #bae6fd 0%, rgba(186, 230, 253, 0) 70%);
    top: -140px;
    left: 5%;
    animation: heroFloatBlob1 18s ease-in-out infinite alternate;
}
.hero-ambient-blob.blob-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #c7d2fe 0%, rgba(199, 210, 254, 0) 70%);
    top: 25%;
    right: -60px;
    animation: heroFloatBlob2 15s ease-in-out infinite alternate;
}
.hero-ambient-blob.blob-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #93c5fd 0%, rgba(147, 197, 253, 0) 70%);
    bottom: -100px;
    left: 30%;
    animation: heroFloatBlob3 13s ease-in-out infinite alternate;
}

/* Flowing Light Streaks (Vệt chạy chạy màu xanh lợt mềm mại) */
.hero-streak {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(147, 197, 253, 0.2) 20%, rgba(59, 130, 246, 0.8) 50%, rgba(186, 230, 253, 0.3) 80%, transparent 100%);
    border-radius: 999px;
    filter: blur(1.5px);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
    opacity: 0.75;
    pointer-events: none;
}
.hero-streak.streak-1 {
    width: 420px;
    top: 18%;
    left: -420px;
    transform: rotate(-22deg);
    animation: heroStreakMove1 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hero-streak.streak-2 {
    width: 520px;
    top: 52%;
    left: -520px;
    transform: rotate(-22deg);
    animation: heroStreakMove2 11s cubic-bezier(0.4, 0, 0.2, 1) 3s infinite;
}
.hero-streak.streak-3 {
    width: 360px;
    top: 78%;
    left: -360px;
    transform: rotate(-22deg);
    animation: heroStreakMove3 9.5s cubic-bezier(0.4, 0, 0.2, 1) 5.5s infinite;
}
.hero-streak.streak-4 {
    width: 460px;
    top: 32%;
    left: -460px;
    transform: rotate(-22deg);
    animation: heroStreakMove4 13s cubic-bezier(0.4, 0, 0.2, 1) 1.5s infinite;
}

@keyframes heroStreakMove1 {
    0% { transform: rotate(-22deg) translate(-100px, 0); opacity: 0; }
    15% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { transform: rotate(-22deg) translate(calc(100vw + 600px), 0); opacity: 0; }
}
@keyframes heroStreakMove2 {
    0% { transform: rotate(-22deg) translate(-100px, 0); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: rotate(-22deg) translate(calc(100vw + 700px), 0); opacity: 0; }
}
@keyframes heroStreakMove3 {
    0% { transform: rotate(-22deg) translate(-100px, 0); opacity: 0; }
    15% { opacity: 0.75; }
    85% { opacity: 0.75; }
    100% { transform: rotate(-22deg) translate(calc(100vw + 500px), 0); opacity: 0; }
}
@keyframes heroStreakMove4 {
    0% { transform: rotate(-22deg) translate(-100px, 0); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: rotate(-22deg) translate(calc(100vw + 650px), 0); opacity: 0; }
}
@keyframes heroFloatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 35px) scale(1.1); }
}
@keyframes heroFloatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-45px, -30px) scale(1.08); }
}
@keyframes heroFloatBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, -40px) scale(1.12); }
}

/* Hero Centered Container */
.hero-container-rel {
    position: relative;
    z-index: 2;
}
.hero-content-centered {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(186, 230, 253, 0.9);
    color: var(--color-navy);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin: 0 auto 18px auto;
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.06);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: #0284c7;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.6);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.28;
    color: var(--color-navy);
    margin: 0 auto 18px auto;
    max-width: 860px;
    text-align: center;
}
.hero-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 auto 28px auto;
    max-width: 760px;
    text-align: center;
}

/* Centered Search Box */
.hero-search-box {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 24px auto;
}
.hero-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(186, 230, 253, 0.8);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 20px;
    box-shadow: 0 12px 30px -5px rgba(11, 37, 69, 0.08), 0 0 0 1px rgba(11, 37, 69, 0.04);
    transition: all var(--transition-base);
}
.hero-search-form:focus-within {
    border-color: #1d4ed8;
    box-shadow: 0 16px 36px -6px rgba(29, 78, 216, 0.2), 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.hero-search-icon {
    color: #0284c7;
    margin-right: 12px;
    flex-shrink: 0;
}
.hero-search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: var(--color-dark);
    outline: none;
}
.hero-search-btn {
    background: var(--gradient-navy-solid);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.35);
    transition: all var(--transition-fast);
}
.hero-search-btn:hover {
    background: var(--gradient-navy-solid-hover);
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.5);
    transform: translateY(-1px);
}

.hero-quick-topics {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.topic-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.topic-pill {
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 14px;
    background: #ffffff;
    border: 1px solid rgba(186, 230, 253, 0.9);
    color: var(--color-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(11, 37, 69, 0.03);
}
.topic-pill:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
    background: #eff6ff;
    transform: translateY(-1px);
}
.topic-pill.highlight {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 55px 0 50px 0;
    }
    .hero-title {
        font-size: 1.95rem;
        line-height: 1.3;
    }
    .hero-description {
        font-size: 14.5px;
    }
    .hero-search-form {
        padding: 4px 4px 4px 14px;
    }
    .hero-search-btn {
        padding: 10px 18px;
        font-size: 13.5px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   SERVICES BAR SECTION
   ========================================================================== */
.services-bar-section {
    padding: 35px 0 20px 0;
    position: relative;
    z-index: 10;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.service-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.service-box:hover::before {
    opacity: 1;
}
.service-box:hover {
    border-color: rgba(29, 78, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -4px rgba(11, 37, 69, 0.12);
}
.service-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-blue { background: #eff6ff; color: #1d4ed8; }
.icon-crimson { background: #eff6ff; color: #0284c7; }
.icon-red { background: #f0fdf4; color: #16a34a; }
.icon-navy { background: #f0f4f8; color: #0b2545; }

.service-info {
    flex: 1;
    min-width: 0;
}
.service-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-desc {
    font-size: 12.5px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: 5px;
    transition: all var(--transition-fast);
}
.service-box:hover .service-readmore {
    color: #0b2545;
    transform: translateX(3px);
}
.service-arrow {
    color: #cbd5e1;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.service-box:hover .service-arrow {
    color: #1d4ed8;
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3 PROMOTIONAL BANNERS SECTION (CHỈ HIỂN THỊ HÌNH ẢNH & GẮN LINK)
   ========================================================================== */
.home-banners-section {
    padding: 10px 0 45px 0;
}
.home-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.home-banner-card {
    display: block;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 25px -4px rgba(11, 37, 69, 0.12);
    border: 1px solid rgba(186, 230, 253, 0.6);
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 0;
    background: #eaf4fc;
}
.home-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px -6px rgba(11, 37, 69, 0.2);
    border-color: rgba(29, 78, 216, 0.4);
}
.banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}
.home-banner-card:hover .banner-img {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .home-banners-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==========================================================================
   HOME & CATEGORY SECTIONS
   ========================================================================== */
.home-section {
    padding: 55px 0;
}
.home-section.bg-alt {
    background: linear-gradient(180deg, #f0f7ff 0%, #e2f0fc 50%, #f0f7ff 100%);
    border-top: 1px solid rgba(186, 230, 253, 0.45);
    border-bottom: 1px solid rgba(186, 230, 253, 0.45);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 14px;
    gap: 15px;
}
.section-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-crimson-light);
    color: var(--color-crimson);
    margin-bottom: 8px;
    white-space: nowrap;
}
.section-badge.badge-free { background: #fee2e2; color: #b91c1c; }
.section-badge.badge-elementor { background: #fce7f3; color: #be185d; }
.section-badge.badge-flatsome { background: #d1fae5; color: #047857; }
.section-badge.badge-woo { background: #ede9fe; color: #6d28d9; }
.section-badge.badge-ai { background: #e0f2fe; color: #0369a1; }

.section-heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.section-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.section-link-wrap {
    flex-shrink: 0;
}
.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-crimson);
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.section-more-link svg {
    transition: transform var(--transition-fast);
}
.section-more-link:hover {
    color: var(--color-crimson-vibrant);
}
.section-more-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   POST GRID & STRICT 2-LINE TITLE / 3-LINE DESC CLAMPING
   ========================================================================== */
.articles-grid {
    display: grid;
    gap: 20px;
}
.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}
.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}
.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Sidebar layouts: 3 columns on desktop */
.feed-main-col .articles-grid,
.archive-main-col .articles-grid,
.search-main-col .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1200px) {
    .grid-4-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .grid-4-cols,
    .grid-3-cols,
    .feed-main-col .articles-grid,
    .archive-main-col .articles-grid,
    .search-main-col .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
/* STRICT MOBILE: exactly 2 columns for all grids */
@media (max-width: 768px) {
    .articles-grid,
    .grid-4-cols,
    .grid-3-cols,
    .grid-2-cols,
    .feed-main-col .articles-grid,
    .archive-main-col .articles-grid,
    .search-main-col .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Post Card Component */
.article-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
    position: relative;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 10;
}
.article-card:hover::before {
    opacity: 1;
}
.article-card:hover {
    border-color: rgba(11, 37, 69, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.card-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #071426;
    overflow: hidden;
}
.card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.article-card:hover .card-img {
    transform: scale(1.07);
}
.post-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: rgba(255, 255, 255, 0.4);
}
.card-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.category-badge:hover {
    background: var(--color-navy);
    color: #ffffff;
}

.card-body {
    padding: 14px 14px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    white-space: nowrap;
}
.card-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* STRICT TITLE 2 LINES (Quicksand) */
.card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: -0.015em;
    height: 2.68em;
    overflow: hidden;
    margin-bottom: 6px;
}
.card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-navy);
    transition: color var(--transition-fast);
}
.card-title a:hover {
    color: var(--color-blue-accent);
}

/* STRICT DESCRIPTION 3 LINES (Be Vietnam Pro) */
.card-excerpt {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.48;
    color: #64748b;
    height: 4.44em;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}
.card-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.48;
}

/* CARD FOOTER: STRICT 1 SINGLE ROW, NO WRAPPING */
.card-footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9;
    gap: 8px !important;
}
.card-author {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}
.author-thumb-mini {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    flex-shrink: 0 !important;
}
.author-name-mini {
    font-size: 11.5px !important;
    font-weight: 600;
    color: #475569;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.card-read-more {
    font-size: 11.5px !important;
    font-weight: 700;
    color: var(--color-navy);
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all var(--transition-fast);
}
.card-read-more svg {
    transition: transform var(--transition-fast);
}
.card-read-more:hover {
    color: var(--color-blue-accent);
}
.card-read-more:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .card-body {
        padding: 10px 10px 8px 10px;
    }
    .card-meta-top {
        font-size: 10px;
        gap: 6px;
        margin-bottom: 4px;
    }
    .card-title {
        font-size: 0.82rem;
        height: 2.6em;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .card-excerpt {
        font-size: 11px;
        height: 4.2em;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .card-footer {
        padding-top: 8px !important;
        gap: 6px !important;
    }
    .author-thumb-mini {
        width: 18px !important;
        height: 18px !important;
    }
    .author-name-mini {
        font-size: 10.5px !important;
    }
    .card-read-more {
        font-size: 10.5px !important;
    }
}

/* ==========================================================================
   SIDEBAR & WIDGETS (RESTORED BEAUTIFUL ORIGINAL DESIGN)
   ========================================================================== */
.feed-layout,
.archive-layout,
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}
.single-main-col,
.feed-main-col,
.archive-main-col,
.single-sidebar-col,
.feed-sidebar-col,
.archive-sidebar-col,
.theme-sidebar {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 991px) {
    .feed-layout,
    .archive-layout,
    .single-layout {
        grid-template-columns: 1fr;
    }
}

.theme-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widget {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.widget-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.widget-title span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--gradient-navy-solid);
    border-radius: var(--radius-full);
}

/* Sidebar Search Form */
.sidebar-search-wrap {
    display: flex;
    align-items: center;
    background: #f0f7ff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}
.sidebar-search-wrap:focus-within {
    border-color: var(--color-navy-light);
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12);
}
.sidebar-search-input {
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-dark);
    width: 100%;
    outline: none;
}
.sidebar-search-btn {
    background: var(--gradient-navy-solid);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.sidebar-search-btn:hover {
    background: var(--gradient-navy-solid-hover);
}

/* Sidebar Author Box */
.widget-author-card {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border-color: var(--color-border);
}
.sidebar-author-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(136, 19, 55, 0.15);
    object-fit: cover;
}
.sidebar-author-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 3px;
}
.sidebar-author-title {
    display: block;
    font-size: 12.5px;
    color: var(--color-crimson);
    font-weight: 700;
    margin-bottom: 12px;
}
.sidebar-author-bio {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Sidebar Full Categories List with Post Counts */
.sidebar-categories-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cat-tree-item {
    margin: 0;
    padding: 0;
}
.cat-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    background: #f0f7ff;
    border: 1px solid var(--color-border-light);
    color: var(--color-navy);
    font-size: 13.5px;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.cat-tree-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-crimson);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.cat-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.cat-tree-link:hover {
    background: var(--color-crimson-light);
    border-color: var(--color-crimson-border);
    color: var(--color-crimson);
    transform: translateX(3px);
}
.cat-tree-link:hover .cat-bullet {
    transform: scale(1.4);
    background: var(--color-crimson-vibrant);
}
.cat-tree-link:hover .cat-count-badge {
    background: var(--color-crimson);
    color: #ffffff;
}

/* Sidebar Recent / Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.popular-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.popular-post-rank {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
}
.popular-post-rank.rank-1 { background: #fee2e2; color: #be123c; }
.popular-post-rank.rank-2 { background: #ffedd5; color: #c2410c; }
.popular-post-rank.rank-3 { background: #eff6ff; color: #1d4ed8; }

.popular-post-thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0b2545;
}
.pop-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform var(--transition-fast);
}
.popular-post-item:hover .pop-thumb-img {
    transform: scale(1.05);
}
.pop-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 8px;
}
.popular-post-content {
    flex: 1;
    min-width: 0;
}
.popular-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    height: auto;
    overflow: visible;
}
.popular-post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-navy);
}
.popular-post-title a:hover {
    color: #1d4ed8;
}
.popular-post-meta {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
}

/* Sidebar Recent Comments */
.sidebar-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comm-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sidebar-comment-body {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.45;
}
.comm-author {
    color: #475569;
    display: block;
}
.comm-post-link {
    color: var(--color-navy);
    font-weight: 600;
}
.comm-post-link:hover {
    color: var(--color-crimson);
}

/* Sidebar Consultation Card */
.sidebar-cta-card {
    background: var(--gradient-navy-crimson);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-navy);
}
.cta-mini-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(225, 29, 72, 0.25);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 10px;
}
.sidebar-cta-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}
.sidebar-cta-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Styling for WordPress Default Widget Blocks */
.widget .wp-block-search__inside-wrapper {
    display: flex;
    gap: 6px;
}
.widget .wp-block-search__input {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 14px;
    flex: 1;
}
.widget .wp-block-search__button {
    background: var(--gradient-navy-solid);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.35);
}

/* Core WordPress Categories Widget/Block: Category name and count on SAME ROW */
.widget .wp-block-categories-list,
.widget .widget_categories ul,
.widget .wp-block-archives-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.widget .wp-block-categories-list li,
.widget .widget_categories li,
.widget .wp-block-archives-list li {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 6px 10px !important;
    border-radius: var(--radius-md) !important;
    background: #f0f7ff !important;
    border: 1px solid var(--color-border-light) !important;
    font-size: 13px !important;
    color: #64748b !important;
    transition: all var(--transition-fast);
}
.widget .wp-block-categories-list li:hover,
.widget .widget_categories li:hover {
    background: var(--color-blue-tint) !important;
    border-color: rgba(29, 78, 216, 0.2) !important;
}
.widget .wp-block-categories-list li a,
.widget .widget_categories li a,
.widget .wp-block-archives-list li a {
    color: var(--color-navy) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    text-decoration: none !important;
}
.widget .wp-block-categories-list li a:hover,
.widget .widget_categories li a:hover {
    color: var(--color-blue-accent) !important;
    padding-left: 0 !important;
}

/* ==========================================================================
   WIDGET BÀI VIẾT MỚI / RECENT POSTS (GUTENBERG & CORE WORDPRESS)
   ========================================================================== */
.widget .wp-block-latest-posts,
.theme-sidebar .wp-block-latest-posts,
.widget_recent_entries ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.widget .wp-block-latest-posts li,
.theme-sidebar .wp-block-latest-posts li,
.widget_recent_entries ul li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Căn vertical middle */
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* Hủy bỏ float của WordPress Core để chữ không tràn xuống dưới ảnh */
.widget .wp-block-latest-posts .wp-block-latest-posts__featured-image,
.widget .wp-block-latest-posts .wp-block-latest-posts__featured-image.alignleft,
.widget .wp-block-latest-posts .wp-block-latest-posts__featured-image.alignright,
.widget .wp-block-latest-posts li > a:has(img),
.widget_recent_entries ul li a:has(img) {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    width: 72px !important;
    height: 52px !important;
    border-radius: 8px !important; /* Bo góc hình */
    overflow: hidden !important;
    line-height: 0 !important;
    display: block !important;
}

.widget .wp-block-latest-posts .wp-block-latest-posts__featured-image a,
.widget .wp-block-latest-posts .wp-block-latest-posts__featured-image img,
.widget .wp-block-latest-posts li img,
.widget_recent_entries ul li img {
    width: 72px !important;
    height: 52px !important;
    max-width: 72px !important;
    max-height: 52px !important;
    object-fit: cover !important;
    border-radius: 8px !important; /* Bo góc hình */
    display: block !important;
    transition: transform var(--transition-fast) !important;
}

.widget .wp-block-latest-posts li:hover img,
.widget_recent_entries ul li:hover img {
    transform: scale(1.05) !important;
}

/* Tiêu đề bài viết: nhỏ lại, giới hạn 3 dòng, không bị tràn xuống dưới */
.widget .wp-block-latest-posts .wp-block-latest-posts__post-title,
.widget .wp-block-latest-posts li > a:not(:has(img)),
.widget_recent_entries ul li > a:not(:has(img)) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13px !important; /* Text title nhỏ lại */
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--color-navy) !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Giới hạn tối đa 3 dòng */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color var(--transition-fast) !important;
}

.widget .wp-block-latest-posts .wp-block-latest-posts__post-title:hover,
.widget .wp-block-latest-posts li > a:not(:has(img)):hover,
.widget_recent_entries ul li > a:not(:has(img)):hover {
    color: #1d4ed8 !important;
}

/* ==========================================================================
   SINGLE POST & BREADCRUMBS
   ========================================================================== */
.single-post-main {
    padding: 30px 0 60px 0;
    max-width: 100%;
    overflow-x: hidden;
}
.single-breadcrumbs-wrap,
.archive-breadcrumbs,
.page-breadcrumbs-wrap {
    margin-bottom: 20px;
    max-width: 100%;
}
.site-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
}
.site-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    max-width: 100%;
}
.site-breadcrumbs li {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100%;
}
.site-breadcrumbs a {
    color: var(--color-navy);
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
    max-width: 100%;
}
.site-breadcrumbs a:hover {
    color: var(--color-blue-accent);
}
.breadcrumb-home-link {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
}
.breadcrumb-home-icon,
.site-breadcrumbs svg {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
.breadcrumb-separator {
    color: #cbd5e1;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
}
.breadcrumb-current {
    color: var(--color-navy);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
@media (max-width: 600px) {
    .breadcrumb-current {
        max-width: 180px;
    }
}

.single-article-content {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 640px) {
    .single-article-content {
        padding: 20px 16px;
    }
}
@media (max-width: 480px) {
    .single-article-content {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }
}

.entry-header {
    margin-bottom: 25px;
    max-width: 100%;
}
.entry-category-wrap {
    margin-bottom: 12px;
}
.entry-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--color-navy);
    margin-bottom: 18px;
    word-break: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 640px) {
    .entry-title {
        font-size: 1.6rem;
    }
}
.entry-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 100%;
}
.meta-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.meta-author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}
.meta-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    display: block;
}
.meta-dates {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.meta-stats-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
}
.meta-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .entry-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }
    .meta-author-wrap {
        width: 100%;
    }
    .meta-stats-wrap {
        width: 100%;
        gap: 14px;
        padding-top: 8px;
        border-top: 1px dashed #f1f5f9;
        font-size: 12px;
    }
}

.entry-featured-image {
    margin: 25px 0 35px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.single-thumb-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}
.featured-caption {
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* ==========================================================================
   AUTOMATED TABLE OF CONTENTS (MỤC LỤC BÀI VIẾT)
   ========================================================================== */
.nn-toc-wrapper {
    margin: 25px 0 35px 0;
    width: 100%;
}
.nn-toc-container {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    transition: all var(--transition-fast);
}
.nn-toc-container:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(11, 37, 69, 0.05);
}
.nn-toc-container[open] {
    padding: 14px 20px 18px 20px;
}
.nn-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    list-style: none;
    outline: none;
    gap: 12px;
}
.nn-toc-summary::-webkit-details-marker {
    display: none;
}
.nn-toc-header-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
}
.nn-toc-icon {
    color: #1d4ed8;
    flex-shrink: 0;
}
.nn-toc-heading-text {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}
.nn-toc-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1d4ed8;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #dbeafe;
    box-shadow: 0 1px 3px rgba(11, 37, 69, 0.05);
    transition: all var(--transition-fast);
}
.nn-toc-summary:hover .nn-toc-toggle-pill {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}
.nn-toc-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.nn-toc-container[open] .nn-toc-chevron {
    transform: rotate(180deg);
}

/* TOC Content List */
.nn-toc-body {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px dashed #dbeafe;
}
.nn-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.nn-toc-item {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.45;
}
.nn-toc-link {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none !important;
    transition: color var(--transition-fast);
}
.nn-toc-num {
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
}
.nn-toc-title {
    color: var(--color-navy);
    transition: color var(--transition-fast);
}
.nn-toc-link:hover .nn-toc-title {
    color: #1d4ed8;
    text-decoration: underline;
}

/* H2 vs H3 Hierarchy: Compact & Small font sizes */
.nn-toc-item.nn-toc-h2 .nn-toc-link {
    font-size: 13px;
    font-weight: 600;
}
.nn-toc-item.nn-toc-h3 {
    padding-left: 20px !important;
}
.nn-toc-item.nn-toc-h3 .nn-toc-link {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}
.nn-toc-item.nn-toc-h3 .nn-toc-num {
    color: #64748b;
    font-size: 11.5px;
}
.nn-toc-item.nn-toc-h3 .nn-toc-title {
    color: #475569;
}
.nn-toc-item.nn-toc-h3 .nn-toc-link:hover .nn-toc-title {
    color: #1d4ed8;
}

/* Smooth anchor jump offset under fixed header */
.typography-content h2:not(.cta-title):not([class*="cta"]),
.typography-content h3 {
    scroll-margin-top: 90px !important;
}

/* Typography Inside Content (Optimized for Be Vietnam Pro & Quicksand) */
.typography-content {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.88;
    letter-spacing: -0.003em;
    color: #334155;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.typography-content p {
    margin-bottom: 1.65rem;
}
.typography-content h2:not(.cta-title):not([class*="cta"]) {
    font-family: var(--font-heading) !important;
    border-left: solid 6px var(--color-navy) !important;
    border-bottom: solid 1px rgba(136, 19, 55, 0.2) !important;
    padding-left: 16px !important;
    padding-bottom: 10px !important;
    margin-top: 2.75rem !important;
    margin-bottom: 1.35rem !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: var(--color-navy) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    word-break: break-word;
}
.typography-content h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.28rem !important;
    font-weight: 700 !important;
    color: var(--color-navy) !important;
    margin-top: 2.25rem !important;
    margin-bottom: 1.15rem !important;
    line-height: 1.4 !important;
    letter-spacing: -0.015em !important;
    word-break: break-word;
}
.typography-content h4,
.typography-content h5,
.typography-content h6 {
    font-family: var(--font-heading) !important;
    color: var(--color-navy) !important;
    margin-top: 1.85rem !important;
    margin-bottom: 1rem !important;
    word-break: break-word;
}
.typography-content ul,
.typography-content ol {
    margin-top: 0;
    margin-bottom: 1.65rem;
    padding-left: 1.75rem;
    max-width: 100%;
    box-sizing: border-box;
}
.typography-content li {
    margin-bottom: 0.65rem;
    line-height: 1.8;
}
.typography-content img,
.typography-content figure,
.typography-content .wp-block-image,
.typography-content .wp-block-image img,
.typography-content .wp-block-gallery,
.entry-featured-image img {
    margin: 2.25rem auto;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.08);
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
.typography-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}
.typography-content code {
    word-break: break-word;
    font-family: var(--font-mono);
}
.typography-content pre code {
    white-space: pre;
    word-break: normal;
    background: transparent;
    padding: 0;
}
.typography-content blockquote {
    background: #f0f7ff;
    border-left: 4px solid var(--color-navy);
    padding: 18px 24px;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #475569;
    line-height: 1.85;
    max-width: 100%;
    box-sizing: border-box;
}
.typography-content table,
.wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 2rem 0;
}
.typography-content th,
.typography-content td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-size: 14.5px;
}
.typography-content th {
    background: #eef6fd;
    font-weight: 700;
    color: var(--color-navy);
}
.typography-content iframe,
.typography-content embed,
.typography-content object,
.typography-content video,
.wp-block-embed,
.wp-block-embed__wrapper {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Entry Footer: Tags & Share */
.entry-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
    max-width: 100%;
}
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}
.tags-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.entry-tags a {
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    background: #eef6fd;
    color: var(--color-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.entry-tags a:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Social Share Bar */
.post-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f7ff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    box-sizing: border-box;
}
.share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
    white-space: nowrap;
}
.share-btn:hover {
    transform: translateY(-2px);
}
.share-facebook { background: #1877f2; }
.share-zalo { background: #0068ff; }
.share-telegram { background: #229ed9; }
.share-copy {
    background: #475569;
    color: #ffffff;
}

@media (max-width: 600px) {
    .post-share-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }
    .share-buttons {
        width: 100%;
        gap: 6px;
    }
    .share-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Author Box */
.author-bio-box {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.author-details {
    min-width: 0;
    max-width: 100%;
}
.author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.author-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-sm);
}
.author-badge-verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.author-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}
.author-name a {
    color: var(--color-navy);
}
.author-role {
    font-size: 12.5px;
    color: var(--color-crimson);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.author-description {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}
.author-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.author-link-posts {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
}
.author-link-posts:hover {
    color: var(--color-crimson);
}

@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-actions {
        justify-content: center;
    }
}

/* Post Navigation (Prev/Next) */
.post-navigation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    min-width: 0;
    max-width: 100%;
}
.nav-card-col {
    min-width: 0;
    max-width: 100%;
}
.nav-card-inner {
    display: block;
    padding: 18px;
    background: #f0f7ff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.nav-card-inner:hover {
    border-color: var(--color-crimson);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}
.nav-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-crimson);
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
}
.nav-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (max-width: 600px) {
    .post-navigation-cards {
        grid-template-columns: 1fr;
    }
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid var(--color-border);
    max-width: 100%;
}
.related-posts-section .section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-grid {
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Comments */
.comments-area {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid var(--color-border);
    max-width: 100%;
}
.comments-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.comment-list {
    list-style: none;
    margin: 0 0 35px 0;
    padding: 0;
    max-width: 100%;
}
.comment-list .comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    max-width: 100%;
}
.comment-body {
    display: flex;
    gap: 14px;
    max-width: 100%;
}
.comment-author img {
    border-radius: 50%;
}
.comment-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
}
.comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-navy);
}
.comment-metadata {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.comment-reply-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-crimson);
}

/* Comment Form */
.comment-respond {
    background: #f0f7ff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .comment-respond {
        padding: 18px 14px;
    }
}
.comment-reply-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-form p {
    margin-bottom: 16px;
}
.comment-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14.5px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #ffffff;
    outline: none;
    transition: all var(--transition-fast);
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-crimson);
    box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.12);
}
.form-submit input[type="submit"] {
    background: var(--gradient-navy-solid);
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 20px -3px rgba(11, 37, 69, 0.45);
    transition: all var(--transition-fast);
}
.form-submit input[type="submit"]:hover {
    background: var(--gradient-navy-solid-hover);
    box-shadow: 0 12px 25px -4px rgba(11, 37, 69, 0.6);
}

/* ==========================================================================
   ARCHIVE & SEARCH PAGES
   ========================================================================== */
.archive-main,
.search-main,
.index-main {
    padding-bottom: 60px;
}
.archive-header-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f7ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(186, 230, 253, 0.55);
    padding: 45px 0 50px 0;
    margin-bottom: 40px;
}
.archive-container-rel {
    position: relative;
    z-index: 2;
}
.archive-header-banner .archive-breadcrumbs {
    margin-bottom: 14px;
}
.archive-header-banner .site-breadcrumbs,
.archive-header-banner .breadcrumbs-item a {
    color: #475569;
}
.archive-header-banner .breadcrumbs-item a:hover {
    color: #1d4ed8;
}
.archive-header-banner .breadcrumbs-item.is-current {
    color: #0b2545;
    font-weight: 600;
}
.archive-eyebrow {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy-light);
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
}
.archive-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.archive-description {
    font-size: 15px;
    color: #64748b;
    max-width: 700px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.archive-stats .stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid rgba(186, 230, 253, 0.85);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.05);
}

@media (max-width: 768px) {
    .archive-header-banner {
        padding: 35px 0 38px 0;
        margin-bottom: 25px;
    }
    .archive-title {
        font-size: 1.8rem;
    }
}

/* Pagination */
.archive-pagination-wrap {
    margin-top: 40px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.page-numbers:hover {
    border-color: var(--color-blue-accent);
    color: var(--color-blue-accent);
}
.page-numbers.current {
    background: var(--gradient-navy-solid);
    color: #ffffff;
    border-color: var(--color-navy);
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.35);
}

/* ==========================================================================
   PRE-FOOTER CTA & MAIN FOOTER
   ========================================================================== */
.pre-footer-cta {
    position: relative;
    z-index: 20;
    padding: 0;
    margin-bottom: -105px; /* Overlaps exactly 50% vertical with footer top border */
}
.cta-banner-card {
    background: linear-gradient(135deg, #07192f 0%, #0b2545 45%, #134074 100%) !important;
    border-radius: var(--radius-xl);
    padding: 42px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 25px 50px -12px rgba(7, 20, 38, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cta-banner-content {
    flex: 1 1 auto;
}
.pre-footer-cta .cta-badge,
.cta-badge {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    background: rgba(29, 78, 216, 0.25) !important;
    color: #93c5fd !important;
    padding: 4px 14px !important;
    border-radius: var(--radius-full) !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
    white-space: nowrap !important;
    border: 1px solid rgba(29, 78, 216, 0.35) !important;
}
.pre-footer-cta .cta-title,
.cta-banner-card .cta-title,
.cta-banner-content h2,
.cta-title {
    font-family: var(--font-heading) !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    border: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-right: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    background: transparent !important;
    scroll-margin-top: 0 !important;
}
.pre-footer-cta .cta-desc,
.cta-banner-card .cta-desc,
.cta-banner-content p,
.cta-desc {
    font-size: 14.5px !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: none !important;
    line-height: 1.6 !important;
}
.cta-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}
.btn-cta-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    white-space: nowrap;
}
.btn-cta-primary:hover {
    box-shadow: 0 10px 26px rgba(29, 78, 216, 0.6);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
}
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .pre-footer-cta {
        margin-bottom: -125px;
    }
    .cta-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }
    .pre-footer-cta .cta-title,
    .cta-banner-card .cta-title,
    .cta-banner-content h2,
    .cta-title {
        font-size: 1.35rem !important;
    }
    .cta-banner-actions {
        width: 100%;
    }
}

/* ==========================================================================
   MAIN SITE FOOTER (ANIMATED WITH SMALL WHITE FLOWING LIGHT STREAKS)
   ========================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--color-navy-dark);
    color: #94a3b8;
    padding-top: 155px; /* Extended top padding to give generous room below the overlapping CTA card */
    padding-bottom: 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .site-footer {
        padding-top: 170px;
    }
}

/* Background Canvas: Small White Flowing Streaks on Dark Navy */
.footer-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.footer-container-rel {
    position: relative;
    z-index: 2;
}

.footer-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
}

.footer-ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    pointer-events: none;
}
.footer-ambient-blob.blob-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #1d4ed8 0%, rgba(29, 78, 216, 0) 70%);
    top: 15%;
    left: 5%;
    animation: footerFloatBlob1 16s ease-in-out infinite alternate;
}
.footer-ambient-blob.blob-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0) 70%);
    bottom: 10%;
    right: 8%;
    animation: footerFloatBlob2 14s ease-in-out infinite alternate;
}

/* Small White Flowing Light Streaks */
.footer-streak {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.25) 80%, transparent 100%);
    border-radius: 999px;
    filter: blur(0.8px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    pointer-events: none;
}
.footer-streak.streak-1 {
    width: 240px;
    top: 22%;
    left: -240px;
    transform: rotate(-20deg);
    animation: footerStreakMove1 7.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.footer-streak.streak-2 {
    width: 320px;
    top: 58%;
    left: -320px;
    transform: rotate(-20deg);
    animation: footerStreakMove2 10.5s cubic-bezier(0.4, 0, 0.2, 1) 2.5s infinite;
}
.footer-streak.streak-3 {
    width: 200px;
    top: 85%;
    left: -200px;
    transform: rotate(-20deg);
    animation: footerStreakMove3 9s cubic-bezier(0.4, 0, 0.2, 1) 5s infinite;
}
.footer-streak.streak-4 {
    width: 280px;
    top: 40%;
    left: -280px;
    transform: rotate(-20deg);
    animation: footerStreakMove4 12s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}

@keyframes footerStreakMove1 {
    0% { transform: rotate(-20deg) translate(-80px, 0); opacity: 0; }
    15% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { transform: rotate(-20deg) translate(calc(100vw + 400px), 0); opacity: 0; }
}
@keyframes footerStreakMove2 {
    0% { transform: rotate(-20deg) translate(-80px, 0); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: rotate(-20deg) translate(calc(100vw + 500px), 0); opacity: 0; }
}
@keyframes footerStreakMove3 {
    0% { transform: rotate(-20deg) translate(-80px, 0); opacity: 0; }
    15% { opacity: 0.75; }
    85% { opacity: 0.75; }
    100% { transform: rotate(-20deg) translate(calc(100vw + 350px), 0); opacity: 0; }
}
@keyframes footerStreakMove4 {
    0% { transform: rotate(-20deg) translate(-80px, 0); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: rotate(-20deg) translate(calc(100vw + 450px), 0); opacity: 0; }
}
@keyframes footerFloatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 25px) scale(1.1); }
}
@keyframes footerFloatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-35px, -25px) scale(1.08); }
}
.footer-inner {
    padding-bottom: 50px;
}
.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
    gap: 40px;
}
.footer-logo {
    height: 38px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 16px;
}
.footer-about-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 20px;
}
.footer-social-links,
.social-links-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.social-icon:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
    border-color: #1d4ed8;
}

.footer-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 13.5px;
    color: #94a3b8;
    transition: color var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.footer-links a:hover {
    color: #fca5a5;
    padding-left: 4px;
}

/* Footer Bottom */
.footer-bottom {
    background: #030812;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #64748b;
}
.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.copyright-text {
    margin: 0;
}
.copyright-text strong {
    color: #cbd5e1;
}
.bottom-extra-links {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.bottom-extra-links a {
    color: #94a3b8;
}
.bottom-extra-links a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--color-navy);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 990;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   PORTFOLIO & DỰ ÁN WEBSITE MODULE (PIXEL-PERFECT ACCORDING TO DESIGN)
   ========================================================================== */

/* Hero Banner for Projects Archive & Page (Đồng bộ với Post Archive) */
.du-an-header-banner {
    position: relative;
    background: linear-gradient(180deg, #f0f7ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(186, 230, 253, 0.55);
    color: var(--color-navy);
    padding: 50px 0 55px;
    overflow: hidden;
}

.du-an-header-inner {
    position: relative;
    z-index: 2;
}

.du-an-breadcrumbs {
    margin-bottom: 16px;
}

.du-an-breadcrumbs .site-breadcrumbs,
.du-an-breadcrumbs .breadcrumbs-item a {
    color: #475569;
    font-size: 13.5px;
}

.du-an-breadcrumbs .site-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.du-an-breadcrumbs .site-breadcrumbs a:hover {
    color: #1d4ed8;
}

.du-an-breadcrumbs .breadcrumbs-item.is-current {
    color: #0b2545;
    font-weight: 600;
}

.du-an-title-wrap {
    max-width: 820px;
}

.du-an-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #ffffff;
    border: 1px solid rgba(186, 230, 253, 0.85);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(11, 37, 69, 0.05);
}

.du-an-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 800;
    color: #0b2545;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.du-an-subheading {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* Portfolio Body Container */
.du-an-body {
    padding-top: 45px;
    padding-bottom: 80px;
}

.du-an-portfolio-wrapper {
    width: 100%;
}

/* Category Filter Tabs Box (Full Chiều Rộng, Gọn Gàng, Tinh Tế) */
.du-an-filter-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    margin: 0 auto 30px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.du-an-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 6px;
}

.du-an-filter-btn {
    appearance: none;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1.45;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.du-an-filter-btn:hover {
    color: #0b2545;
    background-color: #f1f5f9;
}

.du-an-filter-btn.is-active {
    color: #1d4ed8;
    background-color: #eff6ff;
    font-weight: 700;
}

/* 4-Columns Grid for Projects */
.du-an-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* Single Project Card */
.du-an-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                scale 0.25s ease;
    position: relative;
}

.du-an-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(11, 37, 69, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.du-an-card.is-hidden {
    display: none !important;
}

/* Thumbnail Box */
.du-an-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8fafc;
}

.du-an-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.du-an-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.du-an-card:hover .du-an-img {
    transform: scale(1.05);
}

.du-an-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background-color: #f1f5f9;
    gap: 8px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

/* Featured (Hot) Badge */
.du-an-badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(190, 18, 60, 0.4);
    pointer-events: none;
}

/* Hover Dark Overlay with "Xem Ngay" Button */
.du-an-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.du-an-card:hover .du-an-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-xem-ngay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.92);
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(6px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-xem-ngay:hover {
    background: #0f172a;
    transform: translateY(6px) scale(1.05);
    color: #ffffff !important;
}

.du-an-card:hover .btn-xem-ngay {
    transform: translateY(0);
}

.du-an-card:hover .btn-xem-ngay:hover {
    transform: translateY(0) scale(1.05);
}

/* Card Footer / Title */
.du-an-card-footer {
    padding: 16px 14px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.du-an-title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.du-an-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.du-an-title a:hover {
    color: #1d4ed8;
}

/* Empty State / Notice */
.du-an-filter-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.du-an-filter-empty svg {
    margin-bottom: 12px;
    stroke: #94a3b8;
}

.du-an-filter-empty p {
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.du-an-no-posts {
    text-align: center;
    padding: 70px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.du-an-no-posts-icon {
    width: 72px;
    height: 72px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #1d4ed8;
}

.du-an-no-posts h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.du-an-no-posts p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1120px) {
    .du-an-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .du-an-header-banner {
        padding: 30px 0 35px;
    }
    .du-an-breadcrumbs {
        margin-bottom: 10px;
    }
    .du-an-kicker {
        font-size: 10.5px;
        padding: 3px 9px;
        margin-bottom: 8px;
    }
    /* Tiêu đề Dự Án trên Mobile: Thu nhỏ font, không nhảy dòng */
    .du-an-heading {
        font-size: clamp(0.92rem, 4.6vw, 1.35rem);
        white-space: nowrap;
        margin: 0 0 8px;
        letter-spacing: -0.02em;
    }
    .du-an-subheading {
        font-size: 13px;
        line-height: 1.55;
    }
    .du-an-filter-container {
        padding: 8px 10px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    .du-an-filter-tabs {
        gap: 3px 5px;
    }
    .du-an-filter-btn {
        font-size: 12px;
        padding: 3px 7px;
    }
    /* Grid trên Mobile: Chia 2 cột sắc nét */
    .du-an-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .du-an-card-footer {
        padding: 10px 8px;
    }
    .du-an-title {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
    }
}

@media (max-width: 500px) {
    .du-an-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .du-an-card-thumb {
        aspect-ratio: 4 / 3;
    }
    .btn-xem-ngay {
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .du-an-heading {
        font-size: clamp(0.78rem, 4.2vw, 1.02rem) !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   LIVE DEMO POPUP MODAL (DESKTOP, TABLET, MOBILE RESPONSIVE PREVIEW)
   ========================================================================== */
.du-an-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.du-an-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.du-an-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.du-an-modal-dialog {
    position: relative;
    z-index: 2;
    width: 96vw;
    max-width: 1440px;
    height: 92vh;
    max-height: 890px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.du-an-modal.is-open .du-an-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Close Button (X) */
.du-an-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 10;
    transition: all 0.2s ease;
}

.du-an-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Modal Body Layout */
.du-an-modal-body {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* LEFT SIDE: LIVE DEMO & DEVICE PREVIEW (RỘNG RÃI HƠN) */
.du-an-modal-left {
    flex: 1 1 auto;
    width: calc(100% - 370px);
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Device Switcher Bar */
.du-an-device-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.device-bar-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.device-buttons {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.device-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.device-btn:hover {
    color: #0f172a;
}

.device-btn.is-active {
    background: #0b2545;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(11, 37, 69, 0.2);
}

/* Viewport Container */
.du-an-viewport-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.du-an-device-frame {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mode: Desktop */
.du-an-viewport-container.mode-desktop .du-an-device-frame {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
}

.desktop-browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-url-bar {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.du-an-viewport-container.mode-desktop .mobile-notch {
    display: none;
}

/* Mode: Tablet (Màn hình 960px chuẩn) */
.du-an-viewport-container.mode-tablet .du-an-device-frame {
    width: 840px;
    max-width: 96%;
    height: 96%;
    border-radius: 24px;
    border: 12px solid #1e293b;
    background: #1e293b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.du-an-viewport-container.mode-tablet .desktop-browser-header {
    display: none;
}

.du-an-viewport-container.mode-tablet .mobile-notch {
    display: none;
}

.du-an-viewport-container.mode-tablet .du-an-screen-content {
    border-radius: 14px;
}

/* Mode: Mobile (Màn hình 440px chuẩn) */
.du-an-viewport-container.mode-mobile .du-an-device-frame {
    width: 440px;
    max-width: 92%;
    height: 96%;
    max-height: 740px;
    border-radius: 38px;
    border: 11px solid #0f172a;
    background: #0f172a;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    position: relative;
}

.du-an-viewport-container.mode-mobile .desktop-browser-header {
    display: none;
}

.du-an-viewport-container.mode-mobile .mobile-notch {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 24px;
    pointer-events: none;
}

.notch-pill {
    width: 86px;
    height: 18px;
    background: #000000;
    border-radius: 12px;
    margin-top: 4px;
}

.du-an-viewport-container.mode-mobile .du-an-screen-content {
    border-radius: 28px;
}

/* Screen Content & Scaler (Xử lý scale chuẩn Desktop Viewport 1280px) */
.du-an-screen-content {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.du-an-scaler {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: top left;
}

.du-an-scaler iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Fallback View: Khi website bảo mật chặn nhúng Live Demo */
.du-an-fallback-view {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fallback-img-container {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}

.fallback-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.du-an-fallback-bar {
    background: #fff1f2;
    border-top: 1px solid #fecdd3;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.fallback-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9f1239;
    font-size: 13px;
    font-weight: 600;
}

.btn-fallback-open {
    background: #e11d48;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-fallback-open:hover {
    background: #be123c;
    color: #ffffff !important;
}

/* Mobile Thumb View: Chỉ hiển thị trên điện thoại */
.du-an-mobile-thumb-view {
    display: none;
}

/* Iframe Loader */
.du-an-iframe-loader {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-size: 13.5px;
    z-index: 3;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.du-an-iframe-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.du-an-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: duAnSpin 0.7s linear infinite;
}

@keyframes duAnSpin {
    to { transform: rotate(360deg); }
}

/* RIGHT SIDE: PROJECT DETAILS (THU GỌN LẠI 370px) */
.du-an-modal-right {
    flex: 0 0 370px;
    width: 370px;
    max-width: 370px;
    padding: 24px 22px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.du-an-modal-header {
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.du-an-modal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding-right: 32px; /* tránh nút close */
}

.du-an-modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

.du-an-modal-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.du-an-modal-category {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* 5 Feature Bullets */
.du-an-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.du-an-modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.du-an-modal-features .feature-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #10b981;
}

.du-an-modal-features .feature-text {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.du-an-modal-features .feature-text strong {
    color: #0f172a;
    font-weight: 700;
}

/* 2 Action Buttons */
.du-an-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn-modal-contact {
    background: linear-gradient(135deg, #07192f 0%, #0b2545 55%, #1d4ed8 100%);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-modal-contact:hover {
    background: linear-gradient(135deg, #040d1a 0%, #07192f 55%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.35);
    color: #ffffff !important;
}

.btn-modal-live {
    border: 2px solid #e11d48;
    color: #e11d48 !important;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-modal-live:hover {
    background: #e11d48;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
}

/* RESPONSIVE: KHI XEM TRÊN ĐIỆN THOẠI (ẨN HOÀN TOÀN LIVE DEMO, CHỈ HIỆN ẢNH ĐẠI DIỆN DỰ ÁN) */
@media (max-width: 960px) {
    /* Ẩn thanh chuyển đổi thiết bị và khung Live Demo trên điện thoại */
    .du-an-device-bar,
    .du-an-viewport-container {
        display: none !important;
    }

    /* Hiện ảnh đại diện thay cho live demo */
    .du-an-mobile-thumb-view {
        display: block !important;
        width: 100%;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    #du-an-mobile-thumb-img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        object-position: top;
        display: block;
    }

    .mobile-thumb-badge {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(4px);
        color: #ffffff;
        font-size: 10.5px;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 9999px;
    }

    .du-an-modal-dialog {
        width: 95vw;
        height: auto;
        max-height: 92vh;
        border-radius: 16px;
    }

    .du-an-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .du-an-modal-left {
        flex: none;
        width: 100% !important;
        height: auto !important;
        padding: 16px 16px 0 !important;
        border-right: none;
        border-bottom: none;
        background: #ffffff !important;
    }

    .du-an-modal-right {
        flex: none;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 16px 20px !important;
    }

    .du-an-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FEATURED PROJECTS SLIDER (TRANG CHỦ & DỊCH VỤ THIẾT KẾ WEBSITE)
   ========================================================================== */
.du-an-slider-section {
    padding: 55px 0 50px 0;
    position: relative;
    width: 100%;
}
.home-du-an-slider {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f7ff 50%, #f8fafc 100%);
    border-top: 1px solid #e0edf8;
    border-bottom: 1px solid #e0edf8;
    margin: 30px 0 20px 0;
}
.landing-du-an-slider {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 60px 0;
}
.du-an-slider-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.du-an-slider-heading-wrap {
    flex: 1 1 500px;
}
.du-an-slider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.2);
    margin-bottom: 10px;
}
.du-an-slider-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
    font-weight: 700 !important;
    color: var(--color-navy) !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    border: none !important;
    padding: 0 !important;
}
.du-an-slider-desc {
    font-size: 14.5px;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 100%;
    line-height: 1.6;
}
@media (min-width: 992px) {
    .du-an-slider-desc {
        white-space: nowrap;
    }
}
.du-an-slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.du-an-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}
.du-an-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.du-an-nav-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(29, 78, 216, 0.35);
}
.du-an-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}
.du-an-view-all-btn:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}
.du-an-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.du-an-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 14px 4px;
}
.du-an-slider-track::-webkit-scrollbar {
    display: none;
}
.du-an-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 250px;
    scroll-snap-align: start;
    box-sizing: border-box;
}
.du-an-slide .du-an-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.du-an-slide .du-an-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
}
.du-an-slide .du-an-card-footer {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    .du-an-slide {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}
@media (max-width: 900px) {
    .du-an-slider-section {
        padding: 40px 0 35px 0;
    }
    .du-an-slider-header {
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .du-an-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 230px;
    }
}
@media (max-width: 600px) {
    .du-an-slider-title {
        font-size: 1.3rem !important;
    }
    .du-an-slide {
        flex: 0 0 calc(84% - 10px);
        min-width: 230px;
    }
    .du-an-slider-controls {
        width: 100%;
        justify-content: space-between;
    }
}
