/* ==========================================================================
   Quran Study Center — static site stylesheet
   Palette: emerald, gold, cream. Typography: Playfair Display + Lato.
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/assets/fonts/amiri-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #05251b;
  --green-900: #0b3d2e;
  --green-800: #0f5132;
  --green-700: #15663f;
  --green-600: #1c7a4c;
  --green-100: #e6f1e9;
  --green-50: #f2f8f4;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-dark: #806410;
  --gold-50: #fbf5e3;
  --cream: #faf7ef;
  --cream-2: #f3eee2;
  --ink: #14231d;
  --muted: #5b6b63;
  --line: #e4dfd2;
  --white: #fff;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(20, 35, 29, 0.06), 0 4px 12px rgba(20, 35, 29, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(20, 35, 29, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(11, 61, 46, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
  --font-ui: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Segoe UI', serif;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 28px);
  --section-py: clamp(64px, 8vw, 100px);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--green-800);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-dark);
}

p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
p a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
h4 {
  font-size: 1.1rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--gold-light);
  color: var(--green-950);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--green-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
}
.section--cream {
  background: var(--cream);
}
.section--green {
  background: var(--green-900);
  color: #fff;
}
.section--tight {
  padding-block: clamp(44px, 5vw, 64px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}
.section--green .section-head p,
.section--green .section-head h2 {
  color: #fff;
}
.section--green .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.section--green .eyebrow {
  color: var(--gold-light);
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
.icon-xs {
  width: 0.9em;
  height: 0.9em;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--green-950);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--green-950);
}
.btn-green {
  background: var(--green-800);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-700);
  color: #fff;
}
.btn-outline {
  border-color: var(--green-800);
  color: var(--green-800);
  background: transparent;
}
.btn-outline:hover {
  background: var(--green-800);
  color: #fff;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--green-900);
}
.btn-white {
  background: #fff;
  color: var(--green-900);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--green-900);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}
.btn-lg {
  padding: 17px 32px;
  font-size: 1rem;
}
.btn-block {
  display: flex;
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-800);
}
.link-arrow .icon {
  transition: transform var(--transition);
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Top bar & header ------------------------------------------------------- */
.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-ui);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}
.topbar-item,
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.topbar-item:hover,
.topbar-link:hover {
  color: var(--gold-light);
}
.topbar-note {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}
.topbar-link {
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(11, 61, 46, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.brand--light,
.brand--light:hover {
  color: #fff;
}
.brand--light .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}
.brand--light .brand-mark rect {
  fill: rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--green-800);
  background: var(--green-100);
}
.nav-item.has-sub {
  position: relative;
}
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}
.submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.submenu a:hover {
  background: var(--green-50);
  color: var(--green-800);
}
.submenu-all {
  font-weight: 600 !important;
  color: var(--green-800) !important;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0 !important;
  margin-bottom: 4px;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.has-sub.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-cta {
  padding: 11px 20px;
  font-size: 0.86rem;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.menu-toggle span:nth-child(1) {
  top: 15px;
}
.menu-toggle span:nth-child(2) {
  top: 22px;
}
.menu-toggle span:nth-child(3) {
  top: 29px;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}
.nav-mobile-cta {
  display: none;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding-block: clamp(52px, 7vw, 92px) clamp(70px, 9vw, 120px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 12%, rgba(201, 162, 39, 0.14), transparent 34%),
    radial-gradient(circle at 4% 86%, rgba(15, 81, 50, 0.1), transparent 30%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 2 62 32 32 62 2 32Z' fill='none' stroke='%230b3d2e' stroke-opacity='.05'/%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 20px;
}
.hero-copy h1 .accent {
  color: var(--green-700);
  font-style: italic;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust .icon {
  color: var(--green-700);
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--muted);
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}
.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 250px 250px 30px 30px;
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 250px 250px 30px 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  z-index: 2;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
  max-width: 250px;
}
.hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-50);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}
.hero-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Stats band ------------------------------------------------------------- */
.stats-band {
  position: relative;
  z-index: 3;
  margin-top: clamp(-56px, -4vw, -40px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat {
  padding: 26px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  color: var(--green-800);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Cards ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.45);
}
.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
}
.course-icon .icon {
  width: 26px;
  height: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-50);
  color: var(--gold-dark);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--green {
  background: var(--green-100);
  color: var(--green-800);
}
.course-card h3 {
  margin: 0;
  font-size: 1.32rem;
}
.course-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}
.course-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.feature-card .course-icon {
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.section--cream .feature-card {
  background: #fff;
}

/* Steps ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-950);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  margin: 0;
}

/* Split ------------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.split-media {
  position: relative;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.split-media--framed::after {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.split-media--framed {
  z-index: 1;
}
.split-badge {
  position: absolute;
  right: -14px;
  top: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-900);
  max-width: 210px;
}
.split-badge .icon {
  color: var(--gold-dark);
  width: 22px;
  height: 22px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.96rem;
}
.check-list .icon {
  color: var(--green-700);
  margin-top: 5px;
}
.check-list strong {
  font-weight: 700;
}

/* Testimonials ----------------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars {
  font-size: 0.9rem;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 0.96rem;
  color: #2c3d35;
  line-height: 1.75;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}
.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-ui);
}

/* Pricing ---------------------------------------------------------------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 38px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.billing-label {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pricing-toggle .is-active {
  color: var(--ink);
}
.switch {
  position: relative;
  width: 54px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--green-800);
  cursor: pointer;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}
.switch[aria-checked='true']::after {
  transform: translateX(24px);
}
.save-pill {
  background: var(--gold-50);
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 600;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.price-card--featured {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.price-card--featured h2,
.price-card--featured .price {
  color: #fff;
}
.price-card--featured .price-note,
.price-card--featured .price-period,
.price-card--featured .price sup,
.price-card--featured .price-card-sub,
.price-card--featured .price-features li {
  color: rgba(255, 255, 255, 0.78);
}
.price-card--featured .price-features li.is-muted {
  color: rgba(255, 255, 255, 0.62);
}
.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--green-950);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h2 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.price-card-sub {
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 44px;
  margin-bottom: 18px;
}
.price {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.price sup {
  font-size: 1.2rem;
  top: -1.1em;
  margin-right: 2px;
  color: var(--muted);
}
.price-period {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.price-note {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}
.price-features li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #2c3d35;
}
.price-features .icon {
  color: var(--green-700);
  margin-top: 4px;
}
.price-features li.is-muted {
  color: #68776f;
}
.price-features li.is-muted .icon {
  color: #c2cbc6;
}
.price-card .btn {
  margin-top: auto;
}
.pricing-note {
  max-width: 760px;
  margin: 34px auto 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
table.compare th,
table.compare td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
table.compare th:first-child,
table.compare td:first-child {
  text-align: left;
}
table.compare thead th {
  background: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}
table.compare tbody tr:last-child td {
  border-bottom: 0;
}
table.compare .yes {
  color: var(--green-700);
  font-weight: 700;
}
table.compare .no {
  color: #b0bab5;
}

/* Page hero -------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
  padding-block: clamp(56px, 7vw, 86px);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 1 71 36 36 71 1 36Z' fill='none' stroke='%23e8c766' stroke-opacity='.13'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
  max-width: 18em;
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 44em;
  font-size: 1.06rem;
  margin: 0;
}
.page-hero .eyebrow {
  color: var(--gold-light);
}
.page-hero .eyebrow::before {
  background: var(--gold-light);
}
.breadcrumbs {
  margin-bottom: 22px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.breadcrumbs li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.35);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.78);
}
.breadcrumbs a:hover {
  color: var(--gold-light);
}
.breadcrumbs [aria-current='page'] {
  color: var(--gold-light);
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 26px 0 0;
  padding: 18px 22px;
  list-style: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}
.quick-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.quick-facts .icon {
  color: var(--gold-light);
}

/* Prose ------------------------------------------------------------------ */
.prose {
  font-size: 1.02rem;
  line-height: 1.8;
}
.prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin-top: 2.1em;
  padding-top: 0.2em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: 1.3rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.6);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--gold);
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--green-900);
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose figure {
  margin: 2em 0;
}
.prose figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.prose .lead {
  font-size: 1.14rem;
}
.article-cover {
  margin: 0 0 2em;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 22px;
}
.sidebar-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.sidebar-card h2 {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
}
.sidebar-card--cta {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}
.sidebar-card--cta h2 {
  color: var(--gold-light);
}
.sidebar-card--cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 0 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verse-card {
  margin: 1.8em 0;
  padding: 24px 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.verse-card .arabic {
  margin: 0 0 14px;
}
.verse-card .translation {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--green-900);
  margin-bottom: 8px;
}
.verse-card .reference {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 2.05;
  color: var(--green-950);
  word-spacing: 2px;
}
.arabic-block {
  padding: 26px 28px;
  background: var(--green-50);
  border: 1px solid rgba(15, 81, 50, 0.14);
  border-radius: var(--radius);
  margin: 1.6em 0;
}
.arabic-block .arabic {
  margin-bottom: 12px;
}
.arabic-block .translit {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.8;
  margin: 0;
}
.translit {
  font-style: italic;
  color: var(--muted);
}
.translation-list {
  margin: 1.4em 0;
  padding-left: 1.8em;
  border-top: 1px solid var(--line);
}
.translation-list li {
  padding: 11px 0 11px 8px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.translation-list li::marker {
  color: var(--gold-dark);
  font-family: var(--font-ui);
  font-weight: 700;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  margin: 1.8em 0;
  border-radius: var(--radius);
  background: var(--gold-50);
  border: 1px solid rgba(201, 162, 39, 0.3);
  font-size: 0.94rem;
}
.callout .icon {
  color: var(--gold-dark);
  width: 22px;
  height: 22px;
  margin-top: 3px;
}
.callout p {
  margin: 0;
}
.callout a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.callout strong {
  color: var(--green-900);
}
.callout--green {
  background: var(--green-50);
  border-color: rgba(15, 81, 50, 0.18);
}
.callout--green .icon {
  color: var(--green-700);
}

.key-takeaways {
  padding: 24px 28px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.key-takeaways h2 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.key-takeaways ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.94rem;
}
.key-takeaways li {
  margin-bottom: 6px;
}

/* FAQ -------------------------------------------------------------------- */
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  color: var(--green-800);
  border-bottom: 1px solid var(--line);
}
.faq-answer {
  padding: 20px 24px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer a {
  text-decoration: underline;
}

/* Blog ------------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.post-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-100);
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-media img {
  transform: scale(1.04);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}
.post-card-body h3 {
  font-size: 1.24rem;
  margin: 0;
}
.post-card-body h3 a {
  color: var(--ink);
}
.post-card-body h3 a:hover {
  color: var(--green-800);
}
.post-card-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.post-card-body .link-arrow {
  margin-top: auto;
  padding-top: 8px;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(5, 37, 27, 0.96) 0%, rgba(11, 61, 46, 0.88) 55%, rgba(11, 61, 46, 0.72) 100%),
    url('/assets/img/blog-mosque-lamp.jpg') center / cover no-repeat;
  color: #fff;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(46px, 6vw, 70px);
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 46em;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Forms ------------------------------------------------------------------ */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field .optional {
  color: var(--muted);
  font-weight: 400;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfc9ba;
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(21, 102, 63, 0.15);
}
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-color: var(--danger);
}
.form-note {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid rgba(15, 81, 50, 0.22);
  color: var(--green-800);
  font-family: var(--font-ui);
  font-size: 0.86rem;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: var(--green-50);
  border-color: rgba(15, 81, 50, 0.22);
  color: var(--green-800);
}
.form-status.is-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: var(--danger);
}
.contact-panel {
  display: grid;
  gap: 16px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-row .course-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.contact-row h3 {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-row p,
.contact-row a {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.contact-row a:hover {
  color: var(--green-800);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  padding-top: clamp(52px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 1.4fr 1.4fr 1.4fr;
  gap: 36px 30px;
  padding-bottom: 46px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  margin: 18px 0;
  max-width: 30em;
}
.footer-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-rating .stars {
  color: var(--gold-light);
}
.footer-title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}
.footer-contact .icon {
  color: var(--gold-light);
  margin-top: 5px;
}
.footer-contact .btn {
  margin-top: 18px;
  color: var(--green-950);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom a {
  color: inherit;
}
.footer-bottom a:hover {
  color: var(--gold-light);
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 90;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-950);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(5, 37, 27, 0.55);
}

/* Free trial / contact extras -------------------------------------------- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-row input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--green-800);
  flex-shrink: 0;
}
.mini-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 11px;
  counter-reset: mini;
}
.mini-steps li {
  position: relative;
  padding-left: 32px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  counter-increment: mini;
}
.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-950);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.sidebar-card--cta .btn + .btn {
  margin-top: 10px;
}
.faq-list > h2 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 2px;
}
.faq-list > h2:first-child {
  margin-top: 0;
}

/* Utilities -------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 36px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 36px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.nowrap {
  white-space: nowrap;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.value-card h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.value-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.teacher-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.teacher-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.teacher-card h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.teacher-card .role {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.teacher-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* 404 -------------------------------------------------------------------- */
.not-found {
  text-align: center;
  padding-block: clamp(70px, 12vw, 140px);
}
.not-found .code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.not-found h1 {
  margin-bottom: 14px;
}
.not-found p {
  color: var(--muted);
  max-width: 34em;
  margin-inline: auto;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 34px;
  font-family: var(--font-ui);
  font-size: 0.87rem;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-link {
    padding-inline: 9px;
    font-size: 0.87rem;
  }
  .header-cta {
    padding: 10px 16px;
  }
  .nav-mobile-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .topbar-note {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 130;
    width: min(88vw, 380px);
    height: 100dvh;
    padding: 96px 26px 40px;
    background: var(--cream);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px -20px rgba(5, 37, 27, 0.3);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .menu-toggle {
    z-index: 150;
    background: var(--cream);
  }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(5, 37, 27, 0.48);
    backdrop-filter: blur(2px);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 14px;
    font-size: 1rem;
  }
  .nav-item.has-sub {
    position: static;
  }
  .submenu {
    position: static;
    min-width: 0;
    padding: 4px 0 8px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .submenu::before {
    display: none;
  }
  .has-sub.is-open .submenu {
    max-height: 560px;
  }
  .submenu a {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
  .submenu-all {
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile-cta {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.84rem;
    color: var(--muted);
  }
  .header-inner {
    min-height: 72px;
  }
  .hero-grid,
  .split,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-width: 380px;
    margin-bottom: 10px;
  }
  .hero-media img {
    aspect-ratio: 5 / 4;
    border-radius: 190px 190px 24px 24px;
  }
  .hero-media::before {
    border-radius: 190px 190px 24px 24px;
  }
  .hero-card {
    left: -8px;
    bottom: 14px;
  }
  .article-sidebar {
    position: static;
    grid-row: auto;
  }
  .article-layout {
    gap: 40px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .price-card--featured {
    transform: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .grid-3,
  .teacher-grid,
  .value-list {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
  .split-badge {
    right: 10px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    padding-bottom: 76px;
  }
  .mobile-cta {
    display: flex;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-link {
    display: none;
  }
  .brand-text small {
    display: none;
  }
  .brand-text strong {
    font-size: 1.02rem;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-card {
    display: none;
  }
  .hero-copy h1 .accent {
    white-space: normal;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-trust {
    gap: 8px 14px;
    font-size: 0.78rem;
  }
  .hero-card {
    padding: 11px 14px;
    max-width: 215px;
  }
  .stats-band {
    margin-top: -40px;
  }
  .stat {
    padding: 20px 14px;
  }
  .stat span {
    font-size: 0.72rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .quick-facts {
    gap: 8px 16px;
    padding: 14px 16px;
  }
  .article-layout {
    gap: 32px;
  }
  .cta-actions .btn {
    flex: 1 1 100%;
  }
  .course-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .course-card-actions .btn {
    width: 100%;
  }
  .verse-card,
  .arabic-block {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .mobile-cta,
  .article-sidebar,
  .cta-band {
    display: none !important;
  }
  body {
    padding: 0;
    font-size: 12pt;
  }
  .page-hero {
    background: none;
    color: #000;
    padding: 0 0 20px;
  }
  .page-hero h1,
  .page-hero p {
    color: #000;
  }
}
