/* BongVIP Category Design — chỉ áp dụng trong #bvip-category */
body.category:has(#bvip-category) #main{background:#f5f8fd}
#bvip-category{--navy:#081b35;--yellow:#ffca05;--line:#dce3ee;--muted:#65738a;color:var(--navy);font:16px/1.65 Arial,Helvetica,sans-serif;background:radial-gradient(ellipse at 5% 0%,#eaf2ff 0,transparent 50%),#f7f9fd;padding:24px 24px 44px}
#bvip-category,#bvip-category *{box-sizing:border-box}
#bvip-category a{color:inherit;text-decoration:none}
#bvip-category a:hover{color:#126640}
#bvip-category a:focus-visible,#bvip-category button:focus-visible,#bvip-category input:focus-visible,#bvip-category select:focus-visible{outline:3px solid #1377bf;outline-offset:3px}
#bvip-category .bv-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;max-width:1400px;margin:auto;align-items:start}
#bvip-category .bv-main{min-width:0}
#bvip-category .bv-heading{padding:0 12px 24px;background:linear-gradient(120deg,#edf5ff,rgba(255,255,255,.2));background-size:cover;background-position:center right;border-radius:12px;margin-bottom:16px}
#bvip-category .bv-breadcrumb{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;padding:0 0 16px}
#bvip-category h1{font-size:clamp(28px,3.1vw,44px);font-weight:bold;line-height:1.18;color:var(--navy);border-left:10px solid var(--yellow);padding-left:15px;margin:0 0 14px;text-transform:none}
#bvip-category .bv-description{font-size:15px;line-height:1.7;color:var(--navy);margin:0}
#bvip-category .bv-description p{margin:0 0 10px}
#bvip-category .bv-description .khung-cuon-post{height:auto!important;max-height:none!important;overflow:visible!important}
#bvip-category .bv-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;margin-bottom:4px}
#bvip-category .bv-tabs a{flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 14px;font-size:13px;font-weight:700;box-shadow:0 2px 0 #e5eaf2}
#bvip-category .bv-tabs a[aria-current],#bvip-category .bv-tabs a:hover{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}
#bvip-category .bv-filters{display:flex;gap:10px;align-items:center;margin:8px 0 0}
#bvip-category input,#bvip-category select,#bvip-category button{font:inherit;font-size:13px;border:1px solid #c6d0df;border-radius:7px;height:40px;background:#fff;color:var(--navy);padding:7px 12px;margin:0;box-shadow:none}
#bvip-category label{margin:0;font-weight:400}
#bvip-category .bv-search{flex:1}
#bvip-category .bv-search input{width:100%}
#bvip-category .bv-sort{display:flex;gap:8px;align-items:center;font-size:13px;white-space:nowrap}
#bvip-category select{width:125px;appearance:auto;background-image:none}
#bvip-category button{font-weight:700;background:var(--navy);color:#fff;cursor:pointer;text-transform:none;letter-spacing:0}
#bvip-category .bv-results{font-size:12px;color:var(--muted);margin:9px 0 14px}
#bvip-category .bv-featured{display:grid;grid-template-columns:1.4fr 1fr;grid-template-rows:190px 190px;gap:14px;margin-bottom:18px}
#bvip-category .bv-featured>.bv-card:first-child{grid-row:span 2}
#bvip-category .bv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#bvip-category .bv-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;min-width:0;box-shadow:0 1px 1px #dde3ed;height:100%}
#bvip-category .bv-card-link{display:flex;flex-direction:column;height:100%;position:relative}
#bvip-category .bv-card-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#0b294a,#176341);flex-shrink:0}
#bvip-category .bv-card-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
#bvip-category .bv-card a:hover .bv-card-image{transform:scale(1.035)}
#bvip-category .bv-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;font-style:italic;color:#fff}
#bvip-category .bv-placeholder span{color:var(--yellow)}
#bvip-category .bv-card-body{padding:12px 14px;flex:1;display:flex;flex-direction:column;align-items:start}
#bvip-category .bv-tag{display:inline-block;max-width:100%;background:var(--yellow);color:#071528;font-size:11px;line-height:1.45;font-weight:700;border-radius:5px;padding:4px 9px;margin:0 0 8px}
#bvip-category .bv-card h2{font-size:17px;line-height:1.35;font-weight:750;color:var(--navy);margin:0 0 10px;text-transform:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#bvip-category .bv-meta{font-size:12px;color:var(--muted);margin-top:auto;display:flex;align-items:center;gap:6px}
#bvip-category .bv-excerpt{font-size:14px;line-height:1.45;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#bvip-category .bv-card--overlay .bv-card-media{position:absolute;inset:0;aspect-ratio:auto}
#bvip-category .bv-card--overlay .bv-card-media:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 10%,rgba(0,14,27,.12) 30%,rgba(0,14,27,.94) 100%)}
#bvip-category .bv-card--overlay .bv-card-body{position:relative;justify-content:end;padding:18px;color:#fff}
#bvip-category .bv-card--overlay h2{font-size:18px;color:#fff;margin-bottom:6px;-webkit-line-clamp:3}
#bvip-category .bv-card--overlay .bv-meta{color:#e8edf4;margin-top:0}
#bvip-category .bv-card--overlay .bv-tag{position:absolute;top:14px;left:14px;max-width:calc(100% - 28px)}
#bvip-category .bv-card--large h2{font-size:clamp(23px,2.3vw,30px);line-height:1.18}
#bvip-category .bv-sidebar{display:grid;gap:14px}
#bvip-category .bv-widget{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px}
#bvip-category .bv-widget>h2{font-size:22px;line-height:1.2;font-weight:bold;color:var(--navy);padding-bottom:10px;border-bottom:1px solid var(--line);margin:0 0 12px;text-transform:none}
#bvip-category .bv-ranking,#bvip-category .wpp-list{list-style:none;counter-reset:bv-rank;margin:0;padding:0}
#bvip-category .bv-ranking>li,#bvip-category .wpp-list>li{counter-increment:bv-rank;position:relative;margin:0 0 14px;padding:0;border:0;min-height:64px}
#bvip-category .bv-ranking>li:before,#bvip-category .wpp-list>li:before{content:counter(bv-rank);position:absolute;left:-5px;top:-4px;z-index:1;background:var(--yellow);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-weight:800;color:var(--navy);font-size:15px}
#bvip-category .bv-ranking a{display:flex;gap:10px;align-items:start;font-size:14px;line-height:1.35;font-weight:700}
#bvip-category .bv-ranking img,#bvip-category .wpp-thumbnail{width:96px;height:64px;object-fit:cover;border-radius:7px;flex-shrink:0;margin:0 10px 0 0;float:left}
#bvip-category .bv-ranking img{margin:0}
#bvip-category .bv-ranking small,#bvip-category .wpp-meta,#bvip-category .post-stats{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}
#bvip-category .wpp-post-title{font-size:14px;line-height:1.35;font-weight:700}
#bvip-category .wpp-list>li:after{content:'';display:block;clear:both}
#bvip-category .bv-category-list{list-style:none;margin:0;padding:0}
#bvip-category .bv-category-list li{margin:0;border-bottom:1px solid #edf0f5}
#bvip-category .bv-category-list li:last-child{border:0}
#bvip-category .bv-category-list a{display:flex;justify-content:space-between;align-items:center;padding:10px;border-radius:7px;font-size:14px;font-weight:700;gap:10px}
#bvip-category .bv-category-list a[aria-current]{background:#ffe781;color:var(--navy)}
#bvip-category .bv-match{padding:10px 0;text-align:center;border-bottom:1px solid var(--line)}
#bvip-category .bv-match:last-child{border:0}
#bvip-category .bv-match>strong{display:block;text-align:left;font-size:13px}
#bvip-category .bv-match p{display:flex;align-items:center;justify-content:center;gap:14px;margin:14px 0 6px;font-weight:700;font-size:15px}
#bvip-category .bv-match b{background:#edf0f5;padding:2px 5px;border-radius:4px;font-size:12px}
#bvip-category .bv-match small{font-size:12px;color:var(--muted)}
#bvip-category .bv-pagination ul{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;list-style:none;margin:24px 0 0;padding:0}
#bvip-category .bv-pagination li{margin:0}
#bvip-category .bv-pagination a,#bvip-category .bv-pagination span{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;background:#fff;border:1px solid var(--line);border-radius:7px;font-weight:700}
#bvip-category .bv-pagination .current{background:var(--yellow);border-color:var(--yellow)}
#bvip-category .bv-empty{background:#fff;border:1px solid var(--line);padding:32px;border-radius:10px}
@media(min-width:1600px){#bvip-category .bv-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1100px){#bvip-category .bv-layout{grid-template-columns:minmax(0,1fr) 285px;gap:18px}#bvip-category .bv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#bvip-category .bv-featured{grid-template-rows:200px 200px}#bvip-category .bv-filters{flex-wrap:wrap}#bvip-category .bv-search{flex-basis:100%}}
@media(max-width:849px){#bvip-category{padding:20px 16px 32px}#bvip-category .bv-layout{grid-template-columns:1fr}#bvip-category .bv-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}#bvip-category .bv-sidebar .bv-widget:first-child{grid-row:span 2}#bvip-category .bv-heading{padding-left:0;padding-right:0}}
@media(max-width:549px){#bvip-category .bv-featured{grid-template-columns:1fr;grid-template-rows:auto;gap:14px}#bvip-category .bv-featured>.bv-card:first-child{grid-row:auto}#bvip-category .bv-card--overlay{min-height:230px}#bvip-category .bv-card--large{min-height:330px}#bvip-category .bv-grid,#bvip-category .bv-sidebar{grid-template-columns:1fr}#bvip-category .bv-sidebar .bv-widget:first-child{grid-row:auto}#bvip-category .bv-description{font-size:14px}#bvip-category .bv-sort{flex:1}#bvip-category .bv-sort select{flex:1}#bvip-category .bv-card--large h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){#bvip-category .bv-card-image{transition:none}#bvip-category .bv-card a:hover .bv-card-image{transform:none}}

/* Chuyên mục ít bài: không để trống vùng bài nổi bật. */
#bvip-category .bv-featured:has(>.bv-card:only-child){grid-template-columns:1fr;grid-template-rows:360px}
#bvip-category .bv-featured>.bv-card:only-child{grid-row:auto}
#bvip-category .bv-featured:has(>.bv-card:nth-child(2):last-child){grid-template-rows:360px}
#bvip-category .bv-featured:has(>.bv-card:nth-child(2):last-child)>.bv-card:first-child{grid-row:auto}
@media(max-width:549px){#bvip-category .bv-featured:has(>.bv-card:nth-child(2):last-child),#bvip-category .bv-featured:has(>.bv-card:only-child){grid-template-rows:auto}}
