/* ==========================================================================
   NEWS COMPONENT: ARTICLE DETAIL
   Editorial Layout, Typography, Cover Image, and Realistic Sidebar Widgets
   ========================================================================== */

.news-page.news-detail-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 28px 0 60px;
    font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.news-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

@media (max-width: 767px) {
    .news-shell {
        width: calc(100% - 20px);
    }
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 24px;
}

.news-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.news-breadcrumb a:hover {
    color: #0062ff;
}

.news-breadcrumb .sep {
    font-size: 10px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
}

.news-breadcrumb .current {
    color: #0f172a;
    font-weight: 700;
}

/* ===================================================
   LAYOUT: 2-COLUMN (ARTICLE + SIDEBAR)
   =================================================== */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .news-detail-layout {
        grid-template-columns: 1fr 340px;
        gap: 32px;
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .news-detail-layout {
        grid-template-columns: 1fr 360px;
        gap: 36px;
    }
}

/* ===================================================
   MAIN ARTICLE CARD
   =================================================== */
.news-detail-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

@media (min-width: 768px) {
    .news-detail-main {
        padding: 36px 36px 44px;
    }
}

/* Header & Meta */
.news-category-badge {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #0062ff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-detail-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}

@media (min-width: 768px) {
    .news-detail-title {
        font-size: 30px;
    }
}

.news-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta-item i {
    color: #94a3b8;
    font-size: 12px;
}

.news-meta-sep {
    color: #cbd5e1;
    font-weight: bold;
}

/* Sapo / Lead Summary */
.news-detail-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: #334155;
    font-weight: 600;
    padding: 14px 18px;
    background: #f8fafc;
    border-left: 4px solid #0062ff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 26px;
}

/* Cover Image */
.news-detail-cover {
    margin: 0 0 28px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
    max-height: 480px;
}

.news-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Article Body Typography (Editorial Standard) */
.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.38;
}

.news-detail-body h2 {
    font-size: 21px;
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 3.5px solid #0062ff;
}

.news-detail-body h3 {
    font-size: 17.5px;
    margin: 24px 0 12px;
}

.news-detail-body p {
    margin: 0 0 18px;
}

.news-detail-body strong {
    color: #0f172a;
    font-weight: 700;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.news-detail-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #eff6ff;
    border-left: 4px solid #0062ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1e40af;
    font-size: 15.5px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 0 0 20px 24px;
    padding: 0;
}

.news-detail-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Article Footer: Back & Share */
.news-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0062ff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-back-link:hover {
    gap: 12px;
    color: #004ecc;
}

.news-share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.news-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.news-share-btn.fb:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.news-share-btn.copy:hover {
    background: #0062ff;
    color: #ffffff;
    border-color: #0062ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 98, 255, 0.3);
}

/* ===================================================
   SIDEBAR WIDGETS (Clean Retail Editorial Style)
   ================================================== */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .news-detail-sidebar {
        position: sticky;
        top: 96px;
    }
}

.news-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

/* Consultation Widget */
.news-consult-widget {
    background: #ffffff;
    border: 1px solid #dbeafe;
    position: relative;
    overflow: hidden;
}

.news-consult-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #0062ff, #38bdf8);
}

.consult-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.consult-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #0062ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.consult-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: #0062ff;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.consult-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 2px 0 0;
    line-height: 1.3;
}

.consult-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 16px;
}

.consult-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.consult-btn.call {
    background: #0062ff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 98, 255, 0.25);
}

.consult-btn.call:hover {
    background: #004ecc;
    transform: translateY(-1px);
}

.consult-btn.zalo {
    background: #eff6ff;
    color: #0062ff;
    border: 1px solid #bfdbfe;
}

.consult-btn.zalo:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Related Ranked Articles Widget */
.related-widget-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.related-widget-title i {
    color: #ef4444;
    font-size: 14px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
    transition: transform 0.15s ease;
}

.related-article-item:last-child {
    border-bottom: none;
}

.related-rank {
    font-size: 15px;
    font-weight: 900;
    color: #cbd5e1;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.related-article-item:nth-child(1) .related-rank { color: #ef4444; }
.related-article-item:nth-child(2) .related-rank { color: #f59e0b; }
.related-article-item:nth-child(3) .related-rank { color: #0062ff; }

.related-thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-item:hover .related-thumb img {
    transform: scale(1.08);
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-info h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.related-article-item:hover .related-info h4 {
    color: #0062ff;
}

.related-info time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 767px) {
    .news-page.news-detail-page {
        padding-top: 14px;
        padding-bottom: calc(70px + var(--sab, 0px));
    }
    .news-article-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
}
