/**
 * Stylesheet cho Module News - Giao diện Hòa Hiệp Phát
 * Áp dụng cho: viewcat_grid.tpl, viewcat_page.tpl, detail.tpl, ...
 */

/* ==========================================================
   1. BỐ CỤC CHUNG TRANG DANH MỤC LƯỚI (VIEWCAT GRID)
   ========================================================== */
.viewcat-grid-page {
    padding: 10px 0 35px;
    font-family: inherit;
    color: var(--ink, #173c4e);
}

/* ==========================================================
   2. KHỐI MÔ TẢ CHUYÊN MỤC (CATEGORY DESCRIPTION)
   ========================================================== */
.viewcat-description-box {
    background: linear-gradient(135deg, #f0f8fb 0%, #ffffff 100%);
    border: 1px solid #ddecfa;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(6, 68, 105, 0.04);
}

.cat-desc-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cat-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(6, 68, 105, 0.1);
}

.cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-info {
    flex: 1;
}

.cat-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--green, #07893e);
    text-transform: uppercase;
    margin: 0 0 6px;
}

.cat-eyebrow:before {
    content: "▸ ";
}

.cat-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--navy, #064469);
    line-height: 1.25;
    margin: 0 0 10px;
}

.cat-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted, #5d7079);
    margin: 0;
}

/* ==========================================================
   3. BÀI VIẾT NỔI BẬT ĐẦU TIÊN (FEATURED SPOTLIGHT CARD)
   ========================================================== */
.viewcat-featured-wrap {
    margin-bottom: 32px;
}

.featured-card {
    display: grid;
    grid-template-columns: 46% 54%;
    background: #ffffff;
    border: 1px solid #e1eff5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(6, 68, 105, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(6, 68, 105, 0.14);
    border-color: #b5e0ef;
}

.featured-thumb {
    position: relative;
    overflow: hidden;
    background: #eef6f9;
    min-height: 260px;
}

.featured-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.featured-card:hover .featured-thumb img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(100deg, var(--green, #07893e) 0%, #056c35 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(7, 137, 62, 0.35);
    z-index: 2;
}

.featured-content {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 800;
    line-height: 1.35;
    margin: 8px 0 12px;
}

.featured-title a {
    color: var(--navy, #064469);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.featured-card:hover .featured-title a {
    color: var(--blue, #006b99);
}

.featured-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted, #5d7079);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eaf5f9;
    color: var(--navy, #064469) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-readmore em {
    font-style: normal;
    transition: transform 0.2s ease;
}

.featured-card:hover .btn-readmore {
    background: var(--blue, #006b99);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 153, 0.25);
}

.featured-card:hover .btn-readmore em {
    transform: translateX(3px);
}

/* ==========================================================
   4. LƯỚI BÀI VIẾT (GRID CARDS SYSTEM)
   ========================================================== */
.viewcat-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.grid-card {
    background: #ffffff;
    border: 1px solid #e3edf2;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(6, 68, 105, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(6, 68, 105, 0.12);
    border-color: #badbeb;
}

.grid-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef6f9;
}

.grid-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-card:hover .grid-card-thumb img {
    transform: scale(1.06);
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green, #07893e);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(7, 137, 62, 0.3);
    z-index: 2;
}

.grid-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* THÔNG TIN META (NGÀY ĐĂNG, LƯỢT XEM) */
.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #71838c;
    margin-bottom: 8px;
}

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

.post-meta em {
    color: var(--blue, #006b99);
}

.grid-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.grid-card-title a {
    color: var(--navy, #064469);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.grid-card:hover .grid-card-title a {
    color: var(--blue, #006b99);
}

.grid-card-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted, #5d7079);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e8f1f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-readmore-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue, #006b99) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease, gap 0.2s ease;
}

.card-readmore-link em {
    font-style: normal;
    transition: transform 0.2s ease;
}

.grid-card:hover .card-readmore-link {
    color: var(--green, #07893e) !important;
}

.grid-card:hover .card-readmore-link em {
    transform: translateX(4px);
}

.adminlink-wrap {
    font-size: 12px;
}

.adminlink-wrap a {
    color: #e04f5f;
    margin-left: 6px;
}

/* ==========================================================
   5. PHÂN TRANG (PAGINATION)
   ========================================================== */
.viewcat-pagination {
    margin: 25px 0 10px;
}

.viewcat-pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.viewcat-pagination .pagination > li > a,
.viewcat-pagination .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px !important;
    border: 1px solid #d5e6ec;
    background: #ffffff;
    color: var(--navy, #064469);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.viewcat-pagination .pagination > li > a:hover {
    background: #eaf5f9;
    border-color: var(--blue, #006b99);
    color: var(--blue, #006b99);
    transform: translateY(-2px);
}

.viewcat-pagination .pagination > .active > a,
.viewcat-pagination .pagination > .active > span,
.viewcat-pagination .pagination > .active > a:hover {
    background: linear-gradient(100deg, var(--green, #07893e) 0%, #056c35 100%) !important;
    border-color: var(--green, #07893e) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(7, 137, 62, 0.28);
}

/* ==========================================================
   6. RESPONSIVE THIẾT BỊ DI ĐỘNG & MÁY TÍNH BẢNG
   ========================================================== */
@media (max-width: 991px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-thumb {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }
    .viewcat-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cat-desc-inner {
        flex-direction: column;
        text-align: center;
    }
    .cat-thumb {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .viewcat-grid-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .featured-content {
        padding: 20px 18px;
    }
    .grid-card-body {
        padding: 16px;
    }
    .grid-card-title {
        font-size: 15px;
        min-height: auto;
    }
    .viewcat-description-box {
        padding: 18px;
        border-radius: 12px;
    }
}


/* ==========================================================
   7. TRANG CHI TIẾT BÀI VIẾT (NEWS DETAIL PAGE)
   ========================================================== */
.news-detail-page {
    padding: 10px 0 40px;
    font-family: inherit;
    color: var(--ink, #173c4e);
}

.news-detail-wrapper {
    background: #ffffff;
    border: 1px solid #e1eff5;
    border-radius: 16px;
    padding: 36px 42px;
    margin-bottom: 30px;
    box-shadow: 0 6px 24px rgba(6, 68, 105, 0.05);
}

/* Header chi tiết bài viết */
.news-detail-header {
    border-bottom: 1px solid #edf4f7;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.news-detail-title {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    color: var(--navy, #064469);
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin: 0 0 16px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--muted, #5d7079);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.meta-left .meta-item em {
    color: var(--blue, #006b99);
}

.meta-right {
    margin-left: auto;
}

.detail-action-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.detail-action-tools .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f0f7fa;
    border: 1px solid #ddecfa;
    border-radius: 999px;
    color: var(--navy, #064469) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.detail-action-tools .action-btn:hover {
    background: var(--blue, #006b99);
    border-color: var(--blue, #006b99);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 107, 153, 0.2);
}

/* Audio Player */
.news-detail-player {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f0f8fb 0%, #e6f3f7 100%);
    border: 1px solid #cfe6f0;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
}

.news-detail-player .player {
    flex: 1;
}

/* Sapo / Tóm tắt đầu bài */
.news-detail-sapo-box {
    background: linear-gradient(135deg, #f4fafc 0%, #ffffff 100%);
    border: 1px solid #ddefed;
    border-left: 4px solid var(--green, #07893e);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.sapo-content {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    color: #174251;
    margin: 0;
}

.sapo-figure {
    float: left;
    margin: 0 20px 14px 0;
}

.sapo-figure.right {
    float: right;
    margin: 0 0 14px 20px;
}

.sapo-img-wrap {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(6, 68, 105, 0.1);
}

.sapo-img-wrap img {
    border-radius: 10px;
    transition: transform 0.35s ease;
}

.sapo-figure:hover .sapo-img-wrap img {
    transform: scale(1.04);
}

.sapo-figure figcaption,
.full-figure figcaption {
    font-size: 13px;
    font-style: italic;
    color: #647a84;
    text-align: center;
    padding-top: 6px;
}

.full-figure {
    margin: 20px 0;
    text-align: center;
}

.full-figure img {
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(6, 68, 105, 0.08);
}

/* Nội dung bài viết (Body text) */
.news-bodytext {
    font-size: 16px;
    line-height: 1.8;
    color: #243944;
    word-wrap: break-word;
}

.news-bodytext p {
    margin-bottom: 20px;
}

.news-bodytext h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy, #064469);
    line-height: 1.4;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--blue, #006b99);
}

.news-bodytext h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy, #064469);
    line-height: 1.4;
    margin: 26px 0 12px;
}

.news-bodytext h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy, #064469);
    margin: 20px 0 10px;
}

.news-bodytext img {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    margin: 14px auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.news-bodytext blockquote {
    background: #f7fafb;
    border-left: 4px solid var(--green, #07893e);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-style: italic;
    color: #375360;
}

.news-bodytext ul,
.news-bodytext ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

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

.news-bodytext table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-bodytext table th,
.news-bodytext table td {
    padding: 10px 14px;
    border: 1px solid #ddecfa;
}

.news-bodytext table th {
    background: #eef7fa;
    color: var(--navy, #064469);
    font-weight: 700;
}

/* File đính kèm */
.news-files-section {
    background: #f7fafb;
    border: 1px solid #e1edf2;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 28px 0;
}

.files-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy, #064469);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.files-heading em {
    color: var(--blue, #006b99);
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.files-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5f0f5;
    border-radius: 8px;
    padding: 10px 14px;
}

.file-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.file-name-wrap em {
    color: var(--blue, #006b99);
}

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

.btn-file-preview,
.btn-file-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-file-preview {
    background: #eef6f9;
    color: var(--navy, #064469) !important;
}

.btn-file-preview:hover {
    background: #dfeef5;
}

.btn-file-download {
    background: var(--blue, #006b99);
    color: #ffffff !important;
}

.btn-file-download:hover {
    background: #005a82;
    transform: translateY(-1px);
}

/* Tác giả & Nguồn tin */
.news-author-section {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    margin: 22px 0 14px;
    font-size: 14px;
    color: #556c77;
    gap: 4px;
}

.news-author-section p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-author-section strong {
    color: var(--navy, #064469);
}

/* Bản quyền tin */
.news-copyright-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f5fafd;
    border-left: 3px solid var(--blue, #006b99);
    border-radius: 0 8px 8px 0;
    padding: 12px 18px;
    margin: 18px 0;
    font-size: 13.5px;
    color: #4f6773;
}

.news-copyright-box em {
    color: var(--blue, #006b99);
    margin-top: 2px;
}

/* Thẻ bài viết (Tags/Keywords) */
.news-tags-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px dashed #e1eff5;
}

.tags-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy, #064469);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #eef7fa;
    border: 1px solid #ddecfa;
    border-radius: 999px;
    color: var(--navy, #064469) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tag-pill:before {
    content: "#";
    color: var(--green, #07893e);
    margin-right: 3px;
}

.tag-pill:hover {
    background: var(--blue, #006b99);
    border-color: var(--blue, #006b99);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 107, 153, 0.25);
}

.tag-pill:hover:before {
    color: #ffffff;
}

/* Tương tác dưới bài: Đánh giá & Chia sẻ */
.news-bottom-interaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 0 8px;
    margin-top: 22px;
    border-top: 1px solid #edf4f7;
}

.rating-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rating-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy, #064469);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-label em {
    color: #f5a623;
}

.rating-point {
    font-weight: 800;
    color: #f5a623;
}

.rating-stars-wrap {
    display: inline-flex;
    align-items: center;
}

.star-note {
    font-size: 12px;
    color: #71838c;
    margin-left: 10px;
}

.news-social-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy, #064469);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-share-fb,
.btn-share-tw {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-share-fb {
    background: #1877f2;
}

.btn-share-tw {
    background: #1da1f2;
}

.btn-share-fb:hover,
.btn-share-tw:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.news-admin-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #e8f1f5;
}

/* Các box phần dưới: Bình luận, Bài viết liên quan */
.news-detail-section {
    background: #ffffff;
    border: 1px solid #e1eff5;
    border-radius: 16px;
    padding: 28px 34px;
    margin-bottom: 28px;
    box-shadow: 0 4px 18px rgba(6, 68, 105, 0.04);
}

.news-detail-section .section-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy, #064469);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef6f9;
}

.news-detail-section .section-title em {
    color: var(--blue, #006b99);
}

/* Khối bài viết liên quan */
.related-group {
    margin-bottom: 24px;
}

.related-group:last-child {
    margin-bottom: 0;
}

.related-group-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy, #064469);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-group-title em {
    color: var(--green, #07893e);
}

.related-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-article-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f6f8;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

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

.related-article-item:hover {
    padding-left: 6px;
}

.bullet-icon {
    color: var(--blue, #006b99);
    font-size: 13px;
    flex-shrink: 0;
}

.related-link {
    color: #173c4e;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    flex: 1;
    transition: color 0.2s ease;
}

.related-article-item:hover .related-link {
    color: var(--blue, #006b99);
}

.related-date {
    font-size: 12px;
    color: #8397a1;
    white-space: nowrap;
}

.badge-new-mini {
    background: var(--green, #07893e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
}

.related-more-wrap {
    padding-top: 10px;
}

.related-more-link {
    color: var(--blue, #006b99);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.related-more-link:hover {
    color: var(--green, #07893e);
}

/* Thông báo không có quyền */
.news-no-permission {
    background: #eef7fa;
    border: 1px solid #cde4ee;
    border-radius: 12px;
    padding: 24px;
    color: var(--navy, #064469);
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .news-detail-wrapper {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .news-detail-title {
        font-size: 22px;
    }
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .meta-right {
        margin-left: 0;
        width: 100%;
    }
    .detail-action-tools {
        width: 100%;
        justify-content: flex-start;
    }
    .sapo-figure {
        float: none;
        margin: 0 0 14px 0;
        width: 100% !important;
    }
    .news-detail-section {
        padding: 20px 18px;
        border-radius: 12px;
    }
    .news-bottom-interaction {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .related-article-item {
        flex-wrap: wrap;
    }
}
