/* ====================================
   KNCCI NYERI — NEWS.CSS (REFACTORED)
   ==================================== */

/* ── TABS ── */
.news-tabs-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 80px; z-index: 90;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}
.news-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; padding: 12px 0;
  scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab {
  flex-shrink: 0;
  padding: 8px 20px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent; font-size: .88rem;
  font-weight: 600; color: var(--muted);
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; font-family: 'Inter', sans-serif;
}
.news-tab:hover  { border-color: var(--green); color: var(--green); }
.news-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── FEATURED ── */
.news-featured-wrap { background: var(--light); padding: 80px 0 0; }
.news-featured-card {
  display: grid; grid-template-columns: 400px 1fr;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.nf-thumb {
  background: var(--navy);
  min-height: 360px; display: flex; align-items: flex-end; padding: 32px;
  position: relative;
}
.nf-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.1) 0%, transparent 80%);
}
.nf-thumb-inner {
  display: flex; align-items: center; gap: 10px; position: relative; z-index: 2;
}
.nf-thumb-label {
  background: var(--green); color: var(--white);
  font-size: .68rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
}
.nf-body { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.nf-top  { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nf-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 1.95rem);
  color: var(--navy); line-height: 1.3; font-weight: 600;
}
.nf-excerpt { color: var(--text); line-height: 1.8; font-size: .95rem; flex: 1; }
.nf-meta { display: flex; gap: 24px; align-items: center; }
.nf-author { font-size: .82rem; font-weight: 600; color: var(--navy); }
.nf-read   { font-size: .78rem; color: var(--muted); }
.n-date    { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ── CATEGORY TAGS ── */
.n-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--light); color: var(--navy);
}

/* ── LAYOUT ── */
.news-section { background: var(--light); padding: 80px 0 120px; }
.news-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 48px; align-items: start;
}

/* ── NEWS GRID ── */
.news-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.n-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.n-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px); border-color: var(--navy);
}
.n-card-thumb {
  height: 240px; background-color: var(--navy);
  position: relative; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.n-card-blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  z-index: 1;
}
.n-card-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.n-card-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.n-card-top  { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.n-card-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.45; margin-bottom: auto; }
.n-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--border);
}
.n-read { font-size: .78rem; color: var(--muted); }
.n-link { font-size: .88rem; font-weight: 600; color: var(--green); transition: var(--transition); }
.n-link:hover { color: var(--navy); }

/* Hidden state */
.n-card.hidden { display: none; }

/* Empty state */
.n-empty { text-align: center; padding: 80px 0; }
.n-empty h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.n-empty p  { color: var(--muted); margin-bottom: 24px; }

/* Load more */
.n-load-more { text-align: center; margin-top: 48px; }

/* ── SIDEBAR ── */
.news-sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.sw-title {
  font-size: .82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--navy); margin-bottom: 24px;
  padding-bottom: 8px; border-bottom: 2px solid var(--green);
  display: inline-block;
}

/* Search */
.sw-search { display: flex; gap: 8px; }
.sw-search input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: .88rem;
  outline: none; transition: var(--transition);
}
.sw-search input:focus { border-color: var(--navy); }
.sw-search button {
  padding: 10px 18px; background: var(--navy); color: var(--white);
  border: none; border-radius: 8px; font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: var(--transition);
}
.sw-search button:hover { background: var(--green); }

/* Categories */
.sw-categories { display: flex; flex-direction: column; gap: 6px; }
.sw-cat-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 8px; font-size: .88rem;
  font-weight: 500; color: var(--text); transition: var(--transition);
}
.sw-cat-link:hover, .sw-cat-link.active {
  background: var(--light); color: var(--navy);
}
.sw-cat-link span {
  font-size: .75rem; background: var(--light); color: var(--muted);
  padding: 2px 8px; border-radius: 50px; font-weight: 700;
}
.sw-cat-link.active span { background: var(--green); color: var(--white); }

/* Recent */
.sw-recent { display: flex; flex-direction: column; gap: 0; }
.sw-recent li a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sw-recent li:last-child a { border-bottom: none; }
.sw-recent li a:hover .sr-title { color: var(--green); }
.sr-date  { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.sr-title { font-size: .88rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* Newsletter */
.sw-newsletter p { color: var(--muted); font-size: .88rem; margin-bottom: 18px; line-height: 1.7; }
.sw-newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.sw-newsletter-form input {
  padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .88rem; outline: none; transition: var(--transition);
}
.sw-newsletter-form input:focus { border-color: var(--navy); }
.sw-newsletter-form .btn { width: 100%; justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; gap: 48px; }
  .news-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .news-featured-card { grid-template-columns: 280px 1fr; }
}
@media (max-width: 768px) {
  .news-tabs-bar { top: 64px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured-card { grid-template-columns: 1fr; }
  .nf-thumb { min-height: 200px; }
  .nf-body { padding: 32px; }
  .news-sidebar { grid-template-columns: 1fr; }
}
