/**
 * Cosmo news-archive.css — News listing page
 * Extracted from D:\ATPWeb\Dev\Cosmo\tin-tuc.html <style> (page-specific only).
 * Shared tokens / reset / header / footer / breadcrumb / float / section CSS
 * already live in base.css — this file only adds news listing page styles.
 */

/* ═══ INTERACTIVE FEATURED NEWS HERO (lines 72-111) ═══ */
.featured-news-section{padding:48px 0;background:var(--bg-alt);border-bottom:1px solid var(--border)}
.featured-news-grid{display:grid;grid-template-columns:1.3fr 1fr;background:#fff;border-radius:var(--r-lg);border:1px solid var(--border);box-shadow:0 15px 40px rgba(0,82,71,0.06);overflow:hidden;height:650px;max-height:650px}

.featured-active-box{background:#fff;display:flex;flex-direction:column;border:none;border-right:1px solid var(--border);border-radius:0;box-shadow:none;position:relative;height:100%;overflow:hidden}
.active-img-wrap{position:relative;height:320px;overflow:hidden;background:var(--green-deep);flex-shrink:0}
.active-img-wrap img{width:100%;height:100%;object-fit:cover;transition:opacity 0.25s ease, transform 0.5s ease}
.active-img-wrap::after{content:'';position:absolute;inset:0;background:linear-gradient(to top, rgba(0,77,68,0.5) 0%, transparent 100%)}
.active-body{padding:28px 32px;display:flex;flex-direction:column;gap:12px;flex:1;height:330px;max-height:330px;justify-content:center;transition:opacity 0.25s ease, transform 0.25s ease;overflow:hidden}
.post-tag{background:var(--green-soft);color:var(--green-deep);padding:6px 14px;border-radius:20px;font-size:12px;font-weight:800;text-transform:uppercase;width:fit-content;letter-spacing:0.5px}
.post-title-large{font-size:26px;font-weight:900;color:var(--green-deep);line-height:1.25;letter-spacing:-0.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;gap:16px;font-size:13px;color:var(--muted);align-items:center}
.post-meta span{display:flex;align-items:center;gap:6px}
.post-meta span svg{width:14px;height:14px;color:var(--green)}
.post-excerpt{font-size:14.5px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.btn-readmore{display:inline-flex;align-items:center;gap:8px;color:var(--orange);font-weight:800;font-size:14px;width:fit-content;transition: gap 0.2s}
.btn-readmore:hover{color:var(--orange-dark);gap:12px}

.featured-thumbnails-list{display:grid;grid-template-rows:repeat(5, 1fr);background:var(--green-soft);height:100%;overflow:hidden}
.featured-thumb-item{background:transparent;border:none;border-bottom:1px solid var(--border);border-radius:0;padding:12px 20px 12px 28px;display:flex;gap:16px;align-items:center;cursor:pointer;transition:all 0.3s ease;position:relative;overflow:hidden}
.featured-thumb-item:last-child{border-bottom:none}
.progress-container{position:absolute;left:0;top:0;bottom:0;width:4px;background:rgba(0,130,119,0.06);z-index:5}
.progress-bar{width:100%;height:0%;background:var(--green);transition:height 0s linear;transform-origin:top}
.featured-thumb-img{width:80px;height:60px;border-radius:var(--r-sm);overflow:hidden;flex-shrink:0;background:var(--green-soft);border:1px solid rgba(0, 82, 71, 0.08);box-shadow:0 2px 6px rgba(0,0,0,0.04)}
.featured-thumb-img img{width:100%;height:100%;object-fit:cover;transition:transform 0.3s ease}
.featured-thumb-item:hover .featured-thumb-img img{transform:scale(1.05)}
.featured-thumb-content{display:flex;flex-direction:column;gap:2px;flex:1}
.thumb-tag{font-size:10px;font-weight:800;color:var(--green);text-transform:uppercase;letter-spacing:0.5px}
.thumb-title{font-size:13.5px;font-weight:700;color:var(--fg);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color 0.2s}
.thumb-date{font-size:11px;color:var(--muted)}
.featured-thumb-item.active{background:#fff}
.featured-thumb-item.active .thumb-title{color:var(--green-deep)}
.featured-thumb-item.active .progress-bar{background:var(--green-light)}

/* ═══ NEWS MAIN LAYOUT (lines 113-114) ═══ */
.news-layout{display:grid;grid-template-columns:1fr 320px;gap:40px;padding:48px 0;align-items:start}

/* ═══ FILTER TABS (lines 116-120) ═══ */
.filter-tabs{display:flex;gap:12px;margin-bottom:32px;border-bottom:1px solid var(--border);padding-bottom:16px;flex-wrap:wrap}
.tab-btn{background:none;border:none;padding:10px 20px;font-family:var(--font);font-size:15px;font-weight:700;color:var(--muted);cursor:pointer;border-radius:20px;transition:all 0.2s;text-decoration:none}
.tab-btn.active{background:var(--green-deep);color:#fff}
.tab-btn:hover:not(.active){color:var(--green);background:var(--green-soft)}

/* ═══ NEWS GRID (lines 122-132) ═══ */
.news-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:24px}
.news-card{background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;transition:all .4s;display:flex;flex-direction:column;box-shadow:0 4px 10px rgba(0,0,0,.03)}
.news-card:hover{box-shadow:0 15px 30px rgba(0,82,74,.08);transform:translateY(-6px);border-color:transparent}
.news-card-img{aspect-ratio:16/10;overflow:hidden;position:relative}
.news-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.news-card:hover .news-card-img img{transform:scale(1.05)}
.news-card-body{padding:24px;flex:1;display:flex;flex-direction:column;gap:12px}
.news-card-title{font-size:18px;font-weight:800;color:var(--fg);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-card:hover .news-card-title{color:var(--green)}
.news-card-title a{color:inherit;text-decoration:none}
.news-card-excerpt{font-size:14px;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ═══ SIDEBAR (lines 134-159) ═══ */
.detail-sidebar{display:flex;flex-direction:column;gap:0}
.sidebar-card{background:#fff;border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;margin-bottom:24px;box-shadow:0 4px 12px rgba(0,0,0,.05)}
.sb-title{font-size:17px;font-weight:800;color:var(--green-deep);padding-bottom:10px;margin-bottom:14px;border-bottom:2px solid var(--bg-alt);display:flex;align-items:center;gap:8px}
.sb-title svg{width:22px;height:22px;color:var(--orange)}
.sb-cat-list li{margin-bottom:10px}
.sb-cat-list li:last-child{margin-bottom:0}
.sb-cat-list a{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600;color:var(--fg);padding:6px 0;transition:.2s;text-decoration:none}
.sb-cat-list a:hover{color:var(--green)}
.sb-cat-list a span{background:var(--bg-alt);padding:2px 8px;border-radius:12px;font-size:11px;color:var(--muted)}

.sb-post-item{display:flex;gap:12px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--border);align-items:center}
.sb-post-item:last-child{margin-bottom:0;border-bottom:none;padding-bottom:0}
.sb-post-img{width:64px;height:64px;border-radius:var(--r-sm);overflow:hidden;flex-shrink:0;border:1px solid var(--border)}
.sb-post-img img{width:100%;height:100%;object-fit:cover}
.sb-post-info{flex:1;display:flex;flex-direction:column;gap:2px}
.sb-post-info a{text-decoration:none}
.sb-post-info h5{font-size:13px;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0;color:var(--fg)}
.sb-post-info h5:hover{color:var(--green)}
.sb-post-info span{font-size:11px;color:var(--muted)}

.sb-banner{background:linear-gradient(135deg, var(--green-deep), var(--green));border-radius:var(--r-lg);padding:28px 24px;color:#fff;text-align:center;position:relative;overflow:hidden;box-shadow:0 10px 20px rgba(0,82,74,0.12)}
.sb-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg, rgba(0,82,74,0.35), rgba(0,168,150,0.05));opacity:0.6;mix-blend-mode:overlay}
.sb-banner h4{color:#fff;font-size:20px;margin-bottom:6px;position:relative;z-index:1;font-weight:800}
.sb-banner p{font-size:13px;color:rgba(255,255,255,.9);margin-bottom:14px;position:relative;z-index:1}
.sb-banner a{display:inline-block;background:var(--orange);color:#fff;padding:10px 20px;border-radius:var(--r-sm);font-weight:800;text-transform:uppercase;font-size:12px;cursor:pointer;position:relative;z-index:1;box-shadow:0 4px 8px rgba(255,107,0,0.25);transition:.2s;text-decoration:none}
.sb-banner a:hover{background:var(--orange-dark);transform:translateY(-1px)}

/* ═══ PAGINATION (functional addition — base.css has none) ═══ */
.pagination{display:flex;gap:8px;justify-content:center;margin-top:40px;flex-wrap:wrap}
.pagination .page-numbers{padding:10px 16px;border:1px solid var(--border);border-radius:var(--r-sm);font-weight:700;color:var(--fg);background:#fff;text-decoration:none;transition:.2s}
.pagination .page-numbers:hover{background:var(--green-soft);border-color:var(--green);color:var(--green)}
.pagination .page-numbers.current{background:var(--green-deep);color:#fff;border-color:var(--green-deep)}
.pagination .page-numbers.dots{border:none;background:transparent}

/* ═══ RESPONSIVE (lines 183-196, news-specific only) ═══ */
@media(max-width:1024px){
	.featured-news-grid{grid-template-columns:1fr;height:auto;max-height:none}
	.featured-active-box{border-right:none;border-bottom:1px solid var(--border);height:auto}
	.featured-thumbnails-list{height:auto;grid-template-rows:none}
	.featured-thumb-item{height:auto;max-height:none;padding:16px 20px 16px 28px}
	.news-layout{grid-template-columns:1fr}
}
@media(max-width:640px){
	.news-grid{grid-template-columns:1fr}
}
