/* ══════════════════════════════════════════════════════════════
   KALAMWEB NEWS PORTAL — Professional Theme
   ══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --kw-primary: #dc2626;
  --kw-primary-hover: #b91c1c;
  --kw-primary-light: #fef2f2;
  --kw-primary-dark: #991b1b;
  --kw-accent: #f59e0b;
  --kw-headline: #1e293b;

  --kw-bg: #ffffff;
  --kw-bg-muted: #f1f5f9;
  --kw-bg-card: #ffffff;
  --kw-text: #0f172a;
  --kw-text-secondary: #475569;
  --kw-text-muted: #94a3b8;
  --kw-border: #e2e8f0;
  --kw-border-light: #f1f5f9;

  --kw-radius: 0.5rem;
  --kw-radius-lg: 0.75rem;
  --kw-radius-xl: 1rem;
  --kw-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.08);
  --kw-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 18px -3px rgba(0,0,0,0.08);
  --kw-shadow-lg: 0 10px 40px -5px rgba(0,0,0,0.12);
  --kw-shadow-xl: 0 20px 60px -10px rgba(0,0,0,0.18);

  --kw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --kw-font-heading: 'Poppins', 'Inter', sans-serif;
  --kw-nav-height: 64px;
  --kw-container-max: 1280px;
}

/* Dark mode */
[data-bs-theme="dark"] {
  --kw-primary: #ef4444;
  --kw-primary-hover: #f87171;
  --kw-primary-light: #1e1b1b;
  --kw-primary-dark: #7f1d1d;
  --kw-headline: #f1f5f9;

  --kw-bg: #0b1121;
  --kw-bg-muted: #131c31;
  --kw-bg-card: #151f35;
  --kw-text: #e2e8f0;
  --kw-text-secondary: #94a3b8;
  --kw-text-muted: #64748b;
  --kw-border: #1e293b;
  --kw-border-light: #1e293b;

  --kw-shadow: 0 1px 2px rgba(0,0,0,0.3);
  --kw-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --kw-shadow-lg: 0 10px 40px -5px rgba(0,0,0,0.5);
  --kw-shadow-xl: 0 20px 60px -10px rgba(0,0,0,0.6);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--kw-font);
  color: var(--kw-text);
  background: var(--kw-bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--kw-primary); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--kw-primary-hover); }
img { max-width: 100%; height: auto; }
::selection { background: var(--kw-primary); color: #fff; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--kw-font-heading); font-weight: 700; line-height: 1.25; color: var(--kw-headline); }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
.text-secondary { color: var(--kw-text-secondary) !important; }
.text-muted { color: var(--kw-text-muted) !important; }
.small, small { font-size: 0.875rem; }

/* ─── Container ─── */
.container { width: 100%; max-width: var(--kw-container-max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ══════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════ */
.top-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  display: none;
}
@media (min-width: 768px) { .top-bar { display: block; } }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.top-bar a { color: #cbd5e1; }
.top-bar a:hover { color: #fff; }
.top-bar .date { color: #64748b; }
.top-bar .social-links { display: flex; gap: 0.75rem; }
.top-bar .social-links a { opacity: 0.7; transition: opacity 0.2s; }
.top-bar .social-links a:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--kw-bg-card);
  border-bottom: 1px solid var(--kw-border);
  height: var(--kw-nav-height);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  box-shadow: var(--kw-shadow-md);
  border-bottom-color: transparent;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--kw-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .navbar-inner { padding: 0 2rem; } }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--kw-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--kw-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.03em;
}
.navbar-brand:hover { color: var(--kw-primary) !important; }
.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--kw-primary), var(--kw-primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.navbar-brand .logo-icon svg { width: 20px; height: 20px; stroke: #fff; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav li { margin: 0; }
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--kw-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--kw-primary);
  background: var(--kw-primary-light);
}
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--kw-text);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.navbar-toggler:hover { background: var(--kw-bg-muted); }
.navbar-collapse {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--kw-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-size: 1rem;
}
.btn-icon:hover {
  background: var(--kw-bg-muted);
  color: var(--kw-primary);
  border-color: var(--kw-border);
}
/* Mobile responsive */
@media (max-width: 991.98px) {
  .navbar-toggler { display: block; }
  .navbar-collapse {
    position: fixed;
    top: var(--kw-nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--kw-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--kw-border);
  }
  .navbar-collapse.show { transform: translateX(0); }
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--kw-border-light);
  }
  .navbar-actions {
    margin-left: 0;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--kw-border);
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   BREAKING NEWS BAR
   ══════════════════════════════════════════════════════════════ */
.breaking-bar {
  background: #991b1b;
  color: #fff;
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--kw-primary);
}
.breaking-bar-inner {
  max-width: var(--kw-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .breaking-bar-inner { padding: 0 2rem; } }
.breaking-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.breaking-ticker {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
}
.breaking-ticker a {
  color: #fca5a5;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}
.breaking-ticker a:hover { color: #fff; }
@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(220,38,38,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(245,158,11,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(220,38,38,0.2);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(220,38,38,0.3);
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 800px;
  color: #fff;
}
.hero-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--kw-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--kw-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta .btn:hover {
  background: var(--kw-primary-hover);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--kw-border);
}
.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.section-header h2 .accent {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--kw-primary);
  border-radius: 2px;
}
.section-header .section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--kw-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-header .section-link:hover { color: var(--kw-primary); }

/* ══════════════════════════════════════════════════════════════
   NEWS CARDS
   ══════════════════════════════════════════════════════════════ */
.news-card {
  background: var(--kw-bg-card);
  border: 1px solid var(--kw-border);
  border-radius: var(--kw-radius-xl);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kw-shadow-lg);
}
.news-card .card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--kw-bg-muted);
  transition: transform 0.4s;
  display: block;
}
.news-card:hover .card-img {
  transform: scale(1.05);
}
.news-card .card-img-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: transform 0.4s;
}
.news-card:hover .card-img-placeholder {
  transform: scale(1.05);
}
.news-card:nth-child(2n) .card-img-placeholder { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.news-card:nth-child(3n) .card-img-placeholder { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.news-card:nth-child(4n) .card-img-placeholder { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.news-card:nth-child(5n) .card-img-placeholder { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.news-card:nth-child(6n) .card-img-placeholder { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.news-card .card-img-placeholder svg {
  width: 56px;
  height: 56px;
  stroke: rgba(255,255,255,0.6);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.news-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card .card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kw-primary);
  margin-bottom: 0.5rem;
  background: var(--kw-primary-light);
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
}
.news-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-title a {
  color: var(--kw-headline);
  text-decoration: none;
  transition: color 0.2s;
}
.news-card .card-title a:hover {
  color: var(--kw-primary);
}
.news-card .card-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--kw-text-secondary);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--kw-text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--kw-border-light);
  align-items: center;
}
.news-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Category Cards */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: var(--kw-radius-xl);
  color: #fff !important;
  text-decoration: none !important;
  min-height: 120px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--kw-shadow-xl); }
.category-card h5 { font-weight: 700; color: #fff; margin: 0; font-size: 0.9rem; position: relative; z-index: 1; }
.category-card span { font-size: 0.7rem; opacity: 0.8; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════════════════════ */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--kw-text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--kw-text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--kw-primary); }
.article-breadcrumb .sep { color: var(--kw-text-muted); }
.article-badge {
  display: inline-block;
  background: var(--kw-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--kw-headline);
}
.article-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--kw-text-secondary);
  margin-bottom: 1rem;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--kw-border-light);
  border-bottom: 1px solid var(--kw-border-light);
  font-size: 0.8125rem;
  color: var(--kw-text-muted);
}
.article-meta-bar span { display: flex; align-items: center; gap: 0.375rem; }
.article-featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--kw-radius-xl);
  margin: 1.5rem 0;
  border: 1px solid var(--kw-border);
  box-shadow: var(--kw-shadow);
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--kw-text);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--kw-headline); }
.article-content h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--kw-headline); }
.article-content img { max-width: 100%; border-radius: var(--kw-radius-lg); margin: 1.5rem 0; box-shadow: var(--kw-shadow); }
.article-content blockquote {
  border-left: 4px solid var(--kw-primary);
  background: var(--kw-bg-muted);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--kw-radius) var(--kw-radius) 0;
  color: var(--kw-text-secondary);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content code {
  background: var(--kw-bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--kw-primary);
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--kw-radius);
  overflow-x: auto;
  font-size: 0.875rem;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--kw-border);
}
.article-tags .tag-label { font-size: 0.8125rem; font-weight: 600; color: var(--kw-text-secondary); }
.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--kw-bg-muted);
  color: var(--kw-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--kw-border-light);
}
.tag-badge:hover { background: var(--kw-primary); color: #fff; border-color: var(--kw-primary); }

/* Share buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--kw-border);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.share-twitter { background: #000; color: #fff; } .share-twitter:hover { background: #333; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; } .share-facebook:hover { background: #0d6ae5; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; } .share-whatsapp:hover { background: #1fb855; color: #fff; }
.share-copy { background: var(--kw-bg-muted); color: var(--kw-text); border: 1px solid var(--kw-border); }
.share-copy:hover { background: var(--kw-border); }

/* Comments */
.comments-section { padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--kw-border); }
.comment-item {
  padding: 1rem;
  background: var(--kw-bg-muted);
  border-radius: var(--kw-radius);
  margin-bottom: 0.75rem;
}
.comment-item .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.comment-item .comment-author { font-weight: 600; font-size: 0.875rem; }
.comment-item .comment-date { font-size: 0.75rem; color: var(--kw-text-muted); }
.comment-item .comment-text { font-size: 0.875rem; line-height: 1.6; color: var(--kw-text-secondary); margin: 0; }

/* ══════════════════════════════════════════════════════════════
   CATEGORY / TAG / SEARCH HEADER
   ══════════════════════════════════════════════════════════════ */
.page-header {
  padding: 2rem 0;
  background: var(--kw-bg-muted);
  border-bottom: 1px solid var(--kw-border);
  margin-bottom: 2rem;
}
.page-header h1 { margin-bottom: 0.25rem; }
.page-header p { color: var(--kw-text-secondary); font-size: 0.9rem; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════════════════ */
.search-form { max-width: 600px; margin: 0 auto; }
.search-form .input-group { display: flex; }
.search-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 2px solid var(--kw-border);
  border-right: none;
  border-radius: var(--kw-radius) 0 0 var(--kw-radius);
  font-size: 0.9rem;
  background: var(--kw-bg);
  color: var(--kw-text);
  outline: none;
  transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--kw-primary); }
.search-form button {
  padding: 0.625rem 1.25rem;
  background: var(--kw-primary);
  color: #fff;
  border: 2px solid var(--kw-primary);
  border-radius: 0 var(--kw-radius) var(--kw-radius) 0;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-form button:hover { background: var(--kw-primary-hover); }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--kw-text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--kw-text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pagination-custom {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.pagination-custom a, .pagination-custom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--kw-radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--kw-border);
  color: var(--kw-text);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination-custom a:hover { background: var(--kw-bg-muted); border-color: var(--kw-primary); color: var(--kw-primary); }
.pagination-custom .active { background: var(--kw-primary); border-color: var(--kw-primary); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.site-footer h5 {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.site-footer p, .site-footer a { font-size: 0.85rem; color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .footer-about p { line-height: 1.7; max-width: 360px; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 0.5rem; }
.site-footer .footer-links li a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.site-footer .footer-links li a:hover { color: #fff; }
.site-footer .footer-bottom {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ─── Newsletter ─── */
.newsletter-form { display: flex; gap: 0.5rem; max-width: 400px; }
.newsletter-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.8125rem;
  outline: none;
}
.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form input:focus { border-color: var(--kw-primary); }
.newsletter-form button {
  padding: 0.5rem 1rem;
  background: var(--kw-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--kw-primary-hover); }

/* ══════════════════════════════════════════════════════════════
   AD SPACE
   ══════════════════════════════════════════════════════════════ */
.ad-space { text-align: center; margin-bottom: 1.5rem; }
.ad-space:empty { display: none; }

/* ══════════════════════════════════════════════════════════════
   READING PROGRESS
   ══════════════════════════════════════════════════════════════ */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kw-primary), var(--kw-accent));
  z-index: 9999;
  transition: width 0.15s;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE TOGGLE
   ══════════════════════════════════════════════════════════════ */
.dark-mode-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--kw-border);
  background: transparent;
  color: var(--kw-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.dark-mode-toggle:hover { background: var(--kw-bg-muted); border-color: var(--kw-primary); color: var(--kw-primary); }

/* ══════════════════════════════════════════════════════════════
   SKIP TO CONTENT
   ══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--kw-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ─── Sidebar Widget Styling ─── */
.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--kw-primary);
  display: inline-block;
}
.widget-title i { color: var(--kw-primary); margin-right: 0.375rem; }

/* Sidebar recent post entry */
.sidebar-post {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--kw-border-light);
}
.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post-thumb {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.sidebar-post-thumb-placeholder {
  width: 70px;
  height: 55px;
  background: var(--kw-bg-muted);
  border-radius: 0.375rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kw-text);
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.sidebar-post-title:hover { color: var(--kw-primary); }
.sidebar-post-date {
  font-size: 0.7rem;
  color: var(--kw-text-muted);
}

/* Truncated breadcrumb text */
.truncate-text {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--kw-text-muted);
}

/* H3 heading style for sections */
.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.subsection-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

/* Icon color utility */
.icon-primary { color: var(--kw-primary); }

/* Contact info list */
.contact-info-label {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-info-item {
  font-size: 0.85rem;
  color: var(--kw-text-secondary);
  margin-bottom: 0.5rem;
}
.contact-info-item i { color: var(--kw-primary); margin-right: 0.5rem; }

/* Newsletter footer heading override */
.newsletter-heading {
  color: #f1f5f9;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}
.newsletter-form-wrap {
  margin: 0.75rem auto 0;
}
.newsletter-msg {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
  color: #94a3b8;
}

/* Featured badge on home */
.featured-badge-sm {
  font-size: 0.7rem;
  display: inline-block;
}

/* Card title small */
.card-title-sm {
  font-size: 0.95rem;
}

/* Section heading in footer dark area */
.footer-heading {
  color: #f1f5f9;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Footer newsletter divider */
.footer-newsletter-divider {
  border-top: 1px solid #1e293b;
}

/* ─── Editor's Picks Badge ─── */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .hero-section { min-height: 300px; padding: 2rem 0; }
  .hero-title { font-size: 1.5rem; }
  .hero-summary { font-size: 0.9rem; }
  .news-card .card-img,
  .news-card .card-img-placeholder { height: 170px; }
  .page-header { padding: 1.5rem 0; }
  .article-meta-bar { gap: 0.5rem; font-size: 0.75rem; }
  .site-footer { padding: 2rem 0 0; }
}

/* ─── Bootstrap Compatibility ─── */
[data-bs-theme="dark"] body { background: var(--kw-bg); color: var(--kw-text); }
[data-bs-theme="dark"] .bg-light { background: var(--kw-bg-muted) !important; }
[data-bs-theme="dark"] .bg-white { background: var(--kw-bg-card) !important; }
[data-bs-theme="dark"] .text-dark { color: var(--kw-text) !important; }
[data-bs-theme="dark"] .text-muted { color: var(--kw-text-muted) !important; }
[data-bs-theme="dark"] .border-bottom { border-color: var(--kw-border) !important; }
[data-bs-theme="dark"] .border-top { border-color: var(--kw-border) !important; }
[data-bs-theme="dark"] .border { border-color: var(--kw-border) !important; }

/* ─── Bootstrap Form Controls (Dark) ─── */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: var(--kw-bg-card);
  border-color: var(--kw-border);
  color: var(--kw-text);
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: var(--kw-bg-card);
  border-color: var(--kw-primary);
  color: var(--kw-text);
  box-shadow: 0 0 0 0.2rem rgba(220,38,38,0.15);
}
[data-bs-theme="dark"] .form-control::placeholder { color: var(--kw-text-muted); }
[data-bs-theme="dark"] .form-label { color: var(--kw-text-secondary); }

/* ─── Bootstrap Buttons (Dark) ─── */
[data-bs-theme="dark"] .btn-primary {
  background-color: var(--kw-primary);
  border-color: var(--kw-primary);
}
[data-bs-theme="dark"] .btn-primary:hover {
  background-color: var(--kw-primary-hover);
  border-color: var(--kw-primary-hover);
}

/* ─── Bootstrap Alerts (Dark) ─── */
[data-bs-theme="dark"] .alert-success {
  background-color: rgba(5,150,105,0.15);
  border-color: rgba(5,150,105,0.3);
  color: #34d399;
}
[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.3);
  color: #fca5a5;
}
[data-bs-theme="dark"] .alert-warning {
  background-color: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.3);
  color: #fbbf24;
}
[data-bs-theme="dark"] .alert-info {
  background-color: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.3);
  color: #93c5fd;
}

/* ─── Bootstrap Dropdown (Dark) ─── */
[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--kw-bg-card);
  border-color: var(--kw-border);
}
[data-bs-theme="dark"] .dropdown-item {
  color: var(--kw-text-secondary);
}
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item.active {
  background-color: var(--kw-bg-muted);
  color: var(--kw-text);
}
[data-bs-theme="dark"] .dropdown-divider {
  border-color: var(--kw-border);
}

/* ─── Bootstrap Table (Dark) ─── */
[data-bs-theme="dark"] .table {
  color: var(--kw-text);
  border-color: var(--kw-border);
}
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
  color: var(--kw-text);
  background-color: var(--kw-bg-muted);
}
[data-bs-theme="dark"] .table-hover > tbody > tr:hover {
  color: var(--kw-text);
  background-color: rgba(220,38,38,0.05);
}
