/* ============================================
   NEWS.CSS - Styling cho trang Tin tức
   ============================================ */



.inner-hot-pagePost {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

/* ===== Item News Hot 1 (Colored Background Cards) ===== */
.item-new-hot-1 {
    border-radius: 12px;
    padding: 20px 24px;
    height: 335px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-new-hot-1.ct-bg-color-1 {
    background: var(--primary-color);
}

.item-new-hot-1.ct-bg-color-2 {
    background: var(--secondary-color);
}

.item-new-hot-1 .name-new {
    font-weight: 900;
    font-size: 20px;
    line-height: 1.5;
    color: #FFFFFF;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-new-hot-1 .name-new a {
    display: block;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.item-new-hot-1 .name-new a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.item-new-hot-1 .name-new:hover a {
    color: #fff;
}

.item-new-hot-1.ct-bg-color-1 .name-new:hover {
    color: var(--secondary-color);
}

.item-new-hot-1.ct-bg-color-1 .name-new:hover a {
    color: var(--secondary-color);
}

.item-new-hot-1.ct-bg-color-2 .name-new:hover {
    color: var(--primary-color);
}

.item-new-hot-1.ct-bg-color-2 .name-new:hover a {
    color: var(--primary-color);
}

/* ===== Item News Hot 2 (Image Background Cards) ===== */
.item-new-hot-2 {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Dark overlay on hover instead of shine */
.item-new-hot-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.item-new-hot-2:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.item-new-hot-2:hover .bg-item-new {
    transform: scale(1.15);
}

.item-new-hot-2 .name-new a:hover {
    color: #eeaf0b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* ===== Shared Components ===== */
.label-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    line-height: 18px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.label-category:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}



/* ===== Override màu cho Hot Items (background màu) ===== */
.item-new-hot-1 .post-info,
.item-new-hot-2 .post-info {
    margin-top: auto;
}

.item-new-hot-1 .post-category,
.item-new-hot-2 .post-category {
    margin-bottom: 2px;
}

.item-new-hot-1 .post-meta,
.item-new-hot-2 .post-meta {
    gap: 16px;
}

.item-new-hot-1 .category-link,
.item-new-hot-2 .category-link {
    color: rgba(255, 255, 255, 0.9);
}

.item-new-hot-1 .category-link:hover,
.item-new-hot-2 .category-link:hover {
    color: #fff;
    text-decoration: underline;
}

.item-new-hot-1 .meta-item,
.item-new-hot-2 .meta-item {
    color: rgba(255, 255, 255, 0.85);
}

.item-new-hot-1 .meta-item i,
.item-new-hot-2 .meta-item i {
    color: rgba(255, 255, 255, 0.7);
}

.content-item-new {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-item-new p {
    font-size: 15px;
    line-height: 1.6;
    color: #FFFFFF;
}

.bg-item-new {
    height: 335px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    display: block;
    position: relative;
    overflow: hidden;
    transition: all .5s;
    border-radius: 5px;
    transform: scale(1);
}

.bg-item-new:before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(31, 42, 54, 0.1) 0%, #1E2834 100%);
}

.main-item-new {
    position: absolute;
    bottom: 20px;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.main-item-new .name-new a {
    display: block;
    color: #E8ECF3;
}

.main-item-new .name-new {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===== 2-Column Layout: Sidebar + Post List ===== */
.list-all-pagePost {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 60px;
}

/* ===== Sidebar Styling ===== */
.wp-cate-hotTag {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: none;
    /* Hidden as per user request */
}

/* Hot Tags */
.hot-tagList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item-hot-pagePost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffe5e5;
    border-radius: 20px;
    font-size: 14px;
    line-height: 18px;
    color: #d32f2f;
    transition: all 0.3s ease;
    border: solid 1px transparent;
}

.tag-item-hot-pagePost i {
    color: #ff5722;
    font-size: 11px;
}

.tag-item-hot-pagePost:hover {
    background: white;
    border-color: #ffbebe;
}


/* Category Block - Sticky */
.ce-category-post {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    width: 100%;
}

/* Scrollbar styling for category list */
.category-list::-webkit-scrollbar {
    width: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Categories */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 180px);
    /* Leave space for button below */
    overflow-y: auto;
    padding-right: 4px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f2f3;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #fff;
    border-color: var(--primary-color-text);
}

.category-item.active {
    background: var(--primary-color);
    display: flex !important;
}

.category-item.active .category-name,
.category-item.active .category-count {
    color: #fff !important;
}

.category-name {
    font-size: 15px;
    line-height: 22px;
    color: var(--text-dark);
    font-weight: 500;
}

.category-count {
    font-size: 14px;
    line-height: 20px;
    color: #8D999E;
    font-weight: 400;
}

.category-item:hover .category-name {
    color: var(--primary-color-text);
}

/* Hidden categories */
.hidden-category {
    display: none;
}

.category-list.expanded .hidden-category {
    display: flex;
}

/* View More Button */
.btn-view-more-categories {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 18px;
    color: var(--primary-color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
}

.btn-view-more-categories:hover {
    color: #d89925;
}

.btn-view-more-categories i {
    transition: transform 0.3s ease;
}

.btn-view-more-categories.expanded i {
    transform: rotate(180deg);
}

/* Hide Mobile Expand Button on Desktop */
.btn-expand-categories-mobile {
    display: none;
}

/* ===== Post List Grid ===== */
.wp-list-post {
    width: 100%;
}

.lst-item-post-tab {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Post Item */
.item-post-tab {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #E2E2E2;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.item-post-tab:hover {
    background: #f0f2f3;
}

.item-post-tab .picture {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

.item-post-tab .picture a {
    display: block;
    width: 100%;
    height: 100%;
}

.item-post-tab .picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.item-post-tab:hover .picture img {
    transform: scale(1.1);
}

.item-post-tab .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-post-tab .post-title {
    margin: 0;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.5;
}

.item-post-tab .post-title a {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.item-post-tab .post-title a:hover {
    text-decoration: underline;
}

.item-post-tab:hover .post-title a {
    color: var(--primary-color-text);
}

.item-post-tab .post-info .post-category {
    margin-bottom: 2px;
}

/* Sapo */
.item-post-tab .sapo {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}


/* ===== Override màu cho Post List Items (background trắng) ===== */
.item-post-tab .post-info {
    margin-top: auto;
}

.item-post-tab .category-link {
    color: #8D999E;
}

.item-post-tab .category-link:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.item-post-tab .meta-item {
    color: #8D999E;
}

.item-post-tab .meta-item i {
    color: #8D999E;
}

/* Old styles - keeping for backward compatibility if needed */
.item-post-tab .lst-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.item-post-tab .lst-category-item .name-category {
    font-size: 13px;
    line-height: 18px;
    color: #8D999E;
    font-weight: 500;
}

.item-post-tab .lst-category-item .time {
    font-size: 13px;
    line-height: 18px;
    color: #8D999E;
    position: relative;
    padding-left: 10px;
}

.item-post-tab .lst-category-item .time:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #D5D5D5;
}

.item-post-tab .lst-category-item .views {
    font-size: 13px;
    line-height: 18px;
    color: #8D999E;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding-left: 10px;
}

.item-post-tab .lst-category-item .views:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #D5D5D5;
}

.item-post-tab .lst-category-item .views i {
    font-size: 12px;
}



/* ============================================
   POST DETAIL PAGE - Trang chi tiết bài viết
   ============================================ */

/* ===== Hero Section cho Post Detail ===== */
/* Sử dụng lại cấu trúc từ trang chủ: .ce-inner-hero, .hero-content, .hero-image */
.hero-postDetail {
    padding: 40px 0 30px;
}

/* Điều chỉnh title cho post detail - màu trắng */
.hero-postDetail .hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Background caro trang trí */
.hero-postDetail .hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Logo trang trí ở góc phải dưới */
.hero-postDetail .hero-content::after {
    content: '';
    position: absolute;
    bottom: -148px;
    right: -128px;
    width: 380px;
    height: 380px;
    background-image: url('/web/img/demo/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.hero-postDetail .hero-content h1.post-detail-title {
    font-size: 36px;
    line-height: 1.6;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 2;
}

/* ===== Override màu cho Post Info trong Hero ===== */
.hero-postDetail .post-info {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.hero-postDetail .post-category {
    margin-bottom: 10px;
}

.hero-postDetail .category-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.hero-postDetail .category-link:hover {
    text-decoration: underline;
}

.hero-postDetail .meta-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.hero-postDetail .meta-item i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Điều chỉnh hero-image cho post detail - dẫn từ hero-postDetail xuống */

/* Hero Image - Match content height */
.hero-postDetail .hero-image {
    position: relative;
    /* Container stretches with grid */
}


.hero-postDetail .hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== Main Content Wrapper ===== */

.main-of-detailPost {
    display: flex;
    gap: 52px;
    margin-bottom: 60px;
}

/* ===== Table of Contents - Sticky Sidebar ===== */
.table-of-content {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Ẩn nút toggle trên desktop */
.icon-toggle-toc-mb {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #565bac;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    font-size: 16px;
}

.list-toc-show {
    display: block;
}

.ce-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ce-toc-item {
    position: relative;
}

.ce-toc-link {
    display: block;
    padding: 8px 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.ce-toc-link:hover {
    color: #da8302;
    background: #fff3e0;
}

.ce-toc-item.active .ce-toc-link {
    background: #fff3e0;
    color: #da8302;
    border-left-color: var(--secondary-color);
    font-weight: 500;
}

/* Scrollbar cho TOC */
.table-of-content::-webkit-scrollbar {
    width: 4px;
}

.table-of-content::-webkit-scrollbar-track {
    background: transparent;
}

.table-of-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.table-of-content::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* ===== Content Area ===== */
.content-of-detailPost {
    flex: 1;
}

.inner-article-detailPost {
    max-width: 900px;
    margin: auto;
}

/* Sapo - Tóm tắt bài viết */
.post-sapo {
    padding: 20px;
    background: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 32px;
}

.post-sapo p {
    font-size: 16px;
    line-height: 26px;
    color: #333;
    margin: 0;
    font-style: italic;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Typography trong content */
.inner-article-detailPost h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.inner-article-detailPost h3 {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.inner-article-detailPost h4 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.inner-article-detailPost p {
    font-size: 16px;
    line-height: 28px;
    color: #444;
    margin-bottom: 8px;
}

.inner-article-detailPost ul,
.inner-article-detailPost ol {
    margin-bottom: 12px;
    padding-left: 8px;
}

.inner-article-detailPost ul {
    list-style: none;
}

.inner-article-detailPost ul li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    line-height: 28px;
    color: #444;
    margin-bottom: 8px;
}

.inner-article-detailPost ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Custom ordered list styling */
.inner-article-detailPost ol {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
}

.inner-article-detailPost ol li {
    position: relative;
    padding-left: 36px;
    font-size: 16px;
    line-height: 28px;
    color: #444;
    margin-bottom: 8px;
    counter-increment: custom-counter;
}

.inner-article-detailPost ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #e3f2fd;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.inner-article-detailPost strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Hình ảnh trong content */
.inner-article-detailPost figure {
    margin-bottom: 16px;
    text-align: center;
}

.inner-article-detailPost .content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.inner-article-detailPost figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Highlight Box - Hộp làm nổi bật */
.inner-article-detailPost .highlight-box {
    background: #fff3e0;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.inner-article-detailPost .highlight-box h4 {
    color: var(--secondary-color);
    margin-top: 0;
}

.inner-article-detailPost .highlight-box ul {
    margin-bottom: 0;
}

/* Video Wrapper*/
.inner-article-detailPost .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.inner-article-detailPost .video-wrapper iframe {
    border-radius: 8px;
}

/* Expert Quote - Trích dẫn chuyên gia */
.inner-article-detailPost .expert-quote {
    background: #edf2f5;
    border-left: 4px solid var(--primary-color);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 8px;
    position: relative;
}

.inner-article-detailPost .expert-quote::before {
    content: '"';
    font-size: 60px;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.inner-article-detailPost .expert-quote p {
    font-size: 17px;
    line-height: 30px;
    color: #333;
    font-style: italic;
    margin: 0 0 12px 0;
    padding-left: 40px;
}

.inner-article-detailPost .expert-quote cite {
    display: block;
    font-size: 14px;
    color: #666;
    font-style: normal;
    font-weight: 600;
    text-align: right;
}

/* ===== Post Footer - Tags & Share ===== */
.post-footer {
    margin: auto;
    margin-top: 16px;
    padding: 16px 0px;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.post-tags .tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f3;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-tags .tag-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
}

/* ===== Related Posts Section ===== */
.related-post-detailPost {
    margin-top: 16px;
    max-width: 900px;
    margin: auto;
}

.related-post-detailPost .section-title {
    font-size: 24px;
    margin-top: 16px;
}




/*Responsive tin tức*/

/* Danh sách tin*/

@media (max-width: 1199px) {
    .list-all-pagePost {
        display: block;
        margin-top: 32px;
    }

    /* Category Filter - Responsive Layout (Tablet & Mobile) */
    .ce-category-post {
        max-height: none;
        position: relative;
        top: 0;
        margin-bottom: 16px;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .category-item {
        gap: 6px;
    }

    .category-name {
        font-size: 14px;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .category-count {
        font-size: 14px;
    }

    /* Hide categories with hidden-category class (unified with desktop) */
    .category-item.hidden-category {
        display: none;
    }

    /* Show all when expanded */
    .category-list.expanded .category-item.hidden-category {
        display: flex;
    }

    /* Hide desktop "Xem thêm" button on mobile/tablet */
    .btn-view-more-categories {
        display: none;
    }

    /* Mobile/Tablet Expand Button */
    .btn-expand-categories-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #fff;
        border: 1px solid var(--primary-color);
        border-radius: 8px;
        font-size: 14px;
        color: var(--primary-color);
        cursor: pointer;
    }

    /* Remove hover on touch devices */
    .btn-expand-categories-mobile:active {
        opacity: 0.8;
    }

    /* Default: Show expand text, hide collapse text */
    .btn-expand-categories-mobile .text-collapse {
        display: none;
    }

    /* When expanded: Hide expand text, show collapse text */
    .btn-expand-categories-mobile.expanded .text-expand {
        display: none;
    }

    .btn-expand-categories-mobile.expanded .text-collapse {
        display: inline;
    }
}

@media (max-width: 575px) {

    .news-hot-grid-pagePost {
        width: 100%;
        overflow-x: auto;
    }

    .inner-hot-pagePost {
        margin-top: 16px;
    }

    .lst-item-post-tab {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pagination-wrapper {
        margin-top: 32px;
    }

    .item-new-hot-1,
    .item-new-hot-2 {
        height: auto;
        width: 300px;
    }

    .bg-item-new {
        min-height: 200px;
        height: 100%;
    }

    .item-new-hot-1 .name-new,
    .main-item-new .name-new {
        font-size: 18px;
    }

    .item-new-hot-1 .post-info {
        margin-top: 12px;
    }

    .content-item-new {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .item-post-tab {
        padding: 10px;
        gap: 10px;
    }

    .item-post-tab .picture {
        width: 108px;
        height: 108px;
    }

    .item-post-tab .sapo {
        display: none;
    }

    .item-post-tab .post-title {
        font-size: 16px;
    }

    .item-post-tab .post-title a {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .item-post-tab .content {
        gap: 0;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .news-hot-grid-pagePost {
        width: 100%;
        overflow-x: auto;
    }

    .inner-hot-pagePost {
        margin-top: 16px;
    }

    .item-new-hot-1,
    .item-new-hot-2 {
        height: auto;
        width: 300px;
    }

    .bg-item-new {
        height: 300px;
    }

    .lst-item-post-tab {
        gap: 12px;
    }

    .item-post-tab .picture {
        width: 90px;
        height: 112px;
    }

    .item-post-tab .sapo {
        display: none;
    }

    .item-post-tab .post-title {
        font-size: 16px;
    }

    .item-post-tab .post-title a {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .item-post-tab .content {
        gap: 0;
    }

    .item-post-tab {
        padding: 8px;
        gap: 12px;
    }

    .pagination-wrapper {
        margin-top: 32px;
    }


}

@media (min-width: 768px) and (max-width: 991px) {
    .item-post-tab .picture {
        width: 112px;
        height: 112px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .item-new-hot-1 {
        padding: 16px;
    }

    .main-item-new {
        padding: 0px 16px;
    }

    .content-item-new {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .item-new-hot-1,
    .bg-item-new {
        height: 260px;
    }

    .item-post-tab .picture {
        height: 168px;
    }

}


@media (min-width: 1200px) and (max-width: 1499px) {
    .item-new-hot-1 {
        padding: 20px 20px;
    }

    .content-item-new {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .item-new-hot-1,
    .bg-item-new {
        height: 300px;
    }

    .list-all-pagePost {
        margin-top: 40px;
        gap: 24px;
    }

    .lst-item-post-tab {
        gap: 16px;
    }

    .item-post-tab {
        gap: 12px;
        padding: 10px;
    }

    .item-post-tab .picture {
        width: 128px;
        height: 142px;
    }

    .item-post-tab .content {
        gap: 6px;
    }

    .pagination-wrapper {
        margin-top: 32px;
    }

    .item-post-tab .sapo {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .item-post-tab .post-title {
        font-size: 16px;
    }

}

/* End Danh sách tin*/

/* Chi tiết bài tin*/

/* End Chi tiết bài tin*/
@media(max-width: 575px) {
    .hero-postDetail .hero-content h1.post-detail-title {
        font-size: 24px;
    }

    .hero-postDetail .post-meta {
        justify-content: center;
    }

    .hero-postDetail .post-info {
        padding-top: 8px;
        border-top: dashed 1px #465b84;
    }

    .hero-postDetail .hero-content::after {
        bottom: -99px;
        right: -101px;
        width: 246px;
        height: 258px;
    }

    .hero-postDetail {
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .post-tags .tag-item {
        padding: 4px 12px;
    }

    .post-footer {
        gap: 12px;
    }

    .post-tags {
        gap: 8px;
    }

    .main-of-detailPost {
        gap: 32px;
    }

    .content-of-detailPost {
        margin-top: 20px;
    }

    .inner-article-detailPost h2 {
        font-size: 24px;
    }

    .inner-article-detailPost h3 {
        font-size: 20px;
    }

    .inner-article-detailPost p {
        font-size: 15px;
    }
}

@media(max-width: 1199px) {
    .main-of-detailPost {
        flex-direction: column;
    }

    /* Floating TOC Toggle Design */
    .table-of-content {
        top: 80px;
        z-index: 1000;
        width: 0;
        height: 0;
        margin-bottom: 0;
        overflow: visible;
        max-height: none;
    }

    .icon-toggle-toc-mb {
        display: flex;
    }

    .icon-toggle-toc-mb:active {
        transform: scale(0.95);
    }

    .icon-toggle-toc-mb.active {
        background: var(--secondary-color);
        opacity: 0.9;
    }

    .list-toc-show {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 280px;
        max-height: 60vh;
        overflow-y: auto;
        background: #fff;
        border: 1px solid #E2E2E2;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 12px;
        z-index: 1001;
    }

    .list-toc-show.active {
        display: block;
        animation: slideDownFade 0.3s ease-out;
    }

    @keyframes slideDownFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .ce-toc-list {
        gap: 2px;
    }
}

@media(min-width: 576px) and (max-width: 767px) {
    .post-tags .tag-item {
        padding: 4px 12px;
    }

    .post-footer {
        gap: 12px;
    }

    .post-tags {
        gap: 8px;
    }

    .hero-postDetail {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-postDetail .hero-content h1.post-detail-title {
        font-size: 28px;
    }

    .hero-postDetail .post-meta {
        justify-content: center;
    }

    .hero-postDetail .post-info {
        padding-top: 8px;
        border-top: dashed 1px #465b84;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hero-postDetail .post-category {
        margin-bottom: 0;
    }

    .hero-postDetail .hero-content::after {
        bottom: -99px;
        right: -101px;
        width: 246px;
        height: 258px;
    }

    .main-of-detailPost {
        gap: 32px;
    }

    .content-of-detailPost {
        margin-top: 20px;
    }

    .inner-article-detailPost h2 {
        font-size: 24px;
    }

    .inner-article-detailPost h3 {
        font-size: 20px;
    }



}


@media(min-width: 768px) and (max-width: 991px) {
    .hero-postDetail {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-postDetail .hero-content::after {
        bottom: -99px;
        right: -101px;
        width: 246px;
        height: 258px;
    }

    .hero-postDetail .hero-content h1.post-detail-title {
        font-size: 30px;
    }

    .ce-inner-hero {
        min-height: 300px;
    }

    .inner-article-detailPost,
    .post-footer {
        max-width: 630px;

    }


    .main-of-detailPost {
        gap: 0;

    }

    .post-tags .tag-item {
        padding: 4px 12px;
    }

    .post-tags {
        gap: 8px;
    }

    .inner-article-detailPost h2 {
        font-size: 26px;
    }

    .inner-article-detailPost h3 {
        font-size: 22px;
    }




}


@media(min-width: 992px) and (max-width: 1199px) {
    .hero-postDetail {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .ce-inner-hero {
        min-height: 340px;
    }

    .inner-article-detailPost,
    .post-footer {
        max-width: 700px;
    }

    .hero-postDetail .hero-content::after {
        bottom: -148px;
        right: -87px;
        width: 270px;
        height: 330px;
    }

    .main-of-detailPost {
        gap: 0;
    }

    .hero-postDetail .hero-content h1.post-detail-title {
        font-size: 32px;
    }

    .post-tags .tag-item {
        padding: 4px 12px;
    }

    .post-tags {
        gap: 8px;
    }




}


@media(min-width: 1200px) and (max-width: 1499px) {
    .hero-postDetail {
        padding-bottom: 20px;
    }

    .main-of-detailPost {
        gap: 32px;
    }

    .inner-article-detailPost,
    .post-footer {
        max-width: 800px;
    }

    .table-of-content {
        width: 240px;
    }


}

@media(min-width: 1500px) and (max-width: 1900px) {
    .inner-article-detailPost {
        margin: 0;
        max-width: none;
    }

    .main-of-detailPost {
        max-width: 850px;
        margin: auto;
        gap: 36px;
        margin-bottom: 50px;
    }

    .table-of-content {
        margin-left: -210px;
        width: 210px;
    }

    .related-post-detailPost .lst-item-post-tab {
        gap: 16px;
    }

    .related-post-detailPost .item-post-tab .sapo {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .related-post-detailPost .item-post-tab {
        padding: 12px;
    }

    .related-post-detailPost .item-post-tab .picture {
        width: 144px;
        height: 144px;
    }


}


@media(min-width: 1901px) {
    .inner-article-detailPost {
        margin: 0;
        max-width: none;
    }

    .main-of-detailPost {
        max-width: 1000px;
        margin: auto;
        gap: 36px;
        margin-bottom: 50px;
    }

    .table-of-content {
        margin-left: -230px;
        width: 210px;
    }

    .post-footer,
    .related-post-detailPost {
        max-width: none;
    }

    .related-post-detailPost .item-post-tab .content {
        gap: 4px;
    }
}

/*End Responsive tin tức*/

/* =========================================
   NEWS LIST PAGE — migrated from pages/tin-tuc/index.vue <style scoped>
   Scope: .news-page
   ========================================= */

/* Core 3-column layout */
.news-page .news-hot-grid-pagePost.mb-5 {
    margin-bottom: 40px;
}

.news-page .page-layout-3col {
    display: flex;
    gap: 30px;
}

/* Left column */
.news-page .page-layout-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Main content column */
.news-page .page-layout-main {
    flex: 1;
    min-width: 0;
}

/* Right column */
.news-page .page-layout-right {
    width: 300px;
    flex-shrink: 0;
}

/* Sticky sidebar helper */
.news-page .sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Spacing between blocks in the left sidebar */
.news-page .left-sidebar-gap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Spacing between blocks in the right sidebar */
.news-page .right-sidebar-gap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Prevent banner images from overflowing */
.news-page .banner-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* News categories */
.news-page .category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-page .category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    text-decoration: none;
}

.news-page .category-item .category-name {
    display: flex;
    align-items: center;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.news-page .category-count {
    color: #64748b;
    font-size: 12px;
}

.news-page .category-item:hover {
    background: #f1f5f9;
}

.news-page .category-item.active {
    background: #EFF6FF !important;
}

.news-page .category-item.active .category-name,
.news-page .category-item.active .category-count {
    color: #0F67BF !important;
    font-weight: 700 !important;
}

.news-page .category-name i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #64748b;
    flex-shrink: 0;
}

.news-page .category-item.active .category-name i {
    color: #0F67BF !important;
}

.news-page .btn-toggle-categories {
    width: 100%;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    transition: all 0.2s;
}

.news-page .btn-toggle-categories:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Hot tags */
.news-page .hot-tagList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-page .tag-item-hot-pagePost {
    background-color: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.news-page .tag-item-hot-pagePost:hover {
    background-color: #0F67BF;
    color: #ffffff;
}

.news-page .tag-item-hot-pagePost i {
    color: #ef4444;
    margin-right: 4px;
}

.news-page .tag-item-hot-pagePost:hover i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1199px) {
    .news-page .page-layout-right {
        display: none;
    }
}

@media (max-width: 991px) {
    .news-page .page-layout-3col {
        flex-direction: column;
        gap: 20px;
    }

    .news-page .page-layout-sidebar {
        width: 100%;
    }

    .news-page .sticky-sidebar {
        position: relative;
        top: 0;
    }

    .news-page .category-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 6px;
        padding-bottom: 4px;
    }

    .news-page .category-list::-webkit-scrollbar {
        display: none;
    }

    .news-page .category-item {
        width: auto;
        flex-shrink: 0;
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
    }

    .news-page .category-item.active {
        border-color: #0F67BF;
    }

    .news-page .btn-toggle-categories {
        display: none;
    }
}
/* End migrated component styles */

/* =========================================
   NEWS SIDEBAR STICKY FIX — VERSION 2
   Keep the category menu and hot tags in ONE sticky wrapper.
   Do not make .ce-category-post sticky separately.
   ========================================= */

/* The sidebar must be allowed to size itself to its content for sticky to work. */
.news-page .page-layout-sidebar {
    align-self: flex-start;
    min-width: 0;
}

/* Desktop: only the outer wrapper is sticky. */
@media (min-width: 992px) {
    .news-page .sticky-sidebar.left-sidebar-gap {
        position: sticky !important;
        top: 100px !important;
        align-self: flex-start;
        height: auto;

        display: flex;
        flex-direction: column;
        gap: 16px;

        /* Important: do not create a nested scroll container here. */
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    /* Prevent the category menu from becoming a second independent sticky block. */
    .news-page .ce-category-post {
        position: static !important;
        top: auto !important;
        align-self: auto;
        width: 100%;
    }

    /* Both category list and tags remain in the same normal-flow sticky wrapper. */
    .news-page .category-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
        flex-shrink: 0;
    }

    .news-page .hot-tagList {
        position: static;
        flex-shrink: 0;
        margin: 0;
        padding: 0 0 4px;
    }
}

/* Tablet/mobile: sidebar returns to normal page flow. */
@media (max-width: 991px) {
    .news-page .sticky-sidebar.left-sidebar-gap {
        position: static !important;
        top: auto !important;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .news-page .ce-category-post {
        position: static !important;
    }
}
