/* ============================================================
   TÊN MÔ-ĐUN: SINGLE POST CUSTOMIZER (TƯ VẤN MINH KHUÊ)
   MÔ TẢ: GIAO DIỆN TRANG CHI TIẾT BÀI VIẾT NÂNG CAO
   ============================================================ */

/* 1. FEATURED HERO HEADER (KHI 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;
}

.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.55) 50%,
            rgba(15, 23, 42, 0.2) 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;
}

.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, 4vw, 2.6rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !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.88rem !important;
    color: #94a3b8 !important;
    margin-bottom: 14px !important;
    flex-wrap: wrap !important;
    font-weight: 500 !important;
}

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

.tt-breadcrumb a:hover {
    opacity: 0.85 !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 BÀI VIẾT TIÊU CHUẨN (STANDARD HEADER) */
.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;
}

.single-post .page-title:not(.blog-featured-title) .tt-breadcrumb a {
    color: #c9021c !important;
}

.single-post .page-title:not(.blog-featured-title) .tt-breadcrumb .cur {
    color: #64748b !important;
}

/* 4. NỘI DUNG BÀI VIẾT (ENTRY CONTENT TYPOGRAPHY) */
.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 h2 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 40px 0 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #c9021c !important;
    display: inline-block !important;
}

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

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 24px !important;
    padding-left: 24px !important;
}

.single-post .entry-content li {
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

.single-post .entry-content img:not(.emoji):not(.wp-smiley) {
    border-radius: 14px !important;
    margin: 28px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* KHẮC PHỤC LỖI EMOJI WORDPRESS */
.single-post .entry-content img.emoji,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1.15em !important;
    width: 1.15em !important;
    margin: 0 0.15em !important;
    vertical-align: -0.15em !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-post .entry-content blockquote {
    position: relative !important;
    margin: 32px 0 !important;
    padding: 20px 26px !important;
    background: #fff5f5 !important;
    border-left: 4px solid #c9021c !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;
}

/* 5. HỘP KÊU GỌI HÀNH ĐỘNG & CAM KẾT DỊCH VỤ CUỐI BÀI VIẾT */
.single-post .entry-content .minhkhue-cta-box,
.single-post .entry-content .shiphoa-cta-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff8f8 100%) !important;
    border: 1px solid rgba(201, 2, 28, 0.18) !important;
    border-left: 5px solid #c9021c !important;
    padding: 28px 30px !important;
    margin: 40px 0 20px 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(201, 2, 28, 0.08) !important;
}

.single-post .entry-content .minhkhue-cta-box h3,
.single-post .entry-content .shiphoa-cta-box h3 {
    color: #991b1b !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;
}

.single-post .entry-content .minhkhue-cta-box h3 i,
.single-post .entry-content .shiphoa-cta-box h3 i {
    color: #c9021c !important;
    font-size: 1.25rem !important;
}

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

/* Danh sách cam kết dịch vụ dạng hàng tinh tế */
.single-post .entry-content .minhkhue-post-list,
.single-post .entry-content .shiphoa-post-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.single-post .entry-content .minhkhue-post-list li,
.single-post .entry-content .shiphoa-post-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    line-height: 1.65 !important;
    font-size: 0.98rem !important;
    color: #374151 !important;
}

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

.single-post .entry-content .minhkhue-post-list li .icon-wrap,
.single-post .entry-content .shiphoa-post-list li .icon-wrap {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: rgba(201, 2, 28, 0.12) !important;
    color: #c9021c !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

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

.single-post .entry-content .minhkhue-post-list li .text-wrap strong,
.single-post .entry-content .shiphoa-post-list li .text-wrap strong {
    color: #0f172a !important;
}

/* Hộp Hotline & Email nổi bật */
.single-post .entry-content .minhkhue-cta-contact,
.single-post .entry-content .shiphoa-cta-contact {
    background: #ffffff !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    border: 1px solid #fee2e2 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    margin-top: 10px !important;
}

.single-post .entry-content .minhkhue-cta-contact p,
.single-post .entry-content .shiphoa-cta-contact p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #1f2937 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.single-post .entry-content .minhkhue-cta-contact a,
.single-post .entry-content .shiphoa-cta-contact a {
    color: #c9021c !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.single-post .entry-content .minhkhue-cta-contact a:hover,
.single-post .entry-content .shiphoa-cta-contact a:hover {
    color: #991b1b !important;
    text-decoration: underline !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 .minhkhue-cta-box,
    .single-post .entry-content .shiphoa-cta-box {
        padding: 20px 18px !important;
    }

    .single-post .entry-content .minhkhue-cta-contact,
    .single-post .entry-content .shiphoa-cta-contact {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}
