/* =====================================================================
   training-institutes.html only. Shared rules live in assets/css/styles.css.
   No new colours, radii, shadows or type sizes: tokens only.
   ===================================================================== */

/* ---------- 0. Local fixes for shared gaps ------------------------
   (a) Several shared components set `display` unconditionally, which beats
       the browser's [hidden] rule, so a hidden success panel still paints.
       Scoped here until styles.css carries a global
       `[hidden]{display:none!important}`. See sharedRequests.
   (b) .cta-band__ridge and .cta-band__figs live in pages/home.css, so every
       other page that copies the CTA band has to repeat them. The custom
       properties --ridge-h and --crest are already on .cta-band in styles.css. */
[hidden]{display:none !important}

.cta-band__ridge{position:absolute;left:0;right:0;bottom:0;width:100%;height:var(--ridge-h);z-index:-1;display:block}
.cta-band__figs{
  position:absolute;left:50%;translate:-50% 0;
  bottom:calc(var(--ridge-h) * var(--crest));
  width:clamp(158px,23vw,300px);height:auto;z-index:-1;display:block;
}

/* Deep links from the header mega-menu land on section and tile ids,
   so every target clears the sticky header. */
[id]{scroll-margin-top:calc(var(--header-h) + 20px)}

/* A band that ends in a ribbon carries no bottom padding of its own.
   (Same rule as pages/home.css, repeated here because home.css is not loaded.) */
.section--ribbon{padding-bottom:0}

/* ---------- 1. Hero ---------------------------------------------- */
.inst-hero h1{max-width:17ch}

.inst-hero__proof{
  list-style:none;margin:var(--sp-8) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--sp-3);
}
.inst-hero__proof li{display:flex;gap:10px;align-items:flex-start;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.55}
.inst-hero__proof svg{width:19px;height:19px;color:var(--forest-500);flex:none;margin-top:1px}
.inst-hero__proof b{color:var(--ink-800);font-weight:600}

.inst-hero__media{position:relative}
.inst-hero__media img{aspect-ratio:4/3}
.inst-hero__chip{position:absolute;z-index:3;font-size:12.5px;padding:8px 13px}
.inst-hero__chip--a{top:-14px;left:-6px}
.inst-hero__chip--b{bottom:22%;right:-10px}
.inst-hero__chip--c{bottom:-16px;left:8%}
@media (max-width:899.98px){
  .inst-hero__chip--a{top:-12px;left:0}
  .inst-hero__chip--b{bottom:auto;top:44%;right:0}
  .inst-hero__chip--c{bottom:-14px;left:4%}
}
@media (max-width:479.98px){
  .inst-hero__chip{font-size:11.5px;padding:7px 11px}
  .inst-hero__chip--b{max-width:64%}
  .inst-hero__chip--c{max-width:78%;white-space:normal;border-radius:var(--r-lg)}
}

/* ---------- 2. Why institutes partner ----------------------------- */
.inst-whygrid{align-items:stretch}
.inst-why{display:flex;flex-direction:column;gap:var(--sp-3);height:100%}
.inst-why .card__title{margin:0}
.inst-why .card__body{margin:0}
.inst-why__list{list-style:none;margin:auto 0 0;padding:var(--sp-4) 0 0;border-top:1px solid var(--line-soft);display:flex;flex-direction:column;gap:8px}
.inst-why__list li{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--ink-700);line-height:1.5}
.inst-why__list svg{width:15px;height:15px;color:var(--forest-500);flex:none;margin-top:2px}

.inst-note{
  display:flex;gap:11px;align-items:flex-start;margin:var(--sp-10) auto 0;max-width:86ch;
  padding:var(--sp-4) var(--sp-5);border-radius:var(--r-lg);
  background:var(--surface-warm-2);border:1px solid var(--saffron-100);
  font-size:var(--fs-sm);color:var(--ink-700);line-height:1.6;
}
.inst-note svg{width:18px;height:18px;color:var(--saffron-700);flex:none;margin-top:2px}
.inst-note--warn{background:var(--surface);border-color:var(--line)}

/* ---------- 3. How the partnership works -------------------------- */
.inst-how{margin-bottom:var(--sp-10)}
.inst-how .stepper__body p{margin:0}
@media (min-width:900px){
  .inst-how .stepper__item{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    padding:var(--sp-5);box-shadow:var(--sh-xs);
  }
  .inst-how .stepper__item:not(:last-child)::before{left:auto;right:-10px;width:10px;top:46px}
  /* keep the green confirmation line on the same baseline across the row */
  .inst-how .stepper__body{display:flex;flex-direction:column;flex:1}
  .inst-how .inst-journey__tag{margin-top:auto !important;padding-top:10px}
}
.inst-loop{max-width:82ch;margin-inline:auto}

/* ---------- 4. Who does what, and who pays ------------------------ */
.inst-partner{align-items:stretch}
.inst-partner__card{display:flex;flex-direction:column;gap:var(--sp-4);height:100%}
.inst-partner__card .card__title{margin:0}
.inst-check{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.inst-check li{display:flex;gap:10px;align-items:flex-start;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.6}
.inst-check svg{width:18px;height:18px;color:var(--forest-500);flex:none;margin-top:2px}
.inst-check--ask svg{color:var(--saffron-600)}
.inst-check b{color:var(--ink-800);font-weight:600}
.inst-partner__card .fineprint{margin:auto 0 0;padding-top:var(--sp-4);border-top:1px solid var(--line-soft)}

.inst-money{
  margin-top:var(--sp-10);padding:clamp(20px,2.6vw,34px);
  background:var(--surface-2);border:1px solid var(--forest-100);border-radius:var(--r-xl);
}
.inst-money__h{font-size:var(--fs-h4);margin:0 0 var(--sp-5);color:var(--heading)}
.inst-money__grid{display:grid;gap:var(--sp-4);grid-template-columns:1fr}
@media (min-width:820px){ .inst-money__grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
.inst-money__tile{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:var(--sp-5);display:flex;flex-direction:column;gap:4px;
}
.inst-money__tile--mid{border-color:var(--saffron-200);background:var(--surface-warm)}
.inst-money__who{
  font-size:var(--fs-2xs);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;
  font-weight:700;color:var(--text-subtle);margin:0;
}
.inst-money__amt{
  font-family:var(--font-head);font-weight:700;letter-spacing:var(--ls-head);
  font-size:clamp(1.3rem,1.1rem + .8vw,1.7rem);color:var(--heading);margin:2px 0 4px;line-height:1.1;
}
.inst-money__tile--mid .inst-money__amt{color:var(--saffron-800)}
.inst-money__body{font-size:13.5px;color:var(--text-muted);margin:0;line-height:1.6}

/* ---------- 5. Eligibility ---------------------------------------- */
.inst-elig{align-items:stretch}
.inst-eligcard{display:flex;gap:var(--sp-4);align-items:flex-start;height:100%}
.inst-eligcard>div{display:flex;flex-direction:column;gap:6px}
.inst-eligcard .card__title{margin:0}
.inst-eligcard .card__body{margin:0}
.inst-eligcard__num{
  font-family:var(--font-head);font-weight:700;font-size:20px;line-height:1;
  color:var(--saffron-800);background:var(--saffron-50);border:1px solid var(--saffron-100);
  border-radius:var(--r-md);padding:11px 10px;flex:none;font-variant-numeric:tabular-nums;
}
.inst-eligcard__ask{
  margin:var(--sp-3) 0 0;padding-top:var(--sp-3);border-top:1px dashed var(--line);
  font-size:12.5px;color:var(--forest-700);font-weight:600;line-height:1.5;
}
@media (max-width:479.98px){
  .inst-eligcard{gap:var(--sp-3)}
  .inst-eligcard__num{font-size:17px;padding:9px 8px}
}

/* ---------- 6. Certificates (the one dark band) ------------------- */
.inst-cert{align-items:stretch}

.inst-certcard{
  position:relative;border-radius:var(--r-xl);padding:clamp(20px,2.4vw,30px);
  background:linear-gradient(160deg,#FFFDF8 0%,#FFF6EC 58%,#FFF3E3 100%);
  border:1px solid var(--saffron-200);box-shadow:var(--sh-xl);color:var(--ink-800);
  display:flex;flex-direction:column;gap:var(--sp-3);
}
.inst-certcard::after{
  content:"";position:absolute;inset:9px;border-radius:var(--r-lg);
  border:1px solid var(--saffron-200);pointer-events:none;
}
.inst-certcard>*{position:relative;z-index:1}
.inst-certcard__top{display:flex;gap:var(--sp-3);align-items:center}
.inst-certcard__seal{width:46px;height:46px;flex:none}
.inst-certcard__seal svg{width:100%;height:100%}
.inst-certcard__issuer{font-family:var(--font-head);font-weight:700;font-size:15.5px;color:var(--forest-700) !important;margin:0}
.inst-certcard__sub{font-size:11.5px;color:var(--text-muted) !important;margin:2px 0 0;line-height:1.4}
.inst-certcard__kicker{
  font-size:var(--fs-2xs);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;
  font-weight:700;color:var(--saffron-800) !important;margin:var(--sp-3) 0 0;
}
.inst-certcard__name{
  font-family:var(--font-head);font-weight:700;letter-spacing:var(--ls-head);
  font-size:clamp(1.35rem,1.1rem + 1vw,1.85rem);color:var(--forest-800) !important;margin:2px 0 0;line-height:1.15;
}
.inst-certcard__course{font-size:14.5px;color:var(--ink-700) !important;margin:6px 0 0;font-weight:500;line-height:1.45}
.inst-certcard__meta{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px var(--sp-4);
  margin:var(--sp-4) 0 0;padding-top:var(--sp-4);border-top:1px dashed var(--saffron-200);
}
.inst-certcard__meta dt{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-subtle);font-weight:700}
.inst-certcard__meta dd{margin:2px 0 0;font-size:13px;color:var(--ink-800);font-weight:600;font-variant-numeric:tabular-nums}
.inst-certcard__foot{display:flex;gap:var(--sp-4);align-items:center;margin-top:var(--sp-4)}
.inst-certcard__foot p{font-size:11.5px;color:var(--text-muted) !important;margin:0;line-height:1.5}
@media (max-width:399.98px){
  .inst-certcard__foot{flex-direction:column;align-items:flex-start;gap:var(--sp-3)}
}

.inst-qr{
  display:grid;grid-template-columns:repeat(7,1fr);gap:2px;width:78px;height:78px;flex:none;
  padding:6px;background:#fff;border-radius:var(--r-sm);border:1px solid var(--saffron-200);
}
.inst-qr i{display:block;border-radius:1px;background:var(--forest-800)}
.inst-qr i.o{background:transparent}

.inst-verify{display:flex;flex-direction:column;gap:var(--sp-4)}
.inst-verify__h{font-size:var(--fs-h3);margin:0}
.inst-verify__lead{font-size:var(--fs-sm);line-height:1.6;margin:0}
.inst-verify__form{display:flex;flex-direction:column;gap:var(--sp-4);align-items:flex-start}
.inst-verify__form .field{width:100%;max-width:420px}
.inst-verify .field__label{color:#fff}
.inst-verify .field__hint{color:var(--text-on-dark-muted);font-variant-numeric:tabular-nums}
.inst-verify .input{
  background:rgba(255,255,255,.07);border-color:var(--line-dark);color:#fff;
  letter-spacing:.04em;text-transform:uppercase;
}
.inst-verify .input::placeholder{color:rgba(234,241,231,.45);text-transform:none;letter-spacing:normal}
.inst-verify .input:hover{border-color:var(--saffron-400)}
.inst-verify .input:focus{border-color:var(--saffron-400);box-shadow:0 0 0 3px rgba(240,125,26,.28)}

.inst-verify__out:empty{display:none}
.inst-result{border-radius:var(--r-lg);padding:var(--sp-4) var(--sp-5);border:1px solid var(--line-dark);background:rgba(255,255,255,.05)}
.inst-result--ok{border-color:rgba(139,183,125,.45);background:rgba(95,149,82,.14)}
.inst-result--none{border-color:rgba(245,151,61,.45);background:rgba(240,125,26,.12)}
.inst-result__head{
  display:flex;gap:9px;align-items:center;font-family:var(--font-head);font-weight:700;
  font-size:15px;color:#fff !important;margin:0 0 var(--sp-3);
}
.inst-result__head svg{width:19px;height:19px;flex:none}
.inst-result--ok .inst-result__head svg{color:#B6D4AC}
.inst-result--none .inst-result__head svg{color:var(--saffron-300)}
.inst-result__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px var(--sp-4);margin:0}
@media (max-width:479.98px){ .inst-result__list{grid-template-columns:1fr} }
.inst-result__list dt{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-on-dark-muted);font-weight:700}
.inst-result__list dd{margin:2px 0 0;font-size:13.5px;color:#fff;font-weight:600;line-height:1.4}
.inst-result__foot{font-size:11.5px;margin:var(--sp-3) 0 0 !important;line-height:1.5}
.inst-result p:not(.inst-result__head){font-size:13px;line-height:1.6;margin:0}

.inst-verify__note{display:flex;gap:9px;align-items:flex-start;font-size:12.5px;line-height:1.55;margin:0}
.inst-verify__note svg{width:16px;height:16px;color:var(--saffron-300);flex:none;margin-top:2px}

.inst-certpoints{
  list-style:none;margin:var(--sp-10) 0 0;padding:0;display:grid;gap:var(--sp-4);grid-template-columns:1fr;
}
@media (min-width:700px){ .inst-certpoints{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1100px){ .inst-certpoints{grid-template-columns:repeat(4,minmax(0,1fr))} }
.inst-certpoints li{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;color:var(--text-on-dark-muted)}
.inst-certpoints svg{width:17px;height:17px;color:var(--saffron-400);flex:none;margin-top:2px}
.inst-certpoints b{color:#fff}

/* ---------- 7. What happens to your student ----------------------- */
.inst-journey{margin-bottom:var(--sp-10)}
.inst-journey .stepper__body p{margin:0}
.inst-journey__tag{
  display:flex;gap:7px;align-items:flex-start;margin-top:10px !important;
  font-size:12.5px;color:var(--forest-700);font-weight:600;line-height:1.45;
}
.inst-journey__tag svg{width:15px;height:15px;color:var(--forest-500);flex:none;margin-top:1px}
@media (min-width:900px){
  .inst-journey .stepper__item{
    background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
    padding:var(--sp-5);box-shadow:var(--sh-xs);
  }
  .inst-journey .stepper__item:not(:last-child)::before{left:auto;right:-10px;width:10px;top:46px}
}

.inst-stu{align-items:center}
.inst-stu__copy{display:flex;flex-direction:column;gap:var(--sp-4)}
.inst-stu__h{font-size:var(--fs-h3);margin:0}
.inst-stu__copy p{margin:0;font-size:var(--fs-sm);color:var(--text-muted);line-height:1.7;max-width:62ch}
.inst-stu__fig{margin:0;display:flex;flex-direction:column;gap:var(--sp-3)}
.inst-stu__fig img{
  width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  border-radius:var(--r-xl);border:1px solid var(--line);box-shadow:var(--sh-lg);
}
.inst-stu__fig figcaption{margin:0}

/* ---------- 8. Course listings ------------------------------------ */
.inst-list{align-items:start}
.inst-list__steps{display:flex;flex-direction:column;gap:var(--sp-6)}
.inst-list__cards{display:flex;flex-direction:column;gap:var(--sp-4)}
.inst-course-grid{display:grid;gap:var(--sp-4);grid-template-columns:1fr}
@media (min-width:560px) and (max-width:899.98px){ .inst-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1180px){ .inst-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
.inst-featured .card__title{margin-top:0}

/* ---------- 9. Outcome summary ------------------------------------ */
.inst-panel{
  background:#fff;border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:var(--sp-4);
  display:flex;flex-direction:column;gap:var(--sp-3);
}
.inst-panel__head{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center;justify-content:space-between}
.inst-panel__title{font-size:14.5px;margin:0;color:var(--heading)}
.inst-panel__foot{font-size:11.5px;color:var(--text-subtle);margin:auto 0 0;padding-top:var(--sp-2);line-height:1.5}

.inst-report__grid{display:grid;gap:var(--sp-4);grid-template-columns:1fr}
@media (min-width:1024px){ .inst-report__grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
.inst-report__stats{
  display:grid;gap:var(--sp-4);grid-template-columns:repeat(2,minmax(0,1fr));
  background:var(--surface-warm);border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:var(--sp-5);
}
@media (min-width:1024px){ .inst-report__stats{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (max-width:399.98px){ .inst-report__stats{grid-template-columns:1fr} }

.inst-recruiters{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.inst-recruiters li{display:flex;gap:var(--sp-3);align-items:center;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.inst-recruiters li:last-child{border-bottom:0}
.inst-recruiters__body{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.inst-recruiters__body b{font-size:13.5px;color:var(--ink-800);font-weight:600;line-height:1.35}
.inst-recruiters__body span{font-size:11.5px;color:var(--text-muted);line-height:1.45}
.inst-recruiters .badge{flex:none}
@media (max-width:479.98px){
  .inst-recruiters li{flex-wrap:wrap}
  .inst-recruiters .badge{margin-left:42px}
}
.inst-honest{margin-top:var(--sp-8)}
.inst-honest .card{height:100%}

/* ---------- 10. FAQ ----------------------------------------------- */
.inst-faq{display:grid;gap:clamp(28px,4vw,56px);grid-template-columns:1fr;align-items:start}
@media (min-width:900px){ .inst-faq{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)} }
.inst-faq__aside .lead{max-width:44ch}
@media (min-width:900px){ .inst-faq__aside{position:sticky;top:calc(var(--header-h) + 24px)} }

/* ---------- 11. Partner application ------------------------------- */
.inst-apply{display:grid;gap:clamp(24px,3vw,44px);grid-template-columns:1fr;align-items:start}
@media (min-width:1024px){ .inst-apply{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr)} }
.inst-apply__form{padding:clamp(20px,2.6vw,36px)}
@media (max-width:599.98px){ .inst-apply__form .form-grid{grid-template-columns:1fr} }
.inst-apply__side{display:flex;flex-direction:column;gap:var(--sp-6)}
.inst-apply__h{font-size:var(--fs-h4);margin:0}
.inst-apply__contact{padding:var(--sp-5)}
.inst-contact{list-style:none;margin:0 0 var(--sp-4);padding:0;display:flex;flex-direction:column;gap:var(--sp-4)}
.inst-contact li{display:flex;gap:var(--sp-3);align-items:center}
.inst-contact li>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}
.inst-contact b{font-size:14px;color:var(--ink-800);font-weight:600}
.inst-contact li>span:last-child>span{font-size:11.5px;color:var(--text-muted)}
.inst-contact a{font-size:13.5px;font-weight:600;color:var(--saffron-800);text-decoration:none}
.inst-contact a:hover{text-decoration:underline}
.inst-apply__contact .fineprint{line-height:1.6}
.inst-apply__contact .fineprint+.fineprint{margin-top:var(--sp-3)}

/* ---------- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .inst-hero__chip{transition:none}
}
