/* ── Page Hero ── */
.news-hero {
    background: linear-gradient(135deg, var(--kgm-green-900, #0d2818) 0%, var(--kgm-green-700, #1e4d35) 100%);
    padding: 56px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.news-hero-inner { position: relative; z-index: 1; text-align: center; }
.news-hero-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.news-hero-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 28px; }

/* ── Category Pills ── */
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 0; justify-content: center; }
.cat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.07);
    transition: all .2s;
    white-space: nowrap;
}
.cat-pill:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }
.cat-pill.active { background: #fff; color: var(--kgm-green-800, #1a3a2a); border-color: #fff; }

/* ── Tab bar ── */
.cat-tab-bar {
    background: linear-gradient(135deg, var(--kgm-green-900, #0d2818), var(--kgm-green-700, #1e4d35));
    padding: 0 0 20px;
    position: sticky; top: 64px; z-index: 40;
}

/* ── Main Layout ── */
.news-main { padding: 40px 0 72px; max-width: 70%; margin: 0 auto; }
@media(max-width:900px) { .news-main { max-width: 100%; } }

/* ── Featured Card ── */
.featured-card {
    border-radius: 20px; overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: grid; grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    transition: transform .25s, box-shadow .25s;
    text-decoration: none; color: inherit;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
.featured-card-img { height: 280px; overflow: hidden; }
.featured-card-img img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s; }
.featured-card:hover .featured-card-img img { transform: scale(1.04); }
.featured-card-body { padding: 28px 28px 24px; display:flex; flex-direction:column; justify-content:center; }
@media(max-width:640px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-img { height: 220px; }
}

/* ── Post Grid ── */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:1000px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px)  { .post-grid { grid-template-columns: 1fr; } }

/* ── Post Card ── */
.post-card {
    border-radius: 16px; overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: transform .22s, box-shadow .22s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.11); }
.post-card-img { height: 175px; overflow: hidden; background: #f0f4f0; flex-shrink: 0; }
.post-card-img img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }

/* ── Badge ── */
.post-cat {
    display: inline-block; width: fit-content;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--kgm-green-600, #2d6a4f);
    background: var(--kgm-green-50, #f0f7f3);
    padding: 3px 10px; border-radius: 999px;
    margin-bottom: 9px;
}
.post-title {
    font-size: 15px; font-weight: 800; line-height: 1.45;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 8px; color: #1a2e22;
}
.post-excerpt {
    font-size: 13px; color: #777; line-height: 1.6;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    flex: 1;
}
.post-meta { display:flex; align-items:center; gap:10px; margin-top:12px; padding-top:10px; border-top:1px solid #f0f2f0; }
.post-meta span { font-size:12px; color:#aaa; display:flex; align-items:center; gap:4px; }

/* ── Read more link ── */
.read-more { font-size:13px; font-weight:700; color:var(--kgm-green-600,#2d6a4f); display:inline-flex; align-items:center; gap:4px; margin-top:14px; }
.read-more i { transition: transform .2s; }
.featured-card:hover .read-more i,
.post-card:hover .read-more i { transform: translateX(4px); }

/* ── Sidebar ── */
.news-sidebar-box {
    background: #fff; border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden; position: sticky; top: 130px;
}
.sidebar-head {
    background: linear-gradient(135deg, var(--kgm-green-800,#1a3a2a), var(--kgm-green-600,#2d6a4f));
    padding: 16px 20px;
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-weight: 800; font-size: 14px;
}
.sidebar-cat-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; font-size: 14px; color: #555;
    text-decoration: none; border-bottom: 1px solid #f5f7f5;
    transition: background .15s, color .15s;
}
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item:hover { background: #f7faf7; color: var(--kgm-green-700,#1e4d35); }
.sidebar-cat-item.active { color: var(--kgm-green-700,#1e4d35); font-weight: 700; background: #f0f7f3; }
.sidebar-count { background: #f0f4f0; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; color: #888; }

/* ── Empty ── */
.news-empty { grid-column:1/-1; text-align:center; padding:64px 20px; color:#bbb; }
.news-empty i { font-size:56px; display:block; margin-bottom:14px; opacity:.4; }
