/* Online Quran: site styles */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(../fonts/figtree-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(../fonts/figtree-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url(../fonts/literata-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url(../fonts/literata-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(../fonts/literata-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url(../fonts/literata-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-weight: 400; font-display: swap; src: url(../fonts/amiri-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url(../fonts/amiri-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri Quran"; font-weight: 400; font-display: swap; src: url(../fonts/amiri-quran-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

@font-face { font-family: "Noto Naskh Arabic"; font-weight: 400; font-display: swap; src: url(../fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Naskh Arabic"; font-weight: 700; font-display: swap; src: url(../fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Nastaliq Urdu"; font-weight: 400; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Nastaliq Urdu"; font-weight: 700; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --ink: #102F38;
  --ink-deep: #0A2128;
  --gold: #D4AE5C;
  --gold-text: #87661F;
  --paper: #F4F7F6;
  --tint: #E8EFEC;
  --white: #FFFFFF;
  --text: #17282D;
  --muted: #4D6067;
  --line: #D3DEDB;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK JP", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --quran: "Amiri Quran", "Amiri", serif;
  --wrap: 72rem;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[lang="ar"], [lang="ur"] { font-family: var(--arabic); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.wrap.narrow, .wrap.prose { max-width: none; }
.wrap.narrow > *, .wrap.prose > * { max-width: 46rem; }
.wrap.narrow > .faq, .wrap.narrow > .form { max-width: 46rem; }
.skip { position: absolute; top: 0; inset-inline-start: 1rem; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { width: auto; height: auto; clip-path: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.note, .small { font-size: .95rem; color: var(--muted); }
.teacher-list + .note { margin-top: 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #E2C27A; color: var(--ink-deep); }
.btn-line { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-deep); color: var(--gold); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.site-head { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(212,174,92,.25); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font: 600 1.2rem/1 var(--serif); }
.brand:hover { color: var(--white); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.lm-star { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linejoin: round; }
.lm-page { fill: var(--gold); }
.lm-spine { stroke: var(--ink); stroke-width: 2.5; }
.head-row { position: relative; }
.nav-toggle { position: absolute; opacity: 0; width: 48px; height: 48px; inset-inline-end: 0; top: 10px; margin: 0; cursor: pointer; z-index: 2; }
.nav-btn { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-btn span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--gold); border-radius: 8px; }
.nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; inset-inline: -1.25rem; top: 68px; background: var(--ink); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(212,174,92,.3); }
.nav-toggle:checked ~ .nav { display: block; }
.nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav li a { display: block; padding: .7rem 0; color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--gold); }
.langs { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0 0 1rem; font-size: .95rem; }
.langs a { color: rgba(255,255,255,.75); text-decoration: none; }
.langs a[aria-current] { color: var(--gold); }
@media (min-width: 960px) {
  .nav-toggle, .nav-btn { display: none; }
  .nav { display: flex; position: static; align-items: center; gap: 1.5rem; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 1.5rem; margin: 0; }
  .nav li a { padding: .4rem 0; border: 0; font-weight: 500; color: rgba(255,255,255,.88); }
  .nav li a:hover { color: var(--gold); }
  .langs { margin: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #18434E 0%, var(--ink) 55%, var(--ink-deep) 100%); color: var(--white); padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero-pattern { position: absolute; inset: 0; background: url(../img/pattern.svg) center / 120px repeat; opacity: .07; }
.hero-inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); max-width: 21ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); }
.hero-copy p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 38rem; }
.hero-hadith { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; order: 2; }
.hero-seal { position: relative; width: min(100%, 17rem); aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; }
.hero-star { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-star path { fill: none; stroke: var(--gold); stroke-width: .6; stroke-dasharray: 400; stroke-dashoffset: 0; opacity: .55; }
.hero-hadith blockquote { position: relative; margin: 0; max-width: 64%; font: 700 2rem/1.75 var(--arabic); font-size: 11.5cqi; color: var(--gold); text-wrap: balance; }
.hero-hadith figcaption { position: relative; margin-top: 1rem; max-width: 24rem; color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.6; }
.hero-hadith figcaption span { display: block; }
.hero-hadith cite { display: block; font-style: normal; font-size: .9rem; color: rgba(212,174,92,.9); margin-top: .35rem; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-seal { width: min(100%, 22rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-star path { animation: draw 2.4s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: .55; } }
}

/* Facts */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 2rem; }
.facts li { padding-inline-start: 1rem; border-inline-start: 2px solid var(--gold); }
.facts strong { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }
.facts span { font-size: .95rem; color: var(--muted); }

/* Sections */
.sec { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.sec-tint { background: var(--tint); }
.sec-head { margin-bottom: 2rem; }
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }
.page-head + .sec { padding-top: 1.5rem; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: .35em; }

/* Course list */
.course-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1rem; }
.course-list a { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: border-color .15s; }
.course-list a:hover { border-color: var(--gold); color: var(--text); }
.course-list p { color: var(--muted); flex: 1; }
.more { font-weight: 600; color: var(--ink); }

/* Teachers */
.teacher-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.teacher a { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding: 1.25rem; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); }
.teacher a:hover { border-color: var(--gold); color: var(--text); }
.teacher h3 { margin-bottom: .15rem; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; background: var(--ink); }
.avatar.lg { width: 168px; height: 168px; }
.t-head { margin: 0 0 .35rem; color: var(--text); font-size: .98rem; }
.t-meta { margin: 0 0 .35rem; font-size: .92rem; color: var(--muted); }
.badges { margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--tint); color: var(--ink); }
.badge-gold { background: #F3E6C6; color: #5E4511; }
.teacher-hero { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 700px) { .teacher-hero { grid-template-columns: 168px 1fr; } }
.crumb { margin: 0 0 .5rem; font-size: .95rem; }
.audio-one { padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.audio-one audio, .audio-list audio { width: 100%; }

/* Features & steps */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.75rem 2.5rem; margin: 0; }
.features dt { font: 600 1.1rem/1.35 var(--serif); color: var(--ink); margin-bottom: .3rem; }
.features dd { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; position: relative; padding-top: 3.25rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold); font: 600 1.1rem/1 var(--serif); }
.steps p { color: var(--muted); margin: 0; }

/* Quote */
.quote { margin: 0 auto; max-width: 48rem; text-align: center; padding: 2.5rem 1.5rem; border-block: 1px solid var(--line); }
.quote blockquote { margin: 0 0 1rem; font: 400 clamp(1.7rem, 1.2rem + 2vw, 2.5rem)/1.9 var(--arabic); color: var(--ink); }
.quote.is-quran blockquote { font-family: var(--quran); line-height: 2.1; }
.quote figcaption p { font: 400 1.15rem/1.6 var(--serif); font-style: italic; color: var(--text); margin-bottom: .5rem; }
.quote cite { font-style: normal; font-size: .95rem; color: var(--gold-text); font-weight: 600; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.plan-alt { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-alt h3 { color: var(--gold); }
.price { margin: 0 0 1rem; }
.price strong { font: 600 1.9rem/1.1 var(--serif); }
.price span { color: var(--muted); }
.plan-alt .price span { color: rgba(255,255,255,.7); }
.plan ul, .ticks { list-style: none; margin: 0; padding: 0; }
.plan li, .ticks li { position: relative; padding-inline-start: 1.5rem; margin-bottom: .45rem; }
.plan li::before, .ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: .6rem; height: .6rem; background: var(--gold); transform: rotate(45deg); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
[dir="rtl"] .faq summary { padding: 1.1rem 0 1.1rem 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 1rem; font-size: 1.4rem; color: var(--gold-text); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }
.cta-star { position: absolute; inset-inline-end: -4rem; top: 50%; width: 16rem; transform: translateY(-50%); opacity: .12; }
.cta-star path, .star path { fill: none; stroke: var(--gold); stroke-width: 1.2; }
@media (min-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* Reviews */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.reviews li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; }
.reviews blockquote { margin: 0 0 1rem; flex: 1; }
.stars { color: var(--gold-text); letter-spacing: .1em; margin: 0 0 .5rem; }
.reviews footer { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: var(--muted); }
.reviews footer img { border-radius: 50%; }
.reviews strong { color: var(--text); margin-inline-end: .35rem; }

/* Apps */
.app-show + .app-show { border-top: 1px solid var(--line); }
.app-grid { display: grid; gap: 2rem; align-items: center; }
.app-icon { border-radius: 18px; margin-bottom: 1rem; }
.app-screens { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.app-screens img { width: 200px; flex: none; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1fr 1fr; } .app-screens { justify-content: flex-end; } }

/* Audio, video, images */
.audio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.audio-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; }
.audio-list h3 { margin-bottom: .1rem; }
.audio-list p { color: var(--muted); margin-bottom: .75rem; }
.video { margin: 0; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; }
.video figcaption, .img figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.img { margin: 0; }
.img img { border-radius: var(--r); }

/* Contact */
.contact { display: grid; gap: 1.25rem; margin: 0; }
.contact dt { font-weight: 600; color: var(--ink); }
.contact dd { margin: 0; }

/* Forms */
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.field label, .rating legend { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .98rem; }
.req { color: #A3361F; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; font: 400 1rem/1.4 var(--sans); color: var(--text); background: var(--paper); border: 1px solid #B8C7C3; border-radius: 10px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(212,174,92,.6); border-color: var(--ink); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rating { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.rating legend { float: left; width: 100%; }
[dir="rtl"] .rating legend { float: right; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 2rem; line-height: 1; padding: 0 .1rem; color: #C2CCCA; cursor: pointer; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 4px; }
.form-error { background: #FBEDEA; border: 1px solid #E7B8AD; color: #6E2312; border-radius: 10px; padding: 1rem 1.25rem; }
.form-error ul { margin: .25rem 0 0; padding-inline-start: 1.2rem; }
.form-done { background: var(--white); border: 1px solid var(--gold); border-radius: var(--r); padding: 1.5rem; font-size: 1.1rem; }
.form .btn { justify-self: start; }

/* Footer */
.site-foot { background: var(--ink-deep); color: rgba(255,255,255,.78); padding: 3rem 0 1.5rem; margin-top: 0; }
.site-foot a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-grid { display: grid; gap: 2rem; }
.foot-grid nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.foot-grid nav li { margin-bottom: .5rem; break-inside: avoid; }
.foot-brand p { margin: .75rem 0 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.social.inline a { color: var(--ink); }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1.5fr auto; } }

/* Arabic and Urdu interface */
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand, html[lang="ar"] .btn, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: "Noto Naskh Arabic", var(--arabic); }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ur"] body, html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] .btn, html[lang="ur"] input, html[lang="ur"] select, html[lang="ur"] textarea { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }
html[lang="ur"] body { line-height: 2.2; font-size: 1rem; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; font-weight: 700; }
html[lang="ur"] .btn { line-height: 2; padding-block: .3rem; }
html[lang="ur"] .hero-copy p, html[lang="ur"] .lead { line-height: 2.2; }
[dir="rtl"] .brand span { font-family: var(--serif); }
[dir="rtl"] .hero-hadith blockquote, [dir="rtl"] .quote blockquote { font-family: var(--arabic); }
[dir="rtl"] .quote.is-quran blockquote { font-family: var(--quran); }
[dir="rtl"] .quote figcaption p { font-style: normal; }
html[lang="ja"] body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html[lang="ko"] body { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] blockquote, html[lang="ko"] blockquote, html[lang="ja"] figcaption p, html[lang="ko"] figcaption p, html[lang="ja"] em, html[lang="ko"] em { font-style: normal; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { font-family: var(--sans); font-weight: 700; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .3rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.9); font-size: .95rem; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.lang-menu ul { list-style: none; margin: .5rem 0 0; padding: .5rem; background: var(--white); border-radius: 12px; display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: 2px; box-shadow: 0 12px 32px rgba(10,33,40,.25); }
.lang-menu li a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 500 !important; border: 0 !important; }
.lang-menu li a:hover { background: var(--tint); }
.lang-menu li a[aria-current] { background: var(--ink); color: var(--gold) !important; }
.nav .lang-menu ul { margin-bottom: 1rem; }
@media (min-width: 960px) {
  .lang-menu ul { position: absolute; inset-inline-end: 0; top: 100%; width: 22rem; z-index: 20; margin: .5rem 0 0; }
  .nav .lang-menu ul { display: grid; gap: 2px; }
}

@media print { .site-head, .site-foot, .cta-band, .form { display: none; } }

/* Audio list header with download link */
.audio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.audio-head h3 { margin: 0; }
.audio-head p { margin: .15rem 0 0; }
.dl { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.audio-list + .audio-list { margin-top: 0; }
