.section-news-page {
    padding: 80px 0 100px;
}
/* ---- FILTER BAR ---- */
.news-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-right: 4px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

/* ---- FEATURED ---- */
.news-featured {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}
.news-featured-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}
.news-featured-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.news-featured-main:hover img { transform: scale(1.04); }
.news-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.3) 60%, transparent 100%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.news-featured-overlay .news-tag { margin-bottom: 10px; }
.news-featured-overlay h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 10px;
}
.news-featured-overlay .news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.news-featured-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-side-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/7;
    cursor: pointer;
}
.news-side-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-side-card:hover img { transform: scale(1.04); }
.news-side-card .news-featured-overlay { padding: 20px; }
.news-side-card .news-featured-overlay h2 { font-size: 15px; }

/* ---- DIVIDER ---- */
.news-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}
.news-divider h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.news-divider-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ---- GRID ---- */
.news-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.news-card-img {
    height: 200px;
    overflow: hidden;
}
.news-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.news-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.45;
    margin-bottom: 10px;
}
.news-card-title a { transition: color var(--transition); }
.news-card-title a:hover { color: var(--gold); }
.news-card-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}
.author-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}
.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.read-more:hover { gap: 8px; }

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.page-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.page-btn:hover,
.page-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---- PAGINATION ---- */
.pagination-page {
    margin-top: 44px;
    text-align: center;
}
.pagination-page form { display: inline; }
div.limit { display: none; }

/* page-btn (static HTML) */
.page-btn {
    display: inline-block;
    padding: 9px 16px;
    margin: 0 3px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
    font-family: var(--font-body);
}
.page-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.page-btn.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

/* ul.pagination (Smarty / server-rendered) */
.pagination-page ul.pagination,
ul.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Ẩn input hidden bên trong ul */
ul.pagination input[type="hidden"] { display: none; }

/* Base li */
ul.pagination li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 9px 14px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
    line-height: 1;
}

/* Li rỗng — ẩn đi */
ul.pagination li:empty { display: none; }

/* Trang số — hover/active */
ul.pagination li.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}
ul.pagination li:not(.disabled):not(.active):hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

/* Disabled (Trang đầu / Trước / Sau / Trang cuối khi không click được) */
ul.pagination li.disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

/* Nav labels — nhỏ gọn hơn số trang, dùng icon-style */
ul.pagination li.disabled:first-child a::before  { content: '«  '; }  /* Trang đầu */
ul.pagination li.disabled:nth-child(2) a::before { content: '‹  '; }  /* Trước    */
ul.pagination li.disabled:nth-last-child(2) a::before { content: '›  '; } /* Sau  */
ul.pagination li.disabled:last-child a::before   { content: '»  '; }  /* Trang cuối */

ul.pagination li a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}
ul.pagination li.active a,
ul.pagination li:not(.disabled):hover a { color: var(--navy); }

/* Thông tin "Trang X of Y (Z items)" nằm trong div.limit thứ 2 */
.pagination-page .limit:last-of-type {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
}

/* ---- SIDEBAR LAYOUT ---- */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold-pale);
}
.sidebar-search {
    display: flex;
    gap: 8px;
}
.sidebar-search input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    transition: border-color var(--transition);
}
.sidebar-search input:focus { border-color: var(--gold); }
.sidebar-search button {
    padding: 11px 16px;
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition);
}
.sidebar-search button:hover { background: var(--gold-light); }

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}
.cat-list li:last-child { border: none; }
.cat-list li a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color var(--transition);
}
.cat-list li a:hover { color: var(--gold); }
.cat-count {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.recent-item {
    display: flex;
    gap: 12px;
}
.recent-img {
    width: 72px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.recent-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-title a:hover { color: var(--gold); }
.recent-date { font-size: 11px; color: var(--gray-400); }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    transition: var(--transition);
}
.tag-cloud a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .news-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .news-grid-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-side { display: none; }
    .news-grid-main { grid-template-columns: 1fr; }
    .news-filter { gap: 8px; }
}