/* Extracted verbatim from visitor-info/enrollment-process.html (the shipped program cards), 2026-10-27.
   Shared by the seo-growth pages. Extensions for the content pages are at the bottom. */

/* ==========================================================================
   Iqra Learning: program cards, redesigned.

   TRANSPLANT RULES, learned the hard way:
   - Every class is prefixed `iq-`. The host page already uses .section, .card,
     .container and friends; a bare `.section{padding:80px 30px}` re-pads six
     unrelated elements on enrollment-process.html.
   - No global `body`, `*` or element selectors. Everything is scoped under
     `.iq-programs`, including the box-sizing reset and margin resets, because
     the host stylesheet sets `li{margin-bottom:1rem}` and similar.
   - Tokens are declared on `.iq-programs`, not `:root`, so they cannot collide
     with the host's own variables.

   MEASURED from the live site (getComputedStyle at 1440), not chosen:
     Epilogue        body font, self-hosted 400/500/600/700
     #262626         ink            (body color)
     #f4f3f1         page           (body background-color)
     #002147         navy           (.button background-color)
     20px            button radius  (.button border-radius)
     18px/27px       body type      (body font-size / line-height)
   SAMPLED, not computed:
     #be1220         brand red, from Logo (4).png, the only place red exists.
   DERIVED (stated as such, not passed off as measured):
     card radius 12px and padding 24px are scaled down from the
     stripe-pricing-hero capture's 8px/32px, because these cards are ~347px wide
     where Stripe's are ~600px. The tint is navy at 4.5%, not Stripe's
     rgb(246,249,252), which is cool and fights this page's warm background.
   ========================================================================== */
.iq-programs{
  --iq-ink:#262626;
  --iq-navy:#002147;
  --iq-red:#be1220;
  --iq-surface:#ffffff;
  --iq-slate:#4a5766;          /* measured 7.38:1 on white, 6.70:1 on the tint */
  --iq-tint:rgba(0,33,71,.045);
  /* the card border is the ONLY separator between two priced programs, so it is
     a UI component boundary under WCAG 1.4.11 and needs >=3:1. At .14 it
     measured 1.34:1 and failed. */
  --iq-line:rgba(0,33,71,.42);
  --iq-line-soft:rgba(0,33,71,.13);
  --iq-ease:cubic-bezier(.22,.61,.36,1);
  --iq-r-card:12px;
  --iq-r-panel:6px;
  --iq-r-button:20px;          /* committed identity, measured on the live .button */

  font-family:Epilogue,sans-serif;color:var(--iq-ink);
  font-size:18px;line-height:27px;
  padding:80px 30px;
}
.iq-programs *,.iq-programs *::before,.iq-programs *::after{box-sizing:border-box}
/* neutralise host element rules (the host sets li{margin-bottom:1rem}, h2/h3
   margin-top:20px, and more) */
.iq-programs h2,.iq-programs h3,.iq-programs h4,
.iq-programs p,.iq-programs dl,.iq-programs dd,.iq-programs dt{margin:0;padding:0}
.iq-wrap{max-width:1280px;margin:0 auto}

/* --- section head ------------------------------------------------------- */
.iq-head{max-width:640px}
.iq-head h2{
  font-size:clamp(32px,4vw,48px);line-height:1.2;font-weight:700;
  letter-spacing:-.01em;text-wrap:balance;color:var(--iq-ink);
}
.iq-head p{margin-top:12px;font-size:18px;line-height:27px;color:var(--iq-slate);text-wrap:pretty}

/* --- program group ------------------------------------------------------ */
/* the accent lives here: a red hairline under every group heading with a heavier
   28px lead segment, present at every width including phone */
.iq-group{margin-top:52px}
.iq-group-head{
  position:relative;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 14px;
  padding-bottom:10px;margin-bottom:22px;border-bottom:1px solid rgba(190,18,32,.18);
}
.iq-group-head::after{content:"";position:absolute;left:0;bottom:-1px;width:28px;height:2px;background:var(--iq-red)}
/* 24px/700 against the card title's 20px/600, so the two heading levels are
   visually distinct and not just semantically distinct */
.iq-group-head h3{font-size:24px;line-height:32px;font-weight:700;color:var(--iq-navy);letter-spacing:-.01em}
.iq-group-head .iq-note{font-size:15px;line-height:24px;color:var(--iq-slate)}

/* --- the grid ----------------------------------------------------------- */
/* One column below 900, three above. No two-column band: at 768 a two-track grid
   orphans a card in every three-card group. No auto-fit, because auto-fit
   reaches three tracks at 880px and leaves a collapsed third track. */
.iq-cards{display:grid;gap:20px;grid-template-columns:1fr}
@media (min-width:900px){.iq-cards{grid-template-columns:repeat(3,1fr)}}

/* --- the card ----------------------------------------------------------- */
.iq-card{
  display:flex;flex-direction:column;text-align:left;
  background:var(--iq-surface);border:1px solid var(--iq-line);border-radius:var(--iq-r-card);
  padding:24px;
  transition:border-color 160ms var(--iq-ease);
}
/* border shift only. The card is not a link, so it must not lift like one. */
.iq-card:hover,.iq-card:focus-within{border-color:var(--iq-navy)}

/* the school mark, kept on every card at Hamza's call. alt="" and aria-hidden
   because it is the same image nine times: decorative repetition, and a screen
   reader announcing "Iqra Learning" nine times is noise, not information. */
/* 72px wide, auto height: at 44 the "IQRA LEARNING" wordmark under the glyph
   turned to mush. The live site used 80x80 forced square, which distorts it. */
.iq-card .iq-mark{display:block;width:72px;height:auto;margin-bottom:14px}

.iq-card h4{
  font-size:20px;line-height:26px;font-weight:600;
  color:var(--iq-navy);letter-spacing:-.005em;text-wrap:balance;
}
.iq-card .iq-when{margin-top:6px;font-size:15px;line-height:22px;color:var(--iq-slate)}
/* Above 900 the head block is reserved so every price panel in a row starts on
   the same baseline. Both lines are reserved, because the element that actually
   wraps is the title, not the subtitle. Below 900 the grid is one column, so
   nothing needs aligning and the reservation is dropped. */
@media (min-width:900px){
  .iq-card h4{min-height:52px}
  .iq-card .iq-when{min-height:22px}
}

/* price panel: the one tinted surface. Carries its own border so it survives
   forced-colors mode, where background tints are stripped to plain white. */
.iq-price{
  margin-top:16px;padding:14px 16px;background:var(--iq-tint);
  border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-panel);
}
.iq-price .iq-top{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.iq-price .iq-amount{font-size:32px;line-height:36px;font-weight:700;color:var(--iq-navy);letter-spacing:-.02em}
.iq-price .iq-per{font-size:15px;line-height:22px;color:var(--iq-slate)}
.iq-price .iq-fee{
  margin-top:10px;padding-top:10px;border-top:1px solid var(--iq-line-soft);
  font-size:14px;line-height:20px;color:var(--iq-ink);
}

/* label and value rows: a description list, so the pairing is programmatic and
   not just a colour and column convention a screen reader cannot see */
.iq-rows{margin-top:16px;border-top:1px solid var(--iq-line-soft)}
.iq-rows > div{
  display:grid;grid-template-columns:66px 1fr;gap:12px;
  padding:9px 0;border-bottom:1px solid var(--iq-line-soft);
}
.iq-rows dt{color:var(--iq-slate);font-weight:500;font-size:14px;line-height:21px}
.iq-rows dd{color:var(--iq-ink);font-size:14px;line-height:21px}

.iq-cta{margin-top:auto;padding-top:18px}
/* two actions stacked, for the card where paying first is not the right ask */
.iq-cta a + a{margin-top:8px}
.iq-cta a{
  display:block;text-align:center;text-decoration:none;
  border-radius:var(--iq-r-button);
  font-size:18px;line-height:26px;font-weight:500;padding:10px 16px;
  transition:background-color 160ms var(--iq-ease),border-color 160ms var(--iq-ease);
}
.iq-cta a.iq-primary{background:var(--iq-navy);color:#fff;border:1px solid var(--iq-navy)}
.iq-cta a.iq-primary:hover{background:#00306a;border-color:#00306a}
.iq-cta a.iq-secondary{background:transparent;color:var(--iq-navy);border:1px solid var(--iq-navy)}
.iq-cta a.iq-secondary:hover{background:rgba(0,33,71,.06)}
.iq-cta a:focus-visible{outline:2px solid var(--iq-navy);outline-offset:3px}

/* a program with no fixed price still gets the panel, but not a fake number */
.iq-price .iq-amount--text{font-size:22px;line-height:36px;font-weight:600}

/* the help strip closing the section: full width, not a fourth card, because it
   is not a program and should not compete with one */
.iq-help{
  margin-top:28px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;
  background:rgba(0,33,71,.03);border:1px solid var(--iq-line-soft);
  border-radius:var(--iq-r-card);padding:20px 24px;
}
.iq-help .iq-help-text{flex:1 1 320px}
.iq-help h3{font-size:18px;line-height:26px;font-weight:600;color:var(--iq-navy)}
.iq-help p{margin-top:4px;font-size:15px;line-height:23px;color:var(--iq-slate)}
.iq-help .iq-cta{margin-top:0;padding-top:0;flex:0 0 auto}
.iq-help .iq-cta a{padding-left:28px;padding-right:28px}

@media (prefers-reduced-motion:reduce){
  .iq-card,.iq-cta a{transition:none}
}

/* ==== flyer-derived subject list =========================================
   Reference: the school's own AfterSchool flyer. Red filled circle badge, white
   glyph, subject name in navy beside it, dashed hairline between rows, under a
   "Program includes:" label. Colours are the site's measured navy #002147 and
   the logo red #be1220; the flyer's own swatches could not be sampled because
   the flyer exists only as a chat image, not a file on disk.
   ========================================================================= */
.iq-sched{
  display:flex;align-items:center;gap:10px;margin-top:14px;
  background:var(--iq-navy);color:#fff;border-radius:8px;padding:10px 14px;
}
.iq-sched svg{width:20px;height:20px;flex:0 0 20px;color:#fff}
.iq-sched .iq-sched-day{font-size:13px;line-height:18px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.iq-sched .iq-sched-time{font-size:15px;line-height:21px;color:#cfd8e4}

.iq-includes{margin-top:18px}
.iq-includes-label{
  font-size:13px;line-height:18px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--iq-navy);
}
.iq-subjects{margin-top:8px}
.iq-subjects li{
  display:flex;align-items:center;gap:12px;
  padding:9px 0;border-bottom:1px dashed rgba(0,33,71,.22);
}
.iq-subjects li:last-child{border-bottom:0}
.iq-badge{
  flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--iq-red);
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.iq-badge svg{width:20px;height:20px}
.iq-badge .iq-ar{font-size:13px;line-height:1.15;font-weight:600;text-align:center}
.iq-subjects .iq-subject{font-size:15px;line-height:21px;font-weight:600;color:var(--iq-navy)}
.iq-programs ul{list-style:none;margin:0;padding:0}

/* 900 to 1099 the cards are at their narrowest in three tracks, and the longest
   day label ("TUESDAY & THURSDAY") wraps to a second line there, which pushes
   that card's price panel 18px below its rowmates. Tighten the label instead of
   reserving dead height on every card. */
@media (min-width:900px) and (max-width:1099px){
  .iq-sched{padding:10px 12px;gap:8px}
  .iq-sched .iq-sched-day{font-size:11.5px;letter-spacing:.03em}
}

/* ==========================================================================
   seo-growth content pages (2026-10-27). Scoped under .iq-page, which sits inside
   the template's .post-body rich-text column. Same tokens as .iq-programs; values
   from DESIGN.md (body 18/27, page h3 32/40 600, card title 20/26, meta 15/22,
   navy #002147, red #be1220 under 10 percent, hairlines for depth, 120 to 200ms).
   ========================================================================== */
.iq-page{
  --iq-ink:#262626;--iq-navy:#002147;--iq-red:#be1220;--iq-surface:#ffffff;
  --iq-slate:#4a5766;--iq-tint:rgba(0,33,71,.045);--iq-line:rgba(0,33,71,.42);
  --iq-line-soft:rgba(0,33,71,.13);--iq-ease:cubic-bezier(.22,.61,.36,1);
  --iq-r-card:12px;--iq-r-panel:6px;--iq-r-button:20px;
  font-family:Epilogue,sans-serif;color:var(--iq-ink);font-size:18px;line-height:27px;
}
.iq-page *,.iq-page *::before,.iq-page *::after{box-sizing:border-box}
.iq-page h2,.iq-page h3,.iq-page h4,.iq-page p,.iq-page ul,.iq-page li,.iq-page dl,.iq-page dd,.iq-page dt{margin:0;padding:0}
.iq-page ul{list-style:none}

/* prose */
.iq-page > p,.iq-page .iq-prose p{margin-top:16px;max-width:68ch;text-wrap:pretty}
.iq-page > p.iq-lead{margin-top:0;font-size:21px;line-height:32px;color:var(--iq-ink);font-weight:400}
.iq-page a:not(.iq-primary):not(.iq-secondary):not(.iq-post):not(.iq-area):not(.iq-plist__go){
  color:var(--iq-navy);font-weight:500;text-decoration:underline;
  text-decoration-color:rgba(0,33,71,.35);text-underline-offset:3px;text-decoration-thickness:1px;
  transition:text-decoration-color 160ms var(--iq-ease);
}
.iq-page a:not(.iq-primary):not(.iq-secondary):not(.iq-post):not(.iq-area):not(.iq-plist__go):hover{text-decoration-color:var(--iq-navy)}

/* section heading: the group-head accent from the program cards (red hairline, 28px lead) */
.iq-page .iq-group-head{margin-top:56px}
.iq-page .iq-group-head h2{font-size:32px;line-height:40px;font-weight:600;color:var(--iq-navy);letter-spacing:-.01em;text-wrap:balance}

/* checked list (sourced tips etc.) */
.iq-page ul.iq-list{margin-top:18px;border-top:1px solid var(--iq-line-soft)}
.iq-page ul.iq-list li{
  position:relative;padding:14px 0 14px 34px;border-bottom:1px solid var(--iq-line-soft);
  font-size:18px;line-height:27px;
}
.iq-page ul.iq-list li::before{
  content:"";position:absolute;left:4px;top:21px;width:14px;height:8px;
  border-left:2px solid var(--iq-red);border-bottom:2px solid var(--iq-red);transform:rotate(-45deg);
}

/* program cards inside the narrower text column: flow, never squeeze */
/* auto-fill, not auto-fit: two cards keep the same width as three instead of stretching to half
   the column, and below ~640px of column the grid drops to one card per row instead of squeezing. */
.iq-page .iq-cards{margin-top:28px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.iq-page .iq-group-head + .iq-cards{margin-top:0}
.iq-page .iq-cards + p,.iq-page .iq-cards + .iq-group-head{margin-top:36px}
.iq-page .iq-group-head + p{margin-top:0}
.iq-page .iq-cards--one{grid-template-columns:minmax(0,420px)}

/* FAQ accordion: hairline rows, plus that turns to minus. Pattern from the library's
   akfaq-accordion, re-tokened; native details/summary so it works without JS. */
.iq-faq{margin-top:20px;border-top:1px solid var(--iq-line-soft)}
.iq-faq details{border-bottom:1px solid var(--iq-line-soft)}
.iq-faq summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:20px 0;
}
.iq-faq summary::-webkit-details-marker{display:none}
.iq-faq summary h3{font-size:20px;line-height:26px;font-weight:600;color:var(--iq-navy);text-wrap:balance}
.iq-faq .iq-plus{
  position:relative;flex:0 0 32px;width:32px;height:32px;border:1px solid var(--iq-line);border-radius:50%;
  transition:border-color 160ms var(--iq-ease),transform 160ms var(--iq-ease);
}
.iq-faq .iq-plus::before,.iq-faq .iq-plus::after{
  content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--iq-navy);
  transition:transform 160ms var(--iq-ease);
}
.iq-faq .iq-plus::after{transform:rotate(90deg)}
.iq-faq details[open] .iq-plus{border-color:var(--iq-navy)}
.iq-faq details[open] .iq-plus::after{transform:rotate(0deg)}
.iq-faq summary:hover .iq-plus{border-color:var(--iq-navy)}
.iq-faq summary:focus-visible{outline:2px solid var(--iq-navy);outline-offset:4px;border-radius:4px}
.iq-faq .iq-a{padding:0 52px 22px 0}
.iq-faq .iq-a p{font-size:18px;line-height:27px;color:var(--iq-slate);max-width:64ch}

/* closing call box reuses .iq-help from the program cards */
.iq-page .iq-help{margin-top:48px;background:var(--iq-surface)}
.iq-page .iq-help .iq-cta{display:flex;flex-wrap:wrap;gap:10px}
.iq-page .iq-help .iq-cta a + a{margin-top:0}

.iq-page .iq-meta{margin-top:28px;font-size:15px;line-height:22px;color:var(--iq-slate)}
.iq-page .iq-meta a{font-weight:400}

@media (max-width:600px){
  .iq-page .iq-cards{grid-template-columns:1fr;gap:16px}
  .iq-page .iq-card{padding:20px}
  .iq-page > p.iq-lead{font-size:19px;line-height:29px}
  .iq-page .iq-group-head{margin-top:44px}
  .iq-page .iq-group-head h2{font-size:26px;line-height:33px}
  .iq-faq summary h3{font-size:18px;line-height:25px}
  .iq-faq .iq-a{padding-right:0}
  .iq-page .iq-help .iq-cta{flex:1 1 100%;min-width:0}
  .iq-page .iq-help .iq-cta a{flex:1 1 100%;min-width:0;padding-left:16px;padding-right:16px}
}
@media (prefers-reduced-motion:reduce){
  .iq-faq .iq-plus,.iq-faq .iq-plus::before,.iq-faq .iq-plus::after,.iq-page a{transition:none}
}

/* host li{margin-bottom:1rem} leaks into subject rows; one-line titles need no reserved second line on wide cards */
.iq-programs .iq-subjects li,.iq-page .iq-subjects li{margin:0}
@media (min-width:1200px){.iq-page .iq-card h4{min-height:0}}

/* ==== "How enrollment works" step cards (enrollment page, 2026-10-27) ====================
   Same card language as the program cards: white surface, hairline, 12px radius, red icon
   badge (the flyer-derived subject badge, 44px here), navy label, 20/26 title, slate text,
   button pinned to the bottom. Small "Step 1" labels, never oversized numerals. */
.iq-steps-block{margin-bottom:72px}
.iq-steps{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:20px;grid-template-columns:1fr}
@media (min-width:900px){.iq-steps{grid-template-columns:repeat(3,1fr)}}
.iq-step{
  display:flex;flex-direction:column;margin:0;padding:24px;
  background:var(--iq-surface);border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-card);
  transition:border-color 160ms var(--iq-ease);
}
.iq-step:hover,.iq-step:focus-within{border-color:var(--iq-navy)}
.iq-step-badge{
  display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;
  background:var(--iq-red);color:#fff;
}
.iq-step-badge svg{width:22px;height:22px}
.iq-programs .iq-step-label{margin-top:18px;font-size:13px;line-height:18px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--iq-red)}
.iq-programs .iq-step h3{margin-top:6px;font-size:20px;line-height:26px;font-weight:600;color:var(--iq-navy);text-wrap:balance}
.iq-programs .iq-step-text{margin-top:8px;font-size:16px;line-height:24px;color:var(--iq-slate);text-wrap:pretty}
.iq-step .iq-cta a{display:flex;align-items:center;justify-content:center;gap:8px}
.iq-step .iq-arrow{width:18px;height:18px;flex:0 0 18px}
@media (prefers-reduced-motion:reduce){.iq-step{transition:none}}
/* phones: the host container already pads 24px, so the section's own 30px side padding doubled it
   and squeezed every card to ~280px. Drop it below 600px. */
@media (max-width:600px){section.iq-programs{padding-left:0;padding-right:0}}

/* ==== spacing pass (2026-10-27, Hamza: "weird gaps") ======================================
   Measured at 1440 before: hero to first heading 176px (template 96 + section 80), last block to
   "A Glimpse of Our Journey" 258 to 288px (80 + 96 + 96 stacked), and 41 to 181px of empty card
   above the buttons because every card stretched to the tallest card in its row. */
section.iq-programs{padding-top:0;padding-bottom:0}
.padding-6:has(.iq-programs),.padding-6:has(.iq-page){padding-bottom:24px}
/* cards size to their own content; a short card no longer carries a hole above its button */
.iq-programs .iq-cards,.iq-page .iq-cards{align-items:start}
.iq-programs .iq-cta,.iq-page .iq-cta{margin-top:0}
.iq-programs .iq-card .iq-cta,.iq-page .iq-card .iq-cta{padding-top:20px}
/* in-page jumps land below the fixed navbar (100px tall). Webflow's scroll script ignores
   scroll-margin, so the offset is invisible padding cancelled by a matching negative margin. */
.iq-programs #programs{padding-top:124px;margin-top:-124px}

/* ==== contact pages: visit cards (2026-10-27) =============================================
   Same language as the step cards: white surface, hairline, 12px radius, red 44px badge,
   20/26 navy title, 16/24 slate body, actions pinned to the bottom. */
.iq-visit-head{max-width:640px}
.iq-visit-head h2{font-size:clamp(30px,3.6vw,44px);line-height:1.15;font-weight:700;letter-spacing:-.01em;color:var(--iq-ink);text-wrap:balance}
.iq-visit-head p{margin-top:12px;font-size:18px;line-height:27px;color:var(--iq-slate);max-width:56ch}
.iq-visit{margin-top:28px;display:grid;gap:20px;grid-template-columns:1fr}
@media (min-width:900px){.iq-visit{grid-template-columns:repeat(3,1fr)}}
.iq-vcard{
  display:flex;flex-direction:column;padding:24px;background:var(--iq-surface);
  border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-card);transition:border-color 160ms var(--iq-ease);
}
.iq-vcard:hover,.iq-vcard:focus-within{border-color:var(--iq-navy)}
.iq-page .iq-vcard h3{margin-top:18px;font-size:20px;line-height:26px;font-weight:600;color:var(--iq-navy)}
.iq-page .iq-vcard-text{margin-top:8px;font-size:16px;line-height:24px;color:var(--iq-ink)}
.iq-vcard-text .iq-muted{color:var(--iq-slate);font-size:15px}
.iq-page .iq-vcard-text a{font-weight:500}
.iq-vcard .iq-cta{margin-top:auto;padding-top:20px}
.iq-vcard .iq-cta a + a{margin-top:8px}
.iq-page .iq-faq + *{margin-top:0}
@media (prefers-reduced-motion:reduce){.iq-vcard{transition:none}}
/* Contact page hero: Webflow's runtime sets these to opacity 0 and waits for an interaction that
   this page never registers, so "Contact Us" stayed invisible. Show it. (Section id is that hero's.) */
section[data-w-id="7e33f6d7-cbb8-c90a-04c3-0a072f1d8009"] .fade-in-heading,
section[data-w-id="7e33f6d7-cbb8-c90a-04c3-0a072f1d8009"] .fade-in-description,
section[data-w-id="7e33f6d7-cbb8-c90a-04c3-0a072f1d8009"] .fade-in-button{opacity:1 !important;transform:none !important}

/* contact pages spacing (Hamza: big gap on top, none at the bottom). Even 72px above and below the
   visit cards; a section that directly follows them (the FAQ) starts flush instead of adding 96px. */
.padding-6:has(.iq-visit){padding-top:72px;padding-bottom:72px}
section:has(.iq-visit) + section .padding-6:has(.iq-faq){padding-top:0}
/* visit cards size to their content, so a short card has no hole above its button */
.iq-visit{align-items:start}
.iq-vcard .iq-cta{margin-top:0}
.margin-top-5:has(.iq-visit){margin-top:0}

/* ==== homepage video card (2026-10-27) ====================================================
   Portrait (the video is a YouTube Short), 360px wide, 16px radius, navy hairline; school photo as
   the cover with a soft bottom shade, navy play button, label. On tap the facade script replaces the
   poster with the player, which fills the same 9:16 frame. */
.iq-video-block{display:flex;justify-content:center;margin-bottom:72px}
.iq-video{
  position:relative;width:min(360px,100%);aspect-ratio:9/16;border-radius:16px;overflow:hidden;
  border:1px solid rgba(0,33,71,.14);background:#002147;
}
.iq-video .iq-video__poster{position:absolute;inset:0;display:block;cursor:pointer;background:none}
.iq-video__poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.iq-video__shade{position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(to top,rgba(0,33,71,.72),rgba(0,33,71,0))}
.iq-video__play{
  position:absolute;top:50%;left:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;
  background:#002147;color:#fff;display:flex;align-items:center;justify-content:center;
  border:2px solid rgba(255,255,255,.9);transition:transform 160ms cubic-bezier(.22,.61,.36,1),background-color 160ms cubic-bezier(.22,.61,.36,1);
}
.iq-video__play svg{width:28px;height:28px;margin-left:3px}
.iq-video__poster:hover .iq-video__play{transform:translateY(-2px);background:#00306a}
.iq-video__poster:focus-visible{outline:3px solid #ffffff;outline-offset:-6px}
.iq-video__label{position:absolute;left:20px;right:20px;bottom:20px;color:#fff;font-family:Epilogue,sans-serif;font-size:17px;line-height:24px;font-weight:500}
.iq-video iframe{position:absolute;inset:0;width:100% !important;height:100% !important;border:0}
@media (max-width:600px){.iq-video-block{margin-bottom:48px}.iq-video{width:min(320px,100%)}}
@media (prefers-reduced-motion:reduce){.iq-video__play{transition:none}}

/* ==== blog index post cards (2026-10-27) ================================================
   Same card language: white surface, hairline, 12px radius, border to navy on hover (no lift, no
   shadow), photo on top, date as small slate meta, 20/26 navy title, 16/24 slate summary. */
.iq-posts{margin-top:28px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.iq-page a.iq-post{
  display:flex;flex-direction:column;background:var(--iq-surface);border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-card);
  overflow:hidden;text-decoration:none;color:var(--iq-ink);transition:border-color 160ms var(--iq-ease);
}
.iq-page a.iq-post:hover{border-color:var(--iq-navy)}
.iq-post__img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--iq-tint)}
.iq-post__img img{width:100%;height:100%;object-fit:cover;display:block}
.iq-post__body{display:flex;flex-direction:column;flex:1;padding:20px 22px 22px}
.iq-post__date{font-size:13px;line-height:18px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--iq-slate)}
.iq-post__title{margin-top:8px;font-size:20px;line-height:26px;font-weight:600;color:var(--iq-navy);text-wrap:balance}
.iq-post__desc{margin-top:8px;font-size:16px;line-height:24px;color:var(--iq-slate)}
.iq-post__more{margin-top:auto;padding-top:16px;display:inline-flex;align-items:center;gap:8px;font-size:16px;font-weight:500;color:var(--iq-navy)}
.iq-post__more svg{width:18px;height:18px;transition:transform 160ms var(--iq-ease)}
.iq-page a.iq-post:hover .iq-post__more svg{transform:translateX(2px)}
@media (prefers-reduced-motion:reduce){.iq-page a.iq-post,.iq-post__more svg{transition:none}}

/* ==== video as a split section (2026-10-27) ==============================================
   Copy left, the 9:16 Short right, so the portrait player no longer floats alone in a wide band.
   Stacks under 768px with the copy first. Type and button come from the site's own h2, .paragraph
   and .button-wrapper classes. */
.iq-video-block.iq-video-split{display:grid;grid-template-columns:minmax(0,560px) minmax(0,360px);align-items:center;gap:96px;justify-content:center;margin-bottom:96px}
.iq-video-split__copy{max-width:560px}
.iq-video-split__cta{margin-top:28px;display:flex}
/* Same values as the site's navy primary (.iq-foot__primary / .submit-button, measured). */
.iq-video-split a.iq-video-split__btn{display:inline-flex;align-items:center;height:56px;padding:0 28px;border-radius:20px;border:1px solid #002147;background:#002147;color:#fff;font-family:Epilogue,sans-serif;font-size:17px;font-weight:500;text-decoration:none;transition:background-color 160ms cubic-bezier(.22,.61,.36,1),transform 160ms cubic-bezier(.22,.61,.36,1)}
.iq-video-split a.iq-video-split__btn:hover{background:#00306a;transform:translateY(-1px)}
.iq-video-split a.iq-video-split__btn:focus-visible{outline:2px solid #002147;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.iq-video-split a.iq-video-split__btn{transition:none}.iq-video-split a.iq-video-split__btn:hover{transform:none}}
@media (max-width:991px){.iq-video-block.iq-video-split{gap:40px;grid-template-columns:minmax(0,1fr) minmax(0,300px);justify-content:normal}}
@media (max-width:767px){.iq-video-block.iq-video-split{grid-template-columns:minmax(0,1fr);gap:32px;margin-bottom:64px}.iq-video-split .iq-video{justify-self:center}}

/* ==== homepage gap fix (Hamza 2026-10-27: "look how much gap") ============================
   Measured at 1440: "Apply Today" to the video heading was 418px = the Calling For Teachers
   section's 150px bottom padding + 96px section padding + 158px of centring against a 640px video.
   Now: 48px + 32px, and a 300px-wide video so the copy sits closer to its top. */
@media (min-width:992px){
  .xander-section{padding-bottom:48px}
  .padding-6:has(> .iq-video-block){padding-top:32px}
  .iq-video-block.iq-video-split{grid-template-columns:minmax(0,560px) minmax(0,300px);gap:80px}
  .iq-video-split .iq-video{width:min(300px,100%)}
}

/* ==== area pages (2026-10-27): compact program list + town cards =========================
   Compact list instead of full cards so eight area pages do not repeat the same long card text. */
.iq-plist{margin-top:20px;border-top:1px solid var(--iq-line-soft)}
.iq-page .iq-plist li{display:grid;grid-template-columns:1fr auto auto;gap:4px 20px;align-items:center;padding:16px 0;border-bottom:1px solid var(--iq-line-soft)}
.iq-plist__name{font-size:18px;line-height:26px;font-weight:600;color:var(--iq-navy)}
.iq-plist__meta{grid-column:1;grid-row:2;font-size:15px;line-height:22px;color:var(--iq-slate)}
.iq-plist__price{grid-column:2;grid-row:1 / span 2;font-size:17px;font-weight:600;color:var(--iq-ink);white-space:nowrap}
.iq-page a.iq-plist__go{grid-column:3;grid-row:1 / span 2;display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:20px;
  background:var(--iq-navy);color:#fff;font-size:16px;font-weight:500;text-decoration:none;transition:background-color 160ms var(--iq-ease)}
.iq-page a.iq-plist__go:hover{background:#00306a}
@media (max-width:600px){.iq-page .iq-plist li{grid-template-columns:1fr auto}.iq-plist__price{grid-column:1;grid-row:3}.iq-page a.iq-plist__go{grid-column:2;grid-row:1 / span 3}}
.iq-areas{margin-top:28px;display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.iq-page a.iq-area{display:flex;flex-direction:column;gap:6px;padding:22px;background:var(--iq-surface);border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-card);
  text-decoration:none;color:var(--iq-ink);transition:border-color 160ms var(--iq-ease)}
.iq-page a.iq-area:hover{border-color:var(--iq-navy)}
.iq-area__name{font-size:22px;line-height:28px;font-weight:600;color:var(--iq-navy)}
.iq-area__dist{font-size:13px;line-height:18px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--iq-red)}
.iq-area__facts{font-size:15px;line-height:22px;color:var(--iq-slate)}
.iq-page a.iq-area .iq-post__more{padding-top:10px}

/* ==== area page stat cards (Hamza 2026-10-27: "useless stats", wanted Dial Haul's clean stat cards) ====
   Four cards, each: small label, one big number, one short line. Hairline white cards, 12px radius, navy value. */
.iq-stats{margin-top:24px;display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.iq-stat{display:flex;flex-direction:column;gap:6px;padding:22px 22px 20px;background:var(--iq-surface);border:1px solid var(--iq-line-soft);border-radius:var(--iq-r-card)}
.iq-stat__label{font-size:15px;line-height:20px;color:var(--iq-slate)}
.iq-stat__value{font-size:36px;line-height:42px;font-weight:600;letter-spacing:-.02em;color:var(--iq-navy)}
.iq-stat__sub{font-size:14px;line-height:20px;color:var(--iq-slate)}
.iq-page .iq-stats__src{margin-top:12px;font-size:13px;line-height:19px;color:var(--iq-slate)}
.iq-page .iq-stats__src a{font-weight:400}
@media (max-width:600px){.iq-stats{grid-template-columns:1fr 1fr;gap:12px}.iq-stat{padding:16px}.iq-stat__value{font-size:28px;line-height:34px}}
/* get-in-touch has no photo hero, so its visit section is the first thing under the fixed 100px header.
   The 72px spacing rule above put "Visit or get in touch" behind the header. As the first section, it
   clears the header plus the same 72px. */
main > section:first-of-type .padding-6:has(.iq-visit){padding-top:172px}
@media (max-width:767px){main > section:first-of-type .padding-6:has(.iq-visit){padding-top:148px}}
