﻿/* Tổng thể trang bài */
.ttcncuocsong-sheet {
    margin: 10px 0 0 0;
    font-family: 'VHelvetica', Roboto, Tahoma, Arial, sans-serif;
}
.article-page {
    background: #f8f9fa;
}

#article_page_detail {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
}

#article_page_detail:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 22px 56px rgba(0, 0, 0, 0.12);
}

/* Khung bài */
.article-detail {
    background: #fff;
    border-radius: 18px;
    padding: 0rem;
}

.article_page_detail_content_inner {
    margin: 0px;
    padding:0
}

.article-author-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b6f6c;
}

.article-author-meta .author-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    position: relative;
    white-space: nowrap;
}

.article-author-meta .author-item i {
    font-size: 0.95rem;
    color: #5a7c60;
}

/* divider mảnh giữa các item */
.article-author-meta .author-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    height: 14px;
    width: 1px;
    background: #d6dad7;
}

@media (max-width: 768px) {
    .article-author-meta {
        gap: 6px;
    }

    .article-author-meta .author-item {
        padding: 0 6px;
        font-size: 0.85rem;
    }

    .article-author-meta .author-item::after {
        height: 12px;
    }
}


.article-hero {  
    width: 97%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #e8ece9; /* nền trung tính */
    margin: 1rem 0.75rem 1rem
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; /* desktop */
    display: block;
    
}

@media (max-width: 576px) {
    .article-hero {
        aspect-ratio: auto;
        
    }

    .article-hero img {
        height: auto;
        object-fit: contain;
        background: #e8ece9;
        
    }
}

/* Typography đọc lâu */
.article-content {
    font-family: 'VHelvetica', Roboto, Tahoma, Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.85;
    color: #212529;
    text-align: justify
}

.article-content p {
    margin-bottom: 1.25rem;
}

/* Heading trong bài */
.article-content h2,
.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Ảnh trong nội dung */
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;        
    border-radius: 14px;
    margin: 1.5rem auto;
}

/* Meta */

.article-meta .badge.bg-success-subtle,
.article-meta .detail-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    line-height: 1.1;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    min-height: auto;
}


/* ===== TYPOGRAPHY ===== */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.75rem 0.75rem 1em 0.75rem;
    text-align: justify;
    color: #1d5c08
}

/* ≥ 1200px (Desktop lớn) */
@media (min-width: 1200px) {
    .article-title {
        font-size: 2.6rem;
    }
}

/* ≤ 991px (Tablet ngang / Laptop nhỏ) */
@media (max-width: 991.98px) {
    .article-title {
        font-size: 2.1rem;
        line-height: 1.3;
    }
}

/* ≤ 767px (Tablet dọc) */
@media (max-width: 767.98px) {
    .article-title {
        font-size: 1.75rem;
        line-height: 1.35;
    }
}

/* ≤ 575px (Mobile) */
@media (max-width: 575.98px) {
    .article-title {
        font-size: 1.45rem;
        line-height: 1.4;
    }
}


.article-meta {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.article-sapo {
    font-size: 1.2em;
    color: #444;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0.75rem 1em 1em; 
    text-align:justify
}

/* ===== CONTENT ===== */
.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #222;
    margin: 0 0.75rem 1em 1em;
}

.article-content h2 {
    color: #0d4b03;
}

.article-content h3 {
    color: #145309;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.0rem 0;
}

/* ===== SIDEBAR ===== */
.sidebar-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-thumb {
    width: 96px;
    flex-shrink: 0;
}

.sidebar-thumb img {
    object-fit: cover;
    border-radius: 10px;
}

/* ===========================
   ARTICLE BREADCRUMB
   =========================== */
.breadcrumb-path {
    list-style: none;
    margin: 1em 0 1.25rem 2em;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

    .breadcrumb-path li {
        display: inline-flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

        .breadcrumb-path li + li::before {
            content: ">";
            color: #9aa3ab;
            margin-right: .65rem;
            font-weight: 600;
        }

    .breadcrumb-path a,
    .breadcrumb-path span {
        display: inline-flex;
        align-items: center;
        color: #5f6b76;
        font-size: .95rem;
        font-weight: 600;
        text-decoration: none;
        line-height: 1.2;
    }

        .breadcrumb-path a:hover {
            color: #198754;
            text-decoration: underline;
        }

listing-kicker {
    color: #198754;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.listing-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: #063716;
}

.listing-subtitle {
    margin-top: .75rem;
    color: #6c757d;
    font-size: 1.02rem;
}

.listing-hero-card,
.listing-card,
.listing-sidebar {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
}

.listing-hero-card__media,
.listing-card__thumb {
    display: block;
    overflow: hidden;
}

    .listing-hero-card__media img,
    .listing-card__thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

    .listing-hero-card__media:hover img,
    .listing-card__thumb:hover img {
        transform: scale(1.04);
    }

.listing-hero-card__body,
.listing-card__body {
    padding: 1.25rem 1.25rem 1.4rem;
}

.listing-meta {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}

.listing-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(25,135,84,.12);
    color: #198754;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.listing-date {
    color: #6c757d;
    font-size: .9rem;
}

.listing-hero-card__title,
.listing-card__title {
    line-height: 1.25;
    margin-bottom: .7rem;
}

    .listing-hero-card__title a,
    .listing-card__title a {
        color: #111;
        text-decoration: none;
    }

        .listing-hero-card__title a:hover,
        .listing-card__title a:hover {
            color: #198754;
        }

.listing-hero-card__summary,
.listing-card__summary {
    color: #5b636a;
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

.listing-sidebar {
    padding: 1.2rem;
    position: sticky;
    top: 100px;
}

.listing-sidebar__title {
    font-weight: 800;
    color: #063716;
    margin-bottom: 1rem;
}

.listing-sidebar__item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .9rem;
    align-items: center;
    color: #111;
    text-decoration: none;
}

    .listing-sidebar__item img {
        width: 110px;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 14px;
    }

    .listing-sidebar__item:hover span {
        color: #198754;
    }

/* =========================================================
   Video embed trong nội dung bài viết
   ========================================================= */

.article-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 320px;
    border: 0;
    border-radius: 16px;
    display: block;
    margin: 1.5rem auto;
    background: #000;
}

.article-content .article-video-embed {
    width: 100%;
    margin: 1.5rem 0;
}

.article-content .article-video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border: 0;
    border-radius: 16px;
    display: block;
    background: #000;
}
