/* =========================================================
   Trường Phong - 0989 072 072 - Thememoi.vn
   ========================================================= */

html body .phongvt-category-news-page {
    --yen-green: #171717;
    --yen-green-2: #282828;
    --yen-gold: #f8b400;
    --yen-gold-light: #ffc928;
    --yen-cream: #f8f7f3;
    --yen-cream-2: #f1efe9;
    --yen-text: #20211f;
    --yen-muted: #6b7280;
    --yen-border: #e5e1d8;
    background: var(--yen-cream) !important;
    color: var(--yen-text) !important;
    min-height: 100vh;
}

.phongvt-container {
    width: min(1400px, calc(100% - 36px));
    margin: auto;
}

.phongvt-category-news-page a {
    text-decoration: none;
}


/* ---------------------------------------------------------
   2. HERO SECTION (CAN TRÁI, ẨN THÀNH PHẦN THỪA)
--------------------------------------------------------- */
html body .phongvt-category-news-page .phongvt-category-news-hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 40px !important;
       background: linear-gradient(120deg, #171717, #282828);
    border-bottom: 3px solid #f8b400 !important;
}

/* Căn trái khung chứa Hero */
html body .phongvt-category-news-hero .phongvt-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative;
    z-index: 2;
}

/* Breadcrumb căn trái */
html body .phongvt-category-news-hero .phongvt-news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    margin-bottom: 12px !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.7);
}

html body .phongvt-news-breadcrumb a {
    color: #fff !important;
}

html body .phongvt-news-breadcrumb a:hover {
    color: var(--yen-gold-light) !important;
}

html body .phongvt-news-breadcrumb i {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
}

/* Tiêu đề H1 Hero */
html body .phongvt-category-news-hero h1 {
    margin: 4px 0 0 !important;
    color: #ffffff !important;
    font-size: clamp(32px, 4.5vw, 52px) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    text-align: left !important;
}

/* ẨN HOÀN TOÀN CÁC THÀNH PHẦN GẠCH CHÉO VÀ HỌA TIẾT THỪA */
html body .phongvt-category-news-hero .phongvt-category-eyebrow,
html body .phongvt-category-news-hero p,
html body .phongvt-category-news-hero::before,
html body .phongvt-category-news-glow {
    display: none !important;
}


/* ---------------------------------------------------------
   3. MAIN & FILTER MENU
--------------------------------------------------------- */
.phongvt-category-news-main {
    padding: 48px 0 78px;
}

.phongvt-category-news-filter {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

html body .phongvt-category-news-page .phongvt-category-news-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 18px !important;
    border: 1px solid #e5e1d8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #171717 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

html body .phongvt-category-news-page .phongvt-category-news-filter a:hover,
html body .phongvt-category-news-page .phongvt-category-news-filter a.is-active {
    border-color: #f8b400 !important;
    background: #f8b400 !important;
    color: #20211f !important;
    box-shadow: 0 5px 14px rgba(122, 91, 26, .16) !important;
}


/* ---------------------------------------------------------
   4. LAYOUT & CARDS
--------------------------------------------------------- */
.phongvt-category-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
    align-items: start;
}

.phongvt-category-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

html body .phongvt-category-news-page .phongvt-category-news-card {
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e5e1d8 !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(33, 70, 49, .07) !important;
    transition: all 0.28s ease;
}

html body .phongvt-category-news-page .phongvt-category-news-card:hover {
    transform: translateY(-5px);
    border-color: #f8b400 !important;
    box-shadow: 0 16px 34px rgba(33, 70, 49, .14) !important;
}

html body .phongvt-category-news-page .phongvt-category-news-img {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #f1efe9 !important;
    border-bottom: 3px solid #f8b400 !important;
}

.phongvt-category-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.45s;
}

.phongvt-category-news-card:hover .phongvt-category-news-img img {
    transform: scale(1.055);
}

html body .phongvt-category-news-page .phongvt-category-news-img > span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(214, 173, 85, .75) !important;
    border-radius: 4px;
   background: rgb(24 24 24 / 94%) !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.phongvt-category-news-body {
    padding: 22px;
}

html body .phongvt-category-news-page .phongvt-category-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 10px;
    color: #6b7280 !important;
    font-size: 11px;
}

html body .phongvt-category-news-page .phongvt-category-news-meta i {
    margin-right: 4px;
    color: #d99100 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-body h2,
html body .phongvt-category-news-page .phongvt-category-news-body h2 a {
    margin: 0;
    color: #171717 !important;
    font-size: 20px;
    line-height: 1.38;
    font-weight: 700;
}

html body .phongvt-category-news-page .phongvt-category-news-body h2 a:hover {
    color: #b77500 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-body p {
    margin: 11px 0 0;
    color: #6b7280 !important;
    font-size: 13px;
    line-height: 1.65;
}

html body .phongvt-category-news-page .phongvt-category-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: #d99100 !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

html body .phongvt-category-news-page .phongvt-category-news-btn:hover {
    color: #b77500 !important;
}


/* ---------------------------------------------------------
   5. SIDEBAR & WIDGETS
--------------------------------------------------------- */
.phongvt-category-news-sidebar {
    position: sticky;
    top: 95px;
    display: grid;
    gap: 18px;
}

html body .phongvt-category-news-page .phongvt-category-news-widget {
    padding: 22px;
    background: #fff !important;
    border: 1px solid #e5e1d8 !important;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(33, 70, 49, .07) !important;
}

html body .phongvt-category-news-page .phongvt-category-news-widget > h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: #171717 !important;
    font-size: 17px;
    font-weight: 700;
}

html body .phongvt-category-news-page .phongvt-category-news-widget > h3 > span {
    width: 3px;
    height: 18px;
    border-radius: 3px;
    background: #f8b400 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-widget .searchform {
    position: relative !important;
    height: 44px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e5e1d8 !important;
    border-radius: 7px !important;
    background: #fffdf8 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-widget input[type="search"],
html body .phongvt-category-news-page .phongvt-category-news-widget input[type="text"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 54px 0 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: #20211f !important;
    box-shadow: none !important;
}

html body .phongvt-category-news-page .phongvt-category-news-widget .search-submit,
html body .phongvt-category-news-page .phongvt-category-news-widget button[type="submit"],
html body .phongvt-category-news-page .phongvt-category-news-widget input[type="submit"] {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #171717 !important;
    color: #ffffff !important;
    font-size: 16px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
}

/* Ẩn hoàn toàn icon tạo bằng CSS pseudo-element để tránh bị nhân đôi */
html body .phongvt-category-news-page .phongvt-category-news-widget .search-submit::before,
html body .phongvt-category-news-page .phongvt-category-news-widget button[type="submit"]::before {
    display: none !important;
    content: "" !important;
}

/* Định dạng icon HTML sẵn có bên trong nút */
html body .phongvt-category-news-page .phongvt-category-news-widget .search-submit i,
html body .phongvt-category-news-page .phongvt-category-news-widget .search-submit svg,
html body .phongvt-category-news-page .phongvt-category-news-widget button[type="submit"] i,
html body .phongvt-category-news-page .phongvt-category-news-widget button[type="submit"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-widget .search-submit:hover,
html body .phongvt-category-news-page .phongvt-category-news-widget button[type="submit"]:hover {
    background: #f8b400 !important;
}

.phongvt-category-news-recent {
    display: grid;
    gap: 14px;
}

.phongvt-category-news-recent-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
}

.phongvt-category-news-recent-img img,
.phongvt-category-news-recent-img span {
    width: 76px;
    height: 61px;
    object-fit: cover;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1efe9;
    color: #d99100;
}

html body .phongvt-category-news-page .phongvt-category-news-recent-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #171717 !important;
    font-size: 13px;
    line-height: 1.4;
}

html body .phongvt-category-news-page .phongvt-category-news-recent-item:hover strong {
    color: #b77500 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-recent-item small {
    display: block;
    margin-top: 6px;
    color: #6b7280 !important;
    font-size: 11px;
}

html body .phongvt-category-news-page .phongvt-category-news-recent-item small i {
    margin-right: 4px;
    color: #d99100 !important;
}

html body .phongvt-category-news-page .phongvt-category-news-cta {
    position: relative !important;
    overflow: hidden !important;
    padding: 28px 20px !important;
   background: radial-gradient(ellipse at 15% 120%, rgba(255, 140, 0, 0.45), transparent 65%), linear-gradient(110deg, #2b1a0e, #0e0702 65%) !important;
    border: 1px solid rgba(214, 173, 85, .38) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 26px rgba(6, 63, 46, .20) !important;
    
    /* Thiết lập Flexbox căn giữa */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Ẩn họa tiết góc gây lệch khung */
html body .phongvt-category-news-page .phongvt-category-news-cta::after {
    display: none !important;
}

/* Icon tai nghe căn giữa */
html body .phongvt-category-news-page .phongvt-category-news-cta .phongvt-cta-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 12px auto !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #f8b400 !important;
    border-radius: 50% !important;
    color: #ffc928 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Sub-title vàng kim */
html body .phongvt-category-news-page .phongvt-category-news-cta .phongvt-cta-label {
    width: 100% !important;
    display: block !important;
    margin: 0 0 6px 0 !important;
    color: #ffc928 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
}

/* Tiêu đề H3 */
html body .phongvt-category-news-page .phongvt-category-news-cta > h3 {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    text-align: center !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Đoạn văn mô tả */
html body .phongvt-category-news-page .phongvt-category-news-cta p {
    width: 100% !important;
    display: block !important;
    margin: 0 0 18px 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* Nút bấm Liên hệ */
html body .phongvt-category-news-page .phongvt-category-news-cta > a {
    margin: 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    background: #f8b400 !important;
    color: #171717 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease !important;
}

html body .phongvt-category-news-page .phongvt-category-news-cta > a:hover {
    background: #ffc928 !important;
    color: #032f23 !important;
}


/* ---------------------------------------------------------
   9. PAGINATION
--------------------------------------------------------- */
.phongvt-category-news-pagination {
    margin-top: 35px;
}

.phongvt-category-news-pagination .nav-links {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

html body .phongvt-category-news-page .phongvt-category-news-pagination .page-numbers {
    min-width: 39px;
    height: 39px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e1d8 !important;
    border-radius: 6px;
    background: #fff !important;
    color: #171717 !important;
    font-size: 12px;
    font-weight: 700;
}

html body .phongvt-category-news-page .phongvt-category-news-pagination .page-numbers.current,
html body .phongvt-category-news-page .phongvt-category-news-pagination .page-numbers:hover {
    border-color: #f8b400 !important;
    background: #f8b400 !important;
    color: #20211f !important;
}


/* ---------------------------------------------------------
   10. RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 980px) {
    .phongvt-category-news-layout {
        grid-template-columns: 1fr;
    }

    .phongvt-category-news-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .phongvt-container {
        width: min(100% - 24px, 1180px);
    }

    html body .phongvt-category-news-page .phongvt-category-news-hero {
        padding: 40px 0 30px !important;
    }

    html body .phongvt-category-news-hero h1 {
        font-size: 34px !important;
    }

    .phongvt-category-news-main {
        padding: 30px 0 50px;
    }

    .phongvt-category-news-grid,
    .phongvt-category-news-sidebar {
        grid-template-columns: 1fr;
    }

    .phongvt-category-news-img {
        height: 225px;
    }
}


/* Banner chuyên mục: lớp phủ đen - vàng giữ chữ luôn rõ trên mọi ảnh. */
html body .phongvt-category-news-page .phongvt-category-news-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: linear-gradient(120deg, #171717, #282828) !important;
}

html body .phongvt-category-news-hero .phongvt-category-news-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

html body .phongvt-category-news-hero.has-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(18,18,18,.92) 0%, rgba(23,23,23,.78) 52%, rgba(23,23,23,.48) 100%);
}

html body .phongvt-category-news-hero .phongvt-category-news-hero-copy {
    max-width: 720px;
}

html body .phongvt-category-news-hero .phongvt-category-eyebrow {
    display: inline-block !important;
    margin-bottom: 10px;
    color: #f8b400 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

html body .phongvt-category-news-hero .phongvt-category-news-hero-copy > p {
    display: block !important;
    max-width: 650px;
    margin: 14px 0 0 !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

@media (max-width: 700px) {
    html body .phongvt-category-news-page .phongvt-category-news-hero {
        min-height: 250px;
    }

    html body .phongvt-category-news-hero .phongvt-category-news-hero-copy > p {
        font-size: 14px !important;
    }
}


/* Hero chỉ hiển thị tên danh mục và Description trong Admin. */
html body .phongvt-category-news-hero .phongvt-category-eyebrow,
html body .phongvt-category-news-hero .phongvt-category-news-benefits {
    display: none !important;
}

/* Giảm lớp màu phủ để banner là điểm nhấn, vẫn giữ chữ dễ đọc. */
html body .phongvt-category-news-page .phongvt-category-news-hero {
    background: #232323 !important;
}

html body .phongvt-category-news-hero.has-banner::after {
    background: linear-gradient(90deg, rgba(14,14,14,.62) 0%, rgba(20,20,20,.42) 55%, rgba(20,20,20,.18) 100%);
}

html body .phongvt-category-news-hero .phongvt-category-news-hero-copy > p {
    margin-top: 12px !important;
    color: rgba(255,255,255,.92) !important;
}


/* Căn giữa khối tư vấn mua hàng tại sidebar. */
html body .phongvt-category-news-cta {
    text-align: center;
}

html body .phongvt-category-news-cta .phongvt-cta-icon {
    margin-left: auto;
    margin-right: auto;
}

html body .phongvt-category-news-cta .phongvt-cta-label,
html body .phongvt-category-news-cta h3,
html body .phongvt-category-news-cta > p {
    text-align: center;
}

html body .phongvt-category-news-cta > a {
    justify-content: center;
}


/* Ép tiêu đề CTA căn giữa, không bị theme ghi đè. */
html body .phongvt-category-news-page .phongvt-category-news-cta > h3 {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

html body .phongvt-category-news-page .phongvt-category-news-cta > h3::before,
html body .phongvt-category-news-page .phongvt-category-news-cta > h3::after {
    left: auto !important;
    right: auto !important;
}
