@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("assets/fonts/Rubik-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --violet: #412C72;
  --night: #191032;
  --gold: #F2BA0F;
  --orange: #FF8A1F;
  --lilac: #B9A8F0;
  --sky: #CFE4FF;
  --paper: #FAF7F0;
  --cream: #F4EEDC;
  --lavender: #EEEAF6;
  --mint: #DFF5EA;
  --text: #2A2140;
  --muted: #5F5878;
  --radius: 20px;
  --shadow: 0 18px 40px -20px rgba(25, 16, 50, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  background-color: #FAF7F0;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--violet); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 14px 26px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--night); }
.btn-accent { background: var(--orange); color: var(--night); font-weight: 700; }
.btn-accent:hover { background: #ff7d05; }
.btn-ghost { color: var(--violet); border-color: var(--violet); background: transparent; }
.btn-ghost:hover { background: var(--lavender); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(65, 44, 114, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--violet); font-size: 1.1rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--text); padding: 6px 0; }
.nav-links a:hover { color: var(--violet); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--violet); border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--lavender), var(--paper)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--lavender); color: var(--violet); font-size: .9rem; font-weight: 600; margin-bottom: 18px;
}
.badge-light { background: var(--lavender); }
.accent { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-visual {
  background: var(--violet); border-radius: 32px; padding: 24px;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.hero-visual img { width: 100%; max-width: 460px; border-radius: 20px; }

/* Features */
.features { padding: 24px 0 56px; background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px 22px;
  border: 1px solid rgba(65, 44, 114, .08); box-shadow: 0 6px 20px -16px rgba(25,16,50,.3);
}
.feature img { margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--lavender); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--orange); margin-bottom: 8px; }
.eyebrow-light { color: var(--gold); }

/* Subjects */
.subject-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subject {
  background: #fff; border-radius: 16px; padding: 22px 16px; text-align: center;
  font-weight: 600; color: var(--violet); border: 1px solid rgba(65,44,114,.1);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.subject:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lilac); }

/* Teachers */
.teacher-featured {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center;
  background: #fff; border-radius: 24px; padding: 24px; margin-bottom: 40px;
  box-shadow: 0 10px 30px -22px rgba(25,16,50,.4);
}
.teacher-photo { background: var(--violet); border-radius: 18px; overflow: hidden; display: flex; justify-content: center; }
.teacher-photo img { width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: bottom; }
.teacher-info h3 { font-size: 1.6rem; font-weight: 700; margin: 10px 0 8px; }
.teacher-info p { color: var(--muted); }
.teacher-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.teacher-group {
  background: #fff; border-radius: var(--radius); padding: 20px 22px;
  border-inline-start: 4px solid var(--violet);
}
.teacher-group h3 { font-size: 1.05rem; margin-bottom: 8px; }
.teacher-group ul { list-style: none; padding: 0; margin: 0; }
.teacher-group li { padding: 6px 0; border-top: 1px solid rgba(65,44,114,.08); color: var(--text); font-size: .97rem; }
.teacher-group li:first-child { border-top: 0; }
.teacher-group small { color: var(--muted); }

/* Download */
.download { background: var(--violet); color: #fff; }
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,.85); }
.download-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.download-icon { display: grid; place-items: center; }
.download-icon img { border-radius: 40px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); width: 180px; height: 180px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 24px; text-align: center;
  border: 1px solid rgba(65,44,114,.1); transition: transform .15s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card strong { color: var(--violet); font-size: 1.1rem; }
.contact-card span { color: var(--muted); }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.social-row a {
  padding: 10px 18px; border-radius: 999px; background: var(--lavender);
  color: var(--violet); font-weight: 600; font-size: .95rem;
}
.social-row a:hover { background: var(--lilac); }

/* Footer */
.site-footer { background: var(--night); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 0; color: #fff; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--gold); }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: rgba(255,255,255,.6); }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-groups { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 72px;
    flex-direction: column; gap: 0; background: var(--paper);
    padding: 8px 16px 16px; border-bottom: 1px solid rgba(65,44,114,.1);
    box-shadow: 0 16px 30px -20px rgba(25,16,50,.4);
  }
  .nav-links a { padding: 12px 4px; border-top: 1px solid rgba(65,44,114,.08); }
  .nav-links.open { display: flex; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: flex; }
  .site-header { position: sticky; }

  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { padding: 16px; }
  .cta-row .btn { flex: 1 1 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .teacher-featured { grid-template-columns: 1fr; padding: 16px; }
  .teacher-groups { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; text-align: center; }
  .store-row { justify-content: center; }
  .store-row .btn { flex: 1 1 100%; }
  .download-icon { order: -1; }
  .section { padding: 56px 0; }
}

/* Teacher cards (index) */
.t-group { margin-bottom: 44px; }
.t-group > h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--violet);
  padding-inline-start: 14px; border-inline-start: 4px solid var(--orange);
  margin-bottom: 18px;
}
.t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.t-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(65,44,114,.1); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lilac); }
.t-photo {
  aspect-ratio: 4 / 5; background: var(--violet); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.t-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.t-body strong { color: var(--violet); font-size: 1rem; line-height: 1.5; }
.t-body span { color: var(--muted); font-size: .88rem; }

.initials {
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold);
  color: var(--night); font-weight: 800; font-size: 1.6rem;
  display: grid; place-items: center;
}
.t-photo .initials { width: 96px; height: 96px; font-size: 1.9rem; }
.initials-lg { width: 160px; height: 160px; font-size: 3.2rem; }
.mini .initials { width: 44px; height: 44px; font-size: 1rem; }

/* Teacher profile page */
.profile-section { padding: 40px 0 64px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--violet); }
.crumbs strong { color: var(--violet); }
.profile {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center;
  background: #fff; border-radius: 28px; padding: 28px;
  box-shadow: 0 10px 30px -22px rgba(25,16,50,.4);
}
.profile-photo {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--violet);
  display: grid; place-items: center;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 12px; }
.profile-info .lead { color: var(--muted); }
.h-small { font-size: 1.4rem; margin-bottom: 18px; }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.other-item {
  background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(65,44,114,.1); transition: transform .15s ease, box-shadow .2s ease;
}
.other-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.other-item .mini { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 44px; background: var(--violet); display: grid; place-items: center; }
.other-item .mini img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.other-item strong { color: var(--violet); font-size: .98rem; }
.back { margin-top: 4px; }

@media (max-width: 960px) {
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .t-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .t-body { padding: 10px 12px 14px; }
  .t-body strong { font-size: .92rem; }
  .profile { grid-template-columns: 1fr; padding: 16px; gap: 24px; }
  .profile-photo { max-width: 340px; margin: 0 auto; width: 100%; }
  .other-grid { grid-template-columns: 1fr; }
}

/* Teacher facts (from old site) */
.facts { margin: 22px 0 6px; display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(65,44,114,.1); }
.facts dt { font-weight: 600; color: var(--violet); }
.facts dd { margin: 0; color: var(--text); }
.profile-info .cta-row { margin-top: 18px; }
@media (max-width: 760px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* ===== Template 3 · جذور ورقية (applied to home page) ===== */
.ed-wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.ed-hero { padding: 64px 0 40px; }
.ed-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ed-kicker { color: var(--orange); font-weight: 700; font-size: .95rem; }
.ed-hero h1 { color: var(--violet); font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.15; margin: 10px 0 18px; }
.ed-hero h1 em { font-style: normal; background: var(--gold); padding: 0 .15em; border-radius: 6px; }
.ed-lead { color: var(--muted); font-size: 1.12rem; max-width: 30em; }
.ed-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.ed-btn { padding: 14px 26px; border-radius: 999px; font-weight: 700; display: inline-block; }
.ed-btn-solid { background: var(--violet); color: #fff; }
.ed-btn-solid:hover { background: var(--night); }
.ed-btn-line { border: 2px solid var(--violet); color: var(--violet); }
.ed-btn-line:hover { background: var(--lavender); }
.ed-art { background: var(--cream); border-radius: 40px; padding: 30px; display: grid; place-items: center; min-height: 340px; position: relative; overflow: hidden; }
.ed-trunk { width: 86%; }
.ed-badge { position: absolute; bottom: 22px; right: 22px; background: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: 0 14px 30px -18px rgba(25,16,50,.4); font-weight: 700; color: var(--violet); font-size: .95rem; }

.ed-section { padding: 72px 0; }
.ed-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.ed-head h2 { font-size: 2.2rem; font-weight: 900; color: var(--violet); margin: 0; }
.ed-head p { color: var(--muted); margin: 0; max-width: 28em; }
.ed-stages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--violet); }
.ed-stage { padding: 28px 24px 30px; border-inline-start: 1px solid rgba(65,44,114,.12); }
.ed-stage:first-child { border: 0; }
.ed-num { font-size: 3rem; font-weight: 900; color: var(--lilac); line-height: 1; }
.ed-stage h3 { font-size: 1.4rem; color: var(--violet); margin: 12px 0 6px; font-weight: 700; }
.ed-stage p { color: var(--muted); margin: 0; }

.ed-roadmap { background: var(--violet); color: #fff; border-radius: 36px; padding: 60px 48px; }
.ed-head-light h2 { color: #fff; }
.ed-head-light p { color: rgba(255,255,255,.75); }
.ed-vert { display: grid; position: relative; max-width: 620px; }
.ed-vert:before { content: ""; position: absolute; right: 21px; top: 10px; bottom: 10px; width: 2px; background: rgba(255,255,255,.25); }
.ed-vs { display: flex; gap: 22px; padding: 14px 0; position: relative; }
.ed-c { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-weight: 900; flex: 0 0 44px; z-index: 1; }
.ed-vs h3 { margin: 4px 0 2px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.ed-vs p { margin: 0; color: rgba(255,255,255,.75); }

.ed-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ed-faq details { border-top: 2px solid var(--violet); padding: 18px 0; background: none; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.ed-faq summary { cursor: pointer; font-weight: 700; color: var(--violet); font-size: 1.12rem; }
.ed-faq details p { color: var(--muted); margin: 10px 0 0; }

@media (max-width: 860px) {
  .ed-hero-grid { grid-template-columns: 1fr; }
  .ed-stages { grid-template-columns: 1fr; }
  .ed-stage { border: 0; border-top: 1px solid rgba(65,44,114,.12); }
  .ed-faq { grid-template-columns: 1fr; }
  .ed-roadmap { padding: 36px 24px; }
}

/* ===== Template 2 · ليلي أنيق (applied site-wide) ===== */
body.night {
  --paper: #191032;
  --lavender: #221743;
  --text: #EDE9FA;
  --muted: #A9A1C8;
  background: #191032;
  color: var(--text);
}
body.night h1, body.night h2, body.night h3 { color: #fff; }
body.night .site-header { background: rgba(25,16,50,.85); border-bottom-color: rgba(255,255,255,.08); }
body.night .brand { color: #fff; }
body.night .nav-links a { color: #D9D2F2; }
body.night .nav-links a:hover { color: var(--gold); }
body.night .menu-btn span { background: #fff; }
body.night .nav-links { background: #191032; border-bottom-color: rgba(255,255,255,.08); }
body.night .nav-links a { border-top-color: rgba(255,255,255,.08); }
body.night .hero, body.night .features { background: transparent; }
body.night .section-soft { background: #1E1440; }
body.night .section-head p, body.night .lead, body.night .feature p, body.night .teacher-info p, body.night .contact-card span { color: var(--muted); }
body.night .feature, body.night .subject, body.night .t-card, body.night .teacher-group, body.night .contact-card, body.night .other-item, body.night .profile, body.night .teacher-featured {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none;
}
body.night .teacher-featured, body.night .profile { backdrop-filter: blur(10px); }
body.night .subject { color: #fff; }
body.night .subject:hover, body.night .t-card:hover, body.night .contact-card:hover { border-color: var(--lilac); }
body.night .t-body strong, body.night .teacher-group h3, body.night .other-item strong, body.night .contact-card strong, body.night .teacher-info h3, body.night .profile-info h1 { color: #fff; }
body.night .t-body span, body.night .teacher-group small { color: var(--muted); }
body.night .teacher-group li { color: #E4DEF6; border-top-color: rgba(255,255,255,.08); }
body.night .t-group > h3 { color: #fff; }
body.night .t-photo { background: #2a1a52; }
body.night .initials { background: var(--gold); }
body.night .badge, body.night .badge-light { background: rgba(185,168,240,.15); color: var(--lilac); }
body.night .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
body.night .btn-ghost:hover { background: rgba(255,255,255,.08); }
body.night .social-row a { background: rgba(255,255,255,.07); color: #fff; }
body.night .social-row a:hover { background: rgba(185,168,240,.25); }
body.night .crumbs { color: var(--muted); }
body.night .crumbs strong, body.night .crumbs a:hover { color: #fff; }
body.night .facts > div { border-top-color: rgba(255,255,255,.1); }
body.night .facts dt { color: var(--lilac); }
body.night .facts dd { color: #E4DEF6; }
body.night .profile-photo, body.night .teacher-photo { background: #2a1a52; }
body.night .download { background: linear-gradient(135deg, #412C72, #2a1a52); }
body.night .site-footer { background: #0f0a1f; }
body.night .copy { border-top-color: rgba(255,255,255,.08); }

/* Night hero */
.nt-hero { position: relative; overflow: hidden; padding: 90px 0 60px; text-align: center; }
.nt-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: 0; pointer-events: none; }
.nt-orb-a { width: 460px; height: 460px; background: #412C72; top: -160px; right: -120px; }
.nt-center { position: relative; z-index: 1; }
.nt-tag { display: inline-block; font-size: .85rem; padding: 6px 14px; border-radius: 999px; background: rgba(242,186,15,.15); color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.nt-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.2; margin: 14px 0; background: linear-gradient(90deg, #fff, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nt-lead { color: var(--muted); max-width: 36em; margin: 0 auto 26px; font-size: 1.08rem; }
.nt-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nt-btn { display: inline-block; padding: 14px 26px; border-radius: 14px; font-weight: 600; }
.nt-btn-main { background: var(--orange); color: var(--night); font-weight: 700; }
.nt-btn-main:hover { background: #ff7d05; }
.nt-btn-line { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.nt-btn-line:hover { background: rgba(255,255,255,.08); }

.nt-section { padding: 72px 0; }
.nt-h2 { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 24px; }
.nt-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nt-glass { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); border-radius: 24px; padding: 26px; }
.nt-big { grid-column: span 2; grid-row: span 2; }
.nt-glass h3 { margin: 8px 0 6px; font-size: 1.25rem; color: #fff; }
.nt-glass p { color: var(--muted); margin: 0; font-size: .95rem; }

.nt-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.nt-timeline:before { content: ""; position: absolute; top: 26px; right: 10%; left: 10%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--lilac), var(--orange)); }
.nt-step { text-align: center; position: relative; }
.nt-dot { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; background: #191032; border: 2px solid var(--lilac); display: grid; place-items: center; font-weight: 900; color: var(--lilac); }
.nt-step h3 { color: #fff; }
.nt-step p { color: var(--muted); margin: 0; font-size: .95rem; }

.nt-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nt-faq details { border-radius: 18px; padding: 18px 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.nt-faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.nt-faq details p { color: var(--muted); margin: 8px 0 0; }

@media (max-width: 860px) {
  .nt-bento { grid-template-columns: 1fr 1fr; }
  .nt-big { grid-column: span 2; grid-row: auto; }
  .nt-timeline { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nt-timeline:before { display: none; }
  .nt-faq { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nt-bento { grid-template-columns: 1fr; }
  .nt-big { grid-column: auto; }
  .nt-timeline { grid-template-columns: 1fr; }
}

/* ===== Motion (home page) ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.nt-tag, .nt-hero h1, .nt-lead, .nt-cta { animation: fadeUp .8s ease both; }
.nt-hero h1 { animation-delay: .12s; }
.nt-lead { animation-delay: .24s; }
.nt-cta { animation-delay: .36s; }
.nt-hero h1 { background-size: 200% 100%; animation: fadeUp .8s ease .12s both, shimmer 7s linear 1s infinite alternate; }
.nt-orb-a { animation: drift 14s ease-in-out infinite; }
.nt-btn-main { box-shadow: 0 10px 30px -10px rgba(255,138,31,.6); transition: transform .2s ease, box-shadow .2s ease; }
.nt-btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255,138,31,.75); }
.ed-trunk, .nt-hero .nt-center { will-change: transform; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="pop"] { transform: scale(.94); }
[data-reveal="pop"].in { transform: none; }
.nt-timeline .nt-step.in .nt-dot { animation: pop .5s ease both; }

/* teacher cards: gentle float on hover */
.t-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Brand symbols floating in the hero background ===== */
.nt-symbols { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nt-symbols .sym { position: absolute; display: block; will-change: transform; }
.sym-1 { width: 520px; top: -30px; left: -270px; opacity: .18; animation: symDriftAFlip 26s ease-in-out infinite; }
.sym-2 { width: 340px; bottom: -50px; right: -110px; opacity: .14; animation: symDriftB 30s ease-in-out infinite; }
.sym-3 { width: 70px; top: 24%; right: 9%; opacity: .6; animation: symBob 7s ease-in-out infinite; }
.sym-4 { width: 46px; bottom: 20%; left: 12%; opacity: .5; animation: symBob 9s ease-in-out -3s infinite; }
.sym-5 { width: 28px; top: 14%; left: 22%; opacity: .7; animation: symBob 5.5s ease-in-out -1s infinite; }
.sym-6 { width: 260px; top: 62%; left: 50%; margin-left: -130px; opacity: .14; animation: symSway 18s ease-in-out infinite; }
@keyframes symDriftA { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(70px,34px) rotate(3deg); } }
@keyframes symDriftB { 0%,100% { transform: translate(0,0) rotate(3deg); } 50% { transform: translate(-60px,-28px) rotate(-3deg); } }
@keyframes symBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(8deg); } }
@keyframes symSway { 0%,100% { transform: translateX(0) rotate(-2deg); } 50% { transform: translateX(40px) rotate(2deg); } }
@media (max-width: 760px) { .sym-1 { width: 330px; left: -200px; } .sym-2 { width: 220px; } .sym-6 { width: 180px; margin-left: -90px; } }

/* Brand symbol tweaks: mirrored jeem, and soft fade on the trunk's flat end */
.sym-5 { transform: scaleX(-1); animation-name: symBobFlip; }
@keyframes symBobFlip { 0%,100% { transform: scaleX(-1) translateY(0) rotate(0deg); } 50% { transform: scaleX(-1) translateY(-20px) rotate(8deg); } }
.sym-2 { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 22%); mask-image: linear-gradient(to left, transparent 0%, #000 22%); }
@keyframes symDriftAFlip { 0%,100% { transform: scaleX(-1) translate(0,0) rotate(-4deg); } 50% { transform: scaleX(-1) translate(70px,34px) rotate(3deg); } }

/* ===== Social icon tiles (app-style, brand colors) ===== */
.social-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.social-ico {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #412C72, #2a1a52); color: #fff;
  border: 1px solid rgba(185,168,240,.35);
  box-shadow: 0 12px 26px -14px rgba(65,44,114,.95), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.social-ico svg { width: 26px; height: 26px; }
.social-ico:hover { transform: translateY(-4px) rotate(-3deg); background: linear-gradient(145deg, #F2BA0F, #FF8A1F); color: #191032; box-shadow: 0 18px 30px -14px rgba(242,186,15,.7); }
.social-ico:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.social-ico svg { overflow: visible; }
/* the old pill rule for .social-row a added padding; reset it for icon tiles */
.social-row .social-ico { padding: 0; font-size: 0; box-sizing: border-box; }
