/* ============================================================
   TÊN MÔ-ĐUN: SINGLE POST CUSTOMIZER
   MÔ TẢ: GIAO DIỆN TRANG CHI TIẾT BÀI VIẾT NÂNG CAO
   CHUẨN THEO PHONG CÁCH VLXD DUONG MINH HIEU & BRAND THU ĐOÀN AUTO
   ============================================================ */

:root {
    --thudoan-orange: #1A66FF;
    --thudoan-orange-hover: #1554C0;
    --thudoan-orange-light: #EFF6FF;
    --thudoan-dark: #1A1B1E;
}

/* 1. FEATURED HERO HEADER (BÀI VIẾT CÓ ẢNH ĐẠI DIỆN LỚN NẰM TRÊN TOP) */
.blog-featured-title.featured-title {
    position: relative !important;
    min-height: 380px !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    background-color: #0f172a !important;
}

.blog-featured-title .page-title-bg {
    position: absolute !important;
    inset: 0 !important;
}

.blog-featured-title .page-title-bg .title-bg {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* LỚP PHỦ GRADIENT TỐI SANG TRỌNG */
.blog-featured-title .page-title-bg .title-overlay {
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.6) 50%,
            rgba(15, 23, 42, 0.25) 100%) !important;
}

/* KHUNG NỘI DUNG TIÊU ĐỀ TRÊN HERO BANNER (LEFT-ALIGNED) */
.blog-featured-title .page-title-inner {
    position: relative !important;
    z-index: 2 !important;
    min-height: auto !important;
    padding-bottom: 40px !important;
    padding-top: 40px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
}

.blog-featured-title .page-title-inner .flex-col {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
}

.blog-featured-title .entry-title {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
}

/* 2. BREADCRUMB THANH ĐIỀU HƯỚNG BÀI VIẾT */
.tt-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
    margin-bottom: 14px !important;
    flex-wrap: wrap !important;
    font-weight: 500 !important;
}

.tt-breadcrumb a {
    color: #60A5FA !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.tt-breadcrumb a:hover {
    color: #ffffff !important;
}

.tt-breadcrumb .sep {
    color: #cbd5e1 !important;
    font-weight: bold !important;
}

.tt-breadcrumb .cur {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ẨN CÁC PHẦN TỬ CŨ CỦA FLATSOME TRÊN FEATURED HEADER */
.blog-featured-title .entry-category,
.blog-featured-title .entry-divider,
.blog-featured-title .entry-meta {
    display: none !important;
}

/* 3. TRƯỜNG HỢP GIAO DIỆN TIÊU CHUẨN (FALLBACK) */
.single-post .page-title:not(.blog-featured-title) {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 30px 0 !important;
}

.single-post .page-title:not(.blog-featured-title) .entry-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-top: 10px !important;
}

/* 4. NỘI DUNG BÀI VIẾT (TYPOGRAPHY CHUẨN) */
.single-post .row.align-center > .large-10.col,
.single-post .row.align-center > .large-12.col {
    max-width: 900px !important;
    margin: 0 auto !important;
    float: none !important;
}

.single-post .entry-content p {
    font-size: 1.05rem !important;
    color: #334155 !important;
    line-height: 1.85 !important;
    margin-bottom: 22px !important;
}

.single-post .entry-content p.lead {
    font-size: 1.15rem !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
}

.single-post .entry-content h2 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 38px 0 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid var(--thudoan-orange, #1A66FF) !important;
    display: inline-block !important;
}

.single-post .entry-content h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 28px 0 12px !important;
}

.single-post .entry-content img:not(.emoji):not(.wp-smiley) {
    border-radius: 12px !important;
    margin: 24px 0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
}

.single-post .entry-content blockquote {
    position: relative !important;
    margin: 30px 0 !important;
    padding: 20px 26px !important;
    background: #EFF6FF !important;
    border-left: 4px solid var(--thudoan-orange, #1A66FF) !important;
    border-radius: 0 10px 10px 0 !important;
    font-style: italic !important;
    color: #1e293b !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}

.single-post .entry-content blockquote p {
    margin: 0 !important;
    color: #1e293b !important;
}

.single-post .entry-content ol,
.single-post .entry-content ul {
    margin: 0 0 24px 20px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    font-size: 1.02rem !important;
}

.single-post .entry-content li {
    margin-bottom: 8px !important;
}

/* 5. HỘP KÊU GỌI HÀNH ĐỘNG & CAM KẾT CUỐI BÀI VIẾT (THU ĐOÀN CTA BOX) */
.single-post .entry-content .thudoan-cta-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #ffedd5 100%) !important;
    border: 1px solid rgba(26, 102, 255, 0.25) !important;
    border-left: 5px solid var(--thudoan-orange, #1A66FF) !important;
    padding: 28px 30px !important;
    margin: 40px 0 24px 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 22px rgba(26, 102, 255, 0.08) !important;
}

.single-post .entry-content .thudoan-cta-box h3 {
    color: #9a3412 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.single-post .entry-content .thudoan-cta-box h3 i {
    color: var(--thudoan-orange, #1A66FF) !important;
    font-size: 1.35rem !important;
}

.single-post .entry-content .thudoan-cta-box p.cta-intro {
    margin-bottom: 18px !important;
    color: #431407 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.single-post .entry-content .thudoan-post-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 22px 0 !important;
}

.single-post .entry-content .thudoan-post-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    font-size: 0.98rem !important;
    color: #431407 !important;
}

.single-post .entry-content .thudoan-post-list li:last-child {
    margin-bottom: 0 !important;
}

.single-post .entry-content .thudoan-post-list li .icon-wrap {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px !important;
    background: rgba(26, 102, 255, 0.15) !important;
    color: var(--thudoan-orange, #1A66FF) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.single-post .entry-content .thudoan-post-list li .text-wrap {
    flex: 1 !important;
}

.single-post .entry-content .thudoan-post-list li .text-wrap strong {
    color: #1a1a1a !important;
}

/* Hộp Hotline & Zalo bên trong CTA */
.single-post .entry-content .thudoan-cta-actions {
    background: #ffffff !important;
    padding: 16px 22px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    border: 1px solid rgba(26, 102, 255, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    margin-top: 14px !important;
}

.single-post .entry-content .thudoan-cta-btn-call {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: var(--thudoan-orange, #1A66FF) !important;
    color: #ffffff !important;
    border-radius: 99px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(26, 102, 255, 0.3) !important;
    transition: all 0.25s ease !important;
}

.single-post .entry-content .thudoan-cta-btn-call:hover {
    background: var(--thudoan-orange-hover, #1554C0) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.single-post .entry-content .thudoan-cta-btn-zalo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: #0068FF !important;
    color: #ffffff !important;
    border-radius: 99px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3) !important;
    transition: all 0.25s ease !important;
}

.single-post .entry-content .thudoan-cta-btn-zalo:hover {
    background: #0056d6 !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.single-post .entry-content .thudoan-cta-loc {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #475569 !important;
    font-size: 0.92rem !important;
}

.single-post .entry-content .thudoan-cta-loc i {
    color: var(--thudoan-orange, #1A66FF) !important;
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .blog-featured-title.featured-title {
        min-height: 280px !important;
    }

    .blog-featured-title .page-title-inner {
        padding-bottom: 24px !important;
        padding-top: 24px !important;
    }

    .single-post .entry-content p {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }

    .single-post .entry-content .thudoan-cta-box {
        padding: 20px 18px !important;
    }

    .single-post .entry-content .thudoan-cta-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .single-post .entry-content .thudoan-cta-btn-call,
    .single-post .entry-content .thudoan-cta-btn-zalo {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
}
