/* ==========================================================
   SHIN NIHONGO GAKKO — DESIGN SYSTEM
   Palette: Shu (deep hanko crimson) + Washi (paper) + Kin (gold accent)
   Signature: vertical Japanese text rails + a public "ledger"
   treatment for the transparency/stats sections.
   ========================================================== */

:root {
  --ai:         #7A1220;   /* primary deep crimson (was navy) */
  --ai-dark:    #4A0B14;   /* darker maroon for gradients/dark bg */
  --ai-tint:    #F8E8E9;   /* light rose tint */
  --washi:      #FFFFFF;   /* page background — plain white */
  --washi-alt:  #FBF4F2;
  --sumi:       #241615;   /* ink / body text (warm near-black) */
  --sumi-soft:  #6E5250;
  --shu:        #C81E3A;   /* bright hanko red accent for buttons/CTAs */
  --shu-dark:   #9E1530;
  --danger:     #C2601C;   /* burnt orange for rejected/error states (kept distinct from primary red) */
  --danger-tint:#FBEADA;
  --matcha:     #3C7A5C;   /* success green */
  --matcha-tint:#E4F0EA;
  --line:       #EFDEDD;   /* hairline rule color */
  --line-dark:  rgba(255,255,255,0.14);

  --font-display: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Noto Sans Bengali', 'Inter', sans-serif;
  --font-body: 'Inter', 'Noto Sans Bengali', 'Noto Sans JP', sans-serif;

  --radius: 4px;
  --shadow-card: 0 2px 18px rgba(122,18,32,0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sumi);
  background: var(--washi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ai-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shu);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--shu);
  display: inline-block;
}

/* ---------- Vertical Japanese signature rail ---------- */
.jp-rail {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--ai);
  opacity: 0.55;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: inherit; }
.btn-outline-dark { background: transparent; border-color: var(--ai); color: var(--ai); }
.btn-ghost { background: var(--ai-tint); color: var(--ai-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #4A0B14;
  box-shadow: 0 3px 18px rgba(74,11,20,0.22);
}
.header-row { display: flex; align-items: center; justify-content: flex-start; height: 200px; gap: 44px; }
.logo { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.logo-mark {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.logo-img { height: 148px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-line1 { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: #fff; letter-spacing: -0.01em; }
.logo-line2 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em; color: #F0C36D; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 30px; flex-wrap: nowrap; }
.main-nav a {
  font-weight: 600; font-size: 1.03rem; color: rgba(255,255,255,0.86); position: relative;
  padding: 8px 0; white-space: nowrap; transition: color 0.2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: #F0C36D; transition: width 0.25s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-toggle-btn { padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; }
.lang-toggle-btn:hover { background: var(--ai-tint); }

/* Hide Google Translate's default banner/toolbar clutter, keep only our own button */
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }
.header-cta a.hide-mobile { color: rgba(255,255,255,0.9) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: #fff; }

/* Dropdown submenu (desktop: hover, mobile: tap) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; font-family: inherit; font-weight: 600; font-size: 1.03rem;
  color: rgba(255,255,255,0.86); cursor: pointer; padding: 8px 0; display: flex; align-items: center; gap: 4px;
  position: relative; transition: color 0.2s ease; white-space: nowrap;
}
.nav-dropdown-toggle::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: #F0C36D; transition: width 0.25s ease;
}
.nav-dropdown-toggle .caret { font-size: 0.7rem; transition: transform 0.15s ease; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: #fff; }
.nav-dropdown-toggle:hover::after, .nav-dropdown-toggle.active::after { width: 100%; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -14px; margin-top: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); min-width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu a { display: block; padding: 10px 14px; border-radius: 4px; font-size: 0.95rem; color: var(--sumi); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--washi-alt); color: var(--ai); }

.mobile-apply-btn { display: none; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 108px 0 0 0; background: var(--washi); flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a, .nav-dropdown-toggle { color: var(--sumi); }
  .main-nav a:hover, .main-nav a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--ai); }
  .main-nav a::after, .nav-dropdown-toggle::after { background: var(--ai); }
  .nav-toggle { display: block; }
  .header-cta .btn.btn-primary { display: none; }
  .mobile-apply-btn { display: inline-flex; margin-top: 8px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 4px 0 0 12px; margin-top: 6px; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .header-row { height: 108px; justify-content: space-between; gap: 12px; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo-text { min-width: 0; overflow: hidden; }
  .logo-line1, .logo-line2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-cta { flex-shrink: 0; }
  .logo-img { height: 72px; }
  .logo-line1 { font-size: 1.3rem; }
  .logo-line2 { font-size: 0.75rem; }
}

/* ---------- Hero Slider (big, animated, first thing on the page) ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 560px;
  border-bottom: 1px solid var(--line);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 1.4s ease, visibility 1.1s;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-slide-bg-1, .hero-slide-bg-2, .hero-slide-bg-3, .hero-slide-bg-4 { background: #fff; }
.hero-slide .container { position: relative; z-index: 3; width: 100%; }
.hero-slide-inner { max-width: 720px; }
.hero-slide .jp-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--shu); margin-bottom: 18px;
  opacity: 0; transform: translateY(14px);
}
.hero-slide h1, .hero-slide h2 {
  color: var(--ai-dark); font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 18px;
  opacity: 0; transform: translateY(18px);
}
.hero-slide p.lead {
  color: var(--sumi-soft); font-size: 1.08rem; max-width: 50ch; margin-bottom: 30px;
  opacity: 0; transform: translateY(18px);
}
.hero-slide .hero-cta-row { opacity: 0; transform: translateY(18px); }
.hero-slide.active .jp-tag { animation: heroRise 0.8s ease 0.15s forwards; }
.hero-slide.active h1, .hero-slide.active h2 { animation: heroRise 0.9s ease 0.3s forwards; }
.hero-slide.active p.lead { animation: heroRise 0.9s ease 0.45s forwards; }
.hero-slide.active .hero-cta-row { animation: heroRise 0.9s ease 0.6s forwards; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.hero-slide-decor {
  position: absolute; border-radius: 50%; opacity: 0.08; background: var(--ai); pointer-events: none;
}
.hero-slide-decor.d1 { width: 340px; height: 340px; top: -140px; right: -80px; }
.hero-slide-decor.d2 { width: 220px; height: 220px; bottom: -110px; right: 12%; background: var(--shu); opacity: 0.1; }

.hero-slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6.5s ease;
}
.hero-slide.active .hero-slide-photo { opacity: 1; transform: scale(1); }
.hero-slide-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.90) 32%, rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.12) 78%, rgba(255,255,255,0) 100%);
}
.hero-slide.has-photo .container { z-index: 3; }
@media (max-width: 700px) {
  .hero-slide-photo-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.93) 55%, rgba(255,255,255,0.98) 100%); }
}

.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: none; cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.hero-dot.active { background: var(--ai); width: 26px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--washi-alt); color: var(--ai-dark); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: var(--ai-tint); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
@media (max-width: 700px) { .hero-arrow { display: none; } .hero-slider { height: 620px; } }

/* Live ledger snapshot shown under the slider on desktop */
.hero-ledger-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }

/* ---------- Success photo slider card (replaces old stats block) ---------- */
.success-photo-card { display: flex; flex-direction: column; height: 100%; }
.success-slide-wrap { position: relative; flex: 1 1 auto; min-height: 300px; background: var(--washi-alt); overflow: hidden; }
.success-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 6.5s ease;
  pointer-events: none;
  z-index: 1;
}
.success-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; z-index: 2; }
.success-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.success-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(0deg, rgba(74,11,20,0.88), rgba(74,11,20,0));
  color: #fff;
}
.success-slide-caption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.success-slide-caption span { font-size: 0.78rem; opacity: 0.88; }
.success-slide-dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 7px; z-index: 3; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; padding: 0; transition: background 0.25s ease, transform 0.25s ease; }
.s-dot.active { background: #fff; transform: scale(1.25); }
.success-slide-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: var(--sumi-soft); text-align: center; padding: 20px;
}
.success-slide-empty .icon { font-size: 2rem; margin-bottom: 8px; }
@media (max-width: 700px) { .success-slide-wrap { min-height: 240px; } }

/* ---------- Ledger card (transparency signature element) ---------- */
.ledger-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(74,11,20,0.1);
  overflow: hidden;
  position: relative;
  animation: ledgerIn 0.9s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ledger-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(74,11,20,0.16); }
@keyframes ledgerIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ledger-head {
  background: linear-gradient(120deg, var(--ai-dark), var(--ai) 75%);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.ledger-head::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
  animation: ledgerShine 4.5s ease-in-out infinite;
}
@keyframes ledgerShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.ledger-head .stamp {
  width: 34px; height: 34px; border: 2px solid var(--shu); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--shu); font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  transform: rotate(-6deg);
  position: relative; z-index: 2;
  animation: stampPulse 2.6s ease-in-out infinite;
}
@keyframes stampPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,30,58,0.45); }
  50% { box-shadow: 0 0 0 7px rgba(200,30,58,0); }
}
.ledger-body { padding: 22px; }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 10px; margin: 0 -10px; border-bottom: 1px dashed var(--line); border-radius: 6px; transition: background 0.2s ease; }
.ledger-row:hover { background: var(--ai-tint); }
.ledger-row:last-child { border-bottom: none; }
.ledger-row .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--ai-dark); transition: color 0.2s ease; }
.ledger-row .num.success { color: var(--matcha); }
.ledger-row .num.danger { color: var(--danger); }
.ledger-row .label { font-size: 0.85rem; color: var(--sumi-soft); }
.ledger-foot { padding: 14px 22px; background: var(--washi-alt); font-size: 0.78rem; color: var(--sumi-soft); display:flex; justify-content: space-between; }

/* ---------- Colorful stat rows (homepage "Latest Session" card only) ---------- */
.stats-ledger-body { padding: 22px; background: linear-gradient(165deg, var(--ai-tint) 0%, #fff 45%); }
.stats-ledger-body .ledger-row { padding: 18px 16px; margin: 0 -10px 8px; border-bottom: none; border-radius: 8px; transition: background 0.2s ease, transform 0.2s ease; }
.stats-ledger-body .ledger-row:last-child { margin-bottom: 0; }
.stats-ledger-body .ledger-row:hover { background: inherit; transform: translateX(2px); }
.stats-ledger-body .ledger-row .label { font-weight: 600; }
.stats-ledger-body .ledger-row:nth-child(1) { background: linear-gradient(90deg, rgba(27,58,107,0.12), rgba(27,58,107,0.02)); border-left: 3px solid var(--ai); }
.stats-ledger-body .ledger-row:nth-child(2) { background: linear-gradient(90deg, rgba(178,58,46,0.11), rgba(178,58,46,0.02)); border-left: 3px solid var(--danger); }
.stats-ledger-body .ledger-row:nth-child(3) { background: linear-gradient(90deg, rgba(178,58,46,0.11), rgba(178,58,46,0.02)); border-left: 3px solid var(--danger); }
.stats-ledger-body .ledger-row:nth-child(4) { background: linear-gradient(90deg, rgba(60,122,92,0.14), rgba(60,122,92,0.02)); border-left: 3px solid var(--matcha); }
.stats-ledger-body .ledger-row .num { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
.stats-ledger-foot { background: linear-gradient(90deg, var(--ai-tint), var(--washi-alt)); }

/* ---------- Sections generic ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--washi-alt); }
.section-dark { background: var(--ai-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-card);
}
.card .icon-tag { width: 46px; height: 46px; border-radius: 8px; background: var(--ai-tint); color: var(--ai); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--sumi-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Course cards ---------- */
.course-card { border-top: 4px solid var(--ai); }
.course-card .level-tag { display: inline-block; background: var(--shu); color: #fff; font-family: var(--font-display); font-size: 0.75rem; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.course-card ul { margin: 16px 0 20px; }
.course-card li { display: flex; gap: 8px; font-size: 0.9rem; color: var(--sumi-soft); padding: 5px 0; }
.course-card li::before { content: "▸"; color: var(--matcha); }

/* ---------- Stats / counters ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-strip-animate { animation: statStripIn 0.9s ease both; }
@keyframes statStripIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.stat-item { text-align: center; padding: 26px 10px; border-right: 1px solid var(--line-dark); }
.stat-item:last-child { border-right: none; }
.stat-item .n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.stat-item .l { font-size: 0.82rem; opacity: 0.75; margin-top: 4px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } .stat-item { border-right: none; border-bottom: 1px solid var(--line-dark); } }

/* ---------- Session ledger table (Statistics page) ---------- */
.session-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
table.session-table { width: 100%; border-collapse: collapse; min-width: 900px; table-layout: fixed; }
table.session-table th, table.session-table td { padding: 15px 18px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
table.session-table th:nth-child(1), table.session-table td:nth-child(1) { width: 22%; }
table.session-table th:nth-child(2), table.session-table td:nth-child(2) { width: 8%; }
table.session-table th:nth-child(3), table.session-table td:nth-child(3) { width: 10%; }
table.session-table th:nth-child(4), table.session-table td:nth-child(4) { width: 12%; }
table.session-table th:nth-child(5), table.session-table td:nth-child(5) { width: 11%; }
table.session-table th:nth-child(6), table.session-table td:nth-child(6) { width: 11%; }
table.session-table th:nth-child(7), table.session-table td:nth-child(7) { width: 11%; }
table.session-table th:nth-child(8), table.session-table td:nth-child(8) { width: 15%; }
table.session-table thead th { background: var(--ai-dark); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.session-table tbody tr:last-child td { border-bottom: none; }
table.session-table tbody tr:hover { background: var(--washi-alt); }
.rate-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; background: var(--matcha-tint); color: var(--matcha); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-neutral { background: #EDEBE4; color: var(--sumi-soft); }
.badge-info { background: var(--ai-tint); color: var(--ai); }
.badge-success { background: var(--matcha-tint); color: var(--matcha); }
.badge-danger { background: var(--danger-tint); color: var(--danger); }

/* ---------- Success student grid & slider ---------- */
.student-slider { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.student-slider::-webkit-scrollbar { height: 8px; }
.student-slider::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.student-card { flex: 0 0 240px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.student-photo { width: 100%; height: 240px; background: var(--ai-tint) url('data:image/svg+xml;utf8,') center/cover; display: flex; align-items: center; justify-content: center; color: var(--ai); font-family: var(--font-display); font-size: 2.4rem; }
.student-info { padding: 16px 18px; }
.student-info h4 { font-size: 1rem; margin-bottom: 4px; }
.student-info .meta { font-size: 0.82rem; color: var(--sumi-soft); margin-bottom: 8px; }

/* ---------- Tracker ---------- */
.tracker-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 34px; }
.tracker-form { display: flex; gap: 12px; flex-wrap: wrap; }
.tracker-form input { flex: 1; min-width: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; }
.tracker-form input:focus { outline: 2px solid var(--ai); outline-offset: 1px; }

.progress-track { display: flex; margin: 34px 0 6px; }
.progress-step { flex: 1; text-align: center; position: relative; }
.progress-step .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); margin: 0 auto 8px; position: relative; z-index: 2; }
.progress-step.done .dot { background: var(--matcha); }
.progress-step.current .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); }
.progress-step::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1; }
.progress-step:first-child::before { display: none; }
.progress-step.done::before { background: var(--matcha); }
.progress-step .lbl { font-size: 0.72rem; color: var(--sumi-soft); }

.result-alert { padding: 16px 20px; border-radius: var(--radius); font-size: 0.92rem; margin-top: 20px; }
.result-alert.success { background: var(--matcha-tint); color: var(--matcha); }
.result-alert.error { background: var(--danger-tint); color: var(--danger); }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.testimonial-card .quote { color: var(--sumi-soft); font-size: 0.95rem; margin-bottom: 18px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ai-tint); color: var(--ai); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }

/* ---------- Process steps ---------- */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-step { text-align: left; }
.process-step .idx { font-family: var(--font-display); font-size: 2.4rem; color: var(--ai-tint); font-weight: 700; -webkit-text-stroke: 1px var(--ai); }
@media (max-width: 800px) { .process-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #4A0B14; color: rgba(255,255,255,0.82); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.hide-mobile { display: block; }
@media (max-width: 700px) { .hide-mobile { display: none; } }

/* Page hero for inner pages (About, Courses, Statistics...) */
.page-hero { padding: 54px 0; background: var(--ai-dark); color: #fff; }
.page-hero .eyebrow { color: #F0C36D; }
.page-hero .eyebrow::before { background: #F0C36D; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; opacity: 0.75; }
.breadcrumb a:hover { text-decoration: underline; }

/* Session filter chips */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 0.85rem; font-weight: 500; }
.filter-chip.active { background: var(--ai); color: #fff; border-color: var(--ai); }
