/* Home dashboard v3 — full-height shell, no desktop scroll */

.wd-body-home,
.wd-body-home-intl {
  --wd-home-gap: clamp(10px, 1.2vw, 18px);
  --wd-home-card-radius: 12px;
  --wd-home-border: 1px solid #e8ebef;
  --wd-home-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  --wd-home-green: #1a843a;
  --wd-home-green-tint: #f0f8f3;
  --wd-home-green-tint-hover: #e6f3eb;
  --wd-home-green-soft: rgba(26, 132, 58, 0.08);
  --wd-home-hifz-tint: #fafbfc;
  --wd-home-hifz-tint-hover: #f3f4f6;
  --wd-home-hifz-icon: #1a843a;
}

.wd-body-home .wd-topbar-home,
.wd-body-home-intl .wd-topbar-home {
  border-bottom: 0;
  padding: 8px 20px 0;
  min-height: 44px;
  flex-shrink: 0;
}

.wd-body-home .wd-home-topbar-brand,
.wd-body-home-intl .wd-home-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.wd-body-home .wd-home-topbar-logo,
.wd-body-home-intl .wd-home-topbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.wd-body-home .wd-home-topbar-logo img,
.wd-body-home-intl .wd-home-topbar-logo img {
  width: clamp(36px, 3.5vw, 42px);
  height: clamp(36px, 3.5vw, 42px);
  object-fit: contain;
  border-radius: 10px;
}

.wd-body-home .wd-home-topbar-title,
.wd-body-home-intl .wd-home-topbar-title {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1f1c;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .wd-body-home .wd-home-topbar-brand {
    display: none;
  }
}

.wd-body-home .wd-home-hero--compact,
.wd-body-home-intl .wd-home-hero--compact {
  justify-content: center;
  align-items: center;
  padding-block: clamp(4px, 0.6vw, 10px) clamp(2px, 0.4vw, 6px);
  margin-block-start: clamp(0px, 0.2vw, 4px);
  margin-block-end: 0;
}

.wd-body-home .wd-home-hero--compact .wd-home-search,
.wd-body-home-intl .wd-home-hero--compact .wd-home-search {
  flex: 0 1 clamp(280px, 42vw, 480px);
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.wd-body-home .wd-content.wd-home-page,
.wd-body-home-intl .wd-content.wd-home-intl-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: 4px 20px 10px;
  overflow: hidden;
}

.wd-body-home .wd-home-shell,
.wd-body-home-intl .wd-home-shell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--wd-home-gap);
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  min-height: 0;
  flex: 1;
}

.wd-body-home .wd-home-level,
.wd-body-home-intl .wd-home-level {
  min-height: 0;
  min-width: 0;
  flex-shrink: 0;
}

.wd-body-home .wd-home-level--reciters,
.wd-body-home-intl .wd-home-level--reciters {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-block-start: clamp(-10px, -1vw, -4px);
  overflow: visible;
  position: relative;
  z-index: 1;
  padding-block-end: 0;
}

.wd-body-home .wd-home-level--services,
.wd-body-home-intl .wd-home-level--services {
  display: flex;
  min-height: 0;
  margin-block-start: clamp(-28px, -2.6vw, -22px);
}

.wd-body-home .wd-home-level--bottom,
.wd-body-home-intl .wd-home-level--bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--wd-home-gap);
  align-items: start;
}

.wd-body-home .wd-home-bottom--newsletter-only,
.wd-body-home-intl .wd-home-bottom--newsletter-only {
  grid-template-columns: 1fr;
}

.wd-body-home .wd-home-bottom--newsletter-only .wd-home-quick,
.wd-body-home-intl .wd-home-bottom--newsletter-only .wd-home-quick {
  width: 100%;
}

.wd-body-home .wd-home-level--foot {
  flex-shrink: 0;
}

/* Hero */
.wd-body-home .wd-home-hero,
.wd-body-home-intl .wd-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  padding: 0;
}

.wd-body-home .wd-home-hero-main,
.wd-body-home-intl .wd-home-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.wd-body-home .wd-home-hero-logo img,
.wd-body-home-intl .wd-home-hero-logo img {
  width: clamp(40px, 3.5vw, 46px);
  height: clamp(40px, 3.5vw, 46px);
  object-fit: contain;
  border-radius: 10px;
}

.wd-body-home .wd-home-hero-title,
.wd-body-home-intl .wd-home-hero-title {
  margin: 0 0 2px;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1f1c;
}

.wd-body-home .wd-home-hero-lead,
.wd-body-home-intl .wd-home-hero-lead {
  margin: 0;
  font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.4;
  color: #5c6560;
}

.wd-body-home .wd-home-search,
.wd-body-home-intl .wd-home-search {
  flex: 0 1 clamp(240px, 28vw, 380px);
  width: 100%;
  max-width: 380px;
  margin: 0;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
}

.wd-body-home .wd-home-search input,
.wd-body-home-intl .wd-home-search input {
  font-size: 0.8125rem;
}

.wd-body-home .wd-home-search .wd-search-action-btn,
.wd-body-home-intl .wd-home-search .wd-search-action-btn {
  min-height: 30px;
  padding: 0 14px;
  font-size: 0.75rem;
}

/* Section headings */
.wd-body-home .wd-home-section-head,
.wd-body-home-intl .wd-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.wd-body-home .wd-home-reciters .wd-home-section-head,
.wd-body-home-intl .wd-home-reciters .wd-home-section-head {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.wd-body-home .wd-home-reciters-title,
.wd-body-home-intl .wd-home-reciters-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1f1c;
}

.wd-body-home .wd-home-section-link,
.wd-body-home-intl .wd-home-section-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b938d;
  text-decoration: none;
}

.wd-body-home .wd-home-section-link:hover,
.wd-body-home-intl .wd-home-section-link:hover {
  color: var(--wd-home-green);
}

/* Reciters — 8 visible in UI; all loaded reciters scroll inside */
.wd-body-home .wd-home-reciters,
.wd-body-home-intl .wd-home-reciters {
  --wd-reciter-card-w: 96px;
  --wd-reciter-gap: 36px;
  --wd-reciter-visible: 8;
  --wd-reciter-window: calc(
    var(--wd-reciter-visible) * var(--wd-reciter-card-w) +
    (var(--wd-reciter-visible) - 1) * var(--wd-reciter-gap)
  );
  width: 100%;
  gap: 2px;
}

.wd-body-home .wd-home-reciters-row,
.wd-body-home-intl .wd-home-reciters-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: start;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: visible;
  direction: ltr;
}

.wd-body-home .wd-home-reciters-viewport,
.wd-body-home-intl .wd-home-reciters-viewport {
  overflow: hidden !important;
  scroll-snap-type: none !important;
  width: var(--wd-reciter-window);
  max-width: 100%;
  min-width: 0 !important;
  margin-inline: auto;
  justify-self: center;
  direction: ltr;
  position: relative;
  z-index: 1;
}

.wd-body-home .wd-home-reciters-track,
.wd-body-home-intl .wd-home-reciters-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none !important;
  justify-content: flex-start;
  gap: var(--wd-reciter-gap);
  padding-block: 4px 6px;
  padding-inline: 0 !important;
  margin-inline: 0;
  box-sizing: border-box;
  direction: ltr;
  transition: transform 0.35s ease;
  will-change: transform;
  scroll-snap-type: none !important;
}

.wd-body-home .wd-home-reciters-track.is-fit-all,
.wd-body-home-intl .wd-home-reciters-track.is-fit-all,
.wd-body-home .wd-home-reciters-track.is-centered,
.wd-body-home-intl .wd-home-reciters-track.is-centered {
  width: max-content !important;
  justify-content: flex-start !important;
}

.wd-body-home .wd-home-reciters-track.is-centered,
.wd-body-home-intl .wd-home-reciters-track.is-centered {
  margin-inline: 0;
}

.wd-body-home .wd-home-reciters-arrow,
.wd-body-home-intl .wd-home-reciters-arrow {
  width: 44px;
  height: 44px;
  margin-top: 22px;
  font-size: 1.125rem;
  align-self: start;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 3;
  border-radius: 50%;
  border: 1px solid #eceef2;
  background: #fff;
  color: #1a1f1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wd-body-home .wd-home-reciters-arrow:hover,
.wd-body-home-intl .wd-home-reciters-arrow:hover {
  border-color: rgba(26, 132, 58, 0.35);
  color: #1a843a;
  box-shadow: 0 2px 10px rgba(26, 132, 58, 0.1);
}

.wd-body-home .wd-home-reciters-arrow.is-muted,
.wd-body-home-intl .wd-home-reciters-arrow.is-muted {
  opacity: 0.35;
  cursor: default;
}

.wd-body-home .wd-home-reciter-card,
.wd-body-home-intl .wd-home-reciter-card {
  width: var(--wd-reciter-card-w);
  flex: 0 0 var(--wd-reciter-card-w);
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.wd-body-home .wd-home-reciter-card img,
.wd-body-home .wd-home-reciter-fallback,
.wd-body-home-intl .wd-home-reciter-card img,
.wd-body-home-intl .wd-home-reciter-fallback {
  display: block;
  width: clamp(68px, 6.8vw, 82px);
  height: clamp(68px, 6.8vw, 82px);
  margin-inline: auto;
  box-sizing: border-box;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 2px solid #eceef2;
  flex-shrink: 0;
}

.wd-body-home .wd-home-reciter-name,
.wd-body-home-intl .wd-home-reciter-name {
  margin-top: 6px;
  max-width: var(--wd-reciter-card-w);
  font-size: 0.75rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Primary service cards */
.wd-body-home .wd-home-primary-services,
.wd-body-home-intl .wd-home-primary-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wd-home-gap);
  width: 100%;
  flex: 1;
  min-height: 0;
}

.wd-body-home .wd-home-primary-card,
.wd-body-home-intl .wd-home-primary-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 0;
  height: 100%;
  padding: clamp(12px, 1.4vw, 16px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--wd-home-green-tint);
  border-color: rgba(26, 132, 58, 0.16);
  box-shadow: 0 1px 4px rgba(26, 132, 58, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.wd-body-home .wd-home-primary-card:hover,
.wd-body-home-intl .wd-home-primary-card:hover {
  background: var(--wd-home-green-tint-hover);
  border-color: rgba(26, 132, 58, 0.24);
  box-shadow: 0 4px 12px rgba(26, 132, 58, 0.1);
  transform: translateY(-1px);
  color: inherit;
}

.wd-body-home .wd-home-primary-card__decor,
.wd-body-home-intl .wd-home-primary-card__decor {
  position: absolute;
  inset-inline-end: -20px;
  inset-block-start: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 132, 58, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.wd-body-home .wd-home-primary-card__icon,
.wd-body-home-intl .wd-home-primary-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wd-home-green-soft);
  color: var(--wd-home-green);
  font-size: 1.2rem;
}

.wd-body-home .wd-home-primary-card__content,
.wd-body-home-intl .wd-home-primary-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.wd-body-home .wd-home-primary-card__title,
.wd-body-home-intl .wd-home-primary-card__title {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1f1c;
}

.wd-body-home .wd-home-primary-card__desc,
.wd-body-home-intl .wd-home-primary-card__desc {
  margin: 0;
  font-size: clamp(0.72rem, 0.8vw, 0.8125rem);
  line-height: 1.45;
  color: #5c6560;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-body-home .wd-home-primary-card__chips,
.wd-body-home-intl .wd-home-primary-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.wd-body-home .wd-home-primary-card__chips li,
.wd-body-home-intl .wd-home-primary-card__chips li {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3d4a42;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 132, 58, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.wd-body-home .wd-home-primary-card__cta,
.wd-body-home-intl .wd-home-primary-card__cta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wd-home-green);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Compact primary cards */
.wd-body-home .wd-home-primary-services--compact,
.wd-body-home-intl .wd-home-primary-services--compact {
  flex: 0 0 auto;
  height: auto;
  align-self: start;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card {
  height: auto;
  padding: 8px 10px;
  gap: 8px;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__decor,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__decor {
  width: 80px;
  height: 80px;
  inset-inline-end: -14px;
  inset-block-start: -14px;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__icon,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__content,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__content {
  gap: 3px;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__title,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__title {
  font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__desc,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__desc {
  font-size: 0.6875rem;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__chips,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__chips {
  gap: 4px;
  margin: 14px 0 0;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__chips li,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__chips li {
  font-size: 0.625rem;
  padding: 2px 6px;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-primary-card__cta,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-primary-card__cta {
  margin-top: 14px;
  padding-top: 0;
  font-size: 0.6875rem;
}

/* Hifz + readings paired row, visitor stats below hifz */
.wd-body-home .wd-home-primary-services--paired,
.wd-body-home-intl .wd-home-primary-services--paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "hifz readings"
    "mid-row mid-row"
    "stats app-download";
  row-gap: 0;
  column-gap: var(--wd-home-gap);
  align-items: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-hifz-techniques-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-techniques-slot {
  grid-area: hifz;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-primary-card--hifz,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-primary-card--hifz {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-readings-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-readings-slot {
  grid-area: readings;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-primary-card--readings,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-primary-card--readings {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz,
.wd-body-home .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-primary-card--readings,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-primary-card--readings {
  min-height: clamp(100px, 9.5vh, 114px);
  padding-block: 7px;
  padding-inline: 10px;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-mid-row,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row {
  grid-area: mid-row;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wd-home-gap);
  align-items: stretch;
  margin-top: clamp(28px, 3vw, 36px);
  min-height: 0;
  min-width: 0;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-hifz-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-hifz-slot,
.wd-body-home .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot {
  min-width: 0;
  min-height: 0;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot {
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-mushaf-cards,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-mushaf-cards {
  margin-top: 0;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards {
  margin-top: 0;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-primary-card--hifz .wd-home-primary-card__chips,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-primary-card--hifz .wd-home-primary-card__chips {
  margin-top: 16px;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-primary-card--hifz .wd-home-primary-card__cta,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-primary-card--hifz .wd-home-primary-card__cta {
  margin-top: 16px;
}

@media (min-width: 769px) {
  .wd-body-home .wd-home-primary-services--paired .wd-home-hifz-techniques-slot,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-techniques-slot,
  .wd-body-home .wd-home-primary-services--paired .wd-home-readings-slot,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-readings-slot {
    margin-top: 0;
  }
}

.wd-body-home .wd-home-newsletter-slot,
.wd-body-home-intl .wd-home-newsletter-slot {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row > .wd-home-newsletter-slot {
  align-self: stretch;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-newsletter-slot > .wd-home-quick--paired,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-newsletter-slot > .wd-home-quick--paired {
  flex: 1;
  min-height: 0;
  align-self: stretch;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  margin-top: 0;
  background: var(--wd-home-green-tint);
  border-color: rgba(26, 132, 58, 0.22);
  box-shadow: 0 1px 2px rgba(26, 132, 58, 0.05);
}

.wd-body-home .wd-home-bottom--newsletter-only .wd-home-quick.wd-home-card,
.wd-body-home-intl .wd-home-bottom--newsletter-only .wd-home-quick.wd-home-card {
  background: var(--wd-home-green-tint);
  border-color: rgba(26, 132, 58, 0.22);
  box-shadow: 0 1px 2px rgba(26, 132, 58, 0.05);
}

.wd-body-home .wd-home-newsletter-search,
.wd-body-home-intl .wd-home-newsletter-search {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--wd-home-green-tint);
  border: 1px solid rgba(26, 132, 58, 0.32);
}

.wd-body-home .wd-home-newsletter-search:focus-within,
.wd-body-home-intl .wd-home-newsletter-search:focus-within {
  background: var(--wd-home-green-tint);
  border-color: rgba(26, 132, 58, 0.46);
}

.wd-body-home .wd-home-newsletter-search input,
.wd-body-home-intl .wd-home-newsletter-search input {
  background: transparent;
}

.wd-body-home .wd-home-newsletter-slot-title,
.wd-body-home-intl .wd-home-newsletter-slot-title {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1f1c;
  flex-shrink: 0;
}

/* Home azkar cards — under hifz column */
.wd-body-home .wd-home-azkar-slot,
.wd-body-home-intl .wd-home-azkar-slot {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Home hifz techniques slot — title above card (like azkar) */
.wd-body-home .wd-home-hifz-techniques-slot,
.wd-body-home-intl .wd-home-hifz-techniques-slot {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.wd-body-home .wd-home-hifz-techniques-slot-title,
.wd-body-home-intl .wd-home-hifz-techniques-slot-title,
.wd-body-home .wd-home-readings-slot-title,
.wd-body-home-intl .wd-home-readings-slot-title,
.wd-body-home .wd-home-azkar-slot-title,
.wd-body-home-intl .wd-home-azkar-slot-title {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1f1c;
  flex-shrink: 0;
}

.wd-body-home .wd-home-azkar-cards,
.wd-body-home-intl .wd-home-azkar-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 10px);
  width: 100%;
}

.wd-body-home .wd-home-azkar-card,
.wd-body-home-intl .wd-home-azkar-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wd-body-home .wd-home-azkar-card:hover,
.wd-body-home-intl .wd-home-azkar-card:hover {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  color: inherit;
}

.wd-body-home .wd-home-azkar-card-media,
.wd-body-home-intl .wd-home-azkar-card-media {
  position: relative;
  aspect-ratio: 1.35 / 1;
  background: #f6f7f8;
  overflow: hidden;
}

.wd-body-home .wd-home-azkar-card-visual,
.wd-body-home-intl .wd-home-azkar-card-visual {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.wd-body-home .wd-home-azkar-card-visual img,
.wd-body-home-intl .wd-home-azkar-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wd-body-home .wd-home-azkar-card-fallback,
.wd-body-home-intl .wd-home-azkar-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  color: #9ca3af;
}

.wd-body-home .wd-home-azkar-card-play,
.wd-body-home-intl .wd-home-azkar-card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(38px, 36%, 48px);
  height: clamp(38px, 36%, 48px);
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wd-body-home .wd-home-azkar-card-play:hover,
.wd-body-home-intl .wd-home-azkar-card-play:hover {
  background: rgba(0, 0, 0, 0.62);
  transform: scale(1.04);
}

.wd-body-home .wd-home-azkar-card-play.is-playing,
.wd-body-home-intl .wd-home-azkar-card-play.is-playing {
  background: rgba(0, 0, 0, 0.66);
}

.wd-body-home .wd-home-azkar-card-play i,
.wd-body-home-intl .wd-home-azkar-card-play i {
  filter: none;
}

.wd-body-home .wd-home-azkar-card-play.is-disabled,
.wd-body-home-intl .wd-home-azkar-card-play.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.wd-body-home .wd-home-azkar-card-title-link,
.wd-body-home-intl .wd-home-azkar-card-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wd-body-home .wd-home-azkar-card-title,
.wd-body-home-intl .wd-home-azkar-card-title {
  padding: 8px 6px 10px;
  font-size: clamp(0.625rem, 0.72vw, 0.75rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #1a1f1c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home readings — mushaf avatars */
.wd-body-home .wd-home-readings-slot,
.wd-body-home-intl .wd-home-readings-slot {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.wd-body-home .wd-home-primary-card--readings,
.wd-body-home-intl .wd-home-primary-card--readings {
  cursor: default;
  overflow: hidden;
  min-height: 0;
}

.wd-body-home .wd-home-readings-slot .wd-home-primary-card--readings,
.wd-body-home-intl .wd-home-readings-slot .wd-home-primary-card--readings,
.wd-body-home .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz,
.wd-body-home-intl .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-body-home .wd-home-readings-slot .wd-home-mushaf-cards,
.wd-body-home-intl .wd-home-readings-slot .wd-home-mushaf-cards {
  width: 100%;
}

.wd-body-home .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards,
.wd-body-home-intl .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards {
  width: 100%;
}

.wd-body-home .wd-home-primary-card--readings:hover,
.wd-body-home-intl .wd-home-primary-card--readings:hover {
  transform: none;
  background: var(--wd-home-hifz-tint-hover);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.wd-body-home .wd-home-primary-card--readings .wd-home-primary-card__content,
.wd-body-home-intl .wd-home-primary-card--readings .wd-home-primary-card__content {
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.wd-body-home .wd-home-primary-card--readings .wd-home-primary-card__title,
.wd-body-home-intl .wd-home-primary-card--readings .wd-home-primary-card__title {
  align-self: stretch;
  width: 100%;
  flex-shrink: 0;
}

.wd-body-home .wd-home-mushaf-cards,
.wd-body-home-intl .wd-home-mushaf-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 clamp(2px, 0.35vw, 4px);
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  align-content: center;
  align-items: center;
  margin-block: 0;
  padding-block: 0;
}

.wd-body-home .wd-home-mushaf-card,
.wd-body-home-intl .wd-home-mushaf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.5vw, 6px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.wd-body-home .wd-home-mushaf-card:hover,
.wd-body-home-intl .wd-home-mushaf-card:hover {
  transform: translateY(-1px);
  color: inherit;
}

.wd-body-home .wd-home-mushaf-card-media,
.wd-body-home-intl .wd-home-mushaf-card-media {
  width: min(100%, 42px);
  aspect-ratio: 1 / 1;
  height: auto;
  flex-shrink: 0;
  border-radius: clamp(3px, 0.45vw, 6px);
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-body-home .wd-home-mushaf-card-media img,
.wd-body-home-intl .wd-home-mushaf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wd-body-home .wd-home-mushaf-card-title,
.wd-body-home-intl .wd-home-mushaf-card-title {
  width: 100%;
  padding: 0;
  font-size: clamp(0.625rem, 0.68vw, 0.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #1a1f1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-readings-slot .wd-home-mushaf-cards,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-readings-slot .wd-home-mushaf-cards {
  margin-top: 0;
}

/* Home hifz — technique icon cards */
.wd-body-home .wd-home-primary-card--hifz,
.wd-body-home-intl .wd-home-primary-card--hifz {
  cursor: default;
  overflow: hidden;
  min-height: 0;
}

.wd-body-home .wd-home-primary-card--hifz:hover,
.wd-body-home-intl .wd-home-primary-card--hifz:hover {
  transform: none;
  background: var(--wd-home-hifz-tint-hover);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.wd-body-home .wd-home-primary-card--hifz .wd-home-primary-card__content,
.wd-body-home-intl .wd-home-primary-card--hifz .wd-home-primary-card__content {
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.wd-body-home .wd-home-primary-card--hifz .wd-home-primary-card__title,
.wd-body-home-intl .wd-home-primary-card--hifz .wd-home-primary-card__title {
  align-self: stretch;
  width: 100%;
  flex-shrink: 0;
}

.wd-body-home .wd-home-hifz-technique-cards,
.wd-body-home-intl .wd-home-hifz-technique-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(2px, 0.35vw, 4px);
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  align-content: center;
  align-items: center;
  margin-block: 0;
  padding-block: 0;
}

.wd-body-home-intl .wd-home-hifz-technique-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wd-body-home .wd-home-hifz-technique-card,
.wd-body-home-intl .wd-home-hifz-technique-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.5vw, 6px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.wd-body-home .wd-home-hifz-technique-card:hover,
.wd-body-home-intl .wd-home-hifz-technique-card:hover {
  transform: translateY(-1px);
  color: inherit;
}

.wd-body-home .wd-home-hifz-technique-card-media,
.wd-body-home-intl .wd-home-hifz-technique-card-media {
  width: min(100%, 48px);
  aspect-ratio: 1 / 1;
  height: auto;
  flex-shrink: 0;
  border-radius: clamp(3px, 0.45vw, 6px);
  overflow: hidden;
  background: var(--wd-home-hifz-tint);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.2vw, 1.28rem);
  color: var(--wd-home-hifz-icon);
}

.wd-body-home .wd-home-hifz-technique-card-title,
.wd-body-home-intl .wd-home-hifz-technique-card-title {
  width: 100%;
  padding: 0;
  font-size: clamp(0.625rem, 0.68vw, 0.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #1a1f1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.wd-body-home .wd-home-primary-services--compact .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards,
.wd-body-home-intl .wd-home-primary-services--compact .wd-home-hifz-techniques-slot .wd-home-hifz-technique-cards {
  margin-top: 0;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-hifz-stats,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-stats,
.wd-body-home .wd-home-primary-services--paired .wd-home-app-stores-card,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-app-stores-card {
  margin-top: clamp(18px, 2.2vw, 26px);
}

.wd-body-home .wd-home-primary-services--paired .wd-home-hifz-stats,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-stats {
  grid-area: stats;
}

.wd-body-home .wd-home-primary-services--paired .wd-home-app-stores-card,
.wd-body-home-intl .wd-home-primary-services--paired .wd-home-app-stores-card {
  grid-area: app-download;
  align-self: start;
  width: 100%;
}

.wd-body-home .wd-home-hifz-stats,
.wd-body-home-intl .wd-home-hifz-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex-shrink: 0;
}

.wd-body-home .wd-home-hifz-stats .wd-home-stat-card,
.wd-body-home-intl .wd-home-hifz-stats .wd-home-stat-card {
  padding: 8px 10px;
  background: var(--wd-home-hifz-tint);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Shared cards */
.wd-body-home .wd-home-card,
.wd-body-home-intl .wd-home-card {
  background: #fff;
  border: var(--wd-home-border);
  border-radius: var(--wd-home-card-radius);
  box-shadow: var(--wd-home-shadow);
}

.wd-body-home .wd-home-primary-card.wd-home-card,
.wd-body-home-intl .wd-home-primary-card.wd-home-card {
  background: var(--wd-home-green-tint);
  border-color: rgba(26, 132, 58, 0.16);
  box-shadow: 0 1px 4px rgba(26, 132, 58, 0.06);
}

.wd-body-home .wd-home-primary-card.wd-home-card.wd-home-primary-card--hifz,
.wd-body-home-intl .wd-home-primary-card.wd-home-card.wd-home-primary-card--hifz,
.wd-body-home .wd-home-primary-card.wd-home-card.wd-home-primary-card--readings,
.wd-body-home-intl .wd-home-primary-card.wd-home-card.wd-home-primary-card--readings {
  background: var(--wd-home-hifz-tint);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Stats */
.wd-body-home .wd-home-stats-section,
.wd-body-home-intl .wd-home-stats-section {
  min-height: 0;
  display: flex;
  align-self: start;
  width: 100%;
}

.wd-body-home .wd-home-stats-section > .wd-home-app-stores-card,
.wd-body-home-intl .wd-home-stats-section > .wd-home-app-stores-card {
  width: 100%;
}

.wd-body-home .wd-home-stats,
.wd-body-home-intl .wd-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-content: start;
}

.wd-body-home .wd-home-stat-card,
.wd-body-home-intl .wd-home-stat-card,
.wd-body-home .wd-home-stats .wd-stat.wd-home-stat-card,
.wd-body-home-intl .wd-home-stats .wd-stat.wd-home-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
  min-height: 0;
}

.wd-body-home .wd-home-stats .wd-stat strong,
.wd-body-home-intl .wd-home-stats .wd-stat strong {
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.wd-body-home .wd-stat-top,
.wd-body-home-intl .wd-stat-top {
  font-size: 0.6875rem;
  margin-bottom: 0;
}

/* Quick actions */
.wd-body-home .wd-home-quick,
.wd-body-home-intl .wd-home-quick {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 12px;
  min-height: 0;
  align-self: start;
}

.wd-body-home .wd-home-store-badges,
.wd-body-home-intl .wd-home-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wd-body-home .wd-home-store-badges--stacked,
.wd-body-home-intl .wd-home-store-badges--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin-top: 0;
  padding-top: 0;
}

.wd-body-home .wd-home-store-badges--inline,
.wd-body-home-intl .wd-home-store-badges--inline {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wd-body-home .wd-home-store-badges--inline {
  direction: rtl;
}

.wd-body-home-intl .wd-home-store-badges--inline {
  direction: ltr;
}

.wd-body-home .wd-home-store-badges--inline .wd-home-store-badge,
.wd-body-home-intl .wd-home-store-badges--inline .wd-home-store-badge {
  flex: 0 0 auto;
}

.wd-body-home .wd-home-store-badges--inline .wd-home-store-badge img,
.wd-body-home-intl .wd-home-store-badges--inline .wd-home-store-badge img {
  width: clamp(128px, 13vw, 156px);
  height: auto;
  max-width: none;
  margin-inline: 0;
}

.wd-body-home .wd-home-app-stores-card,
.wd-body-home-intl .wd-home-app-stores-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px;
  min-height: 0;
  align-self: start;
  background: var(--wd-home-hifz-tint);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.wd-body-home .wd-home-app-stores-card .wd-home-store-badge img,
.wd-body-home-intl .wd-home-app-stores-card .wd-home-store-badge img {
  width: 100%;
  max-width: 118px;
  margin-inline: auto;
}

.wd-body-home .wd-home-app-stores-card .wd-home-store-badges--inline,
.wd-body-home-intl .wd-home-app-stores-card .wd-home-store-badges--inline {
  flex-wrap: wrap;
  gap: 8px;
}

.wd-body-home .wd-home-store-badge--disabled,
.wd-body-home-intl .wd-home-store-badge--disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.wd-body-home .wd-home-store-badge--disabled:hover,
.wd-body-home-intl .wd-home-store-badge--disabled:hover {
  opacity: 0.58;
  transform: none;
}

.wd-body-home .wd-home-store-badge,
.wd-body-home-intl .wd-home-store-badge {
  display: block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wd-body-home .wd-home-store-badge:hover,
.wd-body-home-intl .wd-home-store-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.wd-body-home .wd-home-store-badge img,
.wd-body-home-intl .wd-home-store-badge img {
  display: block;
  width: clamp(128px, 13vw, 156px);
  height: auto;
}

.wd-body-home .wd-home-quick-newsletter-label,
.wd-body-home-intl .wd-home-quick-newsletter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5c6560;
  margin: 0;
}

.wd-body-home .wd-home-quick-newsletter-row,
.wd-body-home-intl .wd-home-quick-newsletter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.wd-body-home .wd-home-quick-newsletter input,
.wd-body-home-intl .wd-home-quick-newsletter input {
  flex: 1;
  min-width: 0;
  height: 32px;
  font-size: 0.8125rem;
}

.wd-body-home .wd-home-quick-newsletter .wd-btn,
.wd-body-home-intl .wd-home-quick-newsletter .wd-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Footer */
.wd-body-home .wd-home-footer {
  margin: 0;
  padding: 0 0 4px;
}

.wd-body-home .wd-home-footer-divider {
  margin: 0 0 8px;
}

.wd-body-home .wd-home-footer-meta {
  font-size: 0.6875rem;
}

/* Short laptop screens */
@media (max-height: 800px) and (min-width: 769px) {
  .wd-body-home,
  .wd-body-home-intl {
    --wd-home-gap: clamp(8px, 1vw, 12px);
  }

  .wd-body-home .wd-home-shell,
  .wd-body-home-intl .wd-home-shell {
    gap: clamp(8px, 1vw, 12px);
  }

  .wd-body-home .wd-home-primary-card,
  .wd-body-home-intl .wd-home-primary-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .wd-body-home .wd-home-primary-card__icon,
  .wd-body-home-intl .wd-home-primary-card__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Tablet / mobile */
@media (max-width: 1100px) {
  .wd-body-home .wd-home-level--bottom,
  .wd-body-home-intl .wd-home-level--bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wd-body-home .wd-content.wd-home-page,
  .wd-body-home-intl .wd-content.wd-home-intl-page {
    padding-inline: 16px;
    overflow: visible;
  }

  .wd-body-home .wd-home-shell,
  .wd-body-home-intl .wd-home-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 1.25rem;
  }

  .wd-body-home .wd-home-hero,
  .wd-body-home-intl .wd-home-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-body-home .wd-home-hero--compact,
  .wd-body-home-intl .wd-home-hero--compact {
    align-items: center;
  }

  .wd-body-home .wd-home-search,
  .wd-body-home-intl .wd-home-search {
    flex: 1 1 auto;
    max-width: none;
  }

  .wd-body-home .wd-home-hero--compact .wd-home-search,
  .wd-body-home-intl .wd-home-hero--compact .wd-home-search {
    flex: 0 1 auto;
    width: 100%;
    max-width: 480px;
  }

  .wd-body-home .wd-home-primary-services,
  .wd-body-home-intl .wd-home-primary-services {
    grid-template-columns: 1fr;
  }

  .wd-body-home .wd-home-primary-services--paired,
  .wd-body-home-intl .wd-home-primary-services--paired {
    grid-template-areas:
      "hifz"
      "readings"
      "mid-row"
      "stats"
      "app-download";
    row-gap: var(--wd-home-gap);
  }

  .wd-body-home .wd-home-primary-services--paired .wd-home-mid-row,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .wd-body-home .wd-home-primary-services--paired .wd-home-mid-row,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-mid-row,
  .wd-body-home .wd-home-primary-services--paired .wd-home-hifz-stats,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-stats,
  .wd-body-home .wd-home-primary-services--paired .wd-home-app-stores-card,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-app-stores-card {
    margin-top: 0;
  }

  .wd-body-home .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-hifz-techniques-slot .wd-home-primary-card--hifz,
  .wd-body-home .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-primary-card--readings,
  .wd-body-home-intl .wd-home-primary-services--paired .wd-home-readings-slot .wd-home-primary-card--readings {
    height: auto;
  }

  .wd-body-home .wd-home-stats,
  .wd-body-home-intl .wd-home-stats {
    grid-template-columns: 1fr;
  }

  .wd-body-home .wd-home-quick-newsletter-row,
  .wd-body-home-intl .wd-home-quick-newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-body-home .wd-home-quick-newsletter .wd-btn,
  .wd-body-home-intl .wd-home-quick-newsletter .wd-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wd-body-home .wd-home-store-badges,
  .wd-body-home-intl .wd-home-store-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-body-home .wd-home-store-badge img,
  .wd-body-home-intl .wd-home-store-badge img {
    width: 100%;
    max-width: 200px;
    margin-inline: auto;
  }
}

/* Dark mode */
html.a11y-dark .wd-body-home .wd-home-hero-title,
html.a11y-dark .wd-body-home-intl .wd-home-hero-title,
html.a11y-dark .wd-body-home .wd-home-topbar-title,
html.a11y-dark .wd-body-home-intl .wd-home-topbar-title,
html.a11y-dark .wd-body-home .wd-home-reciters-title,
html.a11y-dark .wd-body-home-intl .wd-home-reciters-title,
html.a11y-dark .wd-body-home .wd-home-azkar-slot-title,
html.a11y-dark .wd-body-home-intl .wd-home-azkar-slot-title,
html.a11y-dark .wd-body-home .wd-home-hifz-techniques-slot-title,
html.a11y-dark .wd-body-home-intl .wd-home-hifz-techniques-slot-title,
html.a11y-dark .wd-body-home .wd-home-readings-slot-title,
html.a11y-dark .wd-body-home-intl .wd-home-readings-slot-title,
html.a11y-dark .wd-body-home .wd-home-newsletter-slot-title,
html.a11y-dark .wd-body-home-intl .wd-home-newsletter-slot-title,
html.a11y-dark .wd-body-home .wd-home-primary-card__title,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card__title {
  color: #e8ece9;
}

html.a11y-dark .wd-body-home .wd-home-newsletter-slot > .wd-home-quick.wd-home-card,
html.a11y-dark .wd-body-home-intl .wd-home-newsletter-slot > .wd-home-quick.wd-home-card,
html.a11y-dark .wd-body-home .wd-home-bottom--newsletter-only .wd-home-quick.wd-home-card,
html.a11y-dark .wd-body-home-intl .wd-home-bottom--newsletter-only .wd-home-quick.wd-home-card {
  background: rgba(26, 132, 58, 0.14);
  border-color: rgba(26, 132, 58, 0.22);
}

html.a11y-dark .wd-body-home .wd-home-newsletter-search,
html.a11y-dark .wd-body-home-intl .wd-home-newsletter-search {
  background: rgba(26, 132, 58, 0.14);
  border-color: rgba(26, 132, 58, 0.35);
}

html.a11y-dark .wd-body-home .wd-home-newsletter-search:focus-within,
html.a11y-dark .wd-body-home-intl .wd-home-newsletter-search:focus-within {
  background: rgba(26, 132, 58, 0.14);
  border-color: rgba(26, 132, 58, 0.5);
}

html.a11y-dark .wd-body-home .wd-home-hero-lead,
html.a11y-dark .wd-body-home-intl .wd-home-hero-lead,
html.a11y-dark .wd-body-home .wd-home-primary-card__desc,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card__desc {
  color: #9aa39d;
}

html.a11y-dark .wd-body-home .wd-home-card,
html.a11y-dark .wd-body-home-intl .wd-home-card {
  background: #1a211c;
  border-color: #2d3530;
  box-shadow: none;
}

html.a11y-dark .wd-body-home .wd-home-primary-card,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card {
  background: rgba(26, 132, 58, 0.14);
  border-color: rgba(26, 132, 58, 0.22);
}

html.a11y-dark .wd-body-home .wd-home-primary-card:hover,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card:hover {
  background: rgba(26, 132, 58, 0.18);
}

html.a11y-dark .wd-body-home .wd-home-primary-card.wd-home-card.wd-home-primary-card--hifz,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card.wd-home-card.wd-home-primary-card--hifz,
html.a11y-dark .wd-body-home .wd-home-primary-card.wd-home-card.wd-home-primary-card--readings,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card.wd-home-card.wd-home-primary-card--readings,
html.a11y-dark .wd-body-home .wd-home-hifz-stats .wd-home-stat-card,
html.a11y-dark .wd-body-home-intl .wd-home-hifz-stats .wd-home-stat-card,
html.a11y-dark .wd-body-home .wd-home-app-stores-card,
html.a11y-dark .wd-body-home-intl .wd-home-app-stores-card {
  background: #23282b;
  border-color: #343b40;
}

html.a11y-dark .wd-body-home .wd-home-primary-card--readings:hover,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card--readings:hover,
html.a11y-dark .wd-body-home .wd-home-primary-card--hifz:hover,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card--hifz:hover {
  background: #2a3034;
}

html.a11y-dark .wd-body-home .wd-home-mushaf-card-title,
html.a11y-dark .wd-body-home-intl .wd-home-mushaf-card-title {
  color: #e8ece9;
}

html.a11y-dark .wd-body-home .wd-home-hifz-technique-card-title,
html.a11y-dark .wd-body-home-intl .wd-home-hifz-technique-card-title {
  color: #e8ece9;
}

html.a11y-dark .wd-body-home .wd-home-mushaf-card-media,
html.a11y-dark .wd-body-home-intl .wd-home-mushaf-card-media {
  background: transparent;
  border-color: transparent;
}

html.a11y-dark .wd-body-home .wd-home-hifz-technique-card-media,
html.a11y-dark .wd-body-home-intl .wd-home-hifz-technique-card-media {
  background: #23282b;
  border-color: #343b40;
  color: #3db86a;
}

html.a11y-dark .wd-body-home .wd-home-primary-card__chips li,
html.a11y-dark .wd-body-home-intl .wd-home-primary-card__chips li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 132, 58, 0.2);
  color: #c5cdc8;
}
