/* ==========================================================================
   pages-f2.css · inner pages (programs · trust · writing-camp · faq) · 22 Nov 2026
   Composed ONLY from kg-system.css tokens (colour, type, space, radius, shadow,
   motion, breakpoints). Load after kg-system.css. It never restyles a system
   component; each block below is a candidate to move into the system.
   ========================================================================== */

/* 1 · Inner-page hero: the night without a door (the door closes the page).
      H1 + the one lit button stay inside the first phone screen. */
.f2-pagehero{padding-block:var(--kg-s5) var(--kg-section-y)}
@media (min-width:900px){.f2-pagehero{padding-block-start:var(--kg-s8)}}
.f2-pagehero .kg-lead{max-width:34em}
.f2-heromark.kg-emblem__art{width:96px;height:96px;margin:0;border-radius:var(--kg-r3)}
@media (max-width:899.98px){.f2-heromark.kg-emblem__art{width:72px;height:72px;border-radius:var(--kg-r2)}}

/* 2 · Centred hero (programs): the master logo sits on top of its family */
.f2-center{align-items:center;text-align:center;max-width:50rem;margin-inline:auto}
.f2-center .kg-kicker{justify-content:center}
.f2-center .kg-lead{margin-inline:auto}
.f2-masterlogo{height:64px;width:auto}
@media (min-width:900px){.f2-masterlogo{height:88px}}

/* 3 · Family index: the four methodologies ©, in journey order, under the master logo */
.f2-family{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--kg-s3);margin:var(--kg-s7) 0 0;padding:0;list-style:none}
@media (min-width:900px){.f2-family{grid-template-columns:repeat(4, minmax(0, 1fr));gap:var(--kg-s5);max-width:var(--kg-container-narrow);margin-inline:auto}}
.f2-family a{display:flex;flex-direction:column;align-items:center;gap:var(--kg-s1);height:100%;padding:var(--kg-s4) var(--kg-s3) var(--kg-s5);border-radius:var(--kg-r3);border:1px solid var(--kg-line);background:radial-gradient(120% 70% at 50% 0%, rgb(var(--kg-rgb-navy) / .95), transparent 72%), var(--kg-surface);color:var(--kg-text);text-align:center;text-decoration:none;transition:border-color var(--kg-t) var(--kg-ease),transform var(--kg-t) var(--kg-ease)}
.f2-family a:hover{border-color:var(--kg-line-2);transform:translateY(-3px)}
.f2-family .kg-emblem__art{width:84px;height:84px;margin:0 0 var(--kg-s2);border-radius:var(--kg-r2)}
.f2-family b{font-family:var(--kg-font-display);font-size:var(--kg-fs-body);font-weight:800;line-height:var(--kg-lh-ui)}
.f2-family small{font-size:var(--kg-fs-label);font-weight:700;line-height:var(--kg-lh-ui);color:var(--kg-accent)}

/* 3b · Emblem as a card mark (84px). On paper: no glow, the sheet shadow instead */
.f2-cardmark.kg-emblem__art{width:84px;height:84px;margin:0;border-radius:var(--kg-r2)}
.kg-paper .f2-cardmark::before{display:none}
.kg-paper .f2-cardmark img{box-shadow:var(--kg-shadow-sheet)}

/* 4 · Feature row (one methodology): copy + its emblem, large, lit from behind on the night.
      Emblems are navy tiles already, so on paper they only take the sheet shadow. */
.f2-art{position:relative;isolation:isolate;display:grid;place-items:center;justify-self:center;width:100%;max-width:26rem;aspect-ratio:1}
.f2-art::before{content:"";position:absolute;inset:6%;z-index:-1;background:radial-gradient(closest-side, rgb(var(--kg-rgb-orange) / .3), transparent)}
.f2-art img{width:62%;height:auto;border-radius:var(--kg-r3);box-shadow:var(--kg-shadow-float)}
.kg-paper .f2-art::before{display:none}
.kg-paper .f2-art img{box-shadow:var(--kg-shadow-sheet)}
@media (max-width:899.98px){
  .f2-feature .f2-art{order:-1;justify-self:start;max-width:9rem;aspect-ratio:auto}
  .f2-feature .f2-art img{width:100%}
}
@media (min-width:900px){.f2-feature--flip .f2-art{order:-1}}

/* 5 · Notebook page (writing camp): a paper object on the night, ruled, always «مثال توضيحي» */
.f2-note{width:100%;max-width:29rem}
.f2-note__lines{margin:0;direction:ltr;text-align:left;font-family:var(--kg-font-display);font-size:var(--kg-fs-h3);font-weight:700;line-height:2.2;color:var(--kg-text);
  background-image:repeating-linear-gradient(180deg, transparent 0 calc(2.2em - 1px), var(--kg-line-2) calc(2.2em - 1px) 2.2em)}
.f2-note__title{font-family:var(--kg-font-display);font-size:var(--kg-fs-h3);font-weight:800;line-height:var(--kg-lh-ui);direction:ltr}
.f2-caret{display:inline-block;width:3px;height:1em;margin-inline-start:2px;vertical-align:-.12em;border-radius:2px;background:var(--kg-light)}

/* 6 · Facts list (dates · sessions · format · price) */
.f2-facts{display:grid;margin:0}
.f2-facts > div{display:grid;grid-template-columns:minmax(7.5rem, .75fr) 1.25fr;gap:var(--kg-s1) var(--kg-s4);align-items:baseline;padding-block:var(--kg-s4);border-block-end:1px solid var(--kg-line)}
.f2-facts > div:last-child{border-block-end:0;padding-block-end:0}
.f2-facts dt{display:flex;align-items:center;gap:var(--kg-s2);font-size:var(--kg-fs-small);font-weight:700;line-height:var(--kg-lh-ui);color:var(--kg-text-3)}
.f2-facts dt svg{width:20px;height:20px;color:var(--kg-accent)}
.f2-facts dd{font-weight:700;line-height:1.6;color:var(--kg-text)}
@media (max-width:599.98px){.f2-facts > div{grid-template-columns:1fr}}

/* 7 · Seal as the report-card mark (trust agreement card) */
.f2-report-seal{width:36px;height:36px;flex:none;border-radius:var(--kg-r1)}

/* 8 · FAQ groups (faq.html): one small head per group, anchors clear the sticky header */
.f2-anchor{scroll-margin-top:calc(var(--kg-header-h) + var(--kg-s4))}
.f2-faq-group + .f2-faq-group{margin-block-start:var(--kg-s7)}
.f2-faq-group__head{display:flex;align-items:center;gap:var(--kg-s3);margin-block-end:var(--kg-s4)}
.f2-faq-group__head .kg-card__icon{width:44px;height:44px;margin:0}
.f2-faq-group__head .kg-card__icon svg{width:24px;height:24px}
.kg-faq__a .kg-link{min-height:44px}

/* 9 · A paper card inside the final night (checklist «اسألها هالأسئلة») */
.f2-final-card{width:100%;max-width:36rem;text-align:start}

/* 3D medallions by «فنان الـ3D»: the render carries its own bevel, glow and shadow */
.f2-art--3d::before{display:none}
.f2-art--3d img,.kg-paper .f2-art--3d img{width:86%;border-radius:0;box-shadow:none}
.f2-heromark--3d::before{display:none}
.f2-heromark--3d img{object-fit:contain;border-radius:0;transform:scale(1.25)}
