/* Al Suffah — light blue / navy / white theme, Urdu RTL first, EN LTR toggle
   Urdu font: Jameel Noori Nastaleeq, self-hosted (assets/fonts/*.woff2),
   subset to Arabic + Latin. Noto Nastaliq Urdu (Google Fonts) stays as a
   web fallback only. English mode uses a clean sans font. */
@font-face{
  font-family:'Jameel Noori Nastaleeq';
  src:url('assets/fonts/JameelNooriNastaleeq.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
/* v25 — Hindi (Devanagari), subsetted to the characters the site
   actually uses. The file is fetched only when an element uses the
   family (Hindi mode, or the language panel) — zero extra load for
   Urdu/English visitors. (Bengali dropped 2026-11-07 21:10.) */
@font-face{
  font-family:'Noto Sans Devanagari';
  src:url('assets/fonts/NotoSansDevanagari.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
:root{
  --navy:#0d2a52; --navy2:#123a6e; --blue:#1b6ec2; --blue2:#2f8fe0;
  --sky:#eaf3fb; --sky2:#dbeafe; --sky3:#c9e2f8;
  --gold:#e9c766; --gold2:#d4af37; --gold-soft:#fdf6dd;
  --ink:#12233d; --muted:#51617a;
  --green:#1d8a4e; --red:#b3402a; --line:#d7e3f0;
  --radius:20px;
  --shadow:0 2px 6px rgba(13,42,82,.06),0 14px 34px rgba(13,42,82,.10);
  --shadow-lg:0 4px 10px rgba(13,42,82,.08),0 22px 48px rgba(13,42,82,.18);
  --grad-navy:linear-gradient(135deg,var(--navy) 0%,#16407e 55%,var(--blue) 100%);
  --grad-gold:linear-gradient(90deg,var(--gold) 0%,var(--gold2) 100%);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',Tahoma,Arial,sans-serif;
  background:linear-gradient(180deg,#f4f8fd 0%,#eef4fc 100%);color:var(--ink);line-height:2.15;overflow-x:hidden}
/* v9: faint logo watermark across the whole website — very low opacity,
   fixed, pointer-transparent, never hurting readability; small screens
   get a smaller mark. v31: it sits at z-index 0 so white .card surfaces
   (z-index 1) paint above it and stay clean. */
body:after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:url('assets/logo.png') center 42%/440px auto no-repeat;opacity:.04}
[lang="en"] body, body.en{font-family:'Segoe UI',Arial,Helvetica,sans-serif;line-height:1.7}
/* v25 — Hindi mode uses its own subsetted font, same clean sans
   treatment as English mode. */
[lang="hi"] body, body.hi{font-family:'Noto Sans Devanagari','Segoe UI',Arial,Helvetica,sans-serif;line-height:1.7}
body.hi h1,body.hi h2,body.hi h3{line-height:1.3}
h1,h2,h3{line-height:1.95;color:var(--navy)}
body.en h1,body.en h2,body.en h3{line-height:1.3}
a{color:var(--blue);text-decoration:none}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid rgba(47,143,224,.55);outline-offset:2px;border-radius:6px}
::selection{background:var(--gold);color:var(--navy)}
img{max-width:100%;height:auto;display:block}
.container{max-width:1120px;margin:0 auto;padding:0 18px}
.en-sub{font-family:Arial,sans-serif;direction:ltr;color:var(--muted);font-size:.85rem;letter-spacing:.4px}
/* header */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);
  backdrop-filter:blur(6px);border-bottom:3px solid var(--gold);box-shadow:0 4px 18px rgba(13,42,82,.08)}
/* v14 header layout (owner): logo CENTRED, language button on the
   LEFT (with the back button), menu dropdown (☰) on the RIGHT.
   Three grid zones (1fr auto 1fr) keep the logo exactly centred no
   matter how wide the side zones are. NOTE: the grid container is
   forced direction:ltr — grid columns are placed in the container's
   direction, so in Urdu (RTL) mode the columns would otherwise be
   mirrored and the side zones would hug the logo instead of the
   page edges. With direction:ltr the columns are always
   left | centre | right; justify-self:left/right are physical, so
   the order is the same in Urdu (RTL) and English (LTR). The two
   rules below restore RTL inside the zones that need it (dropdown
   links, brand text) when the page itself is RTL. */
.nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 18px;max-width:1180px;margin:0 auto;direction:ltr}
html[dir=rtl] nav.main{direction:rtl}
html[dir=rtl] .brand span{text-align:right}
.nav-side{display:flex;align-items:center;gap:8px;min-width:0}
.nav-left{justify-self:left}
.nav-right{justify-self:right}
.brand{justify-self:center;display:flex;align-items:center;gap:10px;font-weight:700;color:var(--navy);line-height:1.9}
.brand span{white-space:nowrap}
/* v12: new institution logo is a LANDSCAPE transparent PNG (no square
   mark) — show it wide at 48px height so the الصفہ calligraphy reads
   clearly (verified against the contain-in-a-square-tile preview,
   which renders the logo too small). No shadow/radius, which would
   draw a rectangle behind the transparent artwork. On phones ≤380px
   the brand text is hidden — the logo itself says AL-SUFFAH DIGITAL —
   so the row (logo + menu + lang + back) fits at 360px. */
.brand img{width:auto;height:48px;object-fit:contain}
.brand small{display:block;color:var(--muted);font-size:.72rem;line-height:1.5;white-space:nowrap}
/* v14: the nav is a dropdown panel at ALL widths (the ☰ button is
   always shown) — a centred logo leaves no room for seven inline
   links. The panel hangs below the whole sticky header (top:100% of
   header.site, so below the strip too), right-aligned under the ☰
   button on desktop, full-width on mobile (see the ≤760px rule).
   v23: the panel slides/fades in (and fades/slides out quickly when
   closing — visibility is delayed on close so the fade plays out
   instead of vanishing), and its eight links enter one by one
   (staggered fade + slide, --d per link). The panel is always
   display:flex (never display:none) so the transition can run. */
nav.main{display:flex;position:absolute;top:100%;right:18px;left:auto;width:320px;
  max-width:calc(100vw - 24px);background:#fff;flex-direction:column;gap:2px;
  padding:10px 14px;border:1px solid var(--line);border-radius:0 0 14px 14px;
  box-shadow:0 14px 30px rgba(13,42,82,.18);z-index:60;
  visibility:hidden;opacity:0;transform:translateY(-10px);pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s}
nav.main.open{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear 0s}
nav.main a{padding:8px 12px;border-radius:10px;color:var(--navy);font-size:.95rem;line-height:2;
  opacity:0;transform:translateY(-6px);
  transition:opacity .28s ease,transform .28s ease,background-color .2s ease;
  transition-delay:0s,0s,0s}
nav.main.open a{opacity:1;transform:translateY(0);
  transition-delay:var(--d,0s),var(--d,0s),0s}
nav.main a:nth-child(1){--d:.04s}
nav.main a:nth-child(2){--d:.08s}
nav.main a:nth-child(3){--d:.12s}
nav.main a:nth-child(4){--d:.16s}
nav.main a:nth-child(5){--d:.20s}
nav.main a:nth-child(6){--d:.24s}
nav.main a:nth-child(7){--d:.28s}
nav.main a:nth-child(8){--d:.32s}
nav.main a:nth-child(9){--d:.36s}
nav.main a:hover,nav.main a.active{background:var(--sky);color:var(--blue)}
.btn{display:inline-block;background:var(--blue);color:#fff!important;padding:10px 22px;
  border-radius:999px;font-weight:700;border:0;cursor:pointer;line-height:2;
  box-shadow:0 6px 16px rgba(27,110,194,.28);transition:.2s}
.btn:hover{transform:translateY(-2px);background:var(--navy2);box-shadow:0 10px 22px rgba(13,42,82,.32)}
.btn.gold{background:var(--grad-gold);color:var(--navy)!important;box-shadow:0 6px 16px rgba(212,175,55,.45)}
.btn.green{background:linear-gradient(135deg,#178a4b,#1d8a4e)}
.btn.ghost{background:#fff;color:var(--navy)!important;border:2px solid var(--line);box-shadow:none}
.btn.ghost:hover{background:var(--sky);border-color:var(--blue2)}
.btn.outline{background:rgba(255,255,255,.14);color:#fff!important;border:2px solid #fff;box-shadow:none}
.btn.outline:hover{background:rgba(255,255,255,.24)}
.hero .en-sub{color:#cfe0f5}
.btn.small{padding:7px 16px;font-size:.9rem}
/* v36 — locked APK button: the APK file is uploaded but its download
   is closed for now (launching soon). A <span>, not a link — no href,
   not clickable; greyed out with a not-allowed cursor. */
.btn.locked{opacity:.6;cursor:not-allowed;box-shadow:none}
.btn.locked:hover{transform:none}
.lang-btn{background:#fff;border:2px solid var(--line);border-radius:10px;
  padding:7px 12px;cursor:pointer;color:var(--navy);font-weight:700;line-height:1.9}
/* v25 — the button shows a globe + the word زبان (always Nastaleeq,
   in every language mode) and opens the language selector panel. */
.lang-btn{font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',Tahoma,Arial,sans-serif}
.lang-btn span{vertical-align:middle}
/* v32 — English mode: keep the language button compact (owner
   2026-11-08 06:45 — "Language" is 8 letters, so the button was
   ~96px at 390px / ~101px at 1280px, vs ~56px Urdu / ~69px Hindi).
   In English mode ONLY, shrink the button's font (globe + label),
   tighten its padding and the label's letter-spacing, so the button
   stays a small neat box close in width to the Urdu/Hindi buttons.
   The full word "Language" stays visible (no truncation, no wrap).
   Urdu/Hindi buttons are untouched. */
html[lang="en"] .lang-btn{font-size:.7rem;padding:8px 8px}
html[lang="en"] .lang-btn span{letter-spacing:-.5px}
/* v27 — language selector: VERTICAL stacked list (owner 2026-11-07
   21:34 — the v26 one-row panel is gone; the three languages stack
   one per slim row, اردو on top, English middle, हिन्दी bottom,
   like the ☰ menu). Still a SMALL compact dropdown anchored right
   under the زبان button itself (position:relative .lang-wrap, panel
   hangs 6px below the button, slides/fades down like the menu).
   No heading, no big card. In Urdu mode the panel follows the page
   direction (rows right-aligned, like the menu links); in English/
   Hindi mode rows are left-aligned. Options are the language names
   in their own scripts, so the Hindi option uses its subsetted font. */
.lang-wrap{position:relative;display:inline-flex}
html[dir=rtl] .lang-panel{direction:rtl}
.lang-panel{display:flex;position:absolute;top:calc(100% + 6px);left:0;width:max-content;
  max-width:calc(100vw - 24px);background:#fff;flex-direction:column;gap:2px;
  padding:6px;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 30px rgba(13,42,82,.18);z-index:60;
  visibility:hidden;opacity:0;transform:translateY(-10px);pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s}
.lang-panel.open{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto;
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear 0s}
.lang-opt{display:block;width:100%;text-align:start;background:#fff;border:0;border-radius:10px;
  padding:5px 12px;cursor:pointer;color:var(--navy);font-weight:700;font-size:.95rem;line-height:1.9;
  white-space:nowrap}
.lang-opt:hover{background:var(--sky);color:var(--blue)}
.lang-opt.active{background:var(--sky);color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue2)}
.lang-opt[data-lang="hi"]{font-family:'Noto Sans Devanagari','Segoe UI',Arial,sans-serif}
/* v23 menu button: three rounded lines that morph into an X when the
   menu opens (top line rotates down, middle line fades out, bottom
   line rotates up). Fixed size so the morph stays centred; the
   ≤760px / ≤380px padding rules below are overridden to keep it. */
.menu-btn{background:#fff;border:2px solid var(--line);border-radius:10px;
  width:44px;height:40px;padding:0;cursor:pointer;display:inline-flex;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
  transition:border-color .25s,background .25s}
.menu-btn span{display:block;width:22px;height:2.5px;border-radius:999px;
  background:var(--navy);transition:transform .3s ease,opacity .2s ease,background .25s}
.menu-btn:hover{border-color:var(--blue2);background:var(--sky)}
.menu-btn:hover span{background:var(--blue)}
.menu-btn.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.menu-btn.open span:nth-child(2){opacity:0;transform:scaleX(.2)}
.menu-btn.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
/* v12 back button: top-left of the header on every page except the
   homepage — same look as the language button, clearly tappable */
.back-btn{display:inline-flex;align-items:center;gap:4px;background:#fff;border:2px solid var(--line);
  border-radius:10px;padding:7px 12px;cursor:pointer;color:var(--navy);font-weight:700;
  line-height:1.9;white-space:nowrap}
.back-btn:hover{border-color:var(--blue2);background:var(--sky)}
.lang-btn:hover,.menu-btn:hover{border-color:var(--blue2);background:var(--sky)}
/* v10 top strip: slim bar directly under the sticky header's nav row,
   on every page — two text lines on the right, Facebook + WhatsApp
   buttons stacked vertically on the left, in the same strip */
.topstrip{background:linear-gradient(90deg,#fff8e1,#fdf6dd);border-top:1px solid var(--gold)}
.topstrip-in{max-width:1180px;margin:0 auto;padding:7px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.topstrip-txt{flex:1 1 220px;min-width:0}
.topstrip-txt p{color:var(--navy);line-height:1.9}
.topstrip-txt .l1{font-size:.9rem;font-weight:700}
.topstrip-txt .l2{font-size:.82rem;font-weight:400}
.topstrip-btns{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}
.topstrip-btns .btn{text-align:center;white-space:nowrap}
/* v23: in English mode the two strip buttons sit side by side (one
   left, one right, space-between) instead of stacked — the long
   English labels ("Silsila Taleem o Tarbiyat", "Contact on WhatsApp")
   look cramped stacked. Urdu mode keeps the stacked column on the
   left. The buttons take their own full-width row under the text. */
body.en .topstrip-btns{flex:1 1 100%;flex-direction:row;justify-content:space-between;gap:10px}
/* v11 announcement ticker: scrolling strip at the very top of every
   page (above the header), continuous motion, no overflow on mobile.
   v38: three identical Hazri launch items; the track shifts by
   exactly one item (33.3333%), so the loop is seamless. dir="rtl" is
   fixed on the ticker element, so the motion is the same in Urdu and
   English mode. */
.ticker{background:var(--navy);overflow:hidden;line-height:1}
.ticker-track{display:inline-flex;white-space:nowrap;width:max-content;
  padding:7px 0;animation:tick 24s linear infinite}
.tick-item{display:inline-flex;align-items:center;gap:14px;padding-inline-end:14px}
.ticker-track a{color:#ffe9a8;font-weight:700;font-size:.9rem;text-decoration:none}
.ticker-track a:hover{color:#fff}
/* v38 — Hazri launch headline: the ticker announcement is a bold headline */
.ticker-track a.tick-headline{font-size:1rem;font-weight:800}
.tick-sep{color:var(--gold);font-size:.8rem}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(33.3333%)}}
/* hero */
.hero{background:linear-gradient(160deg,var(--navy) 0%,#16407e 60%,#1b6ec2 100%);color:#fff;
  padding:64px 0 72px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;inset:auto -10% -45% -10%;height:60%;
  background:radial-gradient(ellipse at center,rgba(233,199,102,.24),transparent 65%)}
.hero h1{color:#fff;font-size:2.5rem}
.hero h1 .gold{color:var(--gold)}
.hero p.lead{color:#d6e4f5;font-size:1.15rem;max-width:720px}
.hero .cta{display:flex;gap:10px;flex-wrap:nowrap;margin-top:26px;position:relative;z-index:2}
.hero .cta .btn{flex:0 1 auto;min-width:0;white-space:nowrap;text-align:center;padding:10px 14px;font-size:.95rem}
/* v18 hero order (owner): English "Welcome to Al Suffah" bold+big on top,
   then "Online Religious Institution", then the Urdu H1, then the lead.
   Flex order puts the H1 first in English mode, where the top line hides
   (the H1 already says it) — no duplication. */
.hero .container{display:flex;flex-direction:column}
.hero-en-top{order:1;font-family:Arial,sans-serif;direction:ltr;font-size:1.6rem;
  font-weight:800;color:#fff;letter-spacing:.4px;line-height:1.4;margin-bottom:2px}
.hero-en-sub{order:2;font-family:Arial,sans-serif;direction:ltr;color:#cfe0f5;
  font-size:.95rem;letter-spacing:.4px;line-height:1.5;margin-bottom:12px}
.hero h1{order:3}
.hero .lead{order:4}
.hero .cta{order:5}
body.en .hero-en-top{display:none}
body.en .hero h1{order:1}
body.en .hero .hero-en-sub{order:2}
body.en .hero .lead{order:3}
body.en .hero .cta{order:4}
/* sections */
section{padding:56px 0}
section.alt{background:linear-gradient(180deg,#ffffff 0%,#f5f9fe 100%)}
.sec-head{text-align:center;max-width:760px;margin:0 auto 34px}
.sec-head h2,.sec-head h1{font-size:1.9rem}
.sec-head h2:after,.sec-head h1:after{content:"";display:block;width:90px;height:4px;background:var(--grad-gold);margin:10px auto 0;border-radius:4px}
.sec-head p{color:var(--muted)}
/* v16: section-heading strip (پٹی) — for the three headings where
   Nastaleeq's ی dots render displaced (the word "ایپلیکیشن"):
   a navy/gold band with the heading centred inside. The heading uses
   the font's real weight 400 — the site's only Nastaleeq face is 400,
   so a bold h2 gets SYNTHETIC bold, which strokes the glyphs and
   displaces the delicate ی dots (verified: the same text at weight
   400 renders the dots in their proper place). Generous line-height
   and padding give the dots room below the baseline. */
.sec-head.strip{max-width:100%;background:var(--grad-navy);border-radius:var(--radius);padding:22px 18px 26px;border-bottom:4px solid var(--gold);box-shadow:var(--shadow)}
.sec-head.strip h2,.sec-head.strip h1{color:#fff;font-weight:400;line-height:2.3}
.sec-head.strip h2:after,.sec-head.strip h1:after{background:var(--grad-gold)}
.sec-head.strip p{color:#dbe9f8}
.sec-head.strip .en-sub{color:#ffe9a8}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}
.card{position:relative;z-index:1;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 24px 24px;box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s,border-color .25s;overflow:hidden}
.card:before{content:"";position:absolute;top:0;inset-inline:0;height:5px;
  background:linear-gradient(90deg,var(--navy),var(--blue) 55%,var(--gold))}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--blue2)}
.card .icon{font-size:2rem;width:62px;height:62px;border-radius:18px;background:var(--grad-navy);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;
  box-shadow:0 8px 18px rgba(13,42,82,.28)}
/* v12 app-logo icon tile (Banat/Class): the processed logo PNG has
   transparent corners, so the tile itself is plain — no gradient
   behind it — and the logo fills the tile */
.card .icon.img-icon{background:none;box-shadow:none;padding:0}
.card .icon.img-icon img{width:100%;height:100%;object-fit:contain;display:block}
/* v12 app detail-page logo (Banat/Class): the processed logo, centred
   under the page heading; corners are transparent in the PNG itself */
.app-logo{width:170px;height:170px;margin:16px auto 0;border-radius:30px;
  box-shadow:var(--shadow)}
.card h3{font-size:1.3rem;margin-bottom:4px}
.card p{color:#33465f}
/* v19: Class/Banat feature lists — the two most prominent cards.
   Plain list with gold markers, same RTL padding as guide lists. */
.card .feats{padding-inline-start:22px;margin:12px 0 4px}
.card .feats li{margin:7px 0;line-height:1.9;color:#33465f}
.card .feats li::marker{color:var(--gold)}
.card .en-sub{color:var(--muted)}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.chip{background:linear-gradient(180deg,var(--sky),var(--sky2));color:var(--navy);
  border:1px solid var(--sky3);border-radius:999px;padding:4px 14px;font-size:.85rem;font-weight:700;line-height:1.9}
.chip b{font-family:Arial,sans-serif}
.coming-soon{display:inline-block;background:var(--grad-gold);color:var(--navy);
  border-radius:999px;padding:5px 18px;font-size:.95rem;font-weight:700;line-height:1.9;
  box-shadow:0 4px 12px rgba(212,175,55,.45);margin-bottom:12px}
.hero-poster{width:100%;border-radius:20px;box-shadow:var(--shadow-lg);
  border:1px solid var(--line);margin:4px 0 28px}
/* v11 Diary promo video: portrait clip in a phone frame */
.phone-video{max-width:340px;margin:6px auto 14px;border-radius:26px;overflow:hidden;
  border:1px solid var(--line);box-shadow:var(--shadow-lg);background:#000}
.phone-video video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover}
.shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}
.shots figure{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s}
.shots figure:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.shots img{width:100%;aspect-ratio:9/16;object-fit:cover;object-position:top;transition:transform .35s}
.shots figure:hover img{transform:scale(1.04)}
.shots figcaption{padding:12px 14px;font-size:.9rem;color:var(--navy);text-align:center;
  background:linear-gradient(180deg,#f7fbff,#eef5fd);font-weight:700;line-height:1.9}
/* Tall phone screenshots (Register Hazri, 716x1434): show the full screen,
   no cropping — narrower columns so the tall frames fit nicely. */
.shots.tall{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.shots.tall img{aspect-ratio:716/1434;object-fit:contain;background:#e9eef5}
/* v25 — short install guide: the 4 panels had their bottom caption band
   cropped off, so they are 540x770, not 9:16 — show them at their natural
   ratio instead of forcing the 9:16 crop. */
.shots.short img{aspect-ratio:auto}
/* v23 — APK install guides (WhatsApp + Chrome): section spacing and the
   full infographic image (click opens the full-size file). */
.install-guide{margin-top:36px}
.infographic-img{display:block;max-width:520px;width:100%;margin:0 auto 18px;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}
/* install-guide strip headings are self-anchor links (v12 rule: every
   visible WhatsApp mention must be a link) — keep the strip colours. */
.sec-head.strip h2 a,.sec-head.strip h1 a{color:#fff;text-decoration:none}
.sec-head.strip .en-sub a{color:inherit;text-decoration:none}
.steps{counter-reset:s;display:grid;gap:16px}
.step{display:flex;gap:16px;background:#fff;border:1px solid var(--line);
  border-inline-start:4px solid var(--gold);border-radius:18px;padding:20px 22px;
  box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}
.step:hover{transform:translateX(-3px);box-shadow:var(--shadow-lg)}
.step:before{counter-increment:s;content:counter(s);flex:0 0 46px;height:46px;border-radius:50%;
  background:var(--grad-navy);color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:Arial,sans-serif;font-weight:800;font-size:1.2rem;
  box-shadow:0 0 0 3px rgba(233,199,102,.5),0 6px 14px rgba(13,42,82,.25)}
.notice{background:linear-gradient(180deg,#fffdf0,#fff8e1);border:1px solid var(--gold);
  border-inline-start:4px solid var(--gold2);border-radius:16px;padding:18px 22px;margin:18px 0;
  box-shadow:0 6px 18px rgba(212,175,55,.16)}
.notice.warn{background:linear-gradient(180deg,#fff5f3,#fdecea);border-color:#e8a598;border-inline-start-color:var(--red)}
.faq details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 20px;margin-bottom:12px;
  box-shadow:0 4px 14px rgba(13,42,82,.05);transition:border-color .2s,box-shadow .2s}
.faq details[open]{border-color:var(--gold);background:#fffdf5;box-shadow:var(--shadow)}
.faq summary{cursor:pointer;font-weight:700;color:var(--navy);line-height:2}
.faq summary::marker{color:var(--gold2)}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
td,th{border-bottom:1px solid var(--line);padding:12px 14px;text-align:start;vertical-align:top}
th{background:var(--grad-navy);color:#fff}
tbody tr:hover{background:#f4f8fd}
tbody tr:last-child td{border-bottom:0}
.guide h3{margin-top:30px}
.guide ol,.guide ul{padding-inline-start:22px}
.guide li{margin-bottom:8px}
footer.site{background:var(--navy);color:#cfe0f5;padding:44px 0 22px;margin-top:20px;border-top:4px solid var(--gold)}
/* v12: institution logo in the footer — the footer is navy, so the navy
   artwork sits in a framed white chip (gold border) to read clearly */
.foot-logo{display:block;width:170px;height:auto;background:#fff;border:2px solid var(--gold);border-radius:14px;padding:10px 12px;margin-bottom:12px}
footer.site a{color:#fff}
footer.site h3{color:var(--gold)}
footer.site p{color:#cfe0f5}
/* v31: footer tagline — balance the wrap so no single word is left alone */
.foot-tag{text-wrap:balance}
.foot-tag .en-sub{font-size:.72rem;line-height:1.6}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:26px}
.copy{text-align:center;border-top:1px solid rgba(255,255,255,.18);margin-top:28px;padding-top:16px;font-size:.85rem}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s,transform .6s}
.reveal.in{opacity:1;transform:none}
/* EN mode: .en-sub duplicates the heading once it has switched to
   English, so hide it (v8: every Urdu string now has a data-en version).
   v25: the same for Hindi mode. */
body.en .en-sub{display:none}
body.hi .en-sub{display:none}
/* v25: in Hindi mode the English "Welcome to Al Suffah" top
   line hides like in English mode (the H1 already says it), and the
   hero order puts the H1 first. */
body.hi .hero-en-top{display:none}
body.hi .hero h1{order:1}
body.hi .hero .hero-en-sub{order:2}
body.hi .hero .lead{order:3}
body.hi .hero .cta{order:4}
/* v30 — suggestions form (owner 2026-11-07 22:04): homepage section
   where visitors send opinions/suggestions via WhatsApp or email.
   No server, no storage — the buttons open wa.me / mailto: links.
   scroll-margin-top keeps the section clear of the sticky header
   when the menu's #suggestions anchor link jumps to it. */
#suggestions{scroll-margin-top:120px}
.suggest-form{max-width:640px;margin:0 auto}
.suggest-field{margin-bottom:16px}
.suggest-field label{display:block;font-weight:700;color:var(--navy);margin-bottom:6px;line-height:1.9}
.suggest-field input,.suggest-field select,.suggest-field textarea{
  width:100%;padding:10px 14px;border:2px solid var(--line);border-radius:12px;
  font-family:inherit;font-size:1rem;color:var(--ink);background:#fbfdff;line-height:1.9}
.suggest-field input:focus,.suggest-field select:focus,.suggest-field textarea:focus{
  outline:none;border-color:var(--blue2);box-shadow:0 0 0 3px rgba(47,143,224,.2)}
.suggest-field textarea{resize:vertical;min-height:120px}
.suggest-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.suggest-btns .btn{font-family:inherit}
.suggest-prompt{color:var(--red);font-weight:700;margin:0 0 12px}
@media(max-width:760px){
  .hero h1{font-size:1.8rem}
  .hero-en-top{font-size:1.25rem}
  .hero .cta{gap:6px}
  .hero .cta .btn{flex:1 1 auto;padding:8px 5px;font-size:.75rem}
  .nav{gap:8px;padding:8px 12px}
  .brand{gap:6px;font-size:.92rem}
  .brand img{width:auto;height:40px}
  .brand small{font-size:.6rem}
  .lang-btn,.menu-btn{padding:6px 9px;font-size:.85rem}
  .back-btn{padding:6px 9px;font-size:.85rem}
  .topstrip-in{padding:6px 10px;gap:8px}
  .topstrip-txt .l1{font-size:.82rem;line-height:1.8}
  .topstrip-txt .l2{font-size:.76rem;line-height:1.8}
  .topstrip-btns .btn{padding:5px 8px;font-size:.72rem}
  .sec-head.strip h2,.sec-head.strip h1{font-size:1.65rem}
  .sec-head.strip{padding:18px 14px 22px}
  body:after{background-size:300px auto}
  /* v14: on mobile the dropdown is full-width below the header
     (overrides the desktop right-aligned panel above) */
  nav.main{left:0;right:0;width:auto;padding:12px 18px;border-radius:0}
  section{padding:40px 0}
  .card{padding:22px 18px}
  .step{padding:16px}
}
@media(max-width:380px){
  .hero .cta{gap:5px}
  .hero .cta .btn{padding:8px 4px;font-size:.72rem}
  .brand small{font-size:.56rem}
  /* v14: keep the header row (back + lang | centred logo | menu) on
     one line at 360px — tighten gaps, logo and button padding here.
     (The brand text itself is hidden by the ≤560px rule below.) */
  .nav{gap:6px;padding:8px 10px}
  .nav-side{gap:6px}
  .lang-btn,.menu-btn,.back-btn{padding:6px 8px}
}
@media(max-width:560px){
  /* v14: hide the brand text — the wide logo itself says
     AL-SUFFAH DIGITAL — so the centred logo + left buttons (back +
     language) + right menu button fit on one line at 360–560px in
     both languages. (v12 hid it only ≤380px; true centring needs
     the wider cut-off: in English mode the brand text is ~250px
     wide, which would overlap the left buttons below ~560px.) */
  .brand span{display:none}
}
/* v37 — app-page download-area polish (owner 2026-11-10 16:30):
   the guide/APK buttons and the notice strip on the four app pages.
   The strip is narrowed to content width (a contained box, not a
   full-bleed band); every option gets a visible border so the options
   read as separate items; each app gets its own light theme tint.
   Locked buttons (APK + guide on the 3 Coming Soon apps) stay locked
   — no href, "جلد آ رہی ہے" wording unchanged — and get the same
   polish in a muted tint. Diary stays fully downloadable. */
.dl-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.dl-btns .btn{border:2px solid transparent;padding:12px 24px;box-shadow:0 4px 12px rgba(13,42,82,.10)}
.dl-btns .btn:hover{transform:translateY(-2px)}
.dl-btns .btn.locked{opacity:.65;cursor:not-allowed;box-shadow:none}
.dl-btns .btn.locked:hover{transform:none}
/* narrowed strip: content width, centred, balanced padding */
.dl-strip{display:block;width:fit-content;max-width:min(640px,calc(100% - 24px));margin:18px auto;padding:12px 22px;text-align:start}
/* Hazri — green */
.theme-hazri.dl-strip{background:linear-gradient(180deg,#eaf7ef,#dff2e6);border-color:#8ec9a3;border-inline-start-color:#1d8a4e;box-shadow:0 4px 14px rgba(29,138,78,.12)}
.dl-btns.theme-hazri .btn.gold{background:linear-gradient(180deg,#eaf7ef,#d8efdf);color:var(--navy)!important;border-color:#5cb885;box-shadow:0 4px 12px rgba(29,138,78,.18)}
.dl-btns.theme-hazri .btn.gold:hover{background:linear-gradient(180deg,#dff2e6,#cdeeda);border-color:#1d8a4e}
.dl-btns.theme-hazri .btn.locked{background:#eef6f0;border-color:#9dc8ab;color:var(--navy)!important}
.dl-btns.theme-hazri .btn.ghost{border-color:#8ec9a3}
.dl-btns.theme-hazri .btn.ghost:hover{background:#eaf7ef;border-color:#1d8a4e}
/* Diary — gold */
.theme-diary.dl-strip{background:linear-gradient(180deg,#fdf8e3,#fbf0c8);border-color:#e3c268;border-inline-start-color:#d4af37;box-shadow:0 4px 14px rgba(212,175,55,.18)}
.dl-btns.theme-diary .btn.gold{background:linear-gradient(180deg,#fdf8e3,#f8ecc0);color:var(--navy)!important;border-color:#d4af37;box-shadow:0 4px 12px rgba(212,175,55,.25)}
.dl-btns.theme-diary .btn.gold:hover{background:linear-gradient(180deg,#fbf0c8,#f6e3a0);border-color:#b8932a}
.dl-btns.theme-diary .btn.ghost{border-color:#e3c268}
.dl-btns.theme-diary .btn.ghost:hover{background:#fdf8e3;border-color:#d4af37}
/* Class — blue */
.theme-class.dl-strip{background:linear-gradient(180deg,#eaf3fb,#dcecfb);border-color:#7fb8e8;border-inline-start-color:#1b6ec2;box-shadow:0 4px 14px rgba(27,110,194,.12)}
.dl-btns.theme-class .btn.gold{background:linear-gradient(180deg,#eaf3fb,#d8e9fa);color:var(--navy)!important;border-color:#5ea3dd;box-shadow:0 4px 12px rgba(27,110,194,.18)}
.dl-btns.theme-class .btn.gold:hover{background:linear-gradient(180deg,#dcecfb,#c9e2f8);border-color:#1b6ec2}
.dl-btns.theme-class .btn.locked{background:#eef4fb;border-color:#9cc3e8;color:var(--navy)!important}
.dl-btns.theme-class .btn.ghost{border-color:#7fb8e8}
.dl-btns.theme-class .btn.ghost:hover{background:#eaf3fb;border-color:#1b6ec2}
/* Banat — rose */
.theme-banat.dl-strip{background:linear-gradient(180deg,#fdeef3,#fbdcea);border-color:#eda9c2;border-inline-start-color:#c24a7a;box-shadow:0 4px 14px rgba(194,74,122,.12)}
.dl-btns.theme-banat .btn.gold{background:linear-gradient(180deg,#fdeef3,#fbd9e6);color:var(--navy)!important;border-color:#e58bb0;box-shadow:0 4px 12px rgba(194,74,122,.18)}
.dl-btns.theme-banat .btn.gold:hover{background:linear-gradient(180deg,#fbdcea,#fac9dc);border-color:#c24a7a}
.dl-btns.theme-banat .btn.locked{background:#fdf0f4;border-color:#efa9c4;color:var(--navy)!important}
.dl-btns.theme-banat .btn.ghost{border-color:#eda9c2}
.dl-btns.theme-banat .btn.ghost:hover{background:#fdeef3;border-color:#c24a7a}
/* v39 — Hazri download pair (owner 2026-11-10 17:34), extended to
   Class in v41 (owner 2026-11-12 18:37): the APK +
   PDF guide buttons sit side by side in one row, on mobile and
   desktop. .dl-pair is a full-width no-wrap flex row; each button
   takes half the width (flex:1 1 0, centred text). Used for Hazri
   and Class (app page + card); Banat and Diary are untouched. */
.dl-pair{display:flex;gap:10px;flex-wrap:nowrap;width:100%;flex:0 0 100%}
.dl-pair .btn{flex:1 1 0;min-width:0;text-align:center}
/* v41 — Digital Class poster banner (owner 2026-11-12 18:37): the
   Class launch poster at the front of the homepage, visible as soon
   as the website opens. Class blue theme: light blue gradient band,
   navy headline, gold divider. The poster is portrait (1440×2560);
   it is shown centred at a constrained width so it stays readable
   on mobile and does not dominate the desktop page — no distortion,
   no horizontal overflow. The whole poster is one link to
   app-class.html. */
.class-banner{background:linear-gradient(180deg,#eaf3fb,#d8e9fa);border-block:2px solid #7fb8e8;padding:34px 0 38px}
.class-banner-head{text-align:center;margin-bottom:20px}
.class-banner-head h2{font-size:1.9rem}
.class-banner-head h2:after{content:"";display:block;width:72px;height:4px;margin:10px auto 0;background:var(--grad-gold);border-radius:2px}
.class-banner-head p{color:var(--muted);font-size:1.05rem;margin-top:8px}
.class-poster-link{display:block;width:min(440px,100%);margin:0 auto}
.class-poster{display:block;width:100%;height:auto;border-radius:14px;border:2px solid #7fb8e8;box-shadow:var(--shadow-lg);transition:transform .25s ease,box-shadow .25s ease}
.class-poster-link:hover .class-poster{transform:translateY(-3px);box-shadow:0 8px 16px rgba(13,42,82,.12),0 26px 54px rgba(13,42,82,.22)}
.class-banner-cta{text-align:center;margin-top:22px}
@media(max-width:760px){
.class-banner{padding:26px 0 30px}
.class-banner-head h2{font-size:1.5rem}
.class-banner-head p{font-size:.98rem}
}

/* v47 — Al Suffah Helper (owner 2026-11-26): ask-a-question card.
   Navy top strip, sample exchange, gold answer button, chips,
   payment note — matches the approved design. */
.helper-banner{background:linear-gradient(180deg,#eaf3fb,#d8e9fa);border-block:2px solid #7fb8e8}
.helper-card{max-width:640px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-lg);overflow:hidden;position:relative;z-index:1}
.helper-top{background:var(--grad-navy);color:#fff;text-align:center;padding:18px 16px 14px}
.helper-brand{font-size:1.7rem;line-height:1.9}
.helper-tag{color:var(--gold);font-size:.9rem;line-height:1.9}
.helper-body{padding:22px 20px 24px}
.helper-body h2{text-align:center;font-size:1.6rem}
.helper-sub{text-align:center;color:var(--muted);margin-bottom:14px}
.helper-log{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.h-msg{max-width:88%;padding:10px 14px;border-radius:14px;line-height:2;white-space:pre-line;overflow-wrap:anywhere}
.h-msg.q{background:var(--sky);color:var(--navy);align-self:flex-start;border:1px solid var(--sky3)}
.h-msg.a{background:var(--navy);color:#fff;align-self:flex-end}
.h-msg.a a{color:var(--gold);text-decoration:underline}
.h-actions{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-end}
.h-actions .btn{padding:6px 14px;font-size:.88rem}
.helper-form{display:flex;flex-direction:column;gap:10px}
.helper-form input{width:100%;padding:12px 16px;border:2px solid var(--gold2);border-radius:999px;font-family:inherit;font-size:1rem;line-height:1.9;color:var(--ink);background:#fff}
.helper-form input:focus{outline:none;border-color:var(--blue2);box-shadow:0 0 0 3px rgba(47,143,224,.25)}
.helper-ask{width:100%;text-align:center;font-family:inherit;font-size:1.05rem}
.helper-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.helper-chip{background:var(--sky);border:1px solid var(--sky3);color:var(--navy);border-radius:999px;padding:5px 13px;cursor:pointer;font-family:inherit;font-size:.9rem;line-height:1.9}
.helper-chip:hover{background:var(--sky2);border-color:var(--blue2)}
.helper-pay{background:var(--gold-soft);border:1px solid var(--gold2);border-radius:14px;padding:12px 16px;margin-top:16px;line-height:2}
.helper-copy{text-align:center;margin-top:8px}
.helper-launched{text-align:center;color:var(--muted);margin-top:10px;line-height:2}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:760px){
  .helper-body{padding:18px 14px 20px}
  .h-msg{max-width:94%}
}
