@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Montserrat:wght@300;400;600;700&display=swap');

/*
Theme Name: VuKhongVu Premium 2026
Theme URI: https://vukhongvu.com
Author: Antigravity AI
Description: A custom high-end financial consulting theme for vukhongvu.com. Built with native PHP and CSS for maximum performance.
Version: 1.0
Text Domain: vukhongvu-premium
*/

:root {
    --primary-color: #001a33; /* Midnight Navy */
    --accent-color: #d4af37;  /* Metallic Gold */
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --bg-dark: #001226;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

/* Android fix: overflow-x:hidden on html does NOT break position:fixed.
   Do NOT put overflow-x:hidden on body — it creates a BFC on Android
   that traps position:fixed elements inside the body scroll container. */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    max-width: 100%;  /* prevent horizontal scroll without breaking fixed elements */
    position: relative; /* ensure body doesn't accidentally clip fixed children */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 26, 51, 0.98); /* increased opacity to compensate for no backdrop-filter */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    /* backdrop-filter removed — causes GPU compositing conflict with position:fixed on Android */
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list li a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
    padding: 10px 0;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-list li a:hover {
    color: var(--accent-color);
}

.nav-list li a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #001a33;
    min-width: 250px;
    list-style: none;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 2px solid var(--accent-color);
    opacity: 0;
    visibility: hidden;
    /* Changed from transform to margin to avoid stacking context on Android */
    margin-top: 10px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-light);
    border: none;
}

.sub-menu li a::after {
    display: none;
}

.sub-menu li a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    padding-left: 30px;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown Fix */
@media screen and (max-width: 768px) {
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        transform: none;
        display: none; /* Hidden by default on mobile, handled by JS if needed, but for now simple stack */
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
}

.cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.cta-button:hover {
    background: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Force own compositing layer from initial paint — Android fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Fade-in animation forces browser to composite this layer immediately */
    animation: vkv-appear 0.01s 0.05s both;
}
@keyframes vkv-appear {
    from { opacity: 0.999; }
    to   { opacity: 1; }
}

.widget-left { left: 30px; }
.widget-right { right: 30px; }

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-zalo { background: #0068ff; }
.btn-ai { 
    background: var(--accent-color); 
    border: 2px solid #fff;
}

/* Vibrating Animation */
@keyframes shake {
    0% { transform: scale(1); }
    10% { transform: scale(1.1) rotate(5deg); }
    20% { transform: scale(1.1) rotate(-5deg); }
    30% { transform: scale(1.1) rotate(5deg); }
    40% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

.shake-anim {
    animation: shake 2s infinite;
    /* Android: disable will-change on animated element to avoid compositing conflict */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

/* Mobile tooltip: show below button instead of above */
@media screen and (max-width: 768px) {
    .tooltip {
        bottom: auto;
        top: 65px;
        font-size: 11px;
        padding: 4px 10px;
        white-space: nowrap;
    }
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 26, 51, 0.85), rgba(0, 26, 51, 0.85)), url('images/vanphong_dongvon.png');
    background-size: cover;
    background-position: center 20%;
    filter: blur(4px);
    z-index: -1;
    transform: scale(1.1); /* To avoid white edges caused by blur */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--primary-color));
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px;
    border-radius: 10px;
}
/* Refactored Sections CSS */
.hero-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

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

.hero-description {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-tags .tag {
    border: 1px solid rgba(212,175,55,0.4);
    padding: 5px 15px;
    font-size: 12px;
    color: var(--accent-color);
}

.cta-button.large {
    padding: 18px 45px;
    font-size: 16px;
}

.hero-form {
    flex: 0.8;
    max-width: 450px;
}

.hero-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.hero-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-form input, 
.hero-form select, 
.hero-form textarea {
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    color: #fff;
    width: 100%;
}

.hero-form select option {
    background: #001a33;
    color: #fff;
}

.cta-button.full-width {
    width: 100%;
}

.form-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

/* Services */
.services-section {
    padding: 120px 0;
    background: #000a14;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.featured {
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 25px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* CEO Section */
.ceo-section {
    padding: 100px 0;
    background: var(--primary-color);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.ceo-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.ceo-content {
    flex: 1;
}

.ceo-title {
    font-size: 32px;
    margin-bottom: 25px;
}

.ceo-quote {
    font-style: italic;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.ceo-description {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ceo-image-wrapper {
    flex: 1;
    position: relative;
}

.ceo-image-container {
    width: 100%;
    height: 500px;
    background: #001a33;
    border: 2px solid var(--accent-color);
    overflow: hidden;
}

.ceo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.ceo-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 30px;
    font-weight: bold;
    font-family: var(--font-heading);
}

/* Stories Section */
.stories-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 10, 20, 0.9), rgba(0, 10, 20, 0.9)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-card {
    padding: 30px;
    border-top: 4px solid var(--accent-color);
}

.story-location {
    color: var(--accent-color);
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: bold;
}

.story-card h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.story-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-testimonial {
    font-style: italic;
    color: var(--accent-color);
    font-size: 13px;
}

/* Trust Section */
.trust-section {
    padding: 100px 0;
    background: #000a14;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.trust-item {
    flex: 1;
}

.trust-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.trust-item h4 {
    margin-bottom: 10px;
}

.trust-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: var(--accent-color);
    text-align: center;
}

.final-cta h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.final-cta p {
    color: rgba(0,26,51,0.8);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 18px 40px;
    font-size: 18px;
    border: none;
}

.cta-button.zalo {
    background: #fff;
    color: #0068ff;
    padding: 18px 40px;
    font-size: 18px;
    border: none;
}

/* Footer Styles */
.site-footer {
    background: #000a14;
    padding: 80px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 25px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-contact h4, .footer-map h4 {
    color: #fff;
    margin-bottom: 25px;
}

.footer-contact ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-container {
    width: 100%;
    height: 200px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.footer-bottom {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    color: #4a5568;
    font-size: 13px;
}

/* Header Mobile & Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.mobile-only { display: none; }

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .hero-flex, .ceo-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title { font-size: 42px; }
    .hero-tags { justify-content: center; }
    .hero-form { margin: 0 auto; width: 100%; }
}

@media screen and (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .menu-toggle { display: flex; }

    nav#site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    nav#site-navigation.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    nav ul li a {
        font-size: 20px;
        font-family: var(--font-heading);
    }

    .header-cta.mobile-only {
        margin-top: 40px;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-title { font-size: 32px; }
    .hero-description { font-size: 16px; }

    .services-grid, .stats-grid, .stories-grid, .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-grid {
        flex-direction: column;
    }

    .container {
        padding: 0 25px;
    }

    section {
        padding: 60px 0 !important;
    }

    .section-header h2 { font-size: 28px; }

    .ceo-image-container { height: 350px; }
    .ceo-badge { padding: 15px; bottom: -10px; right: -10px; font-size: 12px; }

    .floating-widgets {
        bottom: 20px;
        gap: 10px;
        /* Android Chrome bug fix — reset GPU layer properly on mobile */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        z-index: 99999 !important;
    }
    .widget-left { left: 15px; }
    .widget-right { right: 15px; }
    .floating-btn { width: 50px; height: 50px; }
    .floating-btn img { width: 25px !important; height: 25px !important; }
    .floating-btn span:not(.tooltip) { font-size: 24px !important; }
    /* Disable shake animation on mobile to prevent Android compositing bug */
    .shake-anim { animation: none !important; }

    /* Footer Fixes */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }
    .footer-contact ul {
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .logo { font-size: 20px; }
    .cta-button { padding: 15px 30px; font-size: 14px; }
}

/* =============================================
   CHATBOT WIDGET STYLES
   ============================================= */

/* Notification badge on the toggle button */
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Main widget container */
.chatbot-widget {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 360px;
    max-height: 520px;
    background: #00131f;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212,175,55,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    font-family: var(--font-body);
}

.chatbot-widget.chatbot-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #001a33 0%, #002a52 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chatbot-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #f0c040);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    border: 2px solid rgba(212,175,55,0.6);
}

.chatbot-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48bb78;
    border: 2px solid #001a33;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.5); }
    70%  { box-shadow: 0 0 0 5px rgba(72, 187, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

.chatbot-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chatbot-header-info strong {
    color: var(--accent-color);
    font-size: 14px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.chatbot-header-info span {
    color: #718096;
    font-size: 11px;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: #718096;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.chatbot-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Messages scroll area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 4px; }

/* Individual message bubbles */
.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: msg-in 0.3s ease forwards;
    opacity: 0;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #f0c040);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.msg-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg.bot .msg-bubble {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.15);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #001226;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(212,175,55,0.6);
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-7px); }
}

/* Quick-reply option buttons */
.chatbot-options {
    padding: 6px 14px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.chatbot-option-btn {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.45);
    color: var(--accent-color);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.chatbot-option-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Free-text input area */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.chatbot-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.25);
    color: #fff;
    padding: 10px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: rgba(212,175,55,0.6);
}

.chatbot-input::placeholder {
    color: #4a5568;
}

.chatbot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.2s;
    flex-shrink: 0;
}

.chatbot-send:hover {
    background: #f0c040;
    transform: scale(1.08);
}

/* Completion / thank-you state */
.chatbot-thankyou {
    padding: 20px 14px;
    text-align: center;
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.7;
}

.chatbot-thankyou .ty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.chatbot-thankyou strong {
    color: var(--accent-color);
    font-size: 15px;
}

/* ---- Responsive mobile ---- */
@media screen and (max-width: 480px) {
    .chatbot-widget {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 88px;
        max-height: 72vh;
    }
}

/* =============================================
   PROACTIVE NUDGE BUBBLE
   Hiện lên khi khách lướt đủ 35% trang
   ============================================= */

.nudge-bubble {
    position: absolute;
    bottom: 76px;        /* ngay trên nút chat */
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(212,175,55,0.15);
    padding: 16px 16px 14px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    z-index: 9998;

    /* Hidden by default — shown via JS */
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.nudge-bubble.nudge-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Speech-bubble triangle tail pointing down-right */
.nudge-tail {
    position: absolute;
    bottom: -10px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 0 solid transparent;
    border-top: 10px solid #fff;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.08));
}

/* Close button */
.nudge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.nudge-close:hover {
    color: #555;
    background: #f0f0f0;
}

/* Mini avatar */
.nudge-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #001226;
    font-weight: 900;
    font-size: 12px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212,175,55,0.4);
    margin-top: 2px;
}

/* Content body */
.nudge-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 14px; /* room for close btn */
}

.nudge-name {
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-heading);
}

.nudge-text {
    font-size: 13px;
    color: #2d3748;
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-body);
}

/* CTA button inside bubble */
.nudge-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #001226;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.nudge-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

/* Attention pulse on the chat button when nudge is visible */
.nudge-attention {
    animation: nudge-pulse 1s ease-in-out 3;
}

@keyframes nudge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); }
    50%  { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* Typing dots inside bubble while text cycles */
.nudge-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}

.nudge-typing .nd {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4af37;
    animation: typing-bounce 1.1s infinite ease-in-out;
}

.nudge-typing .nd:nth-child(2) { animation-delay: 0.18s; }
.nudge-typing .nd:nth-child(3) { animation-delay: 0.36s; }

/* Mobile */
@media screen and (max-width: 480px) {
    .nudge-bubble {
        width: calc(100vw - 90px);
        right: 0;
        bottom: 72px;
    }
}

/* =============================================
   TRANG GIỚI THIỆU — Mobile Fixes
   ============================================= */

@media screen and (max-width: 768px) {

    /* Hero sub */
    .hero-sub h1 {
        font-size: 30px !important;
    }
    .hero-sub p {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }

    /* Flex layout → stack dọc */
    .container > div[style*="display: flex"] {
        gap: 32px !important;
    }

    /* Image box-shadow nhỏ lại — tránh tràn màn hình */
    img[style*="box-shadow: 16px"] {
        box-shadow: 8px 8px 0px var(--accent-color) !important;
    }

    /* Blockquote giới thiệu */
    blockquote[style*="background: #001a33"] {
        padding: 24px 20px !important;
        margin: 30px 0 !important;
    }
    blockquote[style*="background: #001a33"] p {
        font-size: 16px !important;
    }

    /* Thông tin tóm tắt sidebar */
    div[style*="background: #f7fafc"] {
        padding: 20px !important;
    }

    /* Nút CTA Đặt lịch */
    a.cta-button[style*="display: block"] {
        font-size: 15px !important;
        padding: 16px 20px !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* Tiêu đề h2 story */
    div[style*="flex: 1.5"] h2 {
        font-size: 26px !important;
    }

    div[style*="flex: 1.5"] h3 {
        font-size: 19px !important;
        margin: 28px 0 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .hero-sub h1 {
        font-size: 24px !important;
    }

    a.cta-button[style*="display: block"] {
        font-size: 14px !important;
        padding: 14px 16px !important;
    }
}

/* =============================================
   TRANG LIÊN HỆ — Responsive CSS
   ============================================= */

/* Layout grid chính — 2 cột desktop, 1 cột mobile */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    align-items: start;
}

/* Cột thông tin liên hệ */
.contact-info h3 {
    color: var(--accent-color);
    font-size: 18px;
    letter-spacing: 2px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item h4 {
    color: var(--accent-color);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Card form */
.contact-card {
    padding: 36px;
}

/* Shared input style */
.contact-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.contact-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
}

.contact-input::placeholder {
    color: #4a5568;
}

/* Select màu nền */
.contact-input option {
    background: #001a33;
    color: #fff;
}

/* 2 inputs nằm ngang (tên + sđt) */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Bản đồ */
.contact-map-section {
    height: clamp(260px, 40vw, 450px);
    overflow: hidden;
}

/* ── MOBILE ≤ 768px ─────────────────────── */
@media screen and (max-width: 768px) {

    /* Stack 2 cột thành 1 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Form card padding nhỏ lại */
    .contact-card {
        padding: 24px 20px;
    }

    /* 2-col form row → 1 cột */
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Hotline nhỏ lại để không tràn */
    .contact-item a[style*="font-size: 22px"] {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 480px) {
    .contact-card {
        padding: 18px 14px;
    }

    .contact-input {
        font-size: 13px;
        padding: 12px 13px;
    }
}

/* =============================================
   SOCIAL MEDIA HUB — Trang Liên Hệ
   ============================================= */

.social-hub-section {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, #000a14 0%, #001226 100%);
    border-top: 1px solid rgba(212,175,55,0.15);
}

.social-hub-header {
    text-align: center;
    margin-bottom: 50px;
}

.social-hub-header h2 {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.social-hub-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.social-hub-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Grid: 4 cột desktop → 2 tablet → 1 mobile */
.social-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Card cơ bản */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 18px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-color, var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.social-card:hover::before {
    transform: scaleX(1);
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
}

/* Icon */
.social-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
    color: #a0aec0;
    flex-shrink: 0;
}

.social-card:hover .social-card-icon {
    background: var(--brand-color, var(--accent-color));
    color: #fff;
}

/* Text */
.social-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-card-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

.social-card-handle {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

.social-card-follow {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}

.social-card:hover .social-card-follow {
    opacity: 1;
    transform: translateY(0);
}

/* Brand colours per platform */
.social-card[data-platform="facebook"]  { --brand-color: #1877F2; }
.social-card[data-platform="tiktok"]    { --brand-color: #010101; }
.social-card[data-platform="youtube"]   { --brand-color: #FF0000; }
.social-card[data-platform="instagram"] { --brand-color: #E1306C; }
.social-card[data-platform="linkedin"]  { --brand-color: #0A66C2; }
.social-card[data-platform="threads"]   { --brand-color: #101010; }
.social-card[data-platform="x"]         { --brand-color: #14171A; }
.social-card[data-platform="pinterest"] { --brand-color: #E60023; }

/* ── Responsive ── */
@media screen and (max-width: 1024px) {
    .social-hub-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .social-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .social-card {
        padding: 22px 14px 18px;
    }

    .social-card-follow {
        opacity: 1;     /* luôn hiện trên mobile */
        transform: none;
    }
}

@media screen and (max-width: 400px) {
    .social-hub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .social-card-icon {
        width: 48px;
        height: 48px;
    }
}

/* =============================================
   SINGLE POST & CATEGORY ARCHIVE STYLES
   ============================================= */

/* Breadcrumb */
.breadcrumb-bar {
    background: #000e1f;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    padding: 12px 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent-color); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Article layout */
.single-post-main { background: #fff; min-height: 60vh; }

/* Article hero header — dark bg, white title */
.single-article { background: #fff; }

.article-header-hero {
    background: linear-gradient(135deg, #001226 0%, #002040 100%);
    border-bottom: 3px solid var(--accent-color);
    padding: 50px 0 40px;
}
.article-header-hero .container { max-width: 780px; }

.article-container {
    max-width: 780px;
    padding: 40px 20px 80px;
}

/* Featured image */
.article-featured-img {
    margin-bottom: 36px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.article-thumb {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.article-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cat-badge {
    background: var(--accent-color);
    color: #001a33;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-title {
    font-size: clamp(22px, 4vw, 34px);
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 20px;
    font-weight: 800;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Article body typography */
.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #2d3748;
}
.article-body h2 {
    font-size: clamp(18px, 3vw, 24px);
    color: #001a33;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--accent-color);
}
.article-body h3 {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #001a33;
    margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
    background: #001a33;
    color: #fff;
    padding: 24px 28px;
    border-left: 5px solid var(--accent-color);
    border-radius: 6px;
    margin: 30px 0;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.article-body th {
    background: #001a33;
    color: var(--accent-color);
    padding: 10px 14px;
    text-align: left;
}
.article-body td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.article-body tr:nth-child(even) td { background: #f7fafc; }

/* Tags */
.article-tags {
    margin: 30px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-link {
    background: #f0f4f8;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
}
.tag-link:hover { background: var(--accent-color); color: #001a33; }

/* CTA Box trong bài */
.article-cta-box {
    background: linear-gradient(135deg, #001a33, #002d55);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    margin: 40px 0;
}
.article-cta-box h3 {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 10px;
}
.article-cta-box p {
    color: #cbd5e0;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}
.post-navigation a { color: var(--accent-color); text-decoration: none; }

/* ── ARCHIVE / CATEGORY ─────────────────────── */

.archive-hero {
    background: linear-gradient(135deg, #001226, #002040);
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}
.archive-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.archive-title {
    font-size: clamp(24px, 5vw, 38px);
    color: #fff;
    margin-bottom: 12px;
}
.archive-desc {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.archive-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.post-card-body { padding: 24px; }

.post-cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(212,175,55,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a202c;
}
.post-card-title a {
    text-decoration: none;
    color: inherit;
}
.post-card-title a:hover { color: var(--primary-color); }

.post-card-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 14px;
}

.post-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}
.post-card-link:hover { text-decoration: underline; }

.archive-pagination {
    text-align: center;
    margin-top: 40px;
}
.archive-pagination a, .archive-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 14px;
}
.archive-pagination a {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    text-decoration: none;
}
.archive-pagination a:hover, .archive-pagination .current {
    background: var(--accent-color);
    color: #001a33;
    border-color: var(--accent-color);
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .article-container { padding: 30px 16px 50px; }
    .post-navigation { flex-direction: column; }
    .article-cta-box { padding: 24px 18px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   ARCHIVE / CATEGORY — Premium Layout v2
   ============================================= */

/* Hero 2 cột */
.archive-hero-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: center;
}
.archive-cat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.archive-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Expert card trong hero */
.archive-expert-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
}
.expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #001a33;
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.expert-name {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}
.expert-title {
    font-size: 13px;
    color: var(--accent-color);
    margin-bottom: 4px;
}
.expert-exp {
    font-size: 12px;
    color: var(--text-muted);
}

/* Archive body layout */
.archive-body {
    padding: 50px 0 80px;
    background: #f8fafc;
}
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

/* Featured post */
.post-card--featured {
    border: 2px solid var(--accent-color) !important;
    background: linear-gradient(135deg, #001a33 0%, #002d55 100%) !important;
    margin-bottom: 24px;
}
.post-card--featured .post-card-title a,
.post-card--featured .post-card-excerpt {
    color: #e2e8f0 !important;
}
.post-card--featured .post-card-title a:hover {
    color: var(--accent-color) !important;
}
.post-card-title--lg { font-size: 20px !important; }

.post-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.post-date { font-size: 12px; color: var(--text-muted); }

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}
.post-card-meta-item { font-size: 12px; color: #a0aec0; }

.post-card-link--btn {
    background: var(--accent-color);
    color: #001a33 !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    letter-spacing: 0.5px;
}
.sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 4px;
    transition: background 0.15s;
}
.sidebar-cat-link:hover,
.sidebar-cat-link.active {
    background: rgba(212,175,55,0.1);
    color: var(--primary-color);
    font-weight: 600;
}
.cat-count {
    background: #e2e8f0;
    color: #718096;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}
.sidebar-cat-link.active .cat-count {
    background: var(--accent-color);
    color: #001a33;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #001a33, #002d55) !important;
    border-color: rgba(212,175,55,0.3) !important;
}
.sidebar-cta h3 { color: var(--accent-color); font-size: 16px; margin-bottom: 10px; }
.sidebar-cta p { color: #cbd5e0; font-size: 14px; margin-bottom: 14px; }
.sidebar-cta-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
.sidebar-cta-list li {
    font-size: 13px;
    color: #a0aec0;
    padding: 5px 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: #1a202c; margin-bottom: 8px; }
.empty-state p { color: #718096; font-size: 15px; }

/* Mobile responsive */
@media (max-width: 768px) {
    .archive-hero-inner { grid-template-columns: 1fr; }
    .archive-expert-card { display: none; }
    .archive-layout { grid-template-columns: 1fr; }
    .archive-sidebar { order: -1; }
    .post-card--featured { margin-bottom: 16px; }
    .post-card-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ====================================================
   SERVICE PAGE RESPONSIVE FIX
   ==================================================== */

/* page.php: 2-column layout → single column on mobile */
@media screen and (max-width: 768px) {
    main.container[style*="grid-template-columns: 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 40px 20px !important;
    }
    
    .service-sidebar .glass-card {
        position: static !important;
        top: auto !important;
    }
}

/* page-*.php: flex layout → single column on mobile */
@media screen and (max-width: 768px) {
    main div[style*="flex: 1; min-width: 300px;"] {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* page-vay-von.php: responsive form */
@media screen and (max-width: 480px) {
    div[style*="display: flex; gap: 50px; flex-wrap: wrap;"] {
        gap: 30px !important;
    }
    
    .glass-card[style*="padding: 40px;"] {
        padding: 24px !important;
    }
}

/* page-dao-han.php: 2-column grid → 1 column on mobile */
@media screen and (max-width: 768px) {
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 40px;"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* page-no-xau.php: text centering on mobile */
@media screen and (max-width: 768px) {
    section[style*="padding: 80px 0;"] div[style*="max-width: 800px;"] {
        padding: 0 15px !important;
    }
}

/* page-contact.php: 2-column grid → 1 column */
@media screen and (max-width: 768px) {
    div[style*="display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;"] {
        grid-template-columns: 1fr !important;
    }
}

/* Tin tuc archive: grid responsive */
@media screen and (max-width: 768px) {
    .archive-layout { grid-template-columns: 1fr !important; }
    .archive-sidebar { order: -1; }
}

/* ====================================================
   HERO SUB BUTTON RESPONSIVE FIX
   ==================================================== */
@media screen and (max-width: 768px) {
    section.hero-sub .cta-button,
    section[style*="background: linear-gradient"] .cta-button {
        white-space: nowrap !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 480px) {
    section.hero-sub .cta-button,
    section[style*="background: linear-gradient"] .cta-button {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
}

/* Service page form inputs responsive */
@media screen and (max-width: 480px) {
    form[style*="display: flex; flex-direction: column; gap: 20px;"] input,
    form[style*="display: flex; flex-direction: column; gap: 20px;"] select,
    form[style*="display: flex; flex-direction: column; gap: 20px;"] textarea {
        padding: 12px !important;
        font-size: 14px !important;
    }
}



n/* ===== Body Images - Responsive ===== */
.article-body img,
.article-body figure img,
.article-body .wp-block-image img,
.body-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.article-body figure.wp-block-image {
    margin: 30px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.article-body figure.wp-block-image img {
    max-width: 100%;
