/* =========================================================
   EURO GEAR - CATEGORY NEWS
   CSS gon, khong lap selector, dong bo trang chi tiet.
========================================================= */

.phongvt-category-news-page {
    --eg-blue: #073b8c;
    --eg-blue-light: #0b57c7;
    --eg-orange: #ff7900;
    --eg-bg: #f4f6fb;
    --eg-text: #25364d;
    --eg-muted: #6d7888;
    --eg-border: #e1e7f0;
    position: relative;
    z-index: 1;
    margin: -32px 0 0 !important;
    min-height: 100vh;
    background: var(--eg-bg);
    color: var(--eg-text);
}

.phongvt-category-news-page *,
.phongvt-category-news-page *::before,
.phongvt-category-news-page *::after {
    box-sizing: border-box;
}

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

.phongvt-category-news-page .phongvt-container {
    width: min(1580px, calc(100% - 28px));
    margin: 0 auto;
}

/* HERO */
.phongvt-category-news-hero {
    padding: 25px 0;
    background: linear-gradient(115deg, #d94700 0%, #f05b00 48%, #ff7900 100%);
    text-align: center;
}

.phongvt-category-news-hero::before,
.phongvt-category-news-glow,
.phongvt-category-eyebrow,
.phongvt-category-news-hero .phongvt-news-breadcrumb {
    display: none !important;
}

.phongvt-category-news-hero .phongvt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phongvt-category-news-hero h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 38px;
    line-height: 1.2;
}

.phongvt-category-news-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.55;
}

/* NOI DUNG CHINH */
.phongvt-category-news-main {
    padding: 24px 0 38px;
}

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

.phongvt-category-news-filter a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--eg-border);
    border-radius: 20px;
    background: #fff;
    color: var(--eg-blue) !important;
    font-size: 13px;
    font-weight: 600;
}

.phongvt-category-news-filter a:hover,
.phongvt-category-news-filter a.is-active {
    border-color: var(--eg-orange);
    background: var(--eg-orange);
    color: #fff !important;
}

.phongvt-category-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 20px;
    align-items: start;
}

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

/* CARD BAI VIET */
.phongvt-category-news-card,
.phongvt-category-news-widget {
    background: #fff;
    border: 1px solid var(--eg-border);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(14, 48, 96, .06);
}

.phongvt-category-news-card {
    overflow: hidden;
}

.phongvt-category-news-img {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    border-bottom: 2px solid var(--eg-orange);
    background: #eef3fa;
}

.phongvt-category-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phongvt-category-news-img > span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--eg-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.phongvt-category-news-img-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--eg-orange);
    font-size: 38px;
}

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

.phongvt-category-news-meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-bottom: 7px;
    color: var(--eg-muted);
    font-size: 12px;
}

.phongvt-category-news-meta i {
    color: var(--eg-orange);
}

.phongvt-category-news-body h2 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.4;
}

.phongvt-category-news-body h2 a {
    color: var(--eg-blue) !important;
}

.phongvt-category-news-body p {
    margin: 0;
    color: var(--eg-muted);
    font-size: 15px;
    line-height: 1.55;
}

.phongvt-category-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--eg-orange) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* SIDEBAR */
.phongvt-category-news-sidebar {
    display: grid;
    gap: 14px;
}

.phongvt-category-news-widget {
    padding: 17px;
}

.phongvt-category-news-widget > h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: var(--eg-blue);
    font-size: 25px;
}

.phongvt-category-news-widget > h3 > span {
    width: 3px;
    height: 18px;
    background: var(--eg-orange);
}

/* TIM KIEM */
.phongvt-category-news-widget .searchform {
    display: block !important;
    width: 100% !important;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--eg-border);
    border-radius: 6px;
    background: #fff;
}

.phongvt-category-news-widget .searchform .flex-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
}

.phongvt-category-news-widget .searchform .flex-col {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

.phongvt-category-news-widget .searchform .flex-grow {
    width: 100% !important;
}

.phongvt-category-news-widget input[type="search"],
.phongvt-category-news-widget input[type="text"] {
    width: 100% !important;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    padding: 0 11px;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 14px;
}

.phongvt-category-news-widget .search-submit,
.phongvt-category-news-widget button[type="submit"],
.phongvt-category-news-widget input[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--eg-orange) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* BAI VIET MOI */
.phongvt-category-news-recent {
    display: grid;
    gap: 10px;
}

.phongvt-category-news-recent-item {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.phongvt-category-news-recent-img img,
.phongvt-category-news-recent-img span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: #eef3fa;
    color: var(--eg-orange);
}

.phongvt-category-news-recent-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--eg-blue);
    font-size: 15px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.phongvt-category-news-recent-item small {
    display: block;
    margin-top: 4px;
    color: var(--eg-muted);
    font-size: 11px;
}

/* CTA */
.phongvt-category-news-cta {
    background: var(--eg-blue);
    color: #fff;
}

.phongvt-category-news-cta .phongvt-cta-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 11px;
    border: 1px solid rgba(255, 154, 36, .7);
    border-radius: 50%;
    color: #ffad4a;
}

.phongvt-category-news-cta .phongvt-cta-label {
    color: #ffad4a;
    font-size: 12px;
    font-weight: 700;
}

.phongvt-category-news-cta > h3 {
    margin: 5px 0 7px !important;
    color: #fff !important;
    font-size: 21px !important;
}

.phongvt-category-news-cta p {
    margin: 0 0 13px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.55;
}

.phongvt-category-news-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--eg-orange);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
}

/* PHAN TRANG */
.phongvt-category-news-pagination {
    margin-top: 24px;
}

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

.phongvt-category-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--eg-border);
    border-radius: 5px;
    background: #fff;
    color: var(--eg-blue) !important;
    font-size: 13px;
    font-weight: 700;
}

.phongvt-category-news-pagination .page-numbers.current,
.phongvt-category-news-pagination .page-numbers:hover {
    border-color: var(--eg-orange);
    background: var(--eg-orange);
    color: #fff !important;
}

.phongvt-category-news-empty {
    padding: 30px;
    border: 1px dashed var(--eg-border);
    border-radius: 8px;
    background: #fff;
    color: var(--eg-muted);
    text-align: center;
}

/* SIDEBAR STICKY TREN DESKTOP */
@media (min-width: 981px) {
    .phongvt-category-news-main,
    .phongvt-category-news-main .phongvt-container,
    .phongvt-category-news-layout {
        overflow: visible !important;
    }

    .phongvt-category-news-sidebar {
        position: sticky;
        top: 15px;
        align-self: start;
        height: max-content;
    }

    body.admin-bar .phongvt-category-news-sidebar {
        top: 47px;
    }
}

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

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

@media (max-width: 700px) {
    .phongvt-category-news-page .phongvt-container {
        width: calc(100% - 20px);
    }

    .phongvt-category-news-hero {
        padding: 20px 0;
    }

    .phongvt-category-news-hero h1 {
        font-size: 30px;
    }

    .phongvt-category-news-main {
        padding: 18px 0 28px;
    }

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

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