@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
  --ink: #17312a;
  --ink-2: #36564d;
  --deep: #0d2923;
  --deep-2: #123a31;
  --green: #1f5b4d;
  --cream: #f8f3e8;
  --paper: #fffdf8;
  --gold: #c6a24b;
  --gold-2: #e4cf8c;
  --line: rgba(198, 162, 75, .26);
  --muted: #6e7b75;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(12, 41, 35, .11);
  --shadow-soft: 0 12px 35px rgba(12, 41, 35, .08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(198,162,75,.07), transparent 22rem),
    radial-gradient(circle at 92% 48%, rgba(31,91,77,.055), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-2); color: var(--deep); }

.skip-link {
  position: fixed; left: 14px; top: -60px; z-index: 9999;
  background: var(--deep); color: white; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-dark {
  color: #f7f4eb;
  background:
    radial-gradient(circle at 15% 10%, rgba(228,207,140,.09), transparent 28rem),
    linear-gradient(135deg, #0b2721, #123b31 62%, #0a241f);
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .11;
  background-image: linear-gradient(45deg, transparent 47%, rgba(255,255,255,.5) 49%, transparent 51%),
                    linear-gradient(-45deg, transparent 47%, rgba(255,255,255,.45) 49%, transparent 51%);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: #8b6d27;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.section-dark .eyebrow { color: var(--gold-2); }
.display {
  font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5.25rem); line-height: .98;
  letter-spacing: -.045em; margin: 20px 0 24px; font-weight: 500;
}
.title {
  font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.65rem); line-height: 1.08;
  letter-spacing: -.035em; margin: 14px 0 18px; font-weight: 500;
}
.subtitle { font-size: 1.1rem; color: var(--muted); max-width: 700px; }
.section-dark .subtitle { color: rgba(255,255,255,.72); }
.urdu, :lang(ur) { font-family: var(--urdu); direction: rtl; }
.urdu { line-height: 1.85; }
.language-btn[data-language="ur"] { font-family: var(--urdu); line-height: 1.55; }
.display .urdu, .title .urdu { line-height: 1.35; vertical-align: middle; }
.gold { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 253, 248, .88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(198,162,75,.16);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 9px 35px rgba(15,46,40,.08); background: rgba(255,253,248,.95); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; }
.brand-copy { min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.brand-tag { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 10px 12px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: #3b514b;
  transition: .2s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(198,162,75,.12); color: var(--deep); }
.nav-cta { margin-left: 6px; }
.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: none; place-items: center; color: var(--deep);
}
.menu-btn span, .menu-btn::before, .menu-btn::after { content: ''; width: 20px; height: 2px; background: currentColor; display: block; transition: .2s ease; }
.menu-btn span { margin: 4px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  border-radius: 999px; padding: 0 20px; border: 1px solid transparent; font-weight: 750; font-size: .91rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--deep); color: white; box-shadow: 0 10px 24px rgba(13,41,35,.16); }
.btn-primary:hover { background: #174c40; box-shadow: 0 14px 30px rgba(13,41,35,.2); }
.btn-gold { background: var(--gold); color: #17231f; }
.btn-outline { border-color: rgba(23,49,42,.2); color: var(--deep); background: transparent; }
.btn-light { background: white; color: var(--deep); }
.btn svg { width: 18px; height: 18px; }

.hero { min-height: calc(100vh - 82px); display: grid; align-items: center; padding: 70px 0 86px; overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(198,162,75,.12);
  border-radius: 50%; right: -210px; top: -170px; box-shadow: 0 0 0 52px rgba(198,162,75,.025), 0 0 0 104px rgba(198,162,75,.018);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .display { max-width: 760px; }
.hero-copy p { max-width: 680px; color: #5e706a; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 35px; color: #65746f; font-size: .86rem; }
.hero-notes span { display: inline-flex; gap: 8px; align-items: center; }
.hero-notes span::before { content: '✦'; color: var(--gold); }
.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-art .arch { width: min(100%, 550px); position: absolute; inset: 0; margin: auto; opacity: .95; }
.calligraphy-orb {
  position: relative; z-index: 3; width: min(310px, 75%); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 30px;
  background: radial-gradient(circle at 35% 25%, #1e6252, #0c2b25 64%);
  color: white; box-shadow: 0 42px 90px rgba(13,41,35,.28), inset 0 0 0 1px rgba(228,207,140,.27);
}
.calligraphy-orb::before, .calligraphy-orb::after {
  content: ''; position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(228,207,140,.28);
}
.calligraphy-orb::after { inset: 30px; border-style: dashed; animation: spin 28s linear infinite; }
.calligraphy-orb .urdu { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.25; color: var(--gold-2); }
.calligraphy-orb small { display: block; margin-top: 12px; color: rgba(255,255,255,.72); letter-spacing: .22em; text-transform: uppercase; font-size: .65rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.floating-card {
  position: absolute; z-index: 4; background: rgba(255,253,248,.92); backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-soft); padding: 14px 16px; font-size: .82rem; color: #4f625b;
}
.floating-card strong { display: block; color: var(--deep); font-family: var(--serif); font-size: 1.02rem; }
.float-a { left: 2%; bottom: 18%; }
.float-b { right: 0; top: 19%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.62); }
.stat { padding: 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--serif); font-size: 2rem; display: block; color: var(--deep); font-weight: 500; }
.stat span { color: var(--muted); font-size: .82rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head > * { margin-bottom: 0; }
.section-head .subtitle { max-width: 580px; }

.card {
  background: rgba(255,255,255,.72); border: 1px solid rgba(198,162,75,.2); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(198,162,75,.38); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(198,162,75,.12); color: #8f7027; margin-bottom: 24px; }
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 12px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 750; font-size: .88rem; margin-top: 21px; }
.card-link::after { content: '→'; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

.quote-panel { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.quote-mark { font-family: var(--serif); font-size: 10rem; line-height: .4; color: rgba(228,207,140,.25); }
.quote-text { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.18; letter-spacing: -.035em; margin: 20px 0; }
.quote-label { color: rgba(255,255,255,.6); font-size: .9rem; }
.meditation-ring { width: min(340px, 90%); aspect-ratio: 1; margin: auto; position: relative; display: grid; place-items: center; }
.meditation-ring::before, .meditation-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(228,207,140,.28); }
.meditation-ring::after { inset: 32px; border-style: dashed; }
.meditation-ring img { width: 112px; }

.book-card { display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: center; padding: 22px; }
.book-cover { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 25px rgba(13,41,35,.18); }
.book-cover img { width: 100%; }
.book-card h3 { margin-bottom: 6px; }
.book-card .urdu { font-size: 1.05rem; color: #856722; margin-bottom: 8px; }
.book-card p { font-size: .9rem; }
.badge { display: inline-flex; padding: 5px 9px; background: rgba(31,91,77,.08); border-radius: 999px; color: var(--green); font-weight: 700; font-size: .72rem; margin-top: 12px; }

.page-hero { padding: 90px 0 72px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -150px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(198,162,75,.14); box-shadow: 0 0 0 46px rgba(198,162,75,.03), 0 0 0 92px rgba(198,162,75,.02); }
.page-hero .display { max-width: 880px; font-size: clamp(3rem, 6vw, 5rem); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--deep); }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.story-art { position: sticky; top: 120px; min-height: 520px; border-radius: 220px 220px 28px 28px; background: linear-gradient(155deg, #143d34, #0b2721); overflow: hidden; box-shadow: var(--shadow); }
.story-art::before { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(228,207,140,.25); border-radius: inherit; }
.story-art img { position: absolute; width: 90%; left: 5%; bottom: 0; opacity: .85; }
.story-art .urdu { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-2); font-size: 4.5rem; padding-bottom: 55px; }
.prose h2 { font-family: var(--serif); font-size: 2rem; margin-top: 0; }
.prose h3 { font-family: var(--serif); font-size: 1.35rem; margin-top: 32px; }
.prose p { color: #566962; font-size: 1.03rem; }
.note { padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(198,162,75,.08); border-radius: 0 12px 12px 0; color: #57665f; }

.timeline { border-left: 1px solid var(--line); margin-left: 10px; }
.timeline-item { position: relative; padding: 0 0 36px 34px; }
.timeline-item::before { content: ''; position: absolute; left: -7px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.timeline-item h3 { margin: 0 0 6px; font-family: var(--serif); }
.timeline-item p { margin: 0; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn { border: 1px solid var(--line); background: white; padding: 9px 14px; border-radius: 999px; color: #53665f; font-weight: 700; font-size: .82rem; }
.filter-btn.active, .filter-btn:hover { background: var(--deep); color: white; border-color: var(--deep); }
.book-full { position: relative; overflow: hidden; }
.book-full::after { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 1px solid var(--line); right: -55px; top: -55px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.book-meta span { font-size: .75rem; background: rgba(31,91,77,.07); padding: 6px 10px; border-radius: 999px; color: var(--green); font-weight: 750; }
.book-full[hidden] { display: none; }

.teaching-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.teaching-number { font-family: var(--serif); font-size: 3rem; color: rgba(198,162,75,.32); line-height: 1; }
.teaching-card blockquote { margin: 22px 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--deep); }
.practice-list { list-style: none; padding: 0; margin: 20px 0 0; }
.practice-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: #53655f; }
.practice-list li::before { content: '✦'; color: var(--gold); }

.media-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; background: var(--deep); color: white; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.media-visual { min-height: 430px; background: radial-gradient(circle at 50% 45%, rgba(228,207,140,.22), transparent 180px), linear-gradient(145deg, #18483d, #0b2621); display: grid; place-items: center; position: relative; }
.play { width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--deep); display: grid; place-items: center; box-shadow: 0 0 0 18px rgba(228,207,140,.08); }
.play svg { width: 30px; margin-left: 5px; }
.media-copy { padding: 48px 46px 48px 12px; align-self: center; }
.media-copy p { color: rgba(255,255,255,.7); }
.media-source { color: var(--gold-2); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.media-card { min-height: 220px; }
.media-card .meta { font-size: .76rem; color: #8a9792; margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 48px; align-items: start; }
.contact-panel { padding: 34px; border-radius: var(--radius); background: var(--deep); color: white; position: sticky; top: 115px; overflow: hidden; }
.contact-panel::after { content: ''; position: absolute; width: 280px; height: 280px; right: -150px; bottom: -150px; border: 1px solid rgba(228,207,140,.25); border-radius: 50%; box-shadow: 0 0 0 36px rgba(228,207,140,.04), 0 0 0 72px rgba(228,207,140,.025); }
.contact-panel h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.contact-panel p { color: rgba(255,255,255,.7); }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-points li { display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.contact-points strong { color: white; display: block; }
.form-card { padding: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 750; color: #3f574f; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid rgba(23,49,42,.16); background: #fffefb; color: var(--ink); border-radius: 13px; padding: 13px 14px;
  outline: none; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(31,91,77,.55); box-shadow: 0 0 0 4px rgba(31,91,77,.08); }
.field textarea { min-height: 165px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.form-status { font-size: .86rem; color: var(--muted); min-height: 24px; }
.form-status.success { color: #176b4b; }
.form-status.error { color: #a43838; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn { width: 100%; padding: 22px 0; border: 0; background: transparent; display: flex; justify-content: space-between; gap: 20px; text-align: left; color: var(--deep); font-weight: 750; }
.faq-btn span:last-child { color: var(--gold); font-size: 1.2rem; transition: transform .2s; }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .25s ease; }
.faq-answer p { margin: 0; padding: 0 0 18px; }
.faq-answer p:last-child { padding-bottom: 22px; }
.faq-answer a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-item.open .faq-answer { max-height: 1800px; }
.faq-live-info { margin-bottom: 24px; padding: 20px 22px; border: 1px solid rgba(215,177,92,.22); border-radius: 18px; background: rgba(215,177,92,.06); }
.faq-live-info strong { color: #f4dea2; }
.faq-live-info p { margin: 8px 0 0; color: #b6c5c1; }
.faq-link-row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 22px; }
.faq-link-row a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(215,177,92,.20); border-radius: 999px; background: rgba(255,255,255,.035); text-decoration: none; }
.faq-link-row a:hover { border-color: rgba(215,177,92,.55); color: #f4dea2; }
.faq-item.open .faq-btn span:last-child { transform: rotate(45deg); }

.cta-band { border-radius: 32px; background: linear-gradient(135deg, #123c32, #0a2721); color: white; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; overflow: hidden; position: relative; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -100px; width: 300px; height: 300px; border: 1px solid rgba(228,207,140,.22); border-radius: 50%; box-shadow: 0 0 0 35px rgba(228,207,140,.04), 0 0 0 70px rgba(228,207,140,.025); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin: 0 0 7px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.65); }

.site-footer { padding: 65px 0 24px; background: #081f1a; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, .7fr); gap: 36px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: white; }
.footer-brand img { width: 48px; }
.footer-copy { max-width: 390px; margin-top: 18px; }
.footer-title { color: white; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links { display: grid; gap: 9px; font-size: .9rem; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: rgba(255,255,255,.45); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.back-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,253,248,.95); color: var(--deep); display: grid; place-items: center; box-shadow: var(--shadow-soft); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; z-index: 900; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.not-found strong { font-family: var(--serif); font-size: 8rem; line-height: 1; color: rgba(198,162,75,.35); font-weight: 500; }

@media (max-width: 1020px) {
  .nav-links { position: fixed; inset: 82px 16px auto; background: rgba(255,253,248,.98); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; display: none; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 15px; }
  .nav-cta { margin-left: 0; margin-top: 4px; }
  .menu-btn { display: grid; }
  .hero-grid, .story-grid, .quote-panel, .media-feature, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { gap: 20px; }
  .hero-art { min-height: 500px; }
  .story-art, .contact-panel { position: relative; top: auto; }
  .story-art { min-height: 430px; max-width: 520px; width: 100%; margin: 0 auto; }
  .media-copy { padding: 38px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 72px 0; }
  .section-sm { padding: 50px 0; }
  .brand-tag { display: none; }
  .brand-name { font-size: .98rem; }
  .display { letter-spacing: -.03em; }
  .hero { padding-top: 52px; }
  .hero-art { min-height: 410px; }
  .float-a { left: 0; bottom: 8%; }
  .float-b { right: 0; top: 8%; }
  .floating-card { font-size: .72rem; padding: 10px 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .book-card { grid-template-columns: 90px 1fr; }
  .quote-panel { gap: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-card { padding: 24px; }
  .cta-band { padding: 34px 26px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav-wrap { min-height: 74px; }
  .nav-links { top: 74px; }
  .brand img { width: 42px; height: 42px; }
  .hero-art { min-height: 340px; }
  .calligraphy-orb { width: 230px; }
  .floating-card { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { width: 120px; }
  .media-visual { min-height: 310px; }
  .contact-panel, .form-card, .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Research-led archive additions */
.data-note { color: var(--muted); font-size: .78rem; margin: 14px 0 0; }
.section-soft { background: rgba(31, 91, 77, .035); border-top: 1px solid rgba(198,162,75,.16); border-bottom: 1px solid rgba(198,162,75,.16); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.3); color: white; background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }

.source-panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
  padding: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(248,243,232,.65));
  box-shadow: var(--shadow-soft);
}
.source-panel h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 6px 0 10px; font-weight: 500; }
.source-panel p { color: var(--muted); margin: 0; }
.source-links { display: grid; gap: 10px; }
.source-links a { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--green); font-weight: 750; font-size: .88rem; }
.source-links a:hover { border-color: var(--gold); transform: translateY(-1px); }
.book-source { margin-top: 32px; }

.compact-stats .stat strong { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.feature-writing {
  display: grid; grid-template-columns: .65fr 1.35fr; gap: 34px; align-items: center;
  padding: 42px; border-radius: 30px; background: var(--deep); color: white; box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.feature-writing::after { content: ''; position: absolute; width: 320px; height: 320px; left: -170px; bottom: -190px; border: 1px solid rgba(228,207,140,.18); border-radius: 50%; box-shadow: 0 0 0 40px rgba(228,207,140,.025), 0 0 0 80px rgba(228,207,140,.018); }
.feature-writing > * { position: relative; z-index: 1; }
.feature-writing-mark { font-size: clamp(2.6rem, 7vw, 5.2rem); color: var(--gold-2); text-align: center; line-height: 1.4; }
.feature-writing h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin: 0 0 18px; }
.feature-writing .data-note { color: rgba(255,255,255,.55); }
.article-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.article-chips span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: rgba(255,255,255,.82); padding: 8px 11px; border-radius: 999px; font-size: .8rem; }

.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.publication-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.publication-card h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; margin: 14px 0 8px; }
.publication-card p { color: var(--muted); font-size: .91rem; }
.publication-card a { color: var(--green); font-weight: 800; font-size: .84rem; }
.verification { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .69rem; font-weight: 850; letter-spacing: .03em; }
.verification.verified { background: rgba(31,91,77,.09); color: #1f5b4d; }
.verification.provisional { background: rgba(198,162,75,.13); color: #775f23; }
.verification.supplied { background: rgba(55,92,130,.09); color: #315d82; }
.verification.viewpoint { background: rgba(135,75,75,.08); color: #825151; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 11px; }
.topic-cloud span { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); font-size: .85rem; font-weight: 700; }
.media-checklist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.media-checklist span { min-height: 86px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); display: flex; align-items: center; font-weight: 750; color: var(--ink-2); }

@media (max-width: 1020px) {
  .publication-grid { grid-template-columns: repeat(2, 1fr); }
  .media-checklist { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .source-panel, .feature-writing { grid-template-columns: 1fr; }
  .feature-writing { padding: 30px 24px; }
  .publication-grid { grid-template-columns: 1fr; }
  .media-checklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .media-checklist { grid-template-columns: 1fr; }
}

/* ==========================================================
   MIDNIGHT SUFI — DARK LUXURY VISUAL SYSTEM
   Full-site dark redesign: emerald, midnight, antique gold,
   subtle plum aurora, glass surfaces and luminous details.
   ========================================================== */
:root {
  --ink: #f5f0e4;
  --ink-2: #d9e2de;
  --deep: #07151a;
  --deep-2: #0b2328;
  --green: #49bea7;
  --cream: #0a151b;
  --paper: #081219;
  --gold: #d7b15c;
  --gold-2: #f4dea2;
  --line: rgba(215, 177, 92, .22);
  --muted: #a5b3b0;
  --white: #ffffff;
  --surface: rgba(10, 27, 34, .76);
  --surface-strong: rgba(11, 31, 38, .94);
  --surface-soft: rgba(18, 42, 48, .58);
  --teal-glow: rgba(44, 170, 146, .20);
  --plum-glow: rgba(112, 48, 111, .16);
  --gold-glow: rgba(215, 177, 92, .16);
  --shadow: 0 30px 90px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255,255,255,.02);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, .27), inset 0 1px 0 rgba(255,255,255,.025);
}

html { background: #050a0f; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(27, 140, 120, .18), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(95, 49, 105, .16), transparent 29rem),
    radial-gradient(circle at 70% 73%, rgba(197, 145, 55, .08), transparent 34rem),
    linear-gradient(145deg, #04090e 0%, #07131a 42%, #07161a 68%, #050a10 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .20;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(244,222,162,.055) 49%, transparent 50%),
    linear-gradient(-30deg, transparent 48%, rgba(73,190,167,.045) 49%, transparent 50%);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 84%);
}
::selection { background: rgba(215,177,92,.85); color: #071116; }

.section { position: relative; }
.section-soft {
  background:
    radial-gradient(circle at 8% 50%, rgba(67, 175, 153, .07), transparent 26rem),
    radial-gradient(circle at 92% 20%, rgba(125, 55, 118, .08), transparent 24rem),
    rgba(7, 19, 25, .72);
  border-top: 1px solid rgba(215,177,92,.12);
  border-bottom: 1px solid rgba(215,177,92,.12);
}
.section-dark {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 14%, rgba(73,190,167,.16), transparent 30rem),
    radial-gradient(circle at 88% 72%, rgba(113,48,111,.15), transparent 32rem),
    linear-gradient(135deg, #07151a 0%, #0a2328 55%, #071118 100%);
  border-block: 1px solid rgba(215,177,92,.12);
}
.section-dark::after {
  opacity: .07;
  background-size: 38px 38px;
}

.eyebrow { color: var(--gold-2); text-shadow: 0 0 24px rgba(215,177,92,.12); }
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold)); width: 38px; }
.display, .title { color: #fff9ec; text-shadow: 0 2px 40px rgba(0,0,0,.22); }
.subtitle, .data-note { color: var(--muted); }
.gold { color: var(--gold-2); text-shadow: 0 0 26px rgba(215,177,92,.18); }

.site-header {
  background: rgba(4, 11, 16, .78);
  border-bottom: 1px solid rgba(215,177,92,.14);
  backdrop-filter: blur(22px) saturate(135%);
}
.site-header.scrolled {
  background: rgba(4, 11, 16, .94);
  box-shadow: 0 16px 52px rgba(0,0,0,.30), 0 1px 0 rgba(215,177,92,.08);
}
.brand-name { color: #fff8e9; }
.brand-tag { color: #8fa5a0; }
.nav-link { color: #b9c6c2; }
.nav-link:hover, .nav-link.active {
  color: #fff5dd;
  background: linear-gradient(135deg, rgba(215,177,92,.13), rgba(73,190,167,.08));
  box-shadow: inset 0 0 0 1px rgba(215,177,92,.10);
}
.menu-btn { background: rgba(12,31,38,.80); color: var(--gold-2); border-color: rgba(215,177,92,.24); }

.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.16) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(130%); }
.btn-primary {
  color: #071116;
  background: linear-gradient(135deg, #f1d993, #d2a448 55%, #b7802f);
  box-shadow: 0 12px 36px rgba(197,145,55,.20), inset 0 1px 0 rgba(255,255,255,.40);
}
.btn-primary:hover { background: linear-gradient(135deg, #ffe9a8, #dbb055 60%, #c58f36); box-shadow: 0 18px 45px rgba(197,145,55,.28); }
.btn-gold {
  color: #071116;
  background: linear-gradient(135deg, #f5dfa0, #d6ab50 62%, #b98331);
  box-shadow: 0 12px 34px rgba(215,177,92,.20);
}
.btn-outline { color: #e8eee9; border-color: rgba(215,177,92,.28); background: rgba(13,31,38,.34); }
.btn-outline:hover { color: var(--gold-2); border-color: rgba(215,177,92,.58); background: rgba(215,177,92,.07); }
.btn-light { background: #f8efd8; color: #071116; }
.btn-outline-light { border-color: rgba(244,222,162,.36); color: #f6eedc; }

.hero {
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(circle at 76% 42%, rgba(54, 191, 159, .12), transparent 24rem),
    radial-gradient(circle at 95% 4%, rgba(119, 57, 126, .15), transparent 30rem),
    linear-gradient(180deg, rgba(5,12,17,.30), rgba(5,12,17,.08));
}
.hero::before {
  width: 660px; height: 660px; right: -240px; top: -250px;
  border-color: rgba(215,177,92,.18);
  box-shadow: 0 0 0 60px rgba(215,177,92,.025), 0 0 0 120px rgba(73,190,167,.018), 0 0 120px rgba(73,190,167,.10);
}
.hero::after {
  content: '';
  position: absolute;
  left: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,46,110,.14), transparent 67%);
  pointer-events: none;
}
.hero-copy p { color: #b5c3bf; }
.hero-notes { color: #8fa7a1; }
.hero-notes span::before { color: var(--gold-2); text-shadow: 0 0 12px rgba(215,177,92,.45); }
.calligraphy-orb {
  width: min(350px, 78%);
  background:
    radial-gradient(circle at 34% 22%, rgba(70,200,169,.48), transparent 28%),
    radial-gradient(circle at 68% 72%, rgba(84,37,88,.38), transparent 42%),
    linear-gradient(145deg, #123c3f 0%, #071a20 62%, #071117 100%);
  box-shadow:
    0 52px 120px rgba(0,0,0,.48),
    0 0 90px rgba(39,160,138,.15),
    inset 0 0 0 1px rgba(244,222,162,.30),
    inset 0 0 60px rgba(215,177,92,.05);
}
.calligraphy-orb::before { border-color: rgba(244,222,162,.40); box-shadow: 0 0 28px rgba(215,177,92,.07); }
.calligraphy-orb::after { border-color: rgba(73,190,167,.36); }
.calligraphy-orb .urdu { color: #f8e8b5; text-shadow: 0 0 24px rgba(215,177,92,.20); }
.calligraphy-orb small { color: #b4c6c1; }
.floating-card {
  background: linear-gradient(135deg, rgba(13,35,42,.88), rgba(8,23,29,.78));
  border-color: rgba(215,177,92,.26);
  color: #aebfbb;
  box-shadow: 0 22px 55px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.035);
}
.floating-card strong { color: #f9e9b8; }

.stats {
  border-color: rgba(215,177,92,.18);
  background: linear-gradient(135deg, rgba(12,31,38,.84), rgba(7,20,26,.70));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.stat { border-color: rgba(215,177,92,.14); }
.stat strong { color: #f4dda0; }
.stat span { color: #a1b2ae; }

.card, .publication-card, .source-panel, .media-checklist span {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(16,41,48,.76), rgba(8,23,29,.72));
  border-color: rgba(215,177,92,.17);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.card:hover, .publication-card:hover {
  border-color: rgba(215,177,92,.42);
  box-shadow: 0 28px 76px rgba(0,0,0,.38), 0 0 45px rgba(53,178,151,.07);
}
.card-icon {
  background: linear-gradient(145deg, rgba(215,177,92,.17), rgba(73,190,167,.08));
  color: var(--gold-2);
  border: 1px solid rgba(215,177,92,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.card h3, .publication-card h3 { color: #fff6e3; }
.card p, .publication-card p, .source-panel p { color: #9fadaa; }
.card-link, .publication-card a, .source-links a { color: #e9ce87; }

.quote-panel { color: #fff7e7; }
.quote-label { color: #a8b8b4; }
.meditation-ring::before { border-color: rgba(215,177,92,.38); box-shadow: 0 0 70px rgba(215,177,92,.07); }
.meditation-ring::after { border-color: rgba(73,190,167,.30); }

.book-cover { box-shadow: 0 20px 42px rgba(0,0,0,.42), 0 0 30px rgba(215,177,92,.06); }
.book-card .urdu { color: var(--gold-2); }
.badge, .book-meta span {
  color: #a9e8d9;
  background: rgba(73,190,167,.09);
  border: 1px solid rgba(73,190,167,.14);
}
.book-full::after { border-color: rgba(215,177,92,.18); }

.page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(87,45,98,.17), transparent 26rem),
    radial-gradient(circle at 14% 72%, rgba(45,166,143,.12), transparent 26rem),
    linear-gradient(180deg, rgba(6,15,21,.72), rgba(7,19,25,.34));
  border-bottom-color: rgba(215,177,92,.14);
}
.page-hero::after { border-color: rgba(215,177,92,.20); box-shadow: 0 0 0 46px rgba(73,190,167,.02), 0 0 0 92px rgba(113,48,111,.02), 0 0 90px rgba(73,190,167,.07); }
.breadcrumb { color: #829690; }
.breadcrumb a:hover { color: var(--gold-2); }

.story-art {
  background:
    radial-gradient(circle at 50% 24%, rgba(73,190,167,.18), transparent 30%),
    linear-gradient(155deg, #12333a, #07171e 66%, #080d15);
  border: 1px solid rgba(215,177,92,.17);
  box-shadow: 0 35px 85px rgba(0,0,0,.42), 0 0 65px rgba(52,175,149,.07);
}
.story-art::before { border-color: rgba(244,222,162,.30); }
.prose h2, .prose h3 { color: #fff5df; }
.prose p, .timeline-item p { color: #a8b7b3; }
.note {
  color: #c5d2ce;
  background: linear-gradient(90deg, rgba(215,177,92,.10), rgba(73,190,167,.045));
  border-left-color: var(--gold);
}
.timeline { border-color: rgba(215,177,92,.20); }
.timeline-item::before { box-shadow: 0 0 0 5px #071319, 0 0 16px rgba(215,177,92,.30); }

.filter-btn {
  color: #aebdb9;
  background: rgba(10,27,34,.72);
  border-color: rgba(215,177,92,.18);
}
.filter-btn.active, .filter-btn:hover {
  color: #071116;
  background: linear-gradient(135deg, #f0d78f, #cfa24b);
  border-color: transparent;
}
.teaching-number { color: rgba(244,222,162,.30); }
.teaching-card blockquote { color: #f4e6bf; }
.practice-list li { color: #a9b8b4; border-color: rgba(215,177,92,.14); }

.media-feature, .feature-writing {
  background:
    radial-gradient(circle at 15% 20%, rgba(73,190,167,.17), transparent 24rem),
    radial-gradient(circle at 90% 85%, rgba(113,48,111,.16), transparent 26rem),
    linear-gradient(135deg, #0a252b, #07151c 58%, #090f18);
  border: 1px solid rgba(215,177,92,.18);
  box-shadow: var(--shadow);
}
.media-visual {
  background:
    radial-gradient(circle at 50% 44%, rgba(215,177,92,.20), transparent 170px),
    radial-gradient(circle at 24% 14%, rgba(73,190,167,.22), transparent 180px),
    linear-gradient(145deg, #113b40, #07151b 68%);
}
.play { background: linear-gradient(145deg, #f5dea0, #c99d45); color: #071116; box-shadow: 0 0 0 18px rgba(215,177,92,.08), 0 0 50px rgba(215,177,92,.16); }
.media-copy p { color: #aab9b5; }
.media-source { color: var(--gold-2); }
.media-card .meta { color: #829590; }

.contact-panel {
  background:
    radial-gradient(circle at 18% 10%, rgba(73,190,167,.16), transparent 18rem),
    radial-gradient(circle at 100% 100%, rgba(113,48,111,.15), transparent 22rem),
    linear-gradient(145deg, #0c2930, #07151c 68%);
  border: 1px solid rgba(215,177,92,.18);
  box-shadow: var(--shadow);
}
.contact-panel p, .contact-points li { color: #a7b8b4; }
.contact-points li { border-color: rgba(215,177,92,.12); }
.form-card { background: linear-gradient(145deg, rgba(15,38,46,.86), rgba(8,22,29,.82)); }
.field label { color: #d8e1de; }
.field input, .field textarea, .field select {
  color: #f4f0e5;
  background: rgba(4,14,19,.72);
  border-color: rgba(215,177,92,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.field input::placeholder, .field textarea::placeholder { color: #71837e; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(73,190,167,.64);
  box-shadow: 0 0 0 4px rgba(73,190,167,.09), 0 0 24px rgba(73,190,167,.05);
}
.field select option { background: #0a171d; color: #f4f0e5; }
.form-status.success { color: #78dfbf; }
.form-status.error { color: #ff9b9b; }

.faq { border-color: rgba(215,177,92,.14); }
.faq-item { border-color: rgba(215,177,92,.14); }
.faq-btn { color: #f4ead1; }
.faq-answer { color: #a2b2ae; }

.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(116,52,111,.16), transparent 22rem),
    radial-gradient(circle at 10% 80%, rgba(73,190,167,.15), transparent 21rem),
    linear-gradient(135deg, #0a272d, #07141b 62%, #0b1018);
  border: 1px solid rgba(215,177,92,.20);
  box-shadow: var(--shadow);
}
.cta-band p { color: #a8b7b3; }

.source-panel { background: linear-gradient(135deg, rgba(16,41,48,.83), rgba(7,21,27,.80)); }
.source-links a {
  background: rgba(5,17,23,.55);
  border-color: rgba(215,177,92,.16);
}
.source-links a:hover { border-color: rgba(215,177,92,.55); color: #f4dea2; }
.article-chips span { background: rgba(255,255,255,.035); border-color: rgba(215,177,92,.14); color: #b6c5c1; }
.publication-card { background: linear-gradient(145deg, rgba(14,36,43,.82), rgba(7,21,27,.76)); }
.verification.verified { background: rgba(73,190,167,.10); color: #80dbc7; border: 1px solid rgba(73,190,167,.13); }
.verification.provisional { background: rgba(215,177,92,.11); color: #ecd48d; border: 1px solid rgba(215,177,92,.13); }
.verification.supplied { background: rgba(102,151,205,.10); color: #9bc6ef; border: 1px solid rgba(102,151,205,.13); }
.verification.viewpoint { background: rgba(193,103,125,.10); color: #e4a8b7; border: 1px solid rgba(193,103,125,.13); }
.topic-cloud span {
  background: rgba(10,27,34,.70);
  color: #c1cfcb;
  border-color: rgba(215,177,92,.16);
}
.media-checklist span { color: #c3d0cc; }

.site-footer {
  background:
    radial-gradient(circle at 15% 20%, rgba(73,190,167,.08), transparent 25rem),
    linear-gradient(180deg, #040a0f, #020609);
  color: #8fa29d;
  border-top: 1px solid rgba(215,177,92,.12);
}
.footer-brand { color: #fff5dd; }
.footer-title { color: #e9d28e; }
.footer-links a:hover { color: #f5dfa0; }
.footer-bottom { border-color: rgba(215,177,92,.10); color: #657873; }
.back-top {
  color: #f3dda0;
  background: rgba(7,21,27,.92);
  border-color: rgba(215,177,92,.25);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.not-found strong { color: rgba(215,177,92,.26); text-shadow: 0 0 45px rgba(215,177,92,.06); }

@media (max-width: 1020px) {
  .nav-links {
    background: rgba(5,15,21,.97);
    border-color: rgba(215,177,92,.20);
    box-shadow: 0 28px 72px rgba(0,0,0,.46);
    backdrop-filter: blur(24px);
  }
}

@media (max-width: 760px) {
  .hero { background-position: center; }
  .calligraphy-orb { box-shadow: 0 36px 90px rgba(0,0,0,.46), 0 0 64px rgba(39,160,138,.13), inset 0 0 0 1px rgba(244,222,162,.28); }
}

/* --------------------------------------------------------------------------
   NOOR-E-KHUDA additions: ticker, bilingual controls, visit notices, videos
   -------------------------------------------------------------------------- */
.footer-social-list {
  display: grid;
  gap: 10px;
}
.footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color .2s ease, transform .2s ease;
}
.footer-social-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #f0d992;
}
.footer-social-item:hover {
  color: #f0d992;
  transform: translateX(2px);
}

.top-ticker {
  position: relative;
  z-index: 1002;
  overflow: hidden;
  min-height: 34px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #d5ad54, #f0d992 50%, #c8963f);
  color: #07151a;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  padding: 6px 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  animation: noorTicker 34s linear infinite;
}
.ticker-track.urdu { font-family: var(--urdu); font-size: .92rem; letter-spacing: 0; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.top-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes noorTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.brand img { width: 170px; height: 48px; object-fit: contain; object-position: left center; }
.brand-copy { display: none; }
.footer-brand img { width: 170px; height: auto; }

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(215,177,92,.22);
  border-radius: 999px;
  background: rgba(7,21,27,.65);
}
.language-btn {
  border: 0;
  background: transparent;
  color: #a8b8b4;
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
}
.language-btn.active {
  color: #071116;
  background: linear-gradient(135deg, #f0d78f, #cfa24b);
}
body.lang-ur .nav-links,
body.lang-ur .footer-grid,
body.lang-ur .footer-bottom { direction: rtl; }
body.lang-ur .nav-link,
body.lang-ur [data-ui] { font-family: var(--urdu); }

.notice-stack {
  position: relative;
  z-index: 950;
  width: min(var(--max), calc(100% - 40px));
  margin: 14px auto 0;
  display: grid;
  gap: 10px;
}
.notice-banner {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 52px 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(215,177,92,.27);
  background:
    radial-gradient(circle at 12% 18%, rgba(73,190,167,.12), transparent 20rem),
    linear-gradient(135deg, rgba(12,37,42,.97), rgba(6,19,26,.97));
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
  color: #dce8e4;
}
.notice-primary { border-color: rgba(215,177,92,.38); }
.notice-overseas { border-color: rgba(92,176,225,.36); }
.notice-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(215,177,92,.12);
  color: #f5dda0;
  font-size: 1.1rem;
}
.notice-content h2 {
  margin: 0 0 4px;
  color: #fff1bf;
  font-family: var(--serif);
  font-size: 1.18rem;
}
.notice-primary .notice-content h2,
.notice-primary .notice-content { font-family: var(--urdu); }
.notice-content p { margin: 4px 0; color: #b8c8c4; font-size: .88rem; line-height: 1.75; }
.notice-primary .notice-content p { font-size: .95rem; }
.notice-content strong { color: #f1dda3; }
.notice-content a { color: #8ee1ce; text-decoration: underline; text-underline-offset: 3px; }
.notice-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
  color: #dce8e4;
  font-size: 1.25rem;
  line-height: 1;
}
.notice-primary[dir="rtl"] .notice-close { right: auto; left: 12px; }

.hero-logo { width: 210px; margin: 0 auto 8px; }
.calligraphy-orb .hero-noor { font-size: clamp(2rem, 4vw, 3.8rem); }

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.youtube-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(215,177,92,.17);
  background: linear-gradient(145deg, rgba(16,41,48,.82), rgba(8,23,29,.78));
  box-shadow: var(--shadow-soft);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.youtube-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215,177,92,.42);
  box-shadow: var(--shadow);
}
.youtube-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07151c;
}
.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.youtube-card:hover .youtube-thumb img { transform: scale(1.03); }
.youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: #071116;
  background: linear-gradient(145deg, #f5dea0, #c99d45);
  box-shadow: 0 0 0 10px rgba(215,177,92,.11), 0 14px 36px rgba(0,0,0,.35);
}
.youtube-card-body { padding: 20px; }
.youtube-card-body h3 { margin: 0 0 8px; color: #fff6e3; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; }
.youtube-meta { margin: 0; color: #8fa29d; font-size: .78rem; }
.youtube-loading {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: #a8b7b3;
  border: 1px dashed rgba(215,177,92,.25);
  border-radius: 18px;
}

@media (max-width: 1080px) {
  .brand img { width: 150px; }
}

@media (max-width: 960px) {
  .youtube-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .nav-links { align-items: stretch; }
  .language-switch { align-self: flex-start; margin: 4px 0 8px; }
}

@media (max-width: 700px) {
  .notice-stack { width: min(100% - 20px, var(--max)); margin-top: 10px; }
  .notice-banner { grid-template-columns: 1fr; padding: 15px 44px 15px 15px; }
  .notice-icon { display: none; }
  .notice-content p { font-size: .84rem; }
  .notice-primary .notice-content p { font-size: .9rem; }
  .youtube-grid { grid-template-columns: 1fr; gap: 18px; }
  .brand img { width: 132px; }
  .ticker-track { animation-duration: 26s; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; transform: none; flex-wrap: wrap; white-space: normal; padding-inline: 12px; }
}

/* Home/About Nastaliq consistency fix.
   These pages contain component rules (serif headings, strong/stat text, etc.)
   that are more specific than the base .urdu selector. Force Urdu-script
   content on these pages to keep the configured Nastaliq family. */
body[data-page="home"] .urdu,
body[data-page="home"] :lang(ur),
body[data-page="about"] .urdu,
body[data-page="about"] :lang(ur) {
  font-family: var(--urdu) !important;
  direction: rtl;
  font-synthesis: none;
}

body[data-page="home"] .notice-primary .notice-content,
body[data-page="home"] .notice-primary .notice-content *,
body[data-page="about"] .notice-primary .notice-content,
body[data-page="about"] .notice-primary .notice-content * {
  font-family: var(--urdu) !important;
  font-synthesis: none;
}

body[data-page="home"] .floating-card strong.urdu,
body[data-page="home"] .stat strong.urdu,
body[data-page="home"] .quote-text.urdu,
body[data-page="home"] .calligraphy-orb .urdu,
body[data-page="about"] .story-art .urdu {
  font-family: var(--urdu) !important;
}
/* Writings page hero title */
.writing-title-single {
  white-space: nowrap;
  font-size: clamp(2rem, 5.5vw, 5.5rem);
}
 
.writing-title-single .urdu {
  display: inline-block;
  white-space: nowrap;
}
 
@media (max-width: 768px) {
  .writing-title-single {
    font-size: clamp(1.35rem, 5.5vw, 2.6rem);
  }
}
/* --------------------------------------------------------------------------
   Full-page Urdu mode + bidirectional schedule values
   -------------------------------------------------------------------------- */
body.lang-ur main {
  direction: rtl;
  text-align: right;
}

body.lang-ur main :where(
  h1, h2, h3, h4, h5, h6,
  p, li, blockquote, figcaption,
  label, button, select, option,
  .eyebrow, .subtitle, .title, .display,
  .card-link, .btn, .stat, .topic-cloud,
  .source-panel, .prose, .breadcrumb
) {
  font-family: var(--urdu);
  letter-spacing: 0;
}

body.lang-ur main input,
body.lang-ur main textarea,
body.lang-ur main select {
  font-family: var(--urdu);
  direction: rtl;
  text-align: right;
}

body.lang-ur main code,
body.lang-ur main bdi[dir="ltr"],
body.lang-ur main [dir="ltr"],
.ticker-ltr,
.notice-ltr,
.schedule-ltr,
.phone-ltr,
.date-ltr,
.time-ltr,
.number-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  white-space: nowrap;
  font-family: var(--sans) !important;
  letter-spacing: 0;
}

body.lang-ur .section-head,
body.lang-ur .cta-band,
body.lang-ur .source-panel,
body.lang-ur .contact-grid,
body.lang-ur .footer-grid,
body.lang-ur .footer-bottom {
  direction: rtl;
}

body.lang-ur .eyebrow::before {
  order: 2;
}


/* Urdu-only heading scale. English typography remains unchanged.
   Nastaliq glyphs are visually taller than Latin fonts, so Urdu headings use
   a smaller, lighter scale across every page. */
body.lang-ur .display,
body.lang-ur .display .gold,
body.lang-ur .display .urdu {
  font-family: var(--urdu) !important;
  font-size: clamp(34px, 3.25vw, 42px) !important;
  font-weight: 300 !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}

body.lang-ur .title,
body.lang-ur .title .gold,
body.lang-ur .title .urdu {
  font-family: var(--urdu) !important;
  font-size: clamp(27px, 2.45vw, 34px) !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

body.lang-ur main h3 {
  font-weight: 300;
}

@media (max-width: 760px) {
  body.lang-ur .display,
  body.lang-ur .display .gold,
  body.lang-ur .display .urdu {
    font-size: 34px !important;
  }

  body.lang-ur .title,
  body.lang-ur .title .gold,
  body.lang-ur .title .urdu {
    font-size: 28px !important;
  }
}

@media (max-width: 480px) {
  body.lang-ur .display,
  body.lang-ur .display .gold,
  body.lang-ur .display .urdu {
    font-size: 30px !important;
  }

  body.lang-ur .title,
  body.lang-ur .title .gold,
  body.lang-ur .title .urdu {
    font-size: 25px !important;
  }
}

/* Contact page: keep phone numbers and compact times LTR in Urdu mode. */
body.lang-ur .contact-points a[href^="tel:"],
body.lang-ur .contact-points .contact-time-ltr,
body.lang-ur .contact-points .contact-number-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  white-space: nowrap;
  text-align: left;
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
}


/* Final Urdu typography backstop.
   JavaScript applies the same values after language switching so page-specific
   styles cannot leave large 80px/58px Nastaliq headings behind. */
body.lang-ur main .display {
  font-size: clamp(32px, 2.6vw, 40px) !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
}
body.lang-ur main .display .gold,
body.lang-ur main .display .urdu {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

body.lang-ur main .title {
  font-size: clamp(25px, 2vw, 31px) !important;
  font-weight: 300 !important;
  line-height: 1.55 !important;
}
body.lang-ur main .title .gold,
body.lang-ur main .title .urdu {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

body.lang-ur .contact-points a[href^="tel:"],
body.lang-ur .contact-points .contact-time-ltr,
body.lang-ur .contact-points .contact-number-ltr,
body.lang-ur main .phone-ltr,
body.lang-ur main .time-ltr,
body.lang-ur main .date-ltr,
body.lang-ur main .number-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  white-space: nowrap !important;
  text-align: left !important;
  font-family: var(--sans) !important;
}
