/* ============================================================
   Khabar Room — Frontend CSS
   Inspired by mihaaru.com design language
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'MV Waheed';
  src: url('/fonts/mv-waheed.woff2') format('woff2'),
       url('/fonts/mv-waheed.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MV Faseyha';
  src: url('/fonts/mv-faseyha.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MV Faruma';
  src: url('/fonts/mv-faruma.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --font-dv: 'MV Waheed', 'MV Faseyha', 'MV Faruma', sans-serif;
  --font-body-dv: 'MV Faseyha', 'MV Waheed', 'MV Faruma', sans-serif;
  --font-en: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;

  --red: #dc2626;
  --red-dark: #b91c1c;
  --black: #000000;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-800: #1f2937;

  --header-height: 60px;
  --cat-bar-height: 44px;
  --sticky-top: calc(var(--header-height) + var(--cat-bar-height));
  --container: 1200px;
  --gap: 20px;
  --radius: 4px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
input, button, select, textarea { font-family: inherit; }

html { font-size: 16px; }

body {
  font-family: var(--font-en);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
  direction: ltr;
}

body[data-lang="dv"] {
  font-family: var(--font-dv);
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }

/* ── Breaking News Ticker ───────────────────────────────────── */
.ticker-bar {
  display: flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  height: 34px;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-inline-end: 1px solid rgba(255,255,255,0.3);
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-items {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

[dir="rtl"] .ticker-items { animation-name: ticker-scroll-rtl; }

.ticker-item a { color: var(--white); }

@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100vw); }
}
@keyframes ticker-scroll-rtl {
  0%   { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}

/* ── Navigation ─────────────────────────────────────────────── */

/* ── Site Header (row 1) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 302; /* above overlay (299) and drawer (300) */
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-start { flex: 1; display: flex; align-items: center; }
.header-center { flex-shrink: 0; }
.header-end { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}
.site-logo .logo-dv {
  font-family: 'MV Waheed', sans-serif;
  font-size: 26px;
  color: var(--red);
  line-height: 1;
}

/* Icon buttons (search, hamburger) */
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-700);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.header-icon-btn:hover { background: var(--gray-100); color: var(--red); }

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-en);
}
.lang-opt { color: var(--gray-500); font-weight: 500; transition: color 0.15s; }
.lang-opt:hover { color: var(--gray-900); }
.lang-opt.lang-active { color: var(--red); }
.lang-sep { color: var(--gray-300); }

/* Search bar (hidden by default, slides down) */
.header-search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, border-color 0.25s;
  border-top: 0px solid var(--gray-200);
  background: var(--white);
}
.header-search-bar.open {
  max-height: 60px;
  border-top-width: 1px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  width: 100%;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  color: var(--gray-900);
  direction: inherit;
}
[data-lang="en"] .search-input { font-family: var(--font-en); }
.search-input::placeholder { color: var(--gray-400); }
.search-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-500);
  flex-shrink: 0;
}
.search-close-btn:hover { color: var(--red); }

/* ── Category Bar (row 2) ── */
.cat-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 301; /* above overlay, below site-header */
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
}
.cat-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }

.cat-bar-link {
  flex-shrink: 0;
  padding: 0 14px;
  height: var(--cat-bar-height);
  display: inline-flex;
  align-items: center;
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  color: var(--gray-700);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
[data-lang="en"] .cat-bar-link { font-family: var(--font-en); font-size: 13px; font-weight: 500; }
.cat-bar-link:hover { color: var(--red); border-bottom-color: var(--red); }
.cat-bar-link.cat-bar-active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ── Mobile Nav Drawer ── */
.nav-drawer {
  position: fixed;
  top: calc(var(--header-height) + var(--cat-bar-height));
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
}
[dir="rtl"] .nav-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.nav-drawer-links {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
[data-lang="en"] .nav-drawer-link { font-family: var(--font-en); font-size: 15px; font-weight: 500; }
.nav-drawer-link:hover { background: var(--gray-50, #f9fafb); color: var(--red); }
.nav-drawer-active { color: var(--red); font-weight: 600; }
.nav-drawer-active .cat-dot { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px currentColor; }

.nav-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: calc(var(--header-height) + var(--cat-bar-height));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Layout ─────────────────────────────────────────────────── */
.site-main { padding: 24px 0 48px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'MV Waheed', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-900);
}

[data-lang="en"] .section-title {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
}

.section-title a { color: inherit; }
.section-title a:hover { color: var(--red); }

.section-title-accent {
  display: block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
  font-family: var(--font-dv);
  transition: color 0.15s;
}
[data-lang="en"] .see-all { font-family: var(--font-en); }
.see-all:hover { color: var(--red); }

/* ── Breaking News Bar ──────────────────────────────────────── */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.breaking-bar-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
}
.breaking-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: 44px;
  background: rgba(0,0,0,0.22);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-inline-end: 1px solid rgba(255,255,255,0.2);
}
[data-lang="dv"] .breaking-badge {
  font-family: var(--font-dv);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.breaking-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  animation: breaking-pulse 1.4s ease-in-out infinite;
}
@keyframes breaking-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}
.breaking-headlines {
  flex: 1;
  position: relative;
  height: 44px;
  overflow: hidden;
  padding: 0 14px;
}
.breaking-hl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-dv);
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  pointer-events: none;
}
[data-lang="en"] .breaking-hl {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
}
.breaking-hl--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.breaking-hl:hover { text-decoration: underline; text-underline-offset: 2px; }
.breaking-nav {
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  padding: 0 10px;
}
.breaking-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.2);
  border: none;
  border-radius: 3px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.15s;
}
.breaking-nav-btn:hover { background: rgba(0,0,0,0.4); color: var(--white); }

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section { margin-bottom: 36px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
}

/* Ad slot beside hero */
.hero-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
}
.hero-ad-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.hero-main { position: relative; }
.hero-link { display: block; }

.hero-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-200);
  aspect-ratio: 16/9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.hero-link:hover .hero-img { transform: scale(1.03); }

/* ── Hero Overlay (gradient + title on image) ── */
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 20px 20px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 45%,
    transparent 100%);
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero-cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'MV Waheed', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1.6;
  margin-bottom: 10px;
}
[data-lang="en"] .hero-cat-badge {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
[data-lang="en"] .hero-title {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}
.hero-link:hover .hero-title { color: rgba(255,255,255,0.88); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-dv);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
}
[data-lang="en"] .hero-author-avatar { font-family: var(--font-en); }
.hero-author-name {
  font-family: var(--font-dv);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
[data-lang="en"] .hero-author-name { font-family: var(--font-en); }
.hero-meta-sep { color: rgba(255,255,255,0.45); font-size: 14px; }
.meta-time-light {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}
[data-lang="dv"] .meta-time-light {
  font-family: var(--font-dv);
}

/* ── Hero Side ──────────────────────────────────────────────── */
.hero-side {
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid var(--gray-200);
  padding-inline-start: var(--gap);
}

.hero-side-item { border-bottom: 1px solid var(--gray-100); }
.hero-side-item:last-child { border-bottom: none; }

/* First side item — full-width image on top */
.hero-side-item:first-child .hero-side-link {
  flex-direction: column;
  gap: 0;
}

.hero-side-img-top {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
  margin-bottom: 10px;
}
.hero-side-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.hero-side-item:first-child .hero-side-link:hover .hero-side-img-top img { transform: scale(1.04); }

.hero-side-content-top {
  padding: 10px 0 14px;
}
.hero-side-content-top .hero-side-title { font-size: 15px; -webkit-line-clamp: 3; }

/* Remaining side items — horizontal thumbnail + text */
.hero-side-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
}
.hero-side-item:first-child .hero-side-link { padding: 0 0 14px; }

.hero-side-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}
.hero-side-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.hero-side-link:hover .hero-side-img { transform: scale(1.05); }

.hero-side-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.side-cat {
  font-family: 'MV Waheed', sans-serif;
  font-size: 11px;
  color: var(--red);
  display: block;
}
[data-lang="en"] .side-cat {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-side-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-lang="en"] .hero-side-title { font-family: var(--font-en); font-size: 13px; font-weight: 600; }
.hero-side-link:hover .hero-side-title { color: var(--red); }

.side-time {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--gray-400);
  display: block;
  margin-top: 2px;
}

/* ── Mobile hero ── */
@media (max-width: 767px) {
  .hero-side {
    border-inline-start: none;
    padding-inline-start: 0;
    border-top: 1px solid var(--gray-200);
    padding-top: var(--gap);
  }
  .hero-title { font-size: 22px; }
  .hero-overlay { padding: 60px 14px 16px; }
}

/* ── Category Sections (list style, matches Latest News) ────── */
.cat-section { margin-bottom: 40px; }

/* ── Category article list (same style as Latest News) ── */
.cat-list { display: flex; flex-direction: column; }

.cat-list-item { border-bottom: 1px solid var(--gray-200); }
.cat-list-item:last-child { border-bottom: none; }

.cat-list-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  text-decoration: none;
}

.cat-list-img-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 75px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}
@media (min-width: 640px) { .cat-list-img-wrap { width: 160px; height: 105px; } }

.cat-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.cat-list-link:hover .cat-list-img { transform: scale(1.04); }


.cat-list-content { flex: 1; min-width: 0; }

.cat-list-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-lang="en"] .cat-list-title { font-family: var(--font-en); font-size: 15px; font-weight: 600; line-height: 1.4; }
.cat-list-link:hover .cat-list-title { color: var(--red); }

.cat-list-excerpt {
  font-family: 'MV Faseyha', sans-serif;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-lang="en"] .cat-list-excerpt { font-family: var(--font-en); font-size: 13px; }

/* ── Category badge on card images ── */
.card-cat-badge {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  color: var(--white);
  font-family: 'MV Waheed', sans-serif;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 3px;
  line-height: 1.7;
  white-space: nowrap;
}
[data-lang="en"] .card-cat-badge {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Regular news cards (used in category page + side cards) ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.news-card { border-radius: var(--radius); overflow: hidden; }
.news-card a { display: block; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.news-card a:hover .card-img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
}

.card-body { padding: 10px 0 0; }

.card-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-lang="en"] .card-title { font-family: var(--font-en); font-size: 13px; font-weight: 600; }
.news-card a:hover .card-title { color: var(--red); }

.card-excerpt {
  font-family: 'MV Faseyha', sans-serif;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 6px;
  line-height: 1.6;
}
[data-lang="en"] .card-excerpt { font-family: var(--font-en); font-size: 12px; }

.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ── Meta (shared) ──────────────────────────────────────────── */
.meta-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: var(--font-en);
  color: var(--gray-500);
}
[data-lang="dv"] .meta-time {
  font-family: var(--font-dv);
}

/* ── Latest Section ─────────────────────────────────────────── */
.latest-section { margin-bottom: 36px; }

/* Two-column grid on desktop: feed left, sidebar right */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .latest-grid { grid-template-columns: 1fr 300px; }
}

.latest-main { min-width: 0; }

/* Sticky sidebar */
.latest-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .latest-sidebar {
    position: sticky;
    top: calc(var(--sticky-top) + 20px);
  }
}

/* ── Most Read widget ── */
.most-read-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.most-read-item:last-child { border-bottom: none; padding-bottom: 0; }

.most-read-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  min-width: 32px;
  flex-shrink: 0;
  padding-top: 2px;
}

.most-read-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.most-read-cat {
  font-family: 'MV Waheed', sans-serif;
  font-size: 10px;
  color: var(--red);
  display: block;
}
[data-lang="en"] .most-read-cat { font-family: var(--font-en); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.most-read-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
[data-lang="en"] .most-read-title { font-family: var(--font-en); font-size: 13px; font-weight: 600; }
.most-read-title:hover { color: var(--red); }

.most-read-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--gray-400);
}

.latest-list { display: flex; flex-direction: column; }

.latest-item { border-bottom: 1px solid var(--gray-200); }
.latest-item-pinned { border-left: 3px solid #dc2626; padding-left: 10px; }
.latest-item:last-child { border-bottom: none; }

.latest-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
}

.latest-img-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 75px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}

@media (min-width: 640px) { .latest-img-wrap { width: 160px; height: 105px; } }

.latest-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.latest-link:hover .latest-img { transform: scale(1.04); }

.latest-content { flex: 1; }

.latest-cat {
  display: inline-block;
  font-family: 'MV Waheed', sans-serif;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 5px;
}
[data-lang="en"] .latest-cat { font-family: var(--font-en); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.latest-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 8px;
}
[data-lang="en"] .latest-title { font-family: var(--font-en); font-size: 15px; font-weight: 600; }
.latest-link:hover .latest-title { color: var(--red); }

.latest-meta { display: flex; align-items: center; gap: 6px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination-wrap { margin-top: 28px; display: flex; justify-content: center; }
.pagination-wrap nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }

.pagination-wrap span,
.pagination-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-en);
  color: var(--gray-700);
  transition: all 0.15s;
}

.pagination-wrap a:hover { border-color: var(--red); color: var(--red); }
.pagination-wrap span[aria-current="page"] { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── Category Page ──────────────────────────────────────────── */
.cat-page-header {
  position: relative;
  padding: 20px 0 20px 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

[dir="rtl"] .cat-page-header { padding: 20px 20px 20px 0; }

.cat-page-accent {
  width: 4px;
  height: 100%;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  border-radius: 2px;
}

.cat-page-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--gray-900);
}
[data-lang="en"] .cat-page-title { font-family: var(--font-en); font-size: 24px; font-weight: 700; }

.cat-page-desc {
  font-family: 'MV Faseyha', sans-serif;
  font-size: 15px;
  color: var(--gray-500);
  margin-top: 6px;
}
[data-lang="en"] .cat-page-desc { font-family: var(--font-en); }

.mt-6 { margin-top: 24px; }

/* ── Article Page ───────────────────────────────────────────── */
.article-wrap { padding: 0; }

.article-header {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 20px 0 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  font-family: var(--font-dv);
  color: var(--gray-500);
}
[data-lang="en"] .breadcrumb { font-family: var(--font-en); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--gray-400); }

.article-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.5;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .article-title { font-size: 48px; line-height: 1.4; } }

[data-lang="en"] .article-title { font-family: var(--font-en); font-size: 30px; font-weight: 800; line-height: 1.3; }
@media (min-width: 768px) { [data-lang="en"] .article-title { font-size: 38px; } }

.article-summary {
  font-family: 'MV Waheed', sans-serif;
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 16px;
}
[data-lang="en"] .article-summary { font-family: var(--font-en); font-size: 17px; line-height: 1.65; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: var(--font-dv);
  color: var(--gray-500);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
[data-lang="en"] .article-meta { font-family: var(--font-en); }

.meta-author { font-weight: 600; color: var(--gray-700); }
.meta-sep { color: var(--gray-300); }
.meta-reading { color: var(--gray-500); }

/* Featured Image */
.article-figure { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }

.article-hero-img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.article-hero-placeholder { object-fit: cover; min-height: 260px; background: var(--gray-100); }

.article-caption {
  font-size: 12px;
  font-family: var(--font-dv);
  color: var(--gray-500);
  padding: 8px 0 0;
  text-align: center;
}
[data-lang="en"] .article-caption {
  font-family: var(--font-en);
}

/* Article Content Grid */
.article-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .article-content-grid { grid-template-columns: 1fr 300px; align-items: start; }
}

/* Article Body */
.article-body-wrap { min-width: 0; max-width: 720px; }

.article-body {
  font-family: 'MV Faseyha', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--gray-900);
}

[data-lang="en"] .article-body { font-family: var(--font-en); font-size: 17px; line-height: 1.75; }

.article-body .ql-editor {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  direction: inherit;
}

.article-body p { margin-bottom: 1.2em; }
.article-body h2 { font-family: 'MV Waheed', sans-serif; font-size: 24px; margin: 1.5em 0 0.6em; color: var(--gray-900); }
.article-body h3 { font-family: 'MV Waheed', sans-serif; font-size: 20px; margin: 1.3em 0 0.5em; color: var(--gray-900); }
[data-lang="en"] .article-body h2 { font-family: var(--font-en); font-weight: 700; }
[data-lang="en"] .article-body h3 { font-family: var(--font-en); font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 1em 0; max-width: 100%; }
.article-body blockquote {
  border-inline-start: 4px solid var(--red);
  padding: 10px 20px;
  margin: 1.6em 0;
  color: var(--gray-700);
  font-size: 1.15rem;
  line-height: 1.8;
  font-style: italic;
  background-color: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
[dir="rtl"] .article-body blockquote {
  border-radius: var(--radius) 0 0 var(--radius);
}

.article-body .callout-box {
  background-color: var(--gray-50);
  border-inline-start: 4px solid var(--red);
  padding: 14px 20px;
  margin: 1.6em 0;
  border-radius: var(--radius);
  color: var(--gray-900);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-inline-start: 24px; margin-bottom: 1em; }
.article-body li { margin-bottom: 0.4em; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-dv);
  color: var(--gray-700);
  transition: all 0.15s;
}
[data-lang="en"] .tag-pill { font-family: var(--font-en); }
.tag-pill:hover { border-color: var(--red); color: var(--red); }

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.share-label {
  font-size: 13px;
  font-family: 'MV Waheed', sans-serif;
  color: var(--gray-600);
}
[data-lang="en"] .share-label { font-family: var(--font-en); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-en);
  font-weight: 500;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; color: inherit; }
.share-twitter { background: #000; color: #fff; }
.share-fb  { background: #1877f2; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }

/* ── Article Sidebar ────────────────────────────────────────── */
@media (min-width: 1024px) {
  .article-sidebar { position: sticky; top: calc(var(--sticky-top) + 16px); }
}

.sidebar-widget {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
[data-lang="en"] .widget-title { font-family: var(--font-en); font-size: 14px; font-weight: 700; }

.related-item { padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.related-item:last-child { border-bottom: none; padding-bottom: 0; }

.related-link { display: flex; gap: 10px; align-items: flex-start; }

.related-img-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--gray-200);
}
.related-img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; }

.related-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.6;
  margin-bottom: 4px;
}
[data-lang="en"] .related-title { font-family: var(--font-en); font-size: 12px; font-weight: 600; }
.related-link:hover .related-title { color: var(--red); }

.related-date { font-size: 11px; font-family: var(--font-en); color: var(--gray-500); }

.cat-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  color: var(--gray-700);
  transition: color 0.15s;
  text-decoration: none;
}
.cat-sidebar-link:last-child { border-bottom: none; }
.cat-sidebar-link:hover { color: var(--red); }
[data-lang="en"] .cat-sidebar-link { font-family: var(--font-en); font-size: 13px; }

.cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #0e0e0e;
  margin-top: 72px;
  border-top: 3px solid var(--red);
}

/* 3-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 40px;
  border-bottom: 1px solid #1c1c1c;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Brand col */
.footer-logo-en {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.footer-logo-sub {
  font-family: 'MV Waheed', sans-serif;
  font-size: 14px;
  color: #3a3a3a;
  margin-bottom: 16px;
}
.footer-tagline {
  font-family: var(--font-en);
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Link/contact cols */
.footer-col-heading {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-en);
  font-size: 13px;
  color: #666;
  transition: color 0.15s;
}
.footer-link:hover { color: #ccc; }
.footer-link--muted { color: #444; }

/* Social icons */
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #666;
  border: 1px solid #252525;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social-btn:hover {
  background: #252525;
  color: #fff;
  border-color: #444;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: #3a3a3a;
}

/* Language toggle */
.footer-lang-btns {
  display: flex;
  gap: 4px;
}
.footer-lang-btn {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  color: #555;
  background: transparent;
  border: 1px solid #252525;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.04em;
}
.footer-lang-btn:hover { color: #aaa; border-color: #444; }
.footer-lang-btn.active { color: #fff; border-color: #555; background: #1e1e1e; }

/* ── Utility ────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  color: var(--gray-500);
}
[data-lang="en"] .empty-state { font-family: var(--font-en); }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-title { font-size: 14px; }
  .article-title { font-size: 28px; line-height: 1.5; }
  .site-logo .logo-dv { font-size: 20px; }
  .cat-bar-link { font-size: 13px; padding: 0 10px; }
  .article-body { font-size: 17px; }
  .article-summary { font-size: 16px; }
}

/* ── Related Articles — bottom row ─────────────────────────── */
.related-bottom {
  background: var(--gray-50);
  border-top: 3px solid var(--gray-200);
  padding: 40px 0 48px;
}
.related-bottom-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.related-bottom-title {
  font-size: 13px;
  font-family: var(--font-dv);
  font-weight: 400;
  color: var(--gray-400);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}
[data-lang="en"] .related-bottom-title {
  font-family: var(--font-en);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.related-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-bottom-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.15s, transform 0.15s;
}
.related-bottom-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.related-bottom-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.related-bottom-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-bottom-card:hover .related-bottom-img-wrap img { transform: scale(1.04); }
.related-bottom-info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.related-bottom-cat {
  font-family: var(--font-dv);
  font-size: 11px;
  color: var(--red);
}
[data-lang="en"] .related-bottom-cat {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-bottom-headline {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}
[data-lang="dv"] .related-bottom-headline { font-family: 'MV Waheed', sans-serif; font-size: 15px; font-weight: 400; }
.related-bottom-date { font-family: var(--font-en); font-size: 11px; color: var(--gray-400); margin-top: auto; padding-top: 4px; }

@media (max-width: 640px) {
  .related-bottom-grid { grid-template-columns: 1fr; }
}

/* ── Error Pages ────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 50vh;
}
.error-code {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 16px;
}
.error-title {
  font-family: 'MV Waheed', sans-serif;
  font-size: 26px;
  color: var(--gray-900);
  margin-bottom: 12px;
}
[data-lang="en"] .error-title { font-family: var(--font-en); font-size: 24px; }
.error-desc {
  font-family: 'MV Waheed', sans-serif;
  font-size: 16px;
  color: var(--gray-500);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 32px;
}
[data-lang="en"] .error-desc { font-family: var(--font-en); font-size: 15px; line-height: 1.6; }
.error-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-dv);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
[data-lang="en"] .error-home-btn { font-family: var(--font-en); }
.error-home-btn:hover { background: #b91c1c; }

/* ── Search Page ────────────────────────────────────────────── */
.search-page-form {
  display: flex;
  gap: 0;
  margin: 28px 0 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.search-page-form:focus-within { border-color: var(--red); }
.search-page-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--gray-900);
  background: var(--white);
  direction: ltr;
}
[data-lang="dv"] .search-page-input { font-family: 'MV Waheed', sans-serif; direction: rtl; }
.search-page-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-page-btn:hover { background: #b91c1c; }

/* ── Comments ─────────────────────────────────────────────────────────────── */
.comments-section {
  margin-top: 2.5rem;
  padding-top: 0;
}

/* Heading row — matches .section-title pattern used across the site */
.cmt-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.cmt-heading-accent {
  display: block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.cmt-heading {
  margin: 0;
  font-family: 'MV Waheed', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-900);
}
[data-lang="en"] .cmt-heading { font-family: var(--font-en); font-size: 16px; font-weight: 600; }
.cmt-count {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--font-en);
  padding: .1rem .5rem;
  line-height: 1.6;
}

/* Submission notice */
.cmt-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  font-family: 'MV Waheed', sans-serif;
}
[data-lang="en"] .cmt-notice { font-family: var(--font-en); }

/* ── Comment list ── */
.cmt-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }

/* Each comment card */
.cmt-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}

/* Top row: avatar + name/date */
.cmt-card-top {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .55rem;
}
.cmt-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--font-dv);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
[data-lang="en"] .cmt-avatar { font-family: var(--font-en); }
.cmt-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: .72rem;
  background: var(--gray-300);
  color: var(--gray-700);
}
.cmt-meta {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
}
.cmt-name {
  font-family: var(--font-dv);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
[data-lang="en"] .cmt-name { font-family: var(--font-en); }
.cmt-date {
  font-family: var(--font-en);
  font-size: .72rem;
  color: var(--gray-400);
  line-height: 1.2;
}

/* Comment body text */
.cmt-body {
  font-family: var(--font-body-dv);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-800);
  margin: 0 0 .55rem;
  word-break: break-word;
}
[data-lang="en"] .cmt-body { font-family: var(--font-en); font-size: .9rem; line-height: 1.65; }

/* Reply button */
.cmt-reply-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: .75rem;
  font-family: var(--font-en);
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
[data-lang="dv"] .cmt-reply-btn { font-family: 'MV Waheed', sans-serif; }
.cmt-reply-btn:hover { color: var(--red); }

/* Nested replies */
.cmt-replies { margin-top: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.cmt-card--reply { background: var(--gray-50); border-color: var(--gray-100); }

/* Inline reply form */
.cmt-reply-form {
  display: none;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-100);
}

/* ── Shared inputs ── */
.cmt-input {
  display: block;
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color .18s;
  box-sizing: border-box;
  margin-bottom: .5rem;
  font-family: var(--font-dv);
}
[data-lang="en"] .cmt-input { font-family: var(--font-en); font-size: .875rem; }
.cmt-textarea { resize: vertical; }
.cmt-input:focus { border-color: var(--red); }
.cmt-input::placeholder { color: var(--gray-400); }

.cmt-form-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .15rem;
}
.cmt-submit {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .52rem 1.35rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: 'MV Waheed', sans-serif;
}
[data-lang="en"] .cmt-submit { font-family: var(--font-en); }
.cmt-submit:hover { background: var(--red-dark); }
.cmt-submit--sm { padding: .4rem .95rem; font-size: .8rem; }
.cmt-cancel {
  background: none;
  border: none;
  padding: 0;
  font-size: .8rem;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: 'MV Waheed', sans-serif;
}
[data-lang="en"] .cmt-cancel { font-family: var(--font-en); }
.cmt-cancel:hover { color: var(--gray-700); }
.cmt-error { color: #dc2626; font-size: .78rem; margin: -.25rem 0 .45rem; }

/* ── Write comment area ── */
.cmt-write-area {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1rem .85rem;
}
.cmt-write-heading {
  margin: 0 0 .85rem;
  font-family: var(--font-dv);
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-700);
}
[data-lang="en"] .cmt-write-heading { font-family: var(--font-en); font-weight: 600; font-size: .875rem; }
.cmt-mod-note {
  font-size: .72rem;
  color: var(--gray-400);
  font-family: var(--font-en);
  margin-inline-start: auto;
}
[data-lang="dv"] .cmt-mod-note { font-family: 'MV Waheed', sans-serif; }

/* ── Secondary pinned articles (below hero) ────────────────────────────── */
.secondary-section {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 32px;
}
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (min-width: 768px) {
  .secondary-grid { grid-template-columns: repeat(4, 1fr); }
}
.secondary-item { display: flex; flex-direction: column; }
.secondary-link { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; }
.secondary-link:hover .secondary-title { color: var(--red); }
.secondary-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gray-100);
}
.secondary-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.secondary-link:hover .secondary-img { transform: scale(1.04); }
.secondary-content { display: flex; flex-direction: column; gap: .3rem; }
.secondary-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #dc2626;
}
.secondary-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

