/*
Theme Name: Voucher The Coffee House Theme
Theme URI: https://voucherthecoffeehouse.vn/
Author: Optimized Theme
Description: Theme tối ưu cho tốc độ, SEO và trải nghiệm người dùng Single Brand
Version: 2.0
*/

/* ============================================================
   >>> CSS VARIABLES (DỄ TÙY CHỈNH)
   ============================================================ */
:root {
    /* Colors */
    --color-primary: #d9534f;
    --color-primary-dark: #c9302c;
    --color-secondary: #f59e0b;
    --color-secondary-dark: #d97706;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-lighter: #999;
    --color-border: #eee;
    --color-bg: #f9f9f9;
    --color-white: #fff;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
    
    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.07);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.12);
    
    /* Borders */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 50px;
}

/* ============================================================
   >>> RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   >>> SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-primary-dark);
}

/* ============================================================
   >>> CONTAINER
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================================
   >>> HEADER & NAVIGATION
   ============================================================ */
.main-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-xs) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
}

/* Logo */
.site-logo a {
    font-weight: bold;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
}

.site-logo a:hover {
    opacity: 0.8;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Desktop Menu */
.main-navigation {
    transition: transform var(--transition-base);
}

.main-navigation ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-navigation a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--color-primary);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: var(--spacing-xs);
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
    margin: 3px 0;
}

.menu-toggle .menu-text {
    display: none;
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   >>> BREADCRUMBS (YOAST SEO)
   ============================================================ */
/* Ẩn Breadcrumb theo yêu cầu cũ, nếu muốn hiện thì xóa display:none */
.breadcrumbs-wrapper {
    display: none; 
}

/* ============================================================
   >>> SECTIONS
   ============================================================ */
.section-wrapper {
    padding: 10px 0;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin: 0 0 var(--spacing-sm);
    color: var(--color-primary);
   
}

/* ============================================================
   >>> GUIDE SECTION (4 BƯỚC)
   ============================================================ */
.guide-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.guide-step {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.guide-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

#huong-dan-brand {
    padding-bottom: 15px !important;
}

/* ============================================================
   >>> VOUCHER GRID
   ============================================================ */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.voucher-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.voucher-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.voucher-card:hover img {
    transform: scale(1.05);
}


.voucher-content {
   padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

.voucher-content h2.voucher-card-title,
.voucher-content h3.voucher-card-title {
    margin: 0 0 4px;
    margin-bottom: 4px;
    font-size: var(--font-size-lg);
    text-align: center;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.voucher-content .voucher-card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.voucher-content .voucher-card-title a:hover {
    color: var(--color-primary);
}

.voucher-button {
    display: inline-block;
    width: 100%; /* Full width trong khung */
    max-width: 200px;
    margin-top: 4px; /* Thay bằng khoảng cách nhỏ cố định (8px) */
    margin-bottom: 0;
    white-space: nowrap;
    padding: 10px 0; /* Giảm từ 12px xuống 10px */
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    font-weight: bold;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-primary);
}

.voucher-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(217, 83, 79, 0.3);
}

/* ============================================================
   >>> BRAND SECTIONS (Repeater)
   ============================================================ */
.brand-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.brand-grid.grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.brand-grid.grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.brand-grid.grid-col-4 { grid-template-columns: repeat(4, 1fr); }
.brand-grid.grid-col-5 { grid-template-columns: repeat(5, 1fr); }

.brand-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.brand-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-content h3 {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-lg);
    line-height: 1.4;
}

.brand-content h3 a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.brand-content h3 a:hover {
    color: var(--color-primary);
}

.brand-content p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.brand-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    border-radius: var(--radius-md);
    margin-top: auto;
    transition: background var(--transition-base);
}

.brand-button:hover {
    background: var(--color-primary-dark);
}

/* Shopee Styles */
.shopee-card { border-color: #f0f0f0; }
.shopee-price {
    font-size: var(--font-size-lg) !important;
    font-weight: bold;
    color: var(--color-primary) !important;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}
.shopee-button { background: var(--color-secondary); }
.shopee-button:hover { background: var(--color-secondary-dark); }

/* ============================================================
   >>> BRAND NOTICE (LƯU Ý)
   ============================================================ */
#brand-notice.brand-notice-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.brand-notice-box {
    margin: 0;
    padding: 10px 16px;
    border-radius: 8px;
    background: #FFF7E6;
    border-left: 4px solid #F58E4E;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
}
.brand-notice-box strong { font-weight: 700; }
.brand-notice-box a { color: #D9534F; text-decoration: underline; }

/* ============================================================
   >>> FAQ ACCORDION
   ============================================================ */
.faq-accordion {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    background: var(--color-white);
    padding: 15px 50px 15px 20px;
    font-size: var(--font-size-lg);
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    position: relative;
    color: var(--color-text); /* Đổi màu chữ câu hỏi */
    transition: background var(--transition-fast);
}

.faq-question:hover { background: #fafafa; }

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--color-text-light);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    background: #f9f9f9;
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
    padding-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Tăng max-height để tránh bị cắt nội dung dài */
    padding-top: var(--spacing-lg);
    transition: max-height 0.4s ease-in, padding-top 0.3s ease-in;
}

/* ============================================================
   >>> FOOTER
   ============================================================ */
.main-footer {
    background: #f1f1f1;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-top: var(--spacing-2xl);
}

/* ============================================================
   >>> FLOATING BUTTONS
   ============================================================ */
.back-top, .fab-btn {
    position: fixed;
    right: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Back-To-Top */
.back-top {
    bottom: 18px;
    width: 40px;
    height: 40px;
    background: #D9534F;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    color: #fff;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Icons */
.fab-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none !important;
    box-shadow: none !important;
}

.fab-btn img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    animation: ring-shake 2.5s ease-in-out infinite;
    transform-origin: center;
    will-change: transform; 
}

/* Positions */
.fab-zalo { bottom: 198px; }
.fab-facebook { bottom: 138px; }
.fab-shopee { bottom: 78px; }

/* Keyframes Ring Shake */
@keyframes ring-shake {
    0% { transform: rotate(0) scale(1); }
    5% { transform: rotate(12deg) scale(1.1); }
    10% { transform: rotate(-12deg) scale(1.1); }
    15% { transform: rotate(12deg) scale(1.1); }
    20% { transform: rotate(-12deg) scale(1.1); }
    25% { transform: rotate(0) scale(1); }
    100% { transform: rotate(0) scale(1); }
}

/* ============================================================
   >>> SINGLE PAGE STYLES (Trang chi tiết)
   ============================================================ */
body.single { background-color: #f4f5f7; }

.single-container-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}
.content-area { width: 70%; }
.sidebar-area { width: 30%; }

/* Voucher Hero Box */
.voucher-hero-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.voucher-hero-grid {
    display: flex;
    gap: 25px;
    align-items: center;
}

.voucher-hero-image { width: 40%; flex-shrink: 0; }
.voucher-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.voucher-hero-info { width: 60%; }
.voucher-hero-info h1.entry-title {
    font-size: 24px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.voucher-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-main-voucher {
    display: block;
    width: 100%;
    background-color: #d9534f;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(217, 83, 79, 0.3);
}
.btn-main-voucher:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
    color: #fff;
}
.cta-note {
    text-align: center;
    color: #999;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 12px;
}

/* Bài viết Content */
.single-article {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fff;
}
.content-heading {
    font-size: 20px;
    border-bottom: 2px solid #d9534f;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
.entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 17px;
}
.entry-content img { max-width: 100%; height: auto; }
.entry-content h2 { color: #d9534f; font-size: 24px; margin-top: 25px; margin-bottom: 15px; }
.entry-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }

/* Sidebar Widget */
.widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #d9534f;
    display: inline-block;
    padding-bottom: 5px;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.widget ul li a:hover { color: #d9534f; }

/* ============================================================
   >>> RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ============================================================ */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-image { height: 300px; }
    .voucher-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-grid.grid-col-4, .brand-grid.grid-col-5 { grid-template-columns: repeat(3, 1fr); }
    
    .single-container-wrapper { flex-direction: column; }
    .content-area, .sidebar-area { width: 100%; }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
    :root {
        --font-size-4xl: 28px;
        --font-size-3xl: 24px;
        --font-size-2xl: 20px;
    }

    /* Fix Container */
    .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        width: 100%;
    }

    /* Mobile Menu */
    .menu-toggle { display: flex; }
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: right var(--transition-base);
        z-index: 999;
    }
    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; padding: var(--spacing-lg); gap: 0; }
    .main-navigation li { border-bottom: 1px solid var(--color-border); }
    .main-navigation a { display: block; padding: var(--spacing-md); }
    .main-navigation a::after { display: none; }
    
    /* Overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    /* Sections */
    .hero-image { height: 250px; }
    .section-wrapper { padding: 20px 0; }

    /* Voucher Grid Mobile: 2 cột */
    .voucher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm);
    }
    .voucher-content .voucher-card-title { font-size: 16px; min-height: 40px; }
    .voucher-button { font-size: 14px; padding: 8px 12px; }

    /* Brand Grids Mobile */
    .brand-grid.grid-col-2, .brand-grid.grid-col-3, .brand-grid.grid-col-4, .brand-grid.grid-col-5 {
        grid-template-columns: repeat(2, 1fr) !important; /* Shopee, Partner 2 cột */
        gap: var(--spacing-sm);
    }
    /* Riêng Cộng đồng (Card to) thì 1 cột */
    #brand-community .brand-grid { grid-template-columns: 1fr !important; }

    .shopee-price { font-size: 16px !important; margin-bottom: 5px; }
    .brand-button { font-size: 13px; padding: 8px 15px; }

    /* Floating Buttons Mobile */
    .fab-btn, .back-top { width: 36px; height: 36px; right: 10px; }
    .fab-zalo { bottom: 140px; }
    .fab-facebook { bottom: 100px; }
    .fab-shopee { bottom: 60px; }
    .back-top { bottom: 16px; }

    /* Single Page Mobile */
    .voucher-hero-grid { flex-direction: column; }
    .voucher-hero-image, .voucher-hero-info { width: 100%; }
    .single-article { padding: 20px; }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479.98px) {
    .section-title { font-size: 20px; }
    .voucher-grid { gap: 8px; }
    .voucher-button { max-width: none; }
}

/* ============================================================
   >>> TEMPLATE SYNC: GUIDE, BLOG, SIDEBAR
   ============================================================ */
.guide-pill-wrapper {
    max-width: 900px;
    margin: 0 auto 20px;
}

.guide-pill-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
}

.guide-pill-btn {
    width: 100%;
    padding: 14px 48px 14px 18px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
}

.guide-pill-btn::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
}

.guide-pill-item.active .guide-pill-btn::after {
    content: '-';
}

.guide-pill-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: #fafafa;
    transition: max-height .3s ease, padding .3s ease;
}

.guide-pill-item.active .guide-pill-content {
    max-height: 1200px;
    padding: 16px 18px;
}

.single-page-shell .single-container-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    padding: 30px 0;
}

.single-page-shell .content-area,
.single-page-shell .sidebar-area {
    width: auto;
}

.single-page-shell .single-article {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.single-page--blog .blog-header {
    margin-bottom: 18px;
}

.single-page--blog .blog-title {
    font-size: 34px;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 12px;
}

.single-page--blog .blog-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 14px;
}

.single-page--blog .blog-meta-info a,
.single-page--blog .blog-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.single-page--blog .blog-thumbnail {
    margin: 0 0 22px;
}

.single-page--blog .blog-featured-image,
.single-page--blog .blog-content img {
    width: 100%;
    border-radius: var(--radius-md);
}

.single-page--blog .blog-content {
    font-size: 17px;
    line-height: 1.8;
}

.single-page--blog .blog-content p,
.single-page--blog .blog-content li {
    margin-bottom: 16px;
}

.single-page--blog .blog-content h2 {
    font-size: 26px;
    color: var(--color-primary);
    margin: 28px 0 14px;
}

.single-page--blog .blog-content h3 {
    font-size: 22px;
    margin: 24px 0 12px;
}

.single-page--blog :is(#ez-toc-container, .ez-toc-container, .lwptoc, .article-toc, .toc-container) {
    margin: 18px 0 24px;
}

.related-posts {
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.related-posts-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-post-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
}

.related-post-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-post-content {
    padding: 12px;
}

.related-post-title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.related-post-date {
    color: var(--color-text-light);
    font-size: 13px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-xl);
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-card-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-content {
    padding: 16px;
}

.blog-date {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-title a:hover,
.read-more-link:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.read-more-link {
    color: var(--color-primary);
    font-weight: 700;
}

.single-page-shell .widget-zalo-cta {
    text-align: center;
}

.single-page-shell .widget-zalo-cta img {
    margin: 0 auto 12px;
}

.single-page-shell .widget-zalo-cta .zalo-cta-btn {
    display: inline-block;
    padding: 10px 14px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .single-page-shell .single-container-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .single-page-shell .single-article {
        padding: 20px;
    }

    .single-page--blog .blog-title {
        font-size: 26px;
    }

    .blog-grid,
    .related-posts-grid {
        grid-template-columns: 1fr !important;
    }
}
