/* ==========================================================================
   WikiArab v2: homepage sections + footer block.
   Loaded after assets/theme.css. Everything is namespaced .wa-* so it cannot
   touch the parent theme's own widgets. Edit the tokens below to retheme.
   The markup comes from wp-content/novamira-sandbox/wa-redesign.php.
   ========================================================================== */

.wa-home,
.wa-foot {
  --w-accent: #0F6B64;
  --w-accent-d: #0B4F4A;
  --w-orange: #F2994A;
  --w-ink: #171717;
  --w-soft: #46524F;
  --w-mute: #66726F;
  --w-line: #E3EAE8;
  --w-tint: #F6FAF9;
  --w-mint: #E3F6EE;
  --w-dark: #0B3B3D;
  --w-r: 16px;
  --w-r-sm: 10px;
  --w-gap: 24px;
  --w-ease: 240ms cubic-bezier(.2, .7, .3, 1);
  --w-head: "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --w-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.wa-home {
  font-family: var(--w-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--w-ink);
  letter-spacing: 0;
  text-align: start;
}
.wa-home *,
.wa-home *::before,
.wa-home *::after,
.wa-foot * { box-sizing: border-box; }

.wa-home a { color: inherit; text-decoration: none; }
.wa-home a:focus-visible,
.wa-foot a:focus-visible,
.wa-home button:focus-visible,
.wa-home input:focus-visible { outline: 2px solid var(--w-accent); outline-offset: 3px; }

.wa-home h2,
.wa-home h3 {
  margin: 0;
  padding: 0;
  font-family: var(--w-head);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wa-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- images ------------------------------------------------------------ */
.wa-home .wa-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .7, .3, 1);
}
.wa-ph { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #DDEEEA, #C6DEDA); }

/* ---- small parts ------------------------------------------------------- */
.wa-home .wa-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--w-mint);
  color: var(--w-accent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  transition: background var(--w-ease), color var(--w-ease);
}
.wa-home .wa-tag:hover { background: var(--w-accent); color: #fff; }

.wa-date { display: block; font-size: 13px; color: var(--w-mute); line-height: 1.6; }
.wa-excerpt { color: var(--w-soft); font-size: 14.5px; line-height: 1.8; }

.wa-home .wa-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--w-accent);
  color: #fff;
  font-family: var(--w-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--w-ease), color var(--w-ease), transform var(--w-ease);
}
.wa-home .wa-btn:hover { background: var(--w-accent-d); transform: translateY(-1px); }

/* ---- section rhythm ---------------------------------------------------- */
.wa-sec { margin-block: 44px; }
.wa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.wa-home .wa-head__title {
  position: relative;
  padding-inline-start: 14px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--w-ink) !important;
}
.wa-head__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .3em;
  bottom: .3em;
  width: 4px;
  border-radius: 4px;
  background: var(--w-accent);
}
.wa-home .wa-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  flex: none;
  color: var(--w-accent);
  font-size: 14px;
  font-weight: 600;
  transition: gap var(--w-ease), color var(--w-ease);
}
.wa-home .wa-more:hover { gap: 9px; color: var(--w-accent-d); }

/* Full-width bands that break out of the theme container. */
.wa-band {
  margin-inline: calc(50% - 50vw);
  padding: 40px calc(50vw - 50%);
}
.wa-band.wa-sec { margin-block: 44px; }
.wa-band--tint { background: var(--w-tint); }
.wa-band--mint { background: var(--w-mint); }

/* ---- card -------------------------------------------------------------- */
.wa-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wa-card__media {
  display: block;
  flex: none;
  aspect-ratio: 16 / 10;
  border-radius: var(--w-r);
  overflow: hidden;
  background: var(--w-tint);
}
.wa-card__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wa-home .wa-card__title {
  font-size: 15px;
  line-height: 1.6;
  color: var(--w-ink) !important;
}
.wa-home .wa-card__title a {
  color: inherit !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color var(--w-ease);
}
.wa-home .wa-card:hover .wa-card__title a { color: var(--w-accent) !important; }
.wa-card:hover .wa-img,
.wa-cover:hover .wa-img,
.wa-rank:hover .wa-img { transform: scale(1.04); }
.wa-card .wa-excerpt {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* image beside text */
.wa-card--row { flex-direction: row; align-items: center; gap: 14px; }
.wa-card--row .wa-card__media { width: 112px; aspect-ratio: 1; border-radius: var(--w-r-sm); }
.wa-card--row .wa-card__body { flex: 1; }

/* small thumb beside text */
.wa-card--mini { flex-direction: row; align-items: center; gap: 14px; }
.wa-card--mini .wa-card__media { width: 84px; aspect-ratio: 1; border-radius: var(--w-r-sm); }
.wa-card--mini .wa-card__body { flex: 1; }

/* text only */
.wa-card--line { padding-block: 14px; border-top: 1px solid var(--w-line); }
.wa-card--line .wa-card__body { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
.wa-card--line .wa-date { flex: none; }

/* ---- cover: text over the photo ---------------------------------------- */
.wa-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  border-radius: var(--w-r);
  overflow: hidden;
  background: var(--w-dark);
  isolation: isolate;
}
.wa-cover__media { position: absolute; inset: 0; z-index: -1; }
.wa-cover__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 32, 33, .94) 0%, rgba(6, 32, 33, .72) 38%, rgba(6, 32, 33, 0) 78%);
}
.wa-cover__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px;
}
.wa-home .wa-cover__title {
  font-size: 19px;
  line-height: 1.55;
  color: #fff !important;
}
.wa-home .wa-cover__title a { color: #fff !important; }
.wa-cover .wa-excerpt { display: none; color: rgba(255, 255, 255, .86); max-width: 60ch; }
.wa-cover .wa-date { color: rgba(255, 255, 255, .78); }
.wa-cover__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wa-home .wa-cover .wa-btn { background: #fff; color: var(--w-accent-d); }
.wa-home .wa-cover .wa-btn:hover { background: var(--w-mint); }

/* ---- 1. hero ----------------------------------------------------------- */
.wa-hero { display: grid; gap: 20px; margin-bottom: 36px; }
.wa-cover--hero { min-height: 400px; }
.wa-home .wa-cover--hero .wa-cover__title { font-size: 23px; line-height: 1.5; }
.wa-hero__side { display: grid; gap: 0; }
.wa-hero__side .wa-card { padding-block: 14px; border-top: 1px solid var(--w-line); }
.wa-hero__side .wa-card:first-child { border-top: 0; padding-top: 0; }

/* ---- 2. intro + categories --------------------------------------------- */
.wa-cats__intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
.wa-home .wa-cats__title { font-size: 22px; line-height: 1.5; color: var(--w-ink) !important; }
.wa-lede { margin-top: 6px; color: var(--w-soft); font-size: 15px; max-width: 52ch; }

.wa-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--w-line);
  border-radius: 999px;
  background: #fff;
  transition: border-color var(--w-ease), box-shadow var(--w-ease);
}
.wa-search:focus-within { border-color: var(--w-accent); box-shadow: 0 0 0 4px rgba(15, 107, 100, .12); }
.wa-home .wa-search input[type="search"],
.wa-home .wa-search input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: var(--w-ink);
  font-family: var(--w-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.wa-home .wa-search input::placeholder { color: var(--w-mute); opacity: 1; }
.wa-home .wa-search button {
  flex: none;
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--w-accent);
  box-shadow: none;
  color: #fff;
  font-family: var(--w-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background var(--w-ease);
}
.wa-home .wa-search button:hover { background: var(--w-accent-d); }

/* Phone: two-row rail you swipe sideways, so twelve tiles never stack into a wall. */
.wa-cats__grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 146px;
  gap: 12px;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wa-cats__grid::-webkit-scrollbar { display: none; }
.wa-home .wa-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r);
  background: #fff;
  scroll-snap-align: start;
  transition: border-color var(--w-ease), transform var(--w-ease);
}
.wa-cat__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: var(--w-mint);
  color: var(--w-accent);
  transition: background var(--w-ease), color var(--w-ease);
}
.wa-cat__name { font-family: var(--w-head); font-weight: 700; font-size: 14px; line-height: 1.6; color: var(--w-ink); }
.wa-cat__n { font-size: 12.5px; color: var(--w-mute); line-height: 1.5; }
.wa-home .wa-cat:hover { border-color: var(--w-accent); transform: translateY(-2px); }
.wa-cat:hover .wa-cat__ic { background: var(--w-accent); color: #fff; }

/* ---- 3 + 4. latest + most read ----------------------------------------- */
.wa-split { display: grid; gap: 36px; margin-block: 44px; }
.wa-split .wa-sec { margin-block: 0; }
.wa-grid { display: grid; gap: 24px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wa-grid--rows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wa-grid--rows .wa-card--row {
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--w-ease);
}
.wa-grid--rows .wa-card--row:hover { border-color: #BFD6D2; }
.wa-grid--rows .wa-card__media { width: 34%; max-width: 220px; aspect-ratio: auto; min-height: 112px; border-radius: 0; }
.wa-grid--rows .wa-card__body { justify-content: center; padding: 14px 16px; }

.wa-top {
  padding: 24px 20px 10px;
  border-radius: var(--w-r);
  background: var(--w-dark);
  color: #EAF3F2;
  align-self: start;
}
.wa-home .wa-top__title {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--w-orange);
  font-size: 20px;
  line-height: 1.5;
  color: #fff !important;
}
.wa-top__list { margin-top: 8px; }
.wa-home .wa-rank {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}
.wa-home .wa-rank:first-child { border-top: 0; }
.wa-rank__n {
  flex: none;
  width: 40px;
  font-family: var(--w-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--w-orange);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: center;
}
.wa-rank__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wa-rank__cat { font-size: 12.5px; color: #9FD3C4; line-height: 1.5; }
.wa-rank__title {
  font-family: var(--w-head);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color var(--w-ease);
}
.wa-rank:hover .wa-rank__title { color: #BFEBDD; }
.wa-rank__img { flex: none; width: 64px; height: 64px; border-radius: var(--w-r-sm); overflow: hidden; background: rgba(255, 255, 255, .08); }

/* ---- large + small ----------------------------------------------------- */
.wa-lead { display: grid; gap: 20px; }
.wa-lead__rest { display: grid; align-content: space-between; }
.wa-lead__rest .wa-card,
.wa-picks__list .wa-card { padding-block: 13px; border-top: 1px solid var(--w-line); }
.wa-lead__rest .wa-card:first-child,
.wa-picks__list .wa-card:first-child { border-top: 0; padding-top: 0; }

/* ---- two categories side by side --------------------------------------- */
.wa-duo { display: grid; gap: 44px 0; margin-block: 44px; }
.wa-duo .wa-sec { margin-block: 0; }
.wa-duo .wa-card--card .wa-card__media { aspect-ratio: 2 / 1; }
.wa-lines { margin-top: 16px; }
.wa-lines .wa-card--line:last-child { border-bottom: 1px solid var(--w-line); }

/* ---- rail -------------------------------------------------------------- */
.wa-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 14px;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.wa-rail::-webkit-scrollbar { display: none; }
.wa-rail .wa-card { scroll-snap-align: start; }
.wa-rail .wa-card__media { aspect-ratio: 4 / 3; }

/* ---- newsletter --------------------------------------------------------- */
.wa-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px 20px;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r);
  background: var(--w-tint);
}
.wa-home .wa-news__title { font-size: 19px; line-height: 1.5; color: var(--w-ink) !important; }

/* ---- selected articles (mint band) ------------------------------------- */
.wa-picks { margin-top: 48px; margin-bottom: 0; padding-block: 44px; }
.wa-picks__grid { display: grid; gap: 22px; }
.wa-picks__list { display: grid; align-content: space-between; }
.wa-picks__list .wa-card { border-top-color: rgba(15, 107, 100, .18); }
.wa-home .wa-picks__list .wa-tag { background: #fff; }
.wa-home .wa-picks__list .wa-tag:hover { background: var(--w-accent); }
.wa-picks__list .wa-date { color: var(--w-soft); }

/* ---- tablet ------------------------------------------------------------ */
@media (min-width: 600px) {
  .wa-home { font-size: 15.5px; }
  .wa-grid { gap: 30px 22px; }
  .wa-card .wa-excerpt,
  .wa-cover .wa-excerpt { display: -webkit-box; }
  .wa-cover .wa-excerpt { -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .wa-home .wa-card__title { font-size: 17px; }
  .wa-home .wa-card--mini .wa-card__title,
  .wa-home .wa-card--line .wa-card__title { font-size: 16px; }
  .wa-cover__body { padding: 26px; }
  .wa-home .wa-cover__title { font-size: 22px; }
  .wa-grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .wa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wa-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .wa-cats__grid {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .wa-cats__intro { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: center; gap: 32px; }
  .wa-news { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: center; gap: 32px; padding: 30px 32px; }
  .wa-home .wa-news__title { font-size: 22px; }
  .wa-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .wa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- desktop ----------------------------------------------------------- */
@media (min-width: 960px) {
  .wa-sec, .wa-band.wa-sec, .wa-split, .wa-duo { margin-block: 60px; }
  .wa-duo .wa-sec { margin-block: 0; }
  .wa-band { padding-block: 52px; }
  .wa-home .wa-head__title { font-size: 25px; }
  .wa-home .wa-cats__title { font-size: 27px; }

  .wa-hero { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; margin-bottom: 52px; }
  .wa-cover--hero { min-height: 470px; }
  .wa-cover--hero .wa-cover__body { padding: 34px; gap: 12px; }
  .wa-home .wa-cover--hero .wa-cover__title { font-size: 32px; line-height: 1.45; max-width: 22ch; }
  .wa-cover--hero .wa-excerpt { font-size: 16px; }
  .wa-hero__side { grid-template-rows: repeat(3, 1fr); }
  .wa-hero__side .wa-card { padding-block: 0; align-items: center; }
  .wa-hero__side .wa-card + .wa-card { padding-top: 0; }
  .wa-hero__side .wa-card__media { width: 132px; border-radius: 12px; }

  .wa-cats__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .wa-home .wa-cat { padding: 16px; }
  .wa-cat__name { font-size: 15px; }

  .wa-split { grid-template-columns: minmax(0, 1fr) 348px; gap: 44px; }
  .wa-top { padding: 28px 24px 12px; }

  .wa-lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
  .wa-lead--flip .wa-cover { order: 2; }
  .wa-lead .wa-cover { min-height: 400px; }
  .wa-home .wa-lead .wa-cover__title { font-size: 25px; max-width: 26ch; }
  .wa-lead__rest .wa-card__media,
  .wa-picks__list .wa-card__media { width: 92px; }

  .wa-duo { gap: 0 44px; }
  .wa-picks { margin-top: 68px; padding-block: 60px; }
  .wa-picks__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; }
  .wa-picks .wa-cover { min-height: 420px; }
  .wa-home .wa-picks .wa-cover__title { font-size: 26px; max-width: 26ch; }
  .wa-latest .wa-excerpt { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-home *, .wa-foot * { transition: none !important; }
  .wa-card:hover .wa-img, .wa-cover:hover .wa-img, .wa-rank:hover .wa-img { transform: none; }
}

/* ==========================================================================
   Theme adjustments that only apply while v2 is on
   ========================================================================== */
.wa-v2-home .main.ts-contain { margin-top: 22px; margin-bottom: 0; padding-bottom: 0; }
.wa-v2-home .page-content { margin: 0; }

/* Buttons elsewhere on the site: hover stays in the teal family (was a leftover brown). */
.wa-v2 .elementor-button:hover,
.wa-v2 .pagination a.next:hover,
.wa-v2 .pagination .load-more a:hover { background: #0B4F4A !important; }

/* The footer links now live in the new footer block above. */
.wa-v2 .main-footer .lower-footer .links { display: none; }
.wa-v2 .main-footer.footer-bold.s-dark { border-top: 0 !important; margin-top: 0; }
.wa-v2 .main-footer .bold-footer-lower .inner { padding-block: 26px 30px; }
/* Inner pages: keep breathing room between the content and the footer block. */
.wa-foot { margin-top: 60px; }
.wa-v2-home .wa-foot { margin-top: 0; }

/* ---- sidebar (articles, categories, pages) ------------------------------ */
.wa-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.wa-home div.wa-top__title { font-family: var(--w-head); font-weight: 700; }
.wa-side__box { padding: 20px; border: 1px solid var(--w-line); border-radius: var(--w-r); background: #fff; }
.wa-side__h { margin-bottom: 14px; font-family: var(--w-head); font-weight: 700; font-size: 18px; line-height: 1.5; color: var(--w-ink); }
.wa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-home .wa-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--w-line);
  border-radius: 999px;
  background: var(--w-tint);
  color: var(--w-ink);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--w-ease), color var(--w-ease), border-color var(--w-ease);
}
.wa-home .wa-chips a:hover { background: var(--w-accent); border-color: var(--w-accent); color: #fff; }

/* ---- article body: reading comfort -------------------------------------- */
.wa-v2.single-post .post-content > h2 {
  margin-top: 1.7em;
  padding-inline-start: 14px;
  border-inline-start: 4px solid #0F6B64;
  border-radius: 2px;
}
.wa-v2.single-post .post-content > h3 { margin-top: 1.4em; }
.wa-v2.single-post .post-content p a,
.wa-v2.single-post .post-content li a {
  color: #0F6B64;
  text-decoration: underline;
  text-decoration-color: rgba(15, 107, 100, .35);
  text-underline-offset: 4px;
  transition: text-decoration-color 240ms, color 240ms;
}
.wa-v2.single-post .post-content p a:hover,
.wa-v2.single-post .post-content li a:hover { color: #0B4F4A; text-decoration-color: #0B4F4A; }
.wa-v2.single-post .post-content li::marker { color: #0F6B64; font-weight: 700; }
.wa-v2.single-post .post-content img { border-radius: 16px; }
.wa-v2.single-post .post-content > blockquote,
.wa-v2.single-post .post-content .wp-block-quote {
  padding: 16px 20px;
  border: 0;
  border-inline-start: 4px solid #0F6B64;
  border-radius: 10px;
  background: #E3F6EE;
}

/* ---- article body on phones ---------------------------------------------
   Before: paragraphs rendered at about the same size as the H2 (20-21px), the
   H2 had a cramped 1.25 line-height, and the padded box left a narrow column.
   Laptop/desktop sizes are untouched. Change the px values here to retune. */
@media (max-width: 767px) {
  .wa-v2.single-post .post-content { padding: 18px 14px; border-radius: 14px; }
  .wa-v2.single-post .post-content,
  .wa-v2.single-post .post-content p,
  .wa-v2.single-post .post-content li {
    font-size: 17px !important;
    line-height: 1.9 !important;
  }
  .wa-v2.single-post .post-content h2 {
    font-size: 21px !important;
    line-height: 1.6 !important;
    font-weight: 700;
    margin-top: 1.6em;
    margin-bottom: .6em;
  }
  .wa-v2.single-post .post-content > h2 { padding-inline-start: 12px; border-inline-start-width: 3px; }
  .wa-v2.single-post .post-content h3 {
    font-size: 18.5px !important;
    line-height: 1.65 !important;
    font-weight: 700;
    margin-top: 1.4em;
    margin-bottom: .5em;
  }
  .wa-v2.single-post .post-content h4 { font-size: 17.5px !important; line-height: 1.65 !important; }
  .wa-v2.single-post .post-content ul,
  .wa-v2.single-post .post-content ol { margin-inline-start: 20px; }
  .wa-v2.single-post .post-content li { margin-bottom: .35em; }
  .wa-v2.single-post .post-content table,
  .wa-v2.single-post .post-content table td,
  .wa-v2.single-post .post-content table th { font-size: 14.5px !important; }
}

/* Hide the visible "last updated" date in the article meta line (all screen sizes).
   The modified date stays in Yoast's schema for search engines. */
.wa-v2 .post-meta .meta-item.date-modified { display: none; }

/* ---- article top on phones: breadcrumb, title, meta, cover --------------- */
@media (max-width: 767px) {
  /* Breadcrumb: a slim strip instead of a tall band, closer to the title. */
  .wa-v2 .breadcrumbs-b { margin-bottom: 0; padding: 0 !important; border-radius: 0 !important; font-size: 12.5px !important; }
  .wa-v2 .breadcrumbs-b .inner { padding-top: 9px; padding-bottom: 9px; line-height: 1.5; }
  .wa-v2 .breadcrumbs-b + .main { margin-top: 18px; }

  .wa-v2.single-post .s-head-modern { margin-bottom: 14px; }
  .wa-v2.single-post .s-head-modern .post-title {
    margin: 10px 0 12px;
    font-family: "Noto Kufi Arabic", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0;
  }
  /* Meta on one tidy line: author, date, reading time. */
  .wa-v2.single-post .post-meta-single .meta-below {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    line-height: 1.8;
    color: #66726F;
  }
  .wa-v2.single-post .post-meta-single .meta-below .comments { display: none; }
  .wa-v2.single-post .post-meta-single .meta-below .read-time { margin-inline-start: 14px; }
  .wa-v2.single-post .post-meta-single .meta-below .read-time i { margin-inline-end: 5px; }
  .wa-v2.single-post .post-meta-single .post-author img { width: 26px; height: 26px; }
  .wa-v2.single-post .s-head-modern .post-share { margin-top: 14px; }

  .wa-v2.single-post .single-featured .image-link,
  .wa-v2.single-post .single-featured img { border-radius: 14px; overflow: hidden; }
  .wa-v2.single-post .single-featured .wp-caption-text { font-size: 12.5px; font-style: normal; color: #66726F; }
}

/* ---- related posts on phones: compact cards ------------------------------
   Small thumb beside category, title and date. The long selector is needed to
   outrank the older related-posts rules in theme.css (section 21). */
@media (max-width: 600px) {
  .wa-v2 .related-posts .loop.loop-grid-sm.grid { gap: 12px !important; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    padding: 10px;
    border: 1px solid #E3EAE8;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post:nth-child(n+7) { display: none !important; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media {
    flex: 0 0 96px !important;
    width: 96px;
    height: 96px;
    max-width: none !important;
    max-height: none !important;
    align-self: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media .image-link {
    display: block;
    height: 96px !important;
    padding-bottom: 0 !important;
    border-radius: 10px;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media .img,
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media img { height: 96px !important; border-radius: 10px; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .content {
    flex: 1 1 0 !important;
    min-width: 0;
    padding: 0 !important;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-above { display: block; height: auto; margin: 0 0 5px; line-height: 1.6; overflow: visible; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-above .meta-item { display: inline-block; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .category {
    display: inline-block;
    padding: 2px 10px !important;
    border-radius: 999px !important;
    background: #E3F6EE !important;
    color: #0F6B64 !important;
    font-size: 11.5px !important;
    font-weight: 600;
    line-height: 1.7 !important;
    height: auto;
    white-space: nowrap;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .post-title {
    margin: 0 0 3px !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-below { font-size: 12px; line-height: 1.5; }
}

/* ---- related posts on tablet/desktop: three-up grid of cards --------------
   Before: nine full-width rows with a large image each. */
@media (min-width: 601px) {
  .wa-v2 .related-posts .loop.loop-grid-sm.grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px !important;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media {
    flex: none !important;
    width: 100%;
    max-width: none !important;
    aspect-ratio: 16 / 10;
    margin: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media .image-link {
    display: block;
    height: 100% !important;
    padding-bottom: 0 !important;
    border-radius: 14px;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media .img,
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .media img { width: 100% !important; height: 100% !important; border-radius: 14px; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .content {
    flex: none !important;
    padding: 0 !important;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-above { display: block; height: auto; margin: 0 0 6px; line-height: 1.6; overflow: visible; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-above .meta-item { display: inline-block; }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .category {
    display: inline-block;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    background: #E3F6EE !important;
    color: #0F6B64 !important;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.7 !important;
    height: auto;
    white-space: nowrap;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .post-title {
    margin: 0 0 4px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .post-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .wa-v2 .related-posts .loop.loop-grid-sm.grid .l-post.grid-post.grid-sm-post .meta-below { font-size: 13px; line-height: 1.5; }
}

/* ---- mobile menu panel (off-canvas) ------------------------------------- */
.wa-v2 .off-canvas {
  width: min(86vw, 340px) !important; /* panel width: raise or lower these two numbers */
  min-width: 0 !important;
  max-width: none !important;
  background: #fff;
}
.wa-v2 .off-canvas-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid #E3EAE8;
}
.wa-v2 .off-canvas-head .ts-logo:empty { display: none; }
.wa-v2 .off-canvas .close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: #F1F4F3 !important;
  color: #171717 !important;
  font-size: 16px;
  line-height: 1;
  transition: background 240ms;
}
.wa-v2 .off-canvas .close:hover { background: #E3F6EE !important; }
.wa-v2 .off-canvas-content { padding: 6px 20px 24px; }
.wa-v2 .off-canvas .mobile-menu { margin-top: 0; margin-bottom: 28px; }
.wa-v2 .mobile-menu > li { align-items: center; border-bottom: 1px solid #E3EAE8; }
.wa-v2 .mobile-menu > li > a {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
  padding: 15px 0 !important;
  font-size: 16px !important;
  line-height: 1.5;
  color: #171717;
}
.wa-v2 .mobile-menu > li.item-active > a,
.wa-v2 .mobile-menu .current-menu-item > a,
.wa-v2 .mobile-menu .current-menu-parent > a { color: #0F6B64; }
.wa-v2 .mobile-menu li:hover > a { opacity: 1; color: #0F6B64; }
.wa-v2 .mobile-menu .chevron {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px;
  background: #E3F6EE;
  color: #0F6B64;
  font-size: 12px !important;
  line-height: 1;
  justify-content: center;
  transition: transform 240ms, background 240ms, color 240ms;
}
.wa-v2 .mobile-menu .item-active > .chevron { background: #0F6B64; color: #fff; }
.wa-v2 .mobile-menu > .item-active { padding-bottom: 12px; }
.wa-v2 .mobile-menu > li > ul { border-radius: 12px; background: #F6FAF9; }
.wa-v2 .mobile-menu > .item-active > ul { padding: 6px 16px; }
.wa-v2 .mobile-menu ul li { padding: 0 !important; border-bottom: 1px solid #E3EAE8; }
.wa-v2 .mobile-menu ul li:last-child { border-bottom: 0; }
.wa-v2 .mobile-menu ul li a {
  flex: 1 1 0;
  max-width: none !important;
  padding: 12px 0 !important;
  font-size: 15px !important;
  font-weight: 500;
  color: #46524F;
}
.wa-v2 .off-canvas .spc-social { padding-top: 18px; border-top: 1px solid #E3EAE8; }

/* ---- desktop navigation ------------------------------------------------- */
@media (min-width: 941px) {
  .wa-v2 .navigation-main .menu > li > a { transition: color 240ms, box-shadow 240ms; }
  .wa-v2 .navigation-main .menu > li:hover > a,
  .wa-v2 .navigation-main .menu > li.current-menu-item > a,
  .wa-v2:not(.single) .navigation-main .menu > li.current-menu-parent > a {
    color: #0F6B64;
    box-shadow: inset 0 -3px 0 #0F6B64;
  }
  /* Inside an article, no menu item is marked as selected (hover still works). */
  .wa-v2.single .navigation-main .menu > li.current-menu-parent:not(:hover) > a,
  .wa-v2.single .navigation-main .menu > li.current-post-parent:not(:hover) > a,
  .wa-v2.single .navigation-main .menu > li.current-post-ancestor:not(:hover) > a {
    color: var(--wa-ink, #141414);
    box-shadow: none;
  }
  .wa-v2 .navigation-main .mega-menu .sub-cats li:hover > a { color: #0F6B64; }
}

/* ---- article body on laptop/desktop: slightly smaller text ---------------
   Was about 19.3px (1.38rem). Change the px value here to retune. */
@media (min-width: 768px) {
  .wa-v2.single-post .post-content,
  .wa-v2.single-post .post-content p,
  .wa-v2.single-post .post-content li {
    font-size: 17.5px !important;
    line-height: 1.95 !important;
  }
}

/* ---- breadcrumb on laptop/desktop: part of the page, not a separate band --
   Was a full-width bordered mint strip under the header. Now a plain line of
   text aligned with the article column, sitting just above the category tag. */
@media (min-width: 768px) {
  .wa-v2 .breadcrumbs.breadcrumbs-b {
    margin-bottom: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
  }
  .wa-v2 .breadcrumbs.breadcrumbs-b .inner { padding-top: 22px; padding-bottom: 0; line-height: 1.6; overflow: visible; }
  /* The tinted box spans the article column only (it stops before the sidebar).
     66.6667% - 12px is the theme's article column: two thirds of the row minus its gutter. */
  .wa-v2 .breadcrumbs.breadcrumbs-b .inner > span {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 7px 16px;
    border: 1px solid #DCEEEA;
    border-radius: 10px;
    background: #F4FBFA;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
  }
  .wa-v2 .breadcrumbs.breadcrumbs-b + .main { margin-top: 16px; }
  .wa-v2 .breadcrumbs.breadcrumbs-b .breadcrumb_last { color: #66726F !important; font-weight: 400 !important; }
}

@media (min-width: 941px) {
  .wa-v2.right-sidebar .breadcrumbs.breadcrumbs-b .inner > span { width: calc(66.6667% - 12px); }
}

/* ---- contact page ------------------------------------------------------- */
.wa-contact__intro { margin-bottom: 24px; }
.wa-contact__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; }
.wa-form {
  flex: 1 1 380px;
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--w-line);
  border-radius: var(--w-r);
  background: #fff;
}
.wa-contact__info {
  flex: 1 1 220px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--w-r);
  background: var(--w-tint);
  border: 1px solid var(--w-line);
}
.wa-contact__info .wa-side__h { margin: 4px 0 4px; }
.wa-contact__info .wa-lede { margin: 0 0 12px; font-size: 14.5px; }
.wa-home .wa-contact__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--w-accent);
  font-weight: 600;
  font-size: 16px;
  direction: ltr;
  text-decoration: underline;
  text-decoration-color: rgba(15, 107, 100, .35);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.wa-home .wa-contact__mail:hover { color: var(--w-accent-d); text-decoration-color: currentColor; }

.wa-form .hidden-fields-container { display: none; }
.wa-form form { margin: 0; }
.wa-home .wa-form p { margin: 0 0 16px; padding: 0; font-size: 14.5px !important; line-height: 1.6 !important; font-family: var(--w-body) !important; font-weight: 400 !important; }
.wa-home .wa-form p:last-of-type { margin-bottom: 0; }
.wa-form label { display: block; font-weight: 600; font-size: 14.5px; color: var(--w-ink); }
.wa-form label br { display: none; }
.wa-form .wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.wa-home .wa-form input:not([type="submit"]),
.wa-home .wa-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #CBD8D5;
  border-radius: var(--w-r-sm);
  background: #fff;
  box-shadow: none;
  color: var(--w-ink);
  font-family: var(--w-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  transition: border-color var(--w-ease), box-shadow var(--w-ease);
  -webkit-appearance: none;
  appearance: none;
}
.wa-home .wa-form textarea { height: 150px; padding: 12px 14px; resize: vertical; }
.wa-home .wa-form input:not([type="submit"]):focus,
.wa-home .wa-form textarea:focus { border-color: var(--w-accent); box-shadow: 0 0 0 4px rgba(15, 107, 100, .12); outline: none; }
.wa-home .wa-form input[type="submit"] {
  width: auto;
  height: 48px;
  margin: 4px 0 0;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: var(--w-accent);
  box-shadow: none;
  color: #fff;
  font-family: var(--w-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background var(--w-ease);
}
.wa-home .wa-form input[type="submit"]:hover { background: var(--w-accent-d); }
.wa-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #B42318; font-size: 13px; font-weight: 400; }
.wa-home .wa-form .wpcf7-not-valid { border-color: #B42318; }
.wa-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border: 1px solid var(--w-line) !important; border-radius: var(--w-r-sm); background: var(--w-tint); font-size: 14.5px; line-height: 1.7; }
.wa-form form.invalid .wpcf7-response-output,
.wa-form form.failed .wpcf7-response-output { border-color: #F1B5AE !important; background: #FDF3F2; color: #8A1C12; }
.wa-form form.sent .wpcf7-response-output { border-color: #A9DCC8 !important; background: var(--w-mint); color: var(--w-accent-d); }
.wa-form form.init .wpcf7-response-output { display: none; }
/* The page keeps the theme's own H1; tighten the gap under it. */
.wa-v2.page-id-8530 .post-header { margin-bottom: 14px; }

/* ---- footer block ------------------------------------------------------ */
.wa-foot {
  background: var(--w-dark);
  color: #D5E6E3;
  font-family: var(--w-body);
  font-size: 15px;
  line-height: 1.9;
  text-align: start;
}
.wa-foot__in {
  display: grid;
  gap: 32px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 44px 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.wa-foot a { color: #D5E6E3; text-decoration: none; transition: color var(--w-ease); }
.wa-foot a:hover { color: #fff; }
.wa-foot .wa-foot__brand { font-family: var(--w-head); font-weight: 700; font-size: 26px; line-height: 1.4; color: #fff; }
.wa-foot__desc { margin-top: 10px; max-width: 40ch; color: #B9D6D3; }
.wa-foot__h { margin-bottom: 10px; font-family: var(--w-head); font-weight: 700; font-size: 16px; color: #fff; }
.wa-foot__links { display: grid; gap: 2px 24px; }
.wa-foot__links a { display: block; padding-block: 5px; }
.wa-foot__col--cats .wa-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) {
  .wa-foot__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 48px; padding: 60px 25px 40px; }
}
