/* IT ot rebyat • v3. Real educational photography, compact layout.
   Homepage only. Login, admin, classrooms and portal are unaffected. */
body.kt3-home { --kt3-blue: #145be5; --kt3-photo-border: rgba(109,132,176,.18); }
body.kt3-home :is(main,.main-content) :is(h1,h2,h3) { letter-spacing: -.028em; text-wrap: balance; }
body.kt3-home :is(main,.main-content) h1 { line-height:1.08; font-size:clamp(2.6rem,4.6vw,4.5rem); }
body.kt3-home :is(main,.main-content) h2 { line-height:1.18; font-size:clamp(1.65rem,2.8vw,2.45rem); }
body.kt3-home :is(main,.main-content) p { line-height:1.58; }
body.kt3-home :is(main,.main-content) :is(.container,.wrap,.content-width,.section-inner) { max-width:1220px; }
/* Keep the page airy without the v1 gigantic section spacings. */
body.kt3-home :is(main,.main-content) > section,
body.kt3-home :is(main,.main-content) > .container > section,
body.kt3-home :is(main,.main-content) > .wrap > section {
  padding-block:clamp(34px,4vw,62px) !important;
  margin-block:0 !important;
  scroll-margin-top:76px;
}
body.kt3-home .kt3-hero { min-height:0 !important; height:auto !important; padding-block:clamp(28px,3.6vw,48px) !important; }
body.kt3-home .kt3-hero :is(h1) { max-width:18ch; margin-bottom:16px; }
body.kt3-home .kt3-hero :is(.hero-actions,.hero-buttons,.actions,.cta-group,.buttons) { margin-top:18px; gap:10px; }
body.kt3-home .kt3-hero :is(.hero-stats,.hero-metrics,.hero-badges,.hero-chips,.hero-features,.trust-points) { margin-top:18px; gap:9px; }
/* Authentic uploaded photos. Existing link and card structure are preserved. */
body.kt3-home img.kt3-real-photo { display:block; width:100%; height:180px; max-height:180px; object-fit:cover; object-position:center 28%; border-radius:13px; background:#edf1f6; }
body.kt3-home img.kt3-real-photo[data-kt3-type="robotics"] { object-position:center 33%; }
body.kt3-home img.kt3-real-photo[data-kt3-type="programming"] { object-position:center 23%; }
body.kt3-home img.kt3-real-photo[data-kt3-type="design"] { object-position:center 23%; }
body.kt3-home img.kt3-real-photo[data-kt3-type="hero"] {
  width:100%; height:clamp(315px,31vw,440px); max-height:440px;
  object-fit:cover; object-position:center 29%;
  border:1px solid var(--kt3-photo-border); border-radius:22px;
  box-shadow:0 12px 38px rgba(18,41,80,.08);
}
/* Hide old caption describing stock mockups, but only on the hero. */
body.kt3-home .kt3-old-hero-caption { display:none !important; }
/* Optional video appears only after /static/kidteach-real-v3/registration-guide.mp4 is uploaded. */
body.kt3-home .kt3-registration-video {max-width:1220px;margin:0 auto;padding:42px 24px;display:grid;grid-template-columns:.72fr 1fr;align-items:center;gap:clamp(24px,4vw,54px)}
body.kt3-home .kt3-registration-video .kt3-overline {font-size:.79rem;letter-spacing:.075em;text-transform:uppercase;font-weight:700;color:var(--kt3-blue)}
body.kt3-home .kt3-registration-video h2 {margin:12px 0 12px}
body.kt3-home .kt3-registration-video p {max-width:40ch;color:#65718a}
body.kt3-home .kt3-registration-video video {display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:18px;background:#132137;border:1px solid var(--kt3-photo-border)}
@media (max-width:900px) {
 body.kt3-home :is(main,.main-content) > section,
 body.kt3-home :is(main,.main-content) > .container > section,
 body.kt3-home :is(main,.main-content) > .wrap > section {padding-block:clamp(26px,5vw,42px)!important}
 body.kt3-home img.kt3-real-photo {height:170px;max-height:170px}
 body.kt3-home img.kt3-real-photo[data-kt3-type="hero"] {height:340px;max-height:340px}
 body.kt3-home .kt3-registration-video {grid-template-columns:1fr}
}
@media (max-width:620px) {
 body.kt3-home img.kt3-real-photo {height:210px;max-height:210px}
 body.kt3-home img.kt3-real-photo[data-kt3-type="hero"] {height:310px;max-height:310px;object-position:center 26%;border-radius:18px}
 body.kt3-home .kt3-registration-video {padding:30px 18px}
}
/* Dark theme respects existing site theme selectors. */
:is([data-theme="dark"],.dark,.theme-dark) body.kt3-home img.kt3-real-photo,
body.kt3-home:is(.dark,.theme-dark,[data-theme="dark"]) img.kt3-real-photo {background:#18243b;border-color:#2d3b56}
:is([data-theme="dark"],.dark,.theme-dark) body.kt3-home .kt3-registration-video p,
body.kt3-home:is(.dark,.theme-dark,[data-theme="dark"]) .kt3-registration-video p {color:#b2bfd6}
