:root {
    --gold: #e0a242;
    --gold-light: #f0b855;
    --gold-dark: #c4882a;
    --gold-glow: rgba(224, 162, 66, 0.15);
    --gold-border: rgba(224, 162, 66, 0.4);
    --white: #ffffff;
    --bg-black: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-sidebar: #0e0e0e;
    --text-primary: #f0ede8;
    --text-secondary: #9a9590;
    --text-muted: rgba(255, 255, 255, .7);
    --text-light: #c4c4c4;
    --border: rgba(255, 255, 255, 0.2);
    --border-mid: rgba(255, 255, 255, 0.3);
    --border-gold: rgba(224, 162, 66, 0.3);
    --radius: 4px;
    --radius-lg: 10px;
    --shadow-gold: 0 0 30px rgba(224, 162, 66, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb-wrap {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    /* margin-top: 65px; */
}

.breadcrumb-inner {
    /* display: flex; */
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.breadcrumb-inner a {
    transition: var(--transition);
}

.breadcrumb-inner a:hover {
    color: var(--gold);
}

.breadcrumb-inner .sep {
    font-size: .6rem;
    /* color: var(--text-muted); */
}

.breadcrumb-inner .current {
    color: var(--gold);
    font-weight: 600;
}



/* Content cho editor  */
.noi-dung,
.noi-dung-1 {
    font-size: 16px;
}

.noi-dung p,
.noi-dung-1 p {
    margin-bottom: 10px;
    text-align: justify;
    line-height: 1.5;
    font-size: 16px;
}

.noi-dung h2,
.noi-dung-1 h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.noi-dung h3,
.noi-dung-1 h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.noi-dung hr,
.noi-dung-1 hr {
    margin: 15px 0;
}

.noi-dung-1 table {
    margin-bottom: 10px;
    max-width: 100%;
    border-collapse: collapse;
    width: 100%;
}

.noi-dung table td img {
    border-radius: 20px;
}

.noi-dung table td {
    width: 50%;
}

.noi-dung blockquote,
.noi-dung-1 blockquote {
    border-left: 5px solid var(--color-secondary);
    padding: 8px 15px;
    background: #161b28;
    border-radius: 10px;
    margin-bottom: 15px;
}

.noi-dung blockquote h3,
.noi-dung blockquote h2,
.noi-dung blockquote p {
    margin-bottom: 0;
}

.noi-dung-1 blockquote h3,
.noi-dung-1 blockquote h2,
.noi-dung-1 blockquote p {
    margin-bottom: 0;
}

.noi-dung ul,
.noi-dung ol {
    margin-left: 30px;
    margin-bottom: 10px;
}

.noi-dung-1 ul,
.noi-dung-1 ol {
    margin-left: 30px;
    margin-bottom: 10px;
}

.noi-dung ul li,
.noi-dung ol li {
    margin-bottom: 5px;
}

.noi-dung-1 ul li,
.noi-dung-1 ol li {
    margin-bottom: 5px;
}

.noi-dung table tr td,
.noi-dung-1 table tr td {
    padding: 10px;
}

.noi-dung-1 table tr th {
    padding: 10px;
}

.noi-dung table {
    margin: 0 -10px 10px;
}

.image-caption {
    margin-bottom: 10px;
}

/* end  */


/* ========================================
   EMPTY STATE (no posts)
======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-mid);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: .85rem;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-glow);
}

.page-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.page-btn.disabled {
    opacity: .3;
    pointer-events: none;
}

.page-btn.wide {
    width: auto;
    padding: 0 14px;
}

/* pagination  */
/* .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-top: 30px;
    gap: 6px;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #FFF;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    background: #7b5734;
    color: #fff;
    border-color: #7b5734;
}

.pagination .page-item.active .page-link {
    background: #7b5734;
    color: #fff;
    border-color: #7b5734;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    color: #aaa;
    border-color: #ddd;
    pointer-events: none;
} */

@media (max-width: 1100px) {
    .noi-dung table tr td {
        width: 50%;
    }

    .noi-dung img,
    .noi-dung-1 img {
        max-width: 100%;
        height: auto !important;
    }
}

@media (max-width: 992px) {
    .noi-dung table tr td {
        width: 100% !important;
        display: block;
    }
}

@media (max-width: 768px) {
    .pagination .page-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .noi-dung table tr td,
    .noi-dung-1 table tr td {
        word-break: break-word;
    }
}

/* ========================================
   SHARED / REUSABLE COMPONENTS
======================================== */

.page-wrapper {

    padding: 30px 0;
}

/* --- POST CARD (GRID & LIST VIEW) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.posts-grid.list-view {
    grid-template-columns: 1fr;
}

a.post-card {
    /* Gradient border: left=vàng, phải=mờ dần */
    /* background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(to right,
            rgba(224, 162, 66, 0.35) 0%,
            rgba(224, 162, 66, 0.12) 50%,
            transparent 100%) border-box; */
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(to right, #513100 0%, rgba(224, 162, 66, 0.45) 0%, #0c0c0cc7 100%) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition), background 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

/* .post-card:hover {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(to right, #513100 0%, rgba(224, 162, 66, 0.45) 0%, #0c0c0cc7 100%) border-box;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(224, 162, 66, .08);
} */

.post-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: #1a1a1a;
}

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

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

/* .article-body-wrap .article-body-scope */
.post-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(10, 10, 10, .82);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 2px;
    backdrop-filter: blur(6px);
    line-height: 1;
}

.post-card-cat .cat-thumb {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.post-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover .post-card-title {
    color: var(--gold);
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-card-meta-item i {
    color: var(--gold-dark);
    font-size: .68rem;
}

.post-card-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.post-card:hover .post-card-arrow {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-glow);
    transform: translateX(2px);
}

/* ========== LIST VIEW card override ========== */
.posts-grid.list-view .post-card {
    flex-direction: row;
    align-items: stretch;
}

.posts-grid.list-view .post-card-thumb {
    width: 220px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: 0;
}

.posts-grid.list-view .post-card-body {
    padding: 20px 22px;
}

.posts-grid.list-view .post-card-title {
    font-size: 18px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.posts-grid.list-view .post-card-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-block {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(224, 162, 66, 0.04);
}

.sidebar-header-line {
    width: 3px;
    height: 18px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    border-radius: 2px;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

/* Search box in sidebar */
.sidebar-search {
    padding: 14px;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 8px 40px 8px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    font-size: .82rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-input-wrap input:focus {
    border-color: var(--gold-border);
    background: rgba(224, 162, 66, .04);
}

.search-input-wrap input::placeholder {
    /* color: var(--text-muted); */
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .82rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-input-wrap input:focus~.search-icon {
    color: var(--gold);
}

/* Categories list */
.cat-list {
    padding: 10px 0;
}

.cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 14px;
    /* color: var(--text-secondary); */
    transition: var(--transition);
    border-left: 2px solid transparent;
    gap: 10px;
}

.cat-item a.active {
    color: var(--gold);
    background: var(--gold-glow);
    border-left-color: var(--gold);
}

.cat-item a span.cat-name {
    flex: 1;
}

.cat-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}


/* Related / Popular posts */
.related-list,
.popular-list {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item,
.popular-item {
    display: flex;
    gap: 12px;
    /* padding: 12px; */
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

/* .related-item:hover,
.popular-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
} */

.related-thumb,
.popular-thumb {
    width: 72px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a1a;
}

.related-thumb img,
.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-cat,
.popular-cat {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.related-title,
.popular-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 5px;
}

.related-item:hover .related-title,
.popular-item:hover .popular-title {
    color: var(--gold);
}

.related-date,
.popular-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tags cloud */
.tags-cloud {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cloud-tag {
    padding: 5px 12px;
    border: 1px solid var(--border-mid);
    border-radius: 2px;
    font-size: .74rem;
    /* color: var(--text-secondary); */
    transition: var(--transition);
    font-weight: 500;
}

.cloud-tag:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-glow);
}

.cloud-tag .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 1px 5px;
    background: var(--gold-border);
    color: var(--gold);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    line-height: 1.4;
}

.cloud-tag:hover .tag-count {
    background: var(--gold);
    color: #fff;
}

/* Sidebar Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, rgba(224, 162, 66, 0.12), rgba(196, 136, 42, 0.06));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: center;
}

.nl-icon {
    width: 46px;
    height: 46px;
    background: var(--gold-glow);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    margin: 0 auto 13px;
}

.sidebar-newsletter h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.nl-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nl-input-wrap input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.nl-input-wrap input:focus {
    border-color: var(--gold-border);
    background: rgba(224, 162, 66, 0.04);
}

.nl-input-wrap input::placeholder {
    color: var(--text-muted);
}

.nl-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.nl-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
    }
}