/* ==========================================================================
   RƯỢU CỬU LONG - TRANG CHI TIẾT BÀI VIẾT (BÀI VIẾT HOÀN CHỈNH)
   Tuân thủ 100% Quy chuẩn CLV:
   - Typography BT Danta duy nhất ('BT Danta', 'BT Danta VF', sans-serif)
   - Tiêu đề H1: clamp(1.85rem, 2.7vw, 2.85rem), font-weight: 700, #163d3d
   - Đoạn văn body text: 16px, line-height 1.7, font-weight 400, #163d3d
   - Bố cục báo chí cao cấp: Breadcrumb, Header Meta, Hero Image, Sapo Box,
     Nội dung chi tiết, Mục lục & Sidebar sticky, Điều hướng bài trước/sau,
     Khối biên tập Somo Gold, 3 bài viết liên quan theo mẫu card 7.png
   ========================================================================== */

/* --- 1. BASE CONTAINER & BREADCRUMB --- */
.article-page-wrap {
    padding-top: 120px;
    padding-bottom: 70px;
    position: relative;
    z-index: 2;
}

.article-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    box-sizing: border-box;
}

/* Breadcrumb Bar */
.article-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(22, 61, 61, 0.12);
}

.article-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14.5px;
    color: #163d3d;
}

.article-breadcrumb-nav a {
    color: #163d3d;
    text-decoration: none;
    opacity: 0.8;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.article-breadcrumb-nav a:hover {
    color: #c59b27;
    opacity: 1;
}

.article-breadcrumb-nav .sep {
    opacity: 0.45;
    font-size: 11px;
}

.article-breadcrumb-nav .current-crumb {
    color: #c59b27;
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(22, 61, 61, 0.25);
    background: rgba(253, 251, 249, 0.85);
    color: #163d3d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-back-btn:hover {
    background: #163d3d;
    color: #ffffff;
    border-color: #163d3d;
    transform: translateX(-3px);
}

.article-back-btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.article-back-btn:hover i {
    transform: translateX(-3px);
}

/* --- 2. ARTICLE HEADER SECTION --- */
.article-header-lockup {
    margin-bottom: 32px;
}

.article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(197, 155, 39, 0.12);
    border: 1px solid rgba(197, 155, 39, 0.35);
    color: #c59b27;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-cat-badge i {
    font-size: 12px;
}

/* Tiêu đề chuẩn Quy chuẩn CLV: clamp(1.85rem, 2.7vw, 2.85rem), trần 45.6px, font-weight 700 */
.article-main-heading {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    line-height: 1.35;
    color: #163d3d;
    margin: 0 0 20px 0;
    letter-spacing: -0.2px;
}

/* Meta Bar */
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(22, 61, 61, 0.04);
}

.article-meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 24px);
    font-size: 14px;
    color: #163d3d;
}

.article-meta-info .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    opacity: 0.88;
}

.article-meta-info .meta-item i {
    color: #c59b27;
    font-size: 14px;
}

.article-share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #163d3d;
    opacity: 0.8;
    margin-right: 4px;
}

.share-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(22, 61, 61, 0.15);
    background: #fdfbf9;
    color: #163d3d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.share-icon-btn:hover {
    background: #163d3d;
    color: #ffffff;
    border-color: #163d3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 61, 61, 0.15);
}

.share-icon-btn.btn-copy-link:hover {
    background: #c59b27;
    border-color: #c59b27;
}

/* Toast Thông báo copy link */
.clv-toast-notify {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #163d3d;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    border-left: 4px solid #c59b27;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clv-toast-notify.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 3. ARTICLE HERO IMAGE --- */
.article-featured-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid rgba(197, 155, 39, 0.3);
    box-shadow: 0 12px 35px rgba(22, 61, 61, 0.08);
    background-color: #e4ded7;
}

.article-featured-img-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.article-img-caption {
    padding: 10px 20px;
    background: rgba(240, 236, 233, 0.95);
    font-size: 13.5px;
    color: #163d3d;
    opacity: 0.85;
    font-style: italic;
    border-top: 1px solid rgba(197, 155, 39, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-img-caption i {
    color: #c59b27;
}

/* --- 4. MAIN LAYOUT: ARTICLE BODY + SIDEBAR --- */
.article-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(28px, 3.5vw, 54px);
    align-items: start;
}

/* Left: Article Main Body */
.article-content-card {
    background: #fdfbf9;
    border: 1px solid rgba(197, 155, 39, 0.25);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 8px 30px rgba(22, 61, 61, 0.05);
}

/* Sapo / Đoạn trích dẫn mở đầu */
.article-sapo-box {
    background: rgba(197, 155, 39, 0.06);
    border-left: 4px solid #c59b27;
    border-radius: 0 12px 12px 0;
    padding: 20px 26px;
    margin-bottom: 32px;
    font-size: 17.5px;
    line-height: 1.75;
    font-weight: 500;
    color: #163d3d;
    font-style: italic;
}

/* Nội dung bài viết chi tiết - Tuân thủ Quy chuẩn CLV Rule 1 & Rule 4 */
.article-rich-body {
    color: #163d3d;
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.article-rich-body p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 22px;
    color: #163d3d;
    font-weight: 400;
}

.article-rich-body h2 {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 500; /* Chuẩn CLV Rule 4.3 */
    color: #163d3d;
    margin: 36px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 155, 39, 0.25);
    letter-spacing: 0.2px;
}

.article-rich-body h3 {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    font-weight: 700; /* Chuẩn CLV Rule 4.3 */
    color: #163d3d;
    margin: 28px 0 14px 0;
}

.article-rich-body blockquote {
    position: relative;
    margin: 30px 0;
    padding: 22px 30px 22px 36px;
    background: rgba(22, 61, 61, 0.04);
    border-left: 4px solid #c59b27;
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    line-height: 1.75;
    font-style: italic;
    color: #163d3d;
}

.article-rich-body blockquote::before {
    content: "“";
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 40px;
    line-height: 1;
    color: #c59b27;
    font-family: Georgia, serif;
    opacity: 0.6;
}

.article-rich-body ul, 
.article-rich-body ol {
    margin: 20px 0 26px 0;
    padding-left: 24px;
}

.article-rich-body li {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 12px;
    color: #163d3d;
}

.article-rich-body strong {
    font-weight: 700;
    color: #163d3d;
}

.article-rich-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0 10px 0;
    border: 1px solid rgba(197, 155, 39, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Thẻ từ khóa (Tags) */
.article-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0;
    margin-top: 36px;
    border-top: 1px solid rgba(22, 61, 61, 0.12);
    border-bottom: 1px solid rgba(22, 61, 61, 0.12);
}

.article-tags-row .tag-label {
    font-size: 14px;
    font-weight: 600;
    color: #163d3d;
    margin-right: 4px;
}

.article-tag-item {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(22, 61, 61, 0.06);
    border: 1px solid rgba(22, 61, 61, 0.12);
    color: #163d3d;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-tag-item:hover {
    background: #163d3d;
    color: #ffffff;
    border-color: #163d3d;
    transform: translateY(-1px);
}

/* Tác giả & Ban biên tập Somo Gold */
.article-editorial-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin: 32px 0;
    background: rgba(240, 236, 233, 0.65);
    border: 1px solid rgba(197, 155, 39, 0.25);
    border-radius: 14px;
}

.editorial-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22, 61, 61, 0.08);
}

.editorial-avatar-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.editorial-info-wrap {
    flex-grow: 1;
}

.editorial-author-name {
    font-size: 16.5px;
    font-weight: 700;
    color: #163d3d;
    margin-bottom: 4px;
}

.editorial-author-role {
    font-size: 13.5px;
    color: #c59b27;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editorial-author-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #163d3d;
    opacity: 0.85;
    margin: 0;
}

/* Bài trước & Bài tiếp theo */
.article-nav-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.pager-nav-card {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.25);
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(22, 61, 61, 0.04);
}

.pager-nav-card:hover {
    border-color: #c59b27;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(197, 155, 39, 0.15);
}

.pager-nav-card.pager-prev {
    text-align: left;
}

.pager-nav-card.pager-next {
    text-align: right;
}

.pager-nav-direction {
    font-size: 12.5px;
    font-weight: 600;
    color: #c59b27;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pager-next .pager-nav-direction {
    justify-content: flex-end;
}

.pager-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #163d3d;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 5. SIDEBAR WIDGETS --- */
.article-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: #fdfbf9;
    border: 1px solid rgba(197, 155, 39, 0.25);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(22, 61, 61, 0.04);
}

.widget-title {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #163d3d;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(197, 155, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px;
}

.widget-title i {
    color: #c59b27;
    font-size: 16px;
}

/* Widget: Sản phẩm nổi bật */
.widget-product-featured {
    text-align: center;
}

.widget-prod-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.widget-prod-img-wrap img {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.widget-product-featured:hover .widget-prod-img-wrap img {
    transform: scale(1.05) translateY(-4px);
}

.widget-prod-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: #c59b27;
    background: rgba(197, 155, 39, 0.12);
    border: 1px solid rgba(197, 155, 39, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.widget-prod-title {
    font-size: 18px;
    font-weight: 700;
    color: #163d3d;
    margin: 0 0 6px 0;
}

.widget-prod-spec {
    font-size: 13.5px;
    color: #163d3d;
    opacity: 0.8;
    margin-bottom: 16px;
}

.widget-prod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #163d3d;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(22, 61, 61, 0.15);
}

.widget-prod-btn:hover {
    background: #c59b27;
    box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35);
    transform: translateY(-2px);
}

/* Widget: Bài viết mới nhất */
.sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(22, 61, 61, 0.12);
    transition: transform 0.25s ease;
}

.sidebar-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent-item:hover {
    transform: translateX(4px);
}

.sidebar-recent-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(197, 155, 39, 0.2);
    background: #e4ded7;
}

.sidebar-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-recent-info {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-recent-date {
    font-size: 12px;
    color: #c59b27;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: #163d3d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.25s ease;
}

.sidebar-recent-item:hover .sidebar-recent-title {
    color: #c59b27;
}

/* Widget: Liên hệ & Đặt bàn trải nghiệm */
.widget-experience-callout {
    background: linear-gradient(135deg, rgba(22, 61, 61, 0.95), rgba(10, 36, 36, 0.98)), url('../images/experience/trai-nghiem-main.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    padding: 28px 24px;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(197, 155, 39, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.widget-exp-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: #c59b27;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.widget-exp-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.widget-exp-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.widget-exp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 999px;
    background: #c59b27;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-exp-btn:hover {
    background: #d4a733;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4);
}

/* --- 6. RELATED ARTICLES SECTION (BÀI VIẾT LIÊN QUAN) --- */
.related-articles-section {
    margin-top: 75px;
    padding-top: 60px;
    border-top: 1px solid rgba(197, 155, 39, 0.25);
}

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

.related-section-sub {
    font-size: 13px;
    font-weight: 600;
    color: #c59b27;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.related-section-title {
    font-family: 'BT Danta', 'BT Danta VF', sans-serif;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    font-weight: 700;
    color: #163d3d;
    margin: 0;
    letter-spacing: 0.5px;
}

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

/* --- 7. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
    .article-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .widget-product-featured {
        grid-column: 1;
    }

    .widget-experience-callout {
        grid-column: 2;
    }

    .sidebar-widget:nth-child(2) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .article-page-wrap {
        padding-top: 95px;
        padding-bottom: 50px;
    }

    .article-breadcrumb-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-back-btn {
        width: 100%;
        justify-content: center;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .article-share-actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 10px;
        border-top: 1px dashed rgba(22, 61, 61, 0.12);
    }

    .article-content-card {
        padding: 22px 18px;
    }

    .article-sapo-box {
        font-size: 16px;
        padding: 16px 20px;
    }

    .article-nav-pager {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pager-nav-card.pager-next {
        text-align: left;
    }

    .pager-next .pager-nav-direction {
        justify-content: flex-start;
    }

    .article-editorial-box {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .widget-product-featured,
    .widget-experience-callout,
    .sidebar-widget:nth-child(2) {
        grid-column: auto;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
