/* Zeerak Quran Academy: teachers section (soft cards, pinned row). Shared by the homepage, the GHL enroll page and the
   standalone teachers-embed.html, so all three look and behave the same.
   Every rule is scoped under section#zq-teachers: the GHL enroll page resets everything inside it with
   "#zq-enroll * { margin:0; padding:0 }", which would beat plain class rules. Sizes are in px, not rem, so a page's own
   root font size cannot change them.
   overflow-x:clip on the section, never hidden: hidden (here or on any parent) stops the row from pinning. */
section#zq-teachers {
  --bg:#F8FAF9; --top:var(--zqt-top, #F8FAF9); --teal:#126E6D; --teal-dark:#0D4E4D; --gold:#AC832D; --ink:#1F2937; --muted:#6B7280;
  --serif:'Playfair Display',Georgia,serif; --sans:'Outfit',system-ui,sans-serif; --arabic:'Amiri',serif;
  --ph:360px; --padL:24px;
  display:block; position:relative; margin:0; padding:84px 0 88px; overflow-x:clip; box-sizing:border-box;
  font-family:var(--sans); font-size:16px; font-weight:400; line-height:1.55; color:var(--ink); text-align:left; letter-spacing:normal;
  -webkit-font-smoothing:antialiased;
  background: radial-gradient(ellipse 46% 40% at 88% 30%, rgba(18,110,109,.10), transparent 70%), radial-gradient(ellipse 40% 36% at 8% 78%, rgba(60,140,110,.09), transparent 70%),
              linear-gradient(180deg, var(--top) 0%, #E9F2ED 16%, #E4EFE8 72%, var(--bg) 100%);
}
section#zq-teachers *, section#zq-teachers *::before, section#zq-teachers *::after { box-sizing:border-box; margin:0; padding:0; }
section#zq-teachers button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
section#zq-teachers ul { list-style:none; }
/* faint star lattice + a little grain, fading out at top and bottom */
section#zq-teachers::before { content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23126E6D' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .43 0 0 0 0 .38 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size:96px 96px, 240px 240px;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image:linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%); }
section#zq-teachers .a-in { position:relative; max-width:1180px; margin:0 auto; padding:0 24px; }

section#zq-teachers .a-kicker { font-size:12.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
section#zq-teachers .a-title { font-family:var(--serif); font-weight:600; font-size:clamp(32px,4.2vw,48px); line-height:1.1; color:var(--teal-dark); margin:12px 0 12px; text-wrap:balance; max-width:18ch; }
section#zq-teachers .a-sub { color:var(--muted); font-size:16.8px; max-width:48ch; }

section#zq-teachers .a-wrap { position:relative; margin-top:30px; }
section#zq-teachers .a-frame { position:relative; }
/* pinned mode: the frame sticks to the screen while the wrapper (made tall by the script) scrolls past.
   --zqt-off = height of the page's own fixed/sticky header (measured by the script), so the row pins just below it. */
section#zq-teachers.pin .a-frame { position:sticky; top:var(--zqt-off,0px); height:calc(100vh - var(--zqt-off,0px)); height:calc(100svh - var(--zqt-off,0px)); display:flex; flex-direction:column; justify-content:center; }
section#zq-teachers.pin .a-frame > .a-in { width:100%; } /* keep the bar full width (auto margins would otherwise shrink and centre it) */

section#zq-teachers .a-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; min-height:46px; }
section#zq-teachers .a-bar-label { font-size:12.2px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--teal-dark); opacity:.75; }
section#zq-teachers .a-bar-right { display:flex; align-items:center; gap:16px; }
section#zq-teachers .a-prog { width:120px; height:3px; border-radius:3px; background:rgba(18,110,109,.16); overflow:hidden; }
section#zq-teachers .a-prog i { display:block; width:100%; height:100%; background:var(--teal); transform-origin:left center; transform:scaleX(0); }
section#zq-teachers .a-arrows { display:flex; gap:10px; }
section#zq-teachers .a-arrow { width:46px; height:46px; border-radius:50%; background:#fff; color:var(--teal-dark); display:grid; place-items:center; box-shadow:0 8px 20px -10px rgba(18,110,109,.45); transition:transform .2s, box-shadow .2s, opacity .2s; }
section#zq-teachers .a-arrow:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 12px 24px -10px rgba(18,110,109,.55); }
section#zq-teachers .a-arrow:disabled { opacity:.4; cursor:default; }
section#zq-teachers .a-arrow svg { width:18px; height:18px; }

section#zq-teachers .a-track { overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
section#zq-teachers .a-track::-webkit-scrollbar { display:none; }
section#zq-teachers.pin .a-track { overflow:hidden; }
section#zq-teachers .a-rail { display:flex; gap:24px; width:max-content; list-style:none; padding:12px var(--padL) 32px var(--padL); }
section#zq-teachers.pin .a-rail { will-change:transform; }

section#zq-teachers .a-card { flex:0 0 360px; width:360px; display:flex; flex-direction:column; background:#fff; border-radius:30px; padding:16px 16px 26px; box-shadow:0 1px 0 rgba(13,78,77,.04), 0 24px 50px -26px rgba(18,110,109,.32); transition:box-shadow .35s; }
section#zq-teachers .a-card.playing { box-shadow:0 0 0 2px rgba(18,110,109,.22), 0 30px 60px -24px rgba(18,110,109,.48); }
section#zq-teachers .a-photo { position:relative; aspect-ratio:1/1.12; border-radius:22px; overflow:hidden; background:linear-gradient(165deg,#D6E9E8 0%,#EAF4F3 55%,#F5EEDC 100%); background-size:cover; background-position:center top; }
section#zq-teachers.pin .a-photo { aspect-ratio:auto; height:var(--ph); }
section#zq-teachers.pin .a-card { zoom:var(--zk,1); } /* short screens: the script shrinks the whole card evenly so the portrait is not cropped */
section#zq-teachers .a-photo .zq-sil { position:absolute; inset:0; width:100%; height:100%; fill:rgba(18,110,109,.2); }
section#zq-teachers .a-badge { position:absolute; left:14px; top:14px; display:flex; align-items:center; gap:9px; padding:7px 14px; border-radius:99px; background:rgba(255,255,255,.92); backdrop-filter:blur(6px); font-size:12.8px; line-height:1.55; color:var(--teal-dark); font-variant-numeric:tabular-nums; }
section#zq-teachers .a-badge .ar { font-family:var(--arabic); font-size:19.2px; line-height:1; color:var(--gold); }
section#zq-teachers .a-body { display:flex; flex-direction:column; padding:20px 10px 0; }
section#zq-teachers .a-name { font-family:var(--serif); font-weight:600; font-size:24px; line-height:1.18; color:var(--teal-dark); margin:0; }
section#zq-teachers .a-edu { font-size:16px; line-height:1.5; color:var(--muted); margin:8px 0 20px; min-height:4.5em; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
section#zq-teachers .a-edu.todo { font-style:italic; opacity:.8; }
section#zq-teachers .a-player { display:flex; align-items:center; gap:16px; }
section#zq-teachers .a-play { flex:0 0 54px; width:54px; height:54px; border-radius:50%; background:var(--teal); color:#fff; display:grid; place-items:center; box-shadow:0 12px 24px -8px rgba(18,110,109,.65); transition:transform .2s, background .2s; }
section#zq-teachers .a-play:hover { transform:scale(1.07); background:#0F5E5D; }
section#zq-teachers .a-play svg { width:22px; height:22px; fill:currentColor; }
section#zq-teachers .a-wave { flex:1; height:40px; cursor:pointer; }
section#zq-teachers .a-wave canvas { display:block; width:100%; height:100%; }

section#zq-teachers .a-foot { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:20px; }
section#zq-teachers .a-cta { display:inline-flex; padding:15px 30px; border-radius:99px; background:var(--teal); color:#fff; text-decoration:none; font-weight:600; font-size:16px; line-height:1.55; box-shadow:0 14px 28px -12px rgba(18,110,109,.7); transition:transform .2s; }
section#zq-teachers .a-cta:hover { transform:translateY(-2px); color:#fff; }
section#zq-teachers .a-foot p { color:var(--muted); }
section#zq-teachers :is(.a-play,.a-arrow,.a-cta,.a-wave):focus-visible { outline:3px solid var(--gold); outline-offset:3px; }

@media (min-width:721px) and (max-height:820px) { section#zq-teachers .a-card { flex-basis:330px; width:330px; } }
@media (max-width:720px) {
  section#zq-teachers { padding:60px 0 64px; } section#zq-teachers .a-arrows { display:none; }
  section#zq-teachers .a-card { flex-basis:min(335px,84vw); width:min(335px,84vw); padding:14px 14px 22px; } section#zq-teachers .a-name { font-size:22.4px; }
  section#zq-teachers .a-bar { min-height:30px; }
}
@media (prefers-reduced-motion:reduce) { section#zq-teachers :is(.a-play,.a-cta,.a-arrow,.a-card) { transition:none; } }
