:root {
  /* Brand Palette */
  --rose: #c44766;
  --rose-deep: #8d3048;
  --teal: #1b4c54;
  --ink: #1a2426;
  --muted: #5c686b;
  --line: #e4d5d8;
  --card: #ffffff;
  --sand: #f6f3ef;
  --rule: #ddd6cf;

  /* Data Visualization Colors */
  --v-teal: #00838f;
  --v-teal-deep: #00636f;
  --v-rose: #c23a5e;
  --v-rose-deep: #9c2f4c;
  --v-status: #b3261e;
  --v-track: #e9ece7;

  /* Layout Dimensions */
  --max: 760px;
  --wide: 1080px;
}

/* ============================================================
   Base & Resets
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fff;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #e1001d;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--rose);
}

figure {
  margin: 28px 0;
}

figure.screenshot {
  max-width: 420px;
  margin: 28px auto;
}

figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   UI Components & Utilities
   ============================================================ */
#progress-bar-container {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  z-index: 10000;
  background: transparent;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: var(--rose);
}

#arij-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#arij-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 3px solid #f0e7e4;
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cus-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header Banner Section
   ============================================================ */
#mainBanner {
  position: relative;
  width: 100%;
  height: 720px;
  background: #1a1210 no-repeat center / cover;
  overflow: hidden;
}

#mainBanner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, #23090f, #53222f61);
  opacity: 1;
  pointer-events: none;
}

.main-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(720px, 70%);
  height: 100%;
}

.home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-flex;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

.home-link img {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: cover;
  border: 0;
}

.main-title-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 10px 30px 12px 0;
  padding: 0;
}

.banner-kicker {
  margin: 0 15px 8px;
  color: #f2f2f2;
  font-size: 15px;
  font-weight: 700;
  display: none;
}

.main-title-wrapper h1 {
  margin: 0;
  padding: 0 15px;
  font-size: 30px;
  font-weight: 800;
  line-height: 45px;
  text-align: right;
  color: #f2f2f2;
}

.writer-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 46px;
  padding: 8px 0;
}

.writer-info-div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.writer-info-div figure {
  width: 28px;
  margin: 0;
}

.writer-info-div img {
  width: 16px;
  height: auto;
  display: block;
  border: 0;
}

.writer-info-div span {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #f2f2f2;
}

.bottom-main-p-banner {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* ============================================================
   Main Article Layout
   ============================================================ */
.main-idea-section {
  width: 100%;
  padding: 60px 0 72px;
  background: #fff;
}

.main-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 48px;
}

.main-content p {
  margin: 0 0 32px;
  font-size: 19px;
  line-height: 31px;
  text-align: justify;
  color: #1a1a1a;
}

.intro-lead,
.article-lead {
  position: relative;
  margin: 0 0 36px !important;
  padding: 22px 28px 22px 18px;
  border-right: 5px solid var(--rose);
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  /* font-size: 19px !important; */
  font-size: 19px;
  font-weight: 600;
  line-height: 1.8 !important;
  color: #1a1a1a;
  text-align: right;
  overflow: hidden;
}

.intro-lead::before,
.article-lead::before {
  content: "»";
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: serif;
  font-size: 88px;
  line-height: 1;
  color: var(--rose);
  opacity: 0.08;
  pointer-events: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px auto 28px;
  max-width: var(--wide);
}

.section-label h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 800;
}

.main-content h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eeeeee;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  color: #1a1a1a;
}

.main-content h2::before,
.section-label::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 36px;
  background: var(--rose);
  border-radius: 3px;
}

.pull {
  margin: 32px 0;
  padding: 15px 22px 8px 8px;
  border-right: 4px solid var(--rose);
  background: #fbf4f6;
}

.pull blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 700;
}

.pull figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  font-style: italic;
  padding-left: 10px;
}

.note {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px !important;
}

/* ============================================================
   Cards & Grids
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  box-shadow: 0 10px 30px rgba(27, 76, 84, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(40, 24, 16, 0.1);
  color: inherit;
}

.story-card-media {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  background: var(--teal);
}

.story-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.story-card-part {
  color: var(--rose);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}

.story-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 30px;
  font-weight: 500;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  flex: 1;
}

.story-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  margin-right: auto;
  margin-left: 0;
  font-weight: 800;
  color: var(--rose-deep);
}

.story-card-cta::after {
  content: "←";
  font-size: 18px;
  line-height: 1;
  padding-top: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.stat b {
  display: block;
  color: var(--rose);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   Gallery & Media Components
   ============================================================ */
.gallery-figure {
  margin: 32px auto;
  max-width: 100%;
}

.gallery-figure--narrow {
  max-width: 440px;
}

.gallery-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  color: #444;
  cursor: zoom-in;
  transition: box-shadow 0.3s ease;
}

.gallery-card:hover {
  color: #444;
  box-shadow: 0 8px 24px rgba(15, 17, 18, 0.12);
}

.gallery-card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f0efee;
  line-height: 0;
}

.gallery-card__img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  background: transparent;
}

.gallery-card__zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-card__caption,
.fancybox__caption {
  display: block;
  padding: 14px 18px 16px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.fancybox__caption {
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
}

/* ============================================================
   Series Navigation & Tags
   ============================================================ */
.series-nav {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.series-nav a {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.series-nav a:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.series-nav img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border: 0;
}

.series-nav-text {
  display: block;
  padding: 14px 16px;
}

.series-nav small {
  display: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.tags {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tags a,
.tags span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
   Data Visualization Components
   ============================================================ */
.viz {
  margin: 28px 0 40px;
  padding: 20px 22px 16px;
  border-top: 3px solid var(--teal);
  border-radius: 2px;
}

.viz-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
}

.viz-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-bottom: 22px;
}

.viz-stats b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px;
  color: #5c6568;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.viz-stats .n {
  color: var(--teal);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.viz-stats .stat-rose .n {
  color: var(--rose);
}

.viz-stats span,
.viz-caption,
.viz-label {
  color: #5c6568;
  font-size: 14px;
  line-height: 1.65;
}

.viz-label {
  margin: 6px 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.viz-caption {
  margin: 20px 0 0 !important;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.viz-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.viz-split div {
  padding: 16px 18px 14px;
  border-radius: 12px;
}

.viz-takaful {
  background: rgba(31, 78, 87, 0.06);
  border: 1px solid rgba(31, 78, 87, 0.16);
}

.viz-karama {
  background: rgba(141, 74, 92, 0.07);
  border: 1px solid rgba(141, 74, 92, 0.18);
}

.viz-split h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.viz-takaful h3 {
  color: var(--teal);
}

.viz-karama h3 {
  color: var(--rose);
}

.viz-split p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  text-align: right !important;
  color: #3d4749;
}

.viz-scale {
  position: relative;
  height: 42px;
  margin: 6px 4px 0;
}

.viz-scale-bar {
  position: absolute;
  inset: 26px 0 auto 0;
  height: 4px;
  background: linear-gradient(to left, #c5d4d8, var(--teal));
}

.viz-scale span {
  position: absolute;
  top: 0;
  right: var(--at);
  transform: translateX(50%);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.viz-scale span::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--teal);
}

.viz-scale span:first-child {
  right: 0;
  transform: none;
}

.viz-scale span:first-child::after {
  left: auto;
  right: 0;
  margin-left: 0;
}

.viz-scale span:last-of-type {
  right: auto;
  left: 0;
  transform: none;
}

.viz-scale span:last-of-type::after {
  left: 0;
  margin-left: 0;
  background: var(--rose);
}

.viz-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.viz-bars span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.viz-bars b {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.viz-bars i {
  display: block;
  height: 6px;
  background: #e3e8e9;
  overflow: hidden;
}

.viz-bars em {
  display: block;
  height: 100%;
  background: var(--teal);
}

.viz-bars div:nth-child(2) em,
.viz-bars div:nth-child(3) em {
  background: var(--rose);
}

/* Viz Range Plot */
.viz-range {
  margin: 6px 0 4px;
}

.range-callouts {
  position: relative;
  height: 44px;
}

.range-callout {
  position: absolute;
  top: 0;
  text-align: center;
  transform: translateX(50%);
  white-space: nowrap;
}

.range-callout .v {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.range-callout .c {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #5c6568;
}

.range-track-wrap {
  position: relative;
  height: 20px;
}

.range-track {
  position: absolute;
  inset: 7px 0 auto 0;
  height: 6px;
  background: var(--v-track);
  border-radius: 3px;
}

.range-span {
  position: absolute;
  inset: 0;
  background: rgba(0, 131, 143, 0.28);
  border-radius: 3px;
}

.range-dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--v-teal);
  border: 3px solid var(--sand);
  transform: translateX(50%);
}

.range-ticks,
.viz-hbar-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #8b9296;
}

/* Viz Horizontal Bar Chart */
.viz-hbar-chart {
  margin: 4px 0 6px;
}

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 14px;
  font-size: 13px;
  color: #5c6568;
}

.viz-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.viz-legend .c-official {
  background: var(--v-teal);
}

.viz-legend .c-press {
  background: var(--v-rose);
}

.viz-hbar-row {
  margin-bottom: 18px;
}

.viz-hbar-row:last-child {
  margin-bottom: 0;
}

.viz-hbar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 14px;
}

.viz-hbar-head .label {
  color: var(--ink);
  font-weight: 700;
}

.viz-hbar-head .value {
  font-weight: 800;
  font-size: 16px;
  color: var(--v-teal-deep);
  font-variant-numeric: tabular-nums;
}

.viz-hbar-row.is-rose .viz-hbar-head .value {
  color: var(--v-rose-deep);
}

.viz-hbar-track {
  position: relative;
  height: 20px;
  background: var(--v-track);
  border-radius: 10px;
  overflow: hidden;
}

.viz-hbar-fill {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  border-radius: 10px;
  background: var(--v-teal);
}

.viz-hbar-row.is-rose .viz-hbar-fill {
  background: var(--v-rose);
}

.viz-hbar-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.viz-hbar-grid i {
  position: absolute;
  inset: 0 auto 0 auto;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
}

/* Viz Flow / Journey Timeline */
.viz:has(.viz-flow-list) {
  border-top: 0;
  padding-top: 4px;
}

.viz:has(.viz-flow-list) .viz-title {
  border-bottom: 0;
  padding-bottom: 0;
}

.viz-flow {
  margin: 4px 0 2px;
}

.viz-flow-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  margin: 0;
  padding: 8px 4px 0;
  list-style: none;
}

.viz-flow-list::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 6%;
  left: 6%;
  height: 2px;
  background: #d8dcd0;
}

.viz-flow-step {
  position: relative;
  padding: 0 5px;
  text-align: center;
}

.viz-flow-node {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--v-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.viz-flow-step.is-stuck .viz-flow-node {
  background: var(--v-status);
}

.viz-flow-step summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.25s ease;
}

.viz-flow-step summary::-webkit-details-marker {
  display: none;
}

.viz-flow-label {
  display: block;
  max-width: 100%;
}

.viz-flow-step summary:hover,
.viz-flow-step details[open] summary {
  color: var(--v-teal-deep);
}

.viz-flow-step.is-stuck summary:hover,
.viz-flow-step.is-stuck details[open] summary {
  color: var(--v-status);
}

.viz-flow-step summary:hover .viz-flow-node,
.viz-flow-step details[open] .viz-flow-node {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(0, 131, 143, 0.16);
}

.viz-flow-step.is-stuck summary:hover .viz-flow-node,
.viz-flow-step.is-stuck details[open] .viz-flow-node {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.16);
}

.viz-flow-step details {
  interpolate-size: allow-keywords;
}

.viz-flow-step details::details-content {
  height: 0;
  overflow: clip;
  opacity: 0;
  interpolate-size: allow-keywords;
  transition: height 0.35s ease, opacity 0.28s ease, content-visibility 0.35s allow-discrete;
}

.viz-flow-step details[open]::details-content {
  height: auto;
  opacity: 1;
}

.viz-flow-step p {
  margin: 8px 2px 0 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  color: #5c6568;
}

.viz-flow-step .flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(179, 38, 30, 0.1);
  color: var(--v-status);
  font-size: 11px;
  font-weight: 800;
}

/* Viz Doughnut Chart */
.viz:has(.viz-donut) {
  background-color: #c23a5e03;
  border-top: 0;
}

.viz:has(.viz-donut) .viz-title {
  border-bottom: 0;
  padding-bottom: 0;
  text-align: center;
}

.viz:has(.viz-donut) .viz-caption {
  border-top: 0;
  padding-top: 0;
  font-size: 14px !important;
  text-align: center;
}

.viz-donut-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px 22px;
  align-items: center;
}

.viz-donut {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  font-family: "Tajawal", sans-serif;
}

.viz-donut .slice-hybrid { fill: var(--v-teal); }
.viz-donut .slice-trad { fill: var(--v-rose); }
.viz-donut .slice-digital { fill: #4e5960; }

.viz-donut .slice-pct {
  fill: #fff;
  font-size: 8px;
  font-weight: 800;
  text-anchor: middle;
}

.viz-donut .hole-n {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-anchor: middle;
}

.viz-donut .hole-l {
  fill: #5c6568;
  font-size: 7px;
  font-weight: 700;
  text-anchor: middle;
}

.viz-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viz-donut-legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.viz-donut-legend i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 3px;
}

.viz-donut-legend .c-hybrid { background: var(--v-teal); }
.viz-donut-legend .c-trad { background: var(--v-rose); }
.viz-donut-legend .c-digital { background: #4e5960; }

.viz-donut-legend b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.viz-donut-legend span {
  color: #5c6568;
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   Path & Stepper Accordions
   ============================================================ */
.path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.path > li {
  display: block;
  counter-increment: step;
  min-width: 0;
}

.path details {
  margin: 0;
}

.path summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.45;
}

.path summary::-webkit-details-marker {
  display: none;
}

.path summary::before {
  content: counter(step);
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.path details[open] summary {
  color: var(--teal);
}

.path details p {
  margin: 6px 30px 0 0 !important;
  max-width: none;
  font-size: 13px !important;
  line-height: 1.65 !important;
  text-align: right !important;
  color: #5c6568;
}
.main-logo img{
  border: none !important;
}
#accessibility-main-button img{
  width: 24px;
  height: 24px;
}


.mt-100{
  margin-top: 100px;
}
.shared-with-div {
   border-top: 1px solid #e2e2e2;
   width: 100%;
   margin: auto;
   padding: 28px;
   background-color: #e2e2e21c;
   display: flex;
   flex-direction: column;
   gap: 42px;
}
.shared-lang-wrapper {
   display: flex;
   flex-direction: column;
   gap: 28px;
}
.shared-lang-wrapper h6 {
   font-family: 'Tajawal', sans-serif;
   display: flex;
   align-items: baseline;
   gap: 8px;
   font-size: 18px;
   font-weight: bold;
   color: #1a1a1a;
}
.shared-lang-wrapper h6::before {
   content: "";
   display: flex;
   background-color: #8d3048;
   width: 5px;
   height: 5px;
   border-radius: 50%;
}
.shared-links-wrapper {
   display: flex;
}
.shared-links-wrapper span {
   display: flex;
   max-width: 90%;
   width: 100%;
   gap: 10px;
   flex-wrap: wrap;
}
.shared-links-wrapper a:not(:last-child) {
   border-left: 2px solid #8d3048;
   padding-left: 10px;
}
.shared-links-wrapper a {
   color: #1A1A1A !important;
}



.investigation-tags-container {
   width: 100%;
   border-top: 1px solid #e2e2e2;
   padding-top: 20px;
   margin: 0 auto 32px auto;
}
.investigation-tags-wrapper {
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-start;
   align-items: center;
   max-width: 100%;
   margin: auto;
   gap: 8px;
}
.investigation-tags-wrapper a {
   font-size: 14px;
   display: flex;
   align-items: center;
   padding: 6px 15px;
   color: #8d3048;
   background-color: transparent;
   border: 1px solid #8d3048;
   border-radius: 7px;
   transition: all 0.5s;
}
.investigation-tags-wrapper a:hover {
   color: white;
   background-color: #8d3048;
   border: 1px solid #8d3048;
   transition: all 0.5s;
}


/* ============================================================
   Responsive Design & Media Queries
   ============================================================ */
@media (min-width: 1500px) {
  #mainBanner {
    height: 820px;
  }
}

@media (max-width: 860px) {
  .cards,
  .stats,
  .viz-stats,
  .viz-split,
  .path {
    grid-template-columns: 1fr;
  }

  #mainBanner {
    height: 560px;
  }

  .main-banner-content {
    width: 100%;
    padding: 0 8px;
  }

  .main-title-wrapper,
  .writer-info-wrapper {
    margin-right: 8px;
  }

  .main-title-wrapper h1 {
    font-size: 24px;
    line-height: 38px;
    padding: 0;
  }

  .main-content {
    max-width: 100%;
  }

  .main-content p {
    font-size: 17px;
    text-align: right;
    line-height: 30px;
  }

  .main-content h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .home-link img {
    width: 25px;
    height: 25px;
  }

  .viz-caption {
    font-size: 14px !important;
    line-height: 24px !important;
    margin-bottom: 25px !important;
  }

  /* Flow list mobile responsive override */
  .viz-flow-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 6px;
  }

  .viz-flow-list::before {
    top: 21px;
    bottom: 0;
    right: 18px;
    left: auto;
    width: 2px;
    height: auto;
  }

  .viz-flow-step {
    padding: 0;
    text-align: right;
  }

  .viz-flow-step summary {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    text-align: right !important;
  }

  .viz-flow-node {
    margin: 0;
  }

  .viz-flow-label {
    padding-top: 4px;
  }

  .viz-flow-step .flag {
    margin-right: 44px;
  }

  .viz-flow-step p {
    text-align: right !important;
    margin: 6px 44px 0 0 !important;
  }
  .shared-with-div{
    padding: 28px 5px;
  }
  .shared-lang-wrapper h6::before{
    width: 6px;
  }
  .mt-100{
    margin-top: 50px !important;
  }
}

@media (max-width: 640px) {
  .viz-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .viz-donut {
    width: 220px;
  }

  .viz-donut-legend {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-flow-node,
  .viz-flow-step summary,
  .viz-flow-step details::details-content {
    transition: none;
  }
}

/* ============================================================
   Landing page
   ============================================================ */
body {
  /* background-color: #fff3f3; */
  background-color: #ffffff;
  /* background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0 1px,
    transparent 1px 18px
  ); */
}

#progress-bar {
  background: #d0121a;
}

#mainBanner {
  height: clamp(560px, 100vh, 860px);
  background: #111;
}

#mainBanner::after {
  display: none;
}

.banner-slides,
.banner-slide,
.banner-veil {
  position: absolute;
  inset: 0;
}

.banner-slide {
  background: #111 no-repeat center / cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.45s ease;
}

.banner-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.banner-veil {
  z-index: 2;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 82%) 0%,
    rgb(0 0 0 / 80%) 24%,
    rgb(0 0 0 / 22%) 46%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#mainBanner .main-banner-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#mainBanner.is-ready .banner-veil,
#mainBanner.is-ready .main-banner-content {
  opacity: 1;
}

.main-banner-content {
  z-index: 3;
  align-items: center;
  justify-content: flex-end;
  width: min(920px, 92%);
  margin: 0 auto;
  padding-bottom: 64px;
  text-align: center;
}

.main-title-wrapper {
  align-items: center;
  margin: 0;
}

.main-title-wrapper h1 {
  padding: 0;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  color: #fff;
}

.main-title-wrapper h2 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  color: #fff;
}

.writer-info-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  max-width: 860px;
  margin: 28px 0 0;
  padding: 0;
}

.writer-info-div {
  max-width: 100%;
}

.writer-info-div span {
  color: #fff;
  font-weight: 500;
  text-align: center;
}

.banner-credit {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 4;
  margin: 0;
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
}

html[lang="en"] #mainBanner .banner-credit {
  left: auto;
  right: 28px;
  text-align: right;
}

.findings-lead {
  padding: 72px 0 12px;
}

.findings-lead-copy {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.findings-lead-copy p {
  margin: 0 0 22px;
  color: #2a2a2a;
  font-size: 19px;
  font-weight: 500;
  line-height: 2;
}

.findings-lead-copy p:last-child {
  margin-bottom: 0;
}

.findings-lead-copy strong {
  color: #b80018;
  font-weight: 800;
}

.findings-lead-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parts-section {
  padding: 48px 0 72px;
}

.parts-section .cus-container {
  max-width: 1080px;
}

.parts-heading {
  margin: 0 0 36px;
  color: #b80018;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.parts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.part-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 1 calc((100% - 44px) / 3);
  max-width: calc((100% - 44px) / 3);
  min-height: 340px;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
}

.part-card--featured {
  flex-basis: calc((100% - 22px) / 2);
  max-width: calc((100% - 22px) / 2);
  min-height: 460px;
}

.part-card:hover {
  color: #fff;
}

.part-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.part-card:hover .part-card-img {
  transform: scale(1.06);
}

.part-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.72) 34%,
    rgba(0, 0, 0, 0.28) 68%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

.part-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px 16px;
}

.part-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #af0c08;
  opacity: 0;
}

.part-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.part-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.part-card--featured h3 {
  font-size: 19px;
}

.part-card p {
  margin: 0;
  color: rgb(255, 255, 255);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.part-card p.part-clamp {
  max-height: calc(1.75em * 2);
  overflow: hidden;
}

.part-more {
  align-self: flex-end;
  margin-top: 0px;
  color: rgb(225 0 29);
  font-size: 14px;
  font-weight: bold;
  padding-left: 9px;
}

.part-card--soon {
  cursor: default;
}

.part-card--soon:hover .part-card-img {
  transform: none;
}

.part-card--soon .part-card-body {
  flex: 1;
  align-items: center;
  justify-content: center;
}

.part-card .part-soon {
  margin: 0;
  color: #e1001d;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

@media (min-width: 1500px) {
  #mainBanner {
    height: 860px;
  }
}

@media (max-width: 900px) {
  .part-card {
    flex-basis: calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
    min-height: 320px;
  }

  .part-card--featured {
    min-height: 400px;
  }
}

@media (max-width: 860px) {
  #mainBanner {
    height: 520px;
  }

  .main-banner-content {
    width: 100%;
    padding: 0 20px 48px;
  }

  .main-title-wrapper,
  .writer-info-wrapper {
    margin-right: 0;
  }

  .main-title-wrapper h1 {
    font-size: 28px;
    line-height: 1.45;
  }

  .main-title-wrapper h2 {
    font-size: 18px;
  }

  .writer-info-wrapper {
    gap: 8px 20px;
  }

  .parts-heading {
    font-size: 28px;
  }

  .findings-lead {
    padding-top: 48px;
  }

  .findings-lead-copy p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .parts-section {
    padding-top: 48px;
  }

  .part-card,
  .part-card--featured {
    flex-basis: 100%;
    max-width: 460px;
    min-height: 340px;
  }

  .writer-info-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .banner-credit {
    left: 16px;
    bottom: 16px;
  }

  html[lang="en"] #mainBanner .banner-credit {
    right: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .banner-slide,
  .part-card-img {
    transition: none;
  }
}

/* ============================================================
   Poll results — الاستطلاع
   ============================================================ */
body.poll-body {
  background: #f3efec;
  color: #1a1a1a;
}

body.poll-body::before,
body.poll-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.poll-body::before {
  background: url("../img/Pollbk.jpg") center center / cover no-repeat;
  z-index: 0;
}

body.poll-body::after {
  /* #F3EFEC at 80% opacity, so the checkpoint photo stays faint */
  background: rgba(243, 239, 236, 0.9);
  z-index: 0;
}

body.poll-body > * {
  position: relative;
  z-index: 1;
}

.poll-stage {
  position: relative;
  min-height: calc(100dvh - var(--poll-header, 0px));
}

.poll-slide {
  display: none;
  box-sizing: border-box;
  min-height: calc(100dvh - var(--poll-header, 0px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 28px 120px;
  gap: 28px;
}

.poll-slide.is-active {
  display: flex;
  animation: poll-in 0.35s ease;
}

.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poll-slide h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.4;
}

.poll-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  gap: 26px;
}

.poll-gauge {
  position: relative;
  width: min(340px, 78vw);
}

.poll-gauge svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.poll-gauge-track {
  fill: none;
  stroke: #4a4a4a;
  stroke-width: 16;
  stroke-linecap: round;
}

.poll-gauge-value {
  fill: none;
  stroke: #b80018;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: var(--pct) 100;
}

.poll-gauge-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Arabic reading order: 50, then %, then +. */
.poll-gauge-label.is-plus {
  display: flex;
  direction: rtl;
  justify-content: center;
  align-items: baseline;
}

.poll-gauge-label.is-plus span {
  direction: ltr;
  unicode-bidi: isolate;
}

.poll-caption,
.poll-copy p {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 500 !important;
  line-height: 1.9;
}

.poll-caption {
  max-width: 680px;
}

.poll-copy {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - var(--poll-header, 0px) - 210px);
  overflow: auto;
  text-align: center;
}

.poll-copy p {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.75;
}

.poll-em {
  color: #b80018;
  font-weight: 800;
}

body.poll-body .poll-pager {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 28px;
  width: max-content;
  max-width: calc(100% - 32px);
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  direction: rtl;
  z-index: 2;
}

.poll-pager-label {
  margin: 0;
  min-width: 132px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

body.poll-body .poll-nav {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #b80018;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  line-height: 1;
}

.poll-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.poll-nav:hover,
.poll-nav:focus-visible {
  background: #8e0013;
}

.poll-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.poll-nav:disabled:hover {
  background: #b80018;
}

.poll-corner {
  position: absolute;
  left: 22px;
  bottom: 32px;
  margin: 0;
  color: #8d8d8d;
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
}

body.poll-body .poll-home {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b80018;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
}

body.poll-body .poll-home svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

body.poll-body .poll-home:hover,
body.poll-body .poll-home:focus-visible {
  background: #8e0013;
  color: #fff;
}

@keyframes poll-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .poll-slide {
    padding: 48px 18px 118px;
    gap: 20px;
  }

  .poll-copy {
    max-height: calc(100dvh - var(--poll-header, 0px) - 200px);
    gap: 12px;
  }

  .poll-corner {
    left: 14px;
    bottom: 78px;
  }

  body.poll-body .poll-home {
    top: 16px;
    inset-inline-start: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poll-slide.is-active {
    animation: none;
  }
}

/* English pages share this stylesheet. Arabic stays right-to-left. */
html[lang="en"] {
  direction: ltr;
}

html[lang="en"] body {
  direction: ltr;
  text-align: left;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

html[lang="en"] body.poll-body .poll-pager {
  direction: ltr;
}

.lang-switch,
.poll-lang {
  position: absolute;
  z-index: 5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch {
  top: 22px;
  inset-inline-end: 28px;
  letter-spacing: 0.04em;
  text-shadow: 0px 1px 8px #00000000;
  font-size: 25px;
  background-color: #e1001d;
  padding: 6px;
  padding-bottom: 0;
  border-radius: 4px;
}

.lang-switch[lang="ar"] {
  font-size: 22px;
  padding: 6px;
  padding-top: 3px;
  padding-bottom: 4px;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: #fff;
  opacity: 0.8;
}

body.poll-body .poll-lang {
  top: 28px;
  inset-inline-end: 28px;
  z-index: 3;
  color: #1a1a1a;
  font-family: "Tajawal", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

body.poll-body .poll-lang:hover,
body.poll-body .poll-lang:focus-visible {
  color: #b80018;
}

html[lang="en"] body.poll-body .poll-home {
  inset-inline-start: auto;
  inset-inline-end: 22px;
}

html[lang="en"] body.poll-body .poll-lang {
  inset-inline-end: 74px;
}

@media (max-width: 640px) {
  .lang-switch {
    top: 16px;
    inset-inline-end: 16px;
  }

  body.poll-body .poll-lang {
    top: 18px;
    inset-inline-end: 16px;
  }

  html[lang="en"] body.poll-body .poll-home {
    inset-inline-end: 14px;
  }

  html[lang="en"] body.poll-body .poll-lang {
    inset-inline-end: 66px;
  }
}