@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap');

:root {
  --bg: #0e141b;
  --surface: rgba(20, 29, 38, 0.8);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(216, 224, 235, 0.18);
  --text: #f4f7fb;
  --muted: #b8c2d1;
  --accent: #c8a86b;
  --accent-soft: rgba(200, 168, 107, 0.18);
  --calm: #5ea9b8;
  --danger: #d07b7b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 42px rgba(3, 8, 13, 0.35);
  --max: 1120px;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-head: 'Fraunces', Georgia, serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Naskh Arabic', serif;
}

[data-theme='light'] {
  --bg: #f4f2ec;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-soft: rgba(17, 30, 44, 0.04);
  --line: rgba(17, 30, 44, 0.2);
  --text: #16202a;
  --muted: #51606f;
  --accent: #7d5a2d;
  --accent-soft: rgba(125, 90, 45, 0.12);
  --calm: #245f77;
  --danger: #9a4343;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    radial-gradient(1100px 640px at 8% -10%, rgba(200, 168, 107, 0.15), transparent 58%),
    radial-gradient(980px 680px at 92% -5%, rgba(94, 169, 184, 0.15), transparent 60%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

body[dir='rtl'] {
  font-family: var(--font-ar);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(56px);
  opacity: 0.5;
}

.bg-orb--a {
  width: 44vw;
  height: 44vw;
  left: -20vw;
  top: -14vw;
  background: rgba(200, 168, 107, 0.36);
}

.bg-orb--b {
  width: 40vw;
  height: 40vw;
  right: -18vw;
  top: 10vh;
  background: rgba(94, 169, 184, 0.3);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(12, 17, 23, 0.85), rgba(12, 17, 23, 0.5));
  transition: background 0.24s ease, border-color 0.24s ease;
}

[data-theme='light'] .header {
  background: linear-gradient(to bottom, rgba(244, 242, 236, 0.9), rgba(244, 242, 236, 0.56));
}

.header__inner,
.hero__title,
.hero__sub,
.hero__kicker,
.header__tools,
.back-link {
  transition: opacity 0.24s ease, transform 0.24s ease, max-height 0.24s ease, margin 0.24s ease, padding 0.24s ease;
}

.header.is-compact .header__inner {
  padding: 10px 16px;
  align-items: center;
}

.header.is-compact .hero__title,
.header.is-compact .hero__sub,
.header.is-compact .back-link {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
}

.header.is-compact .hero__kicker {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.07em;
}

.header.is-compact .header__tools {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

.header.is-compact + .page .filters {
  top: 76px;
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.hero {
  max-width: 760px;
  min-width: 0;
}

.hero--post {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 4px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero__sub {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
  font-size: 15px;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
}

.page,
.reader {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 74px;
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.quran {
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(200, 168, 107, 0.15), transparent 46%),
    linear-gradient(310deg, rgba(94, 169, 184, 0.12), transparent 54%),
    var(--surface);
}

.quran--inline {
  margin: 18px 0;
  box-shadow: none;
  background: var(--surface-soft);
}

.quran__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.quran__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 23px;
}

.quran__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.quran__arabic {
  margin: 16px 0 0;
  font-family: var(--font-ar);
  font-size: clamp(24px, 3.5vw, 31px);
  line-height: 1.9;
}

.quran__translation {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pulse {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.pulse::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(200, 168, 107, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 168, 107, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(200, 168, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 168, 107, 0); }
}

.filters {
  position: sticky;
  top: 132px;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(10px);
  padding: 16px;
  min-width: 0;
}

.filters__head {
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
}

.section-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
}

.chip--quiet {
  padding: 8px 10px;
  font-size: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field select,
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 11px;
  font-family: inherit;
  font-size: 14px;
}

.field select option {
  color: #111;
}

.field input::placeholder {
  color: var(--muted);
}

.feed-intro {
  margin-top: 8px;
}

.feed-stream {
  display: grid;
  gap: 18px;
}

.feed-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.feed-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-section__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.feed-section__count {
  color: var(--muted);
  font-size: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  display: grid;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 12px 26px rgba(3, 8, 13, 0.2);
}

.news-card[data-cat='humanitarian'] {
  border-left: 3px solid #ad8f5c;
}

.news-card[data-cat='projects'] {
  border-left: 3px solid #5d9f93;
}

.news-card[data-cat='community'] {
  border-left: 3px solid #7f8fc9;
}

.news-card[data-cat='geopolitics'] {
  border-left: 3px solid #b07f63;
}

.news-card[data-cat='analysis'] {
  border-left: 3px solid #8f8f8f;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}

.badge--accent {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--accent);
}

.news-card__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.news-card__excerpt {
  margin: 0;
  color: var(--muted);
}

.mini-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mini-module {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 9px;
  display: grid;
  gap: 4px;
}

.mini-module__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.mini-module__label {
  font-size: 11px;
  color: var(--muted);
}

.mini-module__value {
  font-size: 16px;
  color: var(--accent);
}

.mini-module__sub {
  font-size: 11px;
  color: var(--muted);
}

.mini-progress {
  margin-top: 2px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  overflow: hidden;
}

.mini-progress__fill {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--calm));
}

.news-card__expanders {
  display: grid;
  gap: 8px;
}

.expander {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 8px 9px;
}

.expander summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.expander p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.expander--why {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.expander--context {
  border-color: color-mix(in srgb, var(--calm) 45%, var(--line));
}

.news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.news-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.card-btn--ghost {
  color: var(--muted);
}

.read-more {
  font-weight: 600;
  color: var(--calm);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  grid-column: 1 / -1;
}

.highlights {
  padding: 16px;
}

.highlights__grid,
.related__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.region-section,
.related-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.region-section__summary,
.related-card h3 {
  cursor: pointer;
  margin: 0;
  font-size: 15px;
}

.region-section__body > p,
.related-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.region-section__entries {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.region-entry {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.region-entry a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.region-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.related-card a {
  color: var(--calm);
  font-size: 13px;
  font-weight: 600;
}

.amanah {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.footer__inner a {
  color: var(--calm);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  margin: min(10vh, 70px) auto 0;
  width: min(680px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal__head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 23px;
}

.modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.modal__body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.modal__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.modal__body a {
  color: var(--calm);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.has-modal {
  overflow: hidden;
}

.back-link {
  font-size: 13px;
  color: var(--calm);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reader {
  max-width: 920px;
}

.reader__article {
  padding: 18px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reader__title {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.reader__lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.content {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.content h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 28px;
}

.content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.content ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--text);
}

.content li {
  margin-bottom: 7px;
}

.content blockquote {
  margin: 0;
  border-inline-start: 3px solid var(--calm);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.content figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.content figcaption {
  color: var(--muted);
  font-size: 13px;
}

.timeline {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.timeline__items {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.timeline__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-soft);
}

.timeline__item strong {
  font-size: 12px;
  color: var(--muted);
}

.timeline__item p {
  margin: 6px 0 0;
  font-size: 14px;
}

.context-card {
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--calm) 50%, var(--line));
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--calm) 10%, transparent);
}

.context-card h3 {
  margin: 0;
  font-size: 16px;
}

.context-card p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
}

.related {
  padding: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .filters {
    position: static;
  }

  .news-grid,
  .highlights__grid,
  .related__grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header__tools {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .lang-switch {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero__title {
    font-size: 30px;
  }

  .page,
  .reader {
    padding-top: 18px;
  }

  .news-card {
    padding: 12px;
  }

  .mini-modules {
    grid-template-columns: 1fr;
  }

  .quran__arabic {
    font-size: 25px;
  }
}

.news-home {
  --text: #f7f2e4;
  --muted: #c7ceda;
  --surface: rgba(8, 19, 41, 0.8);
  --surface-soft: rgba(12, 27, 53, 0.68);
  --line: rgba(228, 195, 132, 0.25);
  --accent: #e4c278;
  --accent-soft: rgba(228, 194, 120, 0.2);
  --calm: #91c5d7;
  --shadow: 0 20px 42px rgba(2, 7, 19, 0.34);
  min-height: 100vh;
  padding: clamp(10px, 2vw, 24px);
  background:
    radial-gradient(920px 620px at 8% -10%, rgba(223, 191, 131, 0.2), transparent 56%),
    radial-gradient(980px 720px at 95% 12%, rgba(108, 169, 194, 0.18), transparent 54%),
    #efe2cb;
}

[data-theme='light'] .news-home {
  --text: #17283e;
  --muted: #3f4f65;
  --surface: rgba(248, 251, 255, 0.84);
  --surface-soft: rgba(234, 241, 250, 0.88);
  --line: rgba(21, 43, 71, 0.2);
  --accent: #8b692f;
  --accent-soft: rgba(139, 105, 47, 0.18);
  --calm: #2a647d;
  --shadow: 0 16px 36px rgba(9, 20, 35, 0.16);
  background:
    radial-gradient(980px 700px at 5% -10%, rgba(175, 142, 79, 0.2), transparent 56%),
    radial-gradient(980px 720px at 100% 12%, rgba(74, 123, 153, 0.18), transparent 54%),
    #efe2cb;
}

.news-home .bg-orb {
  display: none;
}

.news-shell {
  position: relative;
  max-width: 1520px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(227, 193, 125, 0.36);
  box-shadow: 0 34px 70px rgba(13, 10, 9, 0.25);
  background:
    linear-gradient(150deg, rgba(4, 20, 49, 0.25), rgba(2, 13, 34, 0.92) 58%, rgba(2, 11, 30, 0.98)),
    linear-gradient(to bottom, rgba(3, 14, 32, 0) 35%, rgba(3, 12, 28, 0.78) 60%, rgba(3, 12, 28, 0.96)),
    url('../img/background-news.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.news-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 20, 46, 0.04) 24%, rgba(4, 13, 30, 0.92) 70%),
    radial-gradient(85% 95% at 58% 0%, rgba(228, 194, 120, 0.14), transparent 60%);
}

.news-shell > * {
  position: relative;
  z-index: 1;
}

[data-theme='light'] .news-shell {
  border-color: rgba(104, 83, 50, 0.3);
  box-shadow: 0 30px 60px rgba(17, 22, 29, 0.2);
  background:
    linear-gradient(160deg, rgba(235, 245, 255, 0.76), rgba(224, 236, 249, 0.7) 46%, rgba(213, 228, 246, 0.82)),
    linear-gradient(to bottom, rgba(249, 252, 255, 0.1) 35%, rgba(209, 224, 241, 0.76) 68%, rgba(205, 222, 241, 0.86)),
    url('../img/background-news.png');
}

[data-theme='light'] .news-shell::before {
  background:
    linear-gradient(to bottom, rgba(249, 252, 255, 0.08) 22%, rgba(214, 229, 246, 0.72) 72%),
    radial-gradient(85% 95% at 58% 0%, rgba(193, 153, 89, 0.15), transparent 64%);
}

.news-home .header {
  position: relative;
  top: auto;
  border: 0;
  backdrop-filter: none;
  background: transparent;
}

.news-home .header__inner {
  max-width: none;
  padding: clamp(26px, 4vw, 44px) clamp(18px, 3vw, 42px) 16px;
  align-items: flex-start;
  gap: 16px;
}

.news-home .hero {
  max-width: min(860px, 100%);
}

.news-home .hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.news-home .hero__mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 21px;
  color: var(--accent);
  border: 1px solid rgba(227, 193, 126, 0.55);
  background: rgba(8, 20, 44, 0.55);
  box-shadow: inset 0 0 16px rgba(227, 193, 126, 0.15);
}

.news-home .hero__kicker {
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 4.1vw, 52px);
  color: var(--text);
  font-family: var(--font-head);
}

.news-home .hero__title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(34px, 4.8vw, 66px);
  max-width: 18ch;
  color: var(--text);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.news-home .hero__sub {
  max-width: 56ch;
  color: rgba(234, 238, 247, 0.92);
  font-size: clamp(14px, 1.2vw, 17px);
}

.news-home .header__tools {
  margin-inline-start: auto;
  align-self: flex-start;
  gap: 8px;
}

.news-home .lang-switch {
  border-radius: 14px;
  border-color: rgba(228, 195, 132, 0.32);
  background: rgba(7, 20, 43, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.news-home .lang-switch button {
  border-radius: 10px;
  padding: 8px 9px;
  color: rgba(228, 235, 247, 0.84);
}

.news-home .lang-switch button.is-active {
  color: var(--text);
  background: rgba(228, 195, 132, 0.2);
  box-shadow: inset 0 0 0 1px rgba(228, 195, 132, 0.38);
}

.news-home .icon-btn {
  border-radius: 12px;
  border-color: rgba(228, 195, 132, 0.32);
  background: rgba(7, 20, 43, 0.72);
}

.news-home .page--home {
  max-width: none;
  padding: 4px clamp(18px, 3vw, 42px) 24px;
  gap: 16px;
}

.news-home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: start;
}

.news-home .hero-layout.hero-layout--single {
  grid-template-columns: 1fr;
}

.news-home .hero-layout__main,
.news-home .hero-layout__side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.news-home .card,
.news-home .pulse,
.news-home .filters,
.news-home .news-card,
.news-home .region-section,
.news-home .amanah {
  border-color: rgba(228, 195, 132, 0.3);
  background: rgba(9, 22, 45, 0.74);
  box-shadow: 0 18px 34px rgba(2, 8, 21, 0.32);
}

.news-home .quran {
  padding: 16px 18px;
  background:
    linear-gradient(140deg, rgba(228, 195, 132, 0.2), transparent 55%),
    linear-gradient(320deg, rgba(145, 197, 215, 0.16), transparent 52%),
    rgba(9, 22, 45, 0.74);
}

.news-home .quran__title {
  font-size: clamp(24px, 2.4vw, 32px);
}

.news-home .quran__meta {
  color: rgba(227, 233, 245, 0.76);
}

.news-home .quran__arabic {
  margin-top: 12px;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.72;
}

.news-home .quran__translation {
  color: rgba(227, 233, 245, 0.84);
}

.news-home .chip {
  border-color: rgba(228, 195, 132, 0.28);
  background: rgba(8, 20, 43, 0.42);
  color: rgba(228, 235, 247, 0.82);
}

.news-home .chip.is-active {
  border-color: rgba(228, 195, 132, 0.52);
  background: rgba(228, 195, 132, 0.2);
  color: var(--text);
}

.news-home .chip--quiet {
  background: rgba(8, 20, 43, 0.55);
}

.news-home .pulse {
  border-radius: 14px;
  background: rgba(8, 22, 46, 0.74);
  color: var(--text);
}

.news-home .pulse::before {
  background: var(--accent);
  box-shadow: 0 0 0 rgba(228, 195, 132, 0.55);
}

.news-home .filters {
  position: static;
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(8px);
  background: rgba(10, 24, 49, 0.74);
}

.news-home .filters__head {
  display: none;
}

.news-home .chip-row {
  gap: 7px;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.news-home .filter-grid {
  margin-top: 0;
  gap: 8px;
}

.news-home .field {
  gap: 4px;
  color: rgba(221, 230, 245, 0.72);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-home .field select,
.news-home .field input {
  border-radius: 10px;
  border-color: rgba(228, 195, 132, 0.3);
  background: rgba(7, 18, 37, 0.66);
  color: var(--text);
  padding: 9px 10px;
}

.news-home .field select option {
  color: #13233f;
}

.news-home .feed-intro {
  margin-top: 4px;
}

.news-home .feed-intro .section-title {
  font-size: clamp(28px, 3.3vw, 44px);
  color: var(--text);
}

.news-home .feed-intro .section-sub {
  color: rgba(227, 233, 245, 0.88);
}

.news-home .feed-stream {
  gap: 0;
}

.news-home .news-grid--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-home .news-card {
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(170deg, rgba(228, 195, 132, 0.06), transparent 52%),
    rgba(9, 22, 45, 0.8);
  min-height: 260px;
}

.news-home .news-card[data-cat='humanitarian'] {
  border-left-color: #93ccdf;
}

.news-home .news-card[data-cat='projects'] {
  border-left-color: #80b6a0;
}

.news-home .news-card[data-cat='community'] {
  border-left-color: #b2bde7;
}

.news-home .news-card[data-cat='geopolitics'] {
  border-left-color: #dcb994;
}

.news-home .news-card[data-cat='analysis'] {
  border-left-color: #a7aebd;
}

.news-home .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 195, 132, 0.5);
  box-shadow: 0 18px 30px rgba(2, 7, 19, 0.35);
}

.news-home .badge {
  border-color: rgba(228, 195, 132, 0.26);
  background: rgba(7, 16, 34, 0.52);
  color: rgba(220, 230, 246, 0.92);
}

.news-home .badge--accent {
  border-color: rgba(145, 197, 215, 0.42);
  color: #d8eef7;
  background: rgba(145, 197, 215, 0.16);
}

.news-home .news-card__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.15;
  color: var(--text);
}

.news-home .news-card__excerpt {
  color: rgba(226, 233, 245, 0.86);
  font-size: 14px;
}

.news-home .mini-modules {
  grid-template-columns: 1fr;
}

.news-home .mini-module {
  border-color: rgba(228, 195, 132, 0.24);
  background: rgba(7, 17, 36, 0.52);
}

.news-home .mini-module__value {
  color: var(--accent);
}

.news-home .mini-module__sub {
  color: rgba(226, 233, 245, 0.72);
}

.news-home .mini-progress {
  border-color: rgba(228, 195, 132, 0.24);
  background: rgba(6, 14, 30, 0.72);
}

.news-home .expander {
  border-color: rgba(228, 195, 132, 0.24);
  background: rgba(6, 15, 32, 0.58);
}

.news-home .expander p {
  color: rgba(226, 233, 245, 0.82);
}

.news-home .news-card__foot {
  margin-top: auto;
}

.news-home .card-btn {
  border-color: rgba(228, 195, 132, 0.3);
  background: rgba(8, 22, 44, 0.64);
}

.news-home .read-more {
  color: #efd9a0;
}

.news-home .highlights {
  padding: 12px;
  border-radius: 16px;
}

.news-home .highlights .section-title {
  font-size: clamp(22px, 2.2vw, 30px);
}

.news-home .highlights .section-sub {
  font-size: 13px;
}

.news-home .highlights__grid {
  margin-top: 10px;
  grid-template-columns: 1fr;
  gap: 8px;
}

.news-home .region-section {
  padding: 10px;
  border-radius: 12px;
  background: rgba(8, 19, 40, 0.54);
}

.news-home .region-section__summary {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.news-home .region-section__body > p {
  font-size: 12px;
  color: rgba(226, 233, 245, 0.78);
}

.news-home .region-entry {
  border-color: rgba(228, 195, 132, 0.22);
}

.news-home .region-entry a {
  font-size: 12px;
  color: #f2e6cb;
}

.news-home .region-entry p {
  font-size: 11px;
}

.news-home .amanah {
  padding: 12px;
  border-radius: 14px;
  color: rgba(235, 222, 194, 0.92);
  background: rgba(6, 15, 33, 0.74);
}

.news-home .footer {
  border-top-color: rgba(228, 195, 132, 0.28);
  background: rgba(5, 13, 29, 0.62);
}

.news-home .footer__inner {
  max-width: none;
  padding: 12px clamp(18px, 3vw, 42px) 14px;
  font-size: 12px;
  color: rgba(223, 211, 186, 0.84);
}

.news-home .footer__inner a {
  color: #f0d499;
}

.news-home .modal__panel {
  border-color: rgba(228, 195, 132, 0.32);
  background: rgba(5, 17, 38, 0.95);
}

[data-theme='light'] .news-home .card,
[data-theme='light'] .news-home .pulse,
[data-theme='light'] .news-home .filters,
[data-theme='light'] .news-home .news-card,
[data-theme='light'] .news-home .region-section,
[data-theme='light'] .news-home .amanah,
[data-theme='light'] .news-home .chip,
[data-theme='light'] .news-home .field select,
[data-theme='light'] .news-home .field input,
[data-theme='light'] .news-home .badge,
[data-theme='light'] .news-home .mini-module,
[data-theme='light'] .news-home .expander,
[data-theme='light'] .news-home .card-btn,
[data-theme='light'] .news-home .lang-switch,
[data-theme='light'] .news-home .icon-btn,
[data-theme='light'] .news-home .footer,
[data-theme='light'] .news-home .modal__panel {
  border-color: rgba(20, 45, 76, 0.24);
}

[data-theme='light'] .news-home .card,
[data-theme='light'] .news-home .pulse,
[data-theme='light'] .news-home .filters,
[data-theme='light'] .news-home .news-card,
[data-theme='light'] .news-home .region-section,
[data-theme='light'] .news-home .amanah,
[data-theme='light'] .news-home .mini-module,
[data-theme='light'] .news-home .expander,
[data-theme='light'] .news-home .card-btn,
[data-theme='light'] .news-home .lang-switch,
[data-theme='light'] .news-home .icon-btn,
[data-theme='light'] .news-home .footer,
[data-theme='light'] .news-home .modal__panel {
  background: rgba(245, 250, 255, 0.74);
  color: var(--text);
}

[data-theme='light'] .news-home .field select,
[data-theme='light'] .news-home .field input,
[data-theme='light'] .news-home .badge {
  background: rgba(233, 243, 252, 0.86);
  color: var(--text);
}

[data-theme='light'] .news-home .news-card__excerpt,
[data-theme='light'] .news-home .section-sub,
[data-theme='light'] .news-home .hero__sub,
[data-theme='light'] .news-home .quran__translation,
[data-theme='light'] .news-home .quran__meta,
[data-theme='light'] .news-home .region-entry p,
[data-theme='light'] .news-home .region-section__body > p {
  color: rgba(26, 48, 74, 0.86);
}

[data-theme='light'] .news-home .read-more,
[data-theme='light'] .news-home .footer__inner a {
  color: #5a431f;
}

[data-theme='light'] .news-home .hero__title,
[data-theme='light'] .news-home .hero__kicker,
[data-theme='light'] .news-home .feed-intro .section-title,
[data-theme='light'] .news-home .quran__title,
[data-theme='light'] .news-home .news-card__title,
[data-theme='light'] .news-home .highlights .section-title,
[data-theme='light'] .news-home .region-section__summary {
  color: #12233a;
  text-shadow: none;
}

[data-theme='light'] .news-home .lang-switch button {
  color: #20344f;
}

[data-theme='light'] .news-home .lang-switch button.is-active {
  color: #12233a;
  background: rgba(140, 108, 54, 0.2);
  box-shadow: inset 0 0 0 1px rgba(116, 89, 44, 0.4);
}

.news-home .reveal,
.news-home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1220px) {
  .news-home .hero-layout {
    grid-template-columns: 1fr;
  }

  .news-home .hero-layout__side {
    order: 3;
  }

  .news-home .highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-home .news-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .news-home .header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-home .header__tools {
    margin-inline-start: 0;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .news-home .lang-switch {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .news-home {
    padding: 0;
    background: #0a1a36;
  }

  .news-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .news-home .header__inner,
  .news-home .page--home,
  .news-home .footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .news-home .hero__kicker {
    font-size: clamp(27px, 8vw, 34px);
  }

  .news-home .hero__title {
    font-size: clamp(28px, 9vw, 42px);
  }

  .news-home .header__tools {
    justify-content: flex-start;
  }

  .news-home .lang-switch {
    width: auto;
    flex: 0 0 auto;
  }

  .news-home .filter-grid,
  .news-home .news-grid--home,
  .news-home .highlights__grid {
    grid-template-columns: 1fr;
  }

  .news-home .filters__head {
    display: block;
    margin-bottom: 8px;
  }

  .news-home .filters__head .section-title {
    font-size: 18px;
  }

  .news-home .filters__head .section-sub {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
