/* =========================================================
   PHONGVT - CUSTOM CATEGORY TIN TỨC
   Dùng cho: category-tin-tuc.php
   ========================================================= */

:root{
    --phongvt-blue:#1e40af;
    --phongvt-blue-dark:#1e3a8a;
    --phongvt-dark:#0f172a;
    --phongvt-text:#334155;
    --phongvt-muted:#64748b;
    --phongvt-border:#e2e8f0;
    --phongvt-bg:#f8fafc;
}

.phongvt-container{
    width:min(1350px, calc(100% - 32px));
    margin:0 auto;
}

.phongvt-category-news-page{
    background:#f8fafc;
    color:#334155;
}

/* HERO */
.phongvt-category-news-hero{
    background:#0f172a;
    color:#fff;
    padding:85px 0 90px;
}

.phongvt-category-news-hero span{
    display:block;
    color:#60a5fa;
    font-size:13px;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.phongvt-category-news-hero h1{
    margin:10px 0 0;
    color:#fff;
    font-size:clamp(42px, 5vw, 72px);
    line-height:1;
    font-weight:900;
    letter-spacing:-.055em;
}

.phongvt-category-news-hero p{
    max-width:720px;
    margin:22px 0 0;
    color:#cbd5e1;
    font-size:18px;
    line-height:1.65;
}

/* MAIN */
.phongvt-category-news-main{
    padding:52px 0 85px;
}

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

.phongvt-category-news-filter a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 18px;
    border-radius:999px;
    border:1px solid #cbd5e1;
    color:#334155;
    background:#fff;
    font-weight:700;
    font-size:14px;
    text-decoration:none !important;
}

.phongvt-category-news-filter a.is-active,
.phongvt-category-news-filter a:hover{
    background:#1e40af;
    border-color:#1e40af;
    color:#fff;
}

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

/* GRID CARD */
.phongvt-category-news-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:26px;
}

.phongvt-category-news-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(15,23,42,.07);
    transition:.3s ease;
}

.phongvt-category-news-card:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 55px rgba(15,23,42,.14);
}

.phongvt-category-news-img{
    position:relative;
    display:block;
    height:250px;
    overflow:hidden;
    background:#e2e8f0;
}

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

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

.phongvt-category-news-img span{
    position:absolute;
    left:16px;
    bottom:16px;
    background:rgba(255,255,255,.96);
    color:#1e40af;
    border-radius:999px;
    padding:7px 14px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.phongvt-category-news-img-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#94a3b8;
    font-size:54px;
}

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

.phongvt-category-news-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    color:#64748b;
    font-size:12px;
    font-weight:700;
    margin-bottom:13px;
}

.phongvt-category-news-meta i{
    color:#1e40af;
}

.phongvt-category-news-body h2{
    margin:0;
    color:#0f172a;
    font-size:24px;
    line-height:1.3;
    font-weight:900;
    letter-spacing:-.035em;
}

.phongvt-category-news-body h2 a{
    color:#0f172a;
    text-decoration:none !important;
}

.phongvt-category-news-body p{
    color:#64748b;
    font-size:15px;
    line-height:1.65;
    margin:13px 0 0;
}

.phongvt-category-news-btn{
    margin-top:20px;
    height:44px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#1e40af !important;
    font-size:14px;
    font-weight:900;
    text-decoration:none !important;
}

/* SIDEBAR */
.phongvt-category-news-sidebar{
    position:sticky;
    top:100px;
    display:grid;
    gap:20px;
}

.phongvt-category-news-widget{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:24px;
    padding:24px;
}

.phongvt-category-news-widget h3{
    margin:0 0 16px;
    color:#0f172a;
    font-size:20px;
    line-height:1.25;
    font-weight:900;
    letter-spacing:-.03em;
}

.phongvt-category-news-widget .searchform{
    display:flex;
    gap:8px;
}

.phongvt-category-news-widget .search-field{
    height:44px;
    border-radius:999px;
    border:1px solid #cbd5e1;
    padding:0 16px;
    box-shadow:none;
}

.phongvt-category-news-widget .search-submit{
    height:44px;
    border-radius:999px;
    background:#1e40af;
    color:#fff;
    border:0;
    padding:0 18px;
    font-weight:800;
}

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

.phongvt-category-news-recent-item{
    display:grid;
    grid-template-columns:76px 1fr;
    gap:12px;
    text-decoration:none !important;
}

.phongvt-category-news-recent-img img,
.phongvt-category-news-recent-img span{
    width:76px;
    height:64px;
    object-fit:cover;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#dbeafe;
    color:#1e40af;
}

.phongvt-category-news-recent-item strong{
    display:block;
    color:#0f172a;
    font-size:14px;
    line-height:1.35;
    font-weight:800;
}

.phongvt-category-news-recent-item small{
    display:block;
    color:#64748b;
    margin-top:5px;
}

.phongvt-category-news-cta{
    background:linear-gradient(135deg,#1e40af,#1e3a8a);
    color:#fff;
}

.phongvt-category-news-cta h3{
    color:#fff;
}

.phongvt-category-news-cta p{
    color:#dbeafe;
    font-size:14px;
    line-height:1.6;
}

.phongvt-category-news-cta a{
    display:inline-flex;
    height:42px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:0 18px;
    background:#fff;
    color:#1e40af !important;
    font-weight:900;
    text-decoration:none !important;
}

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

.phongvt-category-news-pagination .nav-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.phongvt-category-news-pagination .page-numbers{
    min-width:42px;
    height:42px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid #e2e8f0;
    color:#334155;
    font-weight:800;
    text-decoration:none !important;
}

.phongvt-category-news-pagination .page-numbers.current,
.phongvt-category-news-pagination .page-numbers:hover{
    background:#1e40af;
    border-color:#1e40af;
    color:#fff;
}

.phongvt-category-news-empty{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:26px;
    text-align:center;
    color:#64748b;
}

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

    .phongvt-category-news-sidebar{
        position:static;
    }
}

@media(max-width:849px){
    .phongvt-category-news-grid{
        grid-template-columns:1fr;
    }
}

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

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

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

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

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

    .phongvt-category-news-body h2{
        font-size:21px;
    }
}
