/* OneZero Japanese Language Academy — site styles */
:root {
  --red: #C8161C;
  --red-dark: #9E1015;
  --red-soft: #FF8A8E;
  --tint: #FDECEC;
  --ink: #1A1A1A;
  --body: #4A4A4A;
  --line: #E4E4E4;
  --grey: #F4F4F4;
  --dark: #1A1A1A;
  --darker: #111111;
  --white: #FFFFFF;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #ECECEC; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 44px; height: 44px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; white-space: nowrap; }
.logo-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--body); white-space: nowrap; }
.site-nav { display: flex; gap: 6px 20px; align-items: center; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.header-cta { flex: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid #ECECEC; box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #F0F0F0; }
  .site-nav a[aria-current="page"] { border-bottom-color: #F0F0F0; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header .header-cta { display: none; }
}
@media (max-width: 420px) { .logo-sub { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; padding: 15px 26px; border-radius: 8px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { font-size: 14px; padding: 12px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-block; padding: 8px 0; }

/* Sections and type */
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.bg-tint { background: var(--tint); }
.bg-grey { background: var(--grey); }
.bg-dark { background: var(--dark); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--red); text-transform: uppercase; }
.bg-dark .eyebrow { color: var(--red-soft); }
.eyebrow-jp { font-family: var(--font-jp); font-weight: 700; color: var(--red); font-size: 16px; letter-spacing: 0.08em; }
.bg-dark .eyebrow-jp { color: var(--red-soft); }
.display { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.08; }
.h2 { font-size: clamp(28px, 3.2vw, 38px); }
.h3 { font-size: 22px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 680px; }
.bg-dark .lead, .bg-dark .muted { color: #D6D6D6; }
.muted { color: var(--body); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.text-body { font-size: 17px; line-height: 1.7; color: var(--body); }
.small { font-size: 13px; }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-top { align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.split-side { flex: 1 1 340px; min-width: 0; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.card-plain { background: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card-tint { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.card-dark { background: #2A2A2A; border-radius: var(--radius); padding: 24px; }
.card-media { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.grow { flex-grow: 1; }
.pill { align-self: flex-start; display: inline-block; background: var(--tint); color: var(--red-dark); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.pill-grey { background: var(--grey); color: var(--ink); }
.pill-white { background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 14px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid #F0F0F0; padding-top: 14px; font-size: 14px; }
.card-facts span { display: flex; flex-direction: column; gap: 2px; }
.card-facts .label { color: var(--body); }

/* Placeholder image boxes — replace with <img> */
.ph { background: #E9E9E9; color: var(--body); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; border-radius: var(--radius); }
.ph-hero { min-height: 380px; background: #fff; border: 2px dashed #E3B1B3; border-radius: 16px; font-size: 15px; }
.ph-dark { background: #2A2A2A; border: 2px dashed #555; color: #CFCFCF; }
.ph-card { height: 230px; border-radius: 0; }
.ph-map { height: 320px; flex-direction: column; gap: 14px; background: var(--grey); }

/* Hero slider */
.hero .container { padding-top: 64px; padding-bottom: 40px; }
.slide { display: none; }
.slide.is-active { display: block; animation: fade 0.5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.is-active { animation: none; } html { scroll-behavior: auto; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; font-weight: 600; color: var(--body); }
.slider-controls { display: flex; align-items: center; gap: 16px; padding: 28px 0 48px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--ink); }
.slider-btn:hover svg { stroke: #fff; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: #D9A3A5; cursor: pointer; transition: width 0.2s; }
.dot[aria-current="true"] { width: 32px; background: var(--red); }
.slide-count { font-size: 14px; font-weight: 600; color: var(--body); }

/* Page hero */
.page-hero { padding: 72px 0; }
.page-hero.has-crumb { padding-top: 28px; }
.breadcrumb { font-size: 14px; color: var(--body); margin-bottom: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--body); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* Stats */
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--red); line-height: 1.1; }
.stat p { margin-top: 6px; color: var(--body); font-size: 15px; }
.stat-tint { background: var(--tint); border: 0; }
.stat-tint .stat-num { color: var(--red-dark); }
.feature-num { font-size: 40px; font-weight: 800; color: var(--red); }

/* Lists */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.5; }
.check-list li::before { content: "✓"; color: var(--red); font-weight: 800; }
.num-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--red-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid #ECECEC; }
.timeline .year { flex: 0 0 76px; font-size: 22px; font-weight: 800; color: var(--red); }
.timeline strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-num { font-size: 28px; font-weight: 800; color: var(--red); }
.learn-item { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 600; }
.learn-item span:first-child { color: var(--red); font-weight: 800; font-size: 15px; }

/* Facts box (course pages) */
.facts { margin: 0; background: #fff; border-radius: 16px; padding: 8px 26px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #F0F0F0; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--body); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facts .hl { color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
th { text-align: left; background: var(--grey); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); padding: 16px 22px; }
td { padding: 18px 22px; border-top: 1px solid #ECECEC; vertical-align: top; line-height: 1.5; }
td.muted { color: var(--body); }
tbody th { background: none; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); border-top: 1px solid #ECECEC; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--body); }

/* Video thumbnails */
.video { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.video-thumb { position: relative; height: 190px; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }

/* Branch cards */
.branch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.branch-actions .btn { flex: 1 1 auto; }
.phone-link { font-weight: 700; font-size: 16px; text-decoration: none; padding: 4px 0; }

/* Callouts */
.callout { border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.callout > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.callout-tint { background: var(--tint); }
.callout-dark { background: var(--dark); color: #fff; }
.callout-line { border: 1px solid var(--line); }
.cta-band { background: var(--red); color: #fff; }
.cta-band p { color: #FFE3E4; }

/* Forms */
.enquiry { background: var(--dark); color: #fff; }
.enquiry .container { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; }
.enquiry-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.enquiry-copy a { align-self: flex-start; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red-soft); padding: 8px 0; }
.form { flex: 999 1 480px; min-width: 0; background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.form-bordered { border: 1px solid var(--line); padding: 32px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #8A8A8A; border-radius: 8px; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; padding: 0; }
.form .note { font-size: 13px; color: var(--body); font-weight: 400; }

/* Footer */
.site-footer { background: var(--darker); color: #BDBDBD; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; padding: 56px 24px 32px; max-width: 1200px; margin: 0 auto; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { color: #fff; font-size: 15px; }
.site-footer a { color: #BDBDBD; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 15px; }
.footer-brand .logo-name { font-size: 18px; }
.footer-branch a:first-child { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid #2A2A2A; }
.footer-bottom .container { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Mobile sticky contact bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .page-hero { padding: 48px 0; }
  .callout { padding: 26px; }
  .ph-hero { min-height: 220px !important; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px; }
  .mobile-bar .btn { padding: 13px 10px; font-size: 15px; }
  body { padding-bottom: 72px; }
}

/* Legal page */
.prose { font-size: 16px; line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 22px; color: var(--ink); margin: 32px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Resources bar ===== */
.util-bar { background: var(--dark); color: #D6D6D6; font-size: 13px; }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.util-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.util-bar a { color: #D6D6D6; text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.util-bar a:hover, .util-bar a[aria-current="page"] { color: #fff; }
.util-lang { font-family: 'Noto Sans Malayalam', var(--font); font-weight: 700; color: #fff !important; background: var(--red); padding: 4px 12px !important; border-radius: 999px; }
.nav-extra { display: none; }
@media (max-width: 1180px) {
  .util-bar { display: none; }
  .site-header.is-open .nav-extra { display: block; }
  .site-nav .nav-label { padding: 18px 0 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); border: 0; }
  .site-nav .nav-extra.btn { display: none; margin-top: 16px; color: #fff; border: 0; }
  .site-header.is-open .nav-extra.btn { display: flex; }
  .site-nav { max-height: calc(100vh - 80px); overflow-y: auto; }
}

/* ===== Hero art ===== */
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; max-width: 560px; height: auto; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(158, 16, 21, 0.35); }
.bg-dark .hero-art img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
@media (max-width: 720px) { .hero-art img { max-width: 420px; } }

/* ===== Start-here cards ===== */
.start-card, .material { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.start-num { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.start-card strong, .material strong { font-size: 19px; }
.start-cta { margin-top: auto; font-weight: 700; color: var(--red); }
.material-jp, .life-jp { font-family: var(--font-jp); font-weight: 700; font-size: 26px; color: var(--red); }

/* ===== Reviews ===== */
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.review p { font-size: 16px; line-height: 1.6; }
.review footer { display: flex; flex-direction: column; font-size: 14px; color: var(--body); }
.review footer strong { color: var(--ink); }
.stars { color: #E8A317; letter-spacing: 2px; font-size: 18px; }
.review-wall { columns: 3 300px; column-gap: 24px; }
.review-wall .review { break-inside: avoid; margin-bottom: 24px; }
.rating-box { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; background: #fff; }
.rating-box > span:last-child { display: flex; flex-direction: column; }
.rating-num { font-size: 34px; font-weight: 800; }

/* ===== Blog ===== */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-img { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--tint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.post-body strong { font-size: 18px; line-height: 1.35; }
.post-hero img { width: 100%; border-radius: 20px; aspect-ratio: 5 / 3; object-fit: cover; margin-bottom: 32px; }
.article { font-size: 17px; color: #333; }
.article h2 { font-size: 26px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .table-wrap { margin: 18px 0 22px; }
.article table { min-width: 520px; }

/* ===== Placement test ===== */
.quiz { display: flex; flex-direction: column; gap: 20px; }
.quiz-progress { height: 8px; background: var(--grey); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width 0.4s ease; }
.quiz-step { border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.js .quiz-step { display: none; }
.js .quiz-step.is-current { display: flex; animation: rise 0.45s ease both; }
.quiz-step legend { float: left; width: 100%; padding: 0; font-size: 22px; font-weight: 800; line-height: 1.35; display: flex; flex-direction: column; gap: 8px; }
.q-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; clear: both; }
.opt { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 18px; font-weight: 600; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.opt:hover { border-color: var(--red); }
.opt input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.opt:has(input:checked) { border-color: var(--red); background: var(--tint); }
.opt-skip { font-size: 15px; color: var(--body); font-weight: 500; }
.quiz-nav { display: none; justify-content: space-between; gap: 12px; }
.js .quiz-nav { display: flex; }
.quiz-error { color: var(--red-dark); font-weight: 600; }
.quiz-result { gap: 16px; padding: 32px; animation: rise 0.5s ease both; }

/* ===== Results wall ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; transition: background 0.2s, color 0.2s; }
.filter[aria-pressed="true"], .filter:hover { background: var(--ink); color: #fff; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.result-total { display: flex; align-items: baseline; gap: 10px; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.lv { background: var(--grey); border-radius: 10px; padding: 8px 12px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.names summary { cursor: pointer; font-weight: 700; color: var(--red); font-size: 14px; }
.names ul { margin: 10px 0 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.result-card.is-hidden { display: none; }

/* ===== Fees ===== */
td.price { font-weight: 800; font-size: 17px; color: var(--red-dark); }
.x-list li::before { content: "–"; color: var(--body); }

/* ===== Parents report ===== */
.report { background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 20px 40px -24px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 16px; }
.report-head { display: flex; justify-content: space-between; align-items: center; }
.report dl { margin: 0; }
.report dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F0F0F0; font-size: 15px; }
.report dt { color: var(--body); }
.report dd { margin: 0; font-weight: 600; text-align: right; }
.bars { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bars > div { display: grid; grid-template-columns: 84px 1fr 28px; gap: 10px; align-items: center; }
.bar { height: 10px; background: var(--grey); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Kana charts and vocabulary ===== */
.kana-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.kana { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.kana:hover { border-color: var(--red); background: var(--tint); transform: translateY(-2px); }
.kana.is-playing { background: var(--red); border-color: var(--red); }
.kana.is-playing .kana-char, .kana.is-playing .kana-rom { color: #fff; }
.kana-empty { border: 1px dashed #EEE; background: transparent; cursor: default; }
.kana-char { font-family: var(--font-jp); font-size: clamp(26px, 5vw, 38px); font-weight: 700; line-height: 1.1; color: var(--ink); }
.kana-rom { font-size: 13px; color: var(--body); font-weight: 600; }
table.vocab { min-width: 560px; }
table.fee-table { min-width: 0; }
table.fee-table .price { font-weight: 800; font-size: 18px; color: var(--red-dark); }
.jp-cell { font-family: var(--font-jp); font-size: 18px; font-weight: 700; }
.say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.say:hover, .say.is-playing { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== Life in Japan ===== */
.season { border-radius: var(--radius); background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.season-jp { font-family: var(--font-jp); font-size: 40px; font-weight: 700; color: var(--red); line-height: 1.1; }

/* ===== Malayalam ===== */
.ml, .ml .display, .ml .h2, .ml .h3, .ml .lead, .ml .btn, .ml summary, .ml label { font-family: 'Noto Sans Malayalam', var(--font); }
.ml .display { font-size: clamp(30px, 4vw, 48px); line-height: 1.35; }
.ml .h2 { line-height: 1.35; }
.ml .lead, .ml p { line-height: 1.8; }

/* ===== WhatsApp widget ===== */
.wa-widget { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-button { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25D366; box-shadow: 0 10px 24px rgba(0,0,0,0.22); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.25s; animation: pop 0.5s 1s both; }
.wa-button:hover { transform: scale(1.07); }
.wa-panel { width: min(340px, calc(100vw - 40px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,0.22); transform-origin: bottom right; animation: panelIn 0.25s ease both; }
.wa-head { background: #075E54; color: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.wa-head span { font-size: 12px; opacity: 0.85; }
.wa-body { background: #ECE5DD; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-bubble { background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 14px; font-size: 15px; align-self: flex-start; }
.wa-options { display: flex; flex-direction: column; gap: 8px; }
.wa-options a { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 10px; padding: 11px 14px; text-decoration: none; color: #075E54; font-weight: 700; font-size: 14px; transition: background 0.2s; }
.wa-options a:hover { background: #DCF8C6; }
@media (max-width: 720px) { .wa-widget { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 14px; } .wa-button { width: 54px; height: 54px; } }

/* ===== Motion ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
.site-header { transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,0.18); }
.btn { transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 20px -10px rgba(200,22,28,0.6); }
.card, .card-plain, .card-media, .start-card, .material, .post-card, .review, .stat, .season { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
a.card-plain:hover, .card:hover, .card-media:hover, .start-card:hover, .material:hover, .post-card:hover, .review:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0,0,0,0.3); border-color: #E3C9C9; }
.slide.is-active .hero-copy > * { animation: rise 0.6s ease both; }
.slide.is-active .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.slide.is-active .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.slide.is-active .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.slide.is-active .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.slide.is-active .hero-art img { animation: rise 0.7s 0.1s ease both, float 7s 0.8s ease-in-out infinite; }
.page-hero .hero-art img { animation: float 7s ease-in-out infinite; }
.page-hero .stack-lg > *, .page-hero .stack > * { animation: rise 0.6s ease both; }
.page-hero .stack-lg > *:nth-child(2), .page-hero .stack > *:nth-child(2) { animation-delay: 0.08s; }
.page-hero .stack-lg > *:nth-child(3), .page-hero .stack > *:nth-child(3) { animation-delay: 0.16s; }
.page-hero .stack-lg > *:nth-child(4), .page-hero .stack > *:nth-child(4) { animation-delay: 0.24s; }
.faq details[open] p { animation: rise 0.3s ease both; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ===== Print (charts and word lists) ===== */

/* Student reels: tap to play an Instagram reel in a pop-up (nothing loads from Instagram until tapped) */
.reel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1100px) { .reel-grid { grid-template-columns: repeat(3, 1fr); } }
.reel-card { position: relative; aspect-ratio: 9 / 15; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; text-decoration: none; color: #fff; background: radial-gradient(120% 80% at 80% 0%, #E31E24 0%, #9E1015 45%, #1A1A1A 100%); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.45); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.reel-card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -24px rgba(0,0,0,0.55); }
.reel-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.reel-jp { position: absolute; top: 14px; left: 18px; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: 0.04em; color: rgba(255,255,255,0.16); }
.reel-play { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.7); display: grid; place-items: center; backdrop-filter: blur(4px); transition: transform 0.3s ease, background 0.3s ease; }
.reel-card:hover .reel-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,0.28); }
.reel-meta { position: relative; display: flex; flex-direction: column; gap: 4px; }
.reel-meta strong { font-size: 19px; font-weight: 800; }
.reel-meta span { font-size: 14px; color: rgba(255,255,255,0.85); }
.reel-meta .reel-tag { margin-top: 8px; font-weight: 700; color: #fff; }
.reel-more { background: #fff; color: var(--ink); border: 2px dashed var(--line); box-shadow: none; justify-content: center; }
.reel-more .reel-meta span { color: var(--body); }
.reel-more .reel-meta .reel-tag { color: var(--red); }
.reel-dialog { border: 0; padding: 0; background: transparent; width: min(420px, 94vw); max-height: 92vh; overflow: visible; }
.reel-dialog::backdrop { background: rgba(0,0,0,0.75); }
.reel-dialog iframe { display: block; width: 100%; height: min(760px, 84vh); border: 0; border-radius: 14px; background: #fff; }
.reel-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #1A1A1A; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) { .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .reel-grid { grid-template-columns: repeat(2, 1fr); } .reel-card { padding: 14px; } .reel-meta strong { font-size: 18px; } .reel-jp { font-size: 30px; } .reel-play { width: 48px; height: 48px; } .reel-meta .reel-tag { margin-top: 4px; } }


/* Why choose: stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 1000px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 16px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0,0,0,0.3); }
.stat-card-jp { position: absolute; right: 12px; bottom: -14px; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 110px; line-height: 1; color: var(--red); opacity: 0.06; pointer-events: none; }
.stat-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint, #FDECEC); color: var(--red); display: grid; place-items: center; margin-bottom: 6px; }
.stat-card .feature-num { line-height: 1.05; }
.stat-card strong { font-size: 18px; color: var(--ink); }
.stat-card p { position: relative; }


/* About: leadership card */
.leader-card { margin: 0; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 36px; background: #fff; border-radius: 20px; overflow: hidden; border-left: 5px solid var(--red); max-width: 900px; box-shadow: 0 18px 40px -30px rgba(0,0,0,0.35); }
.leader-card img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; display: block; }
.leader-card figcaption { padding: 28px 32px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.leader-card strong { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.leader-role { font-weight: 600; color: var(--red-dark); }
.leader-card p { margin-top: 6px; font-size: 16px; line-height: 1.6; }
@media (max-width: 680px) { .leader-card { grid-template-columns: 1fr; gap: 0; border-left: 0; border-top: 5px solid var(--red); } .leader-card img { aspect-ratio: 1 / 1; } .leader-card figcaption { padding: 22px; } .leader-card strong { font-size: 24px; } }


/* Real logo */
.logo-img { display: block; height: 60px; width: auto; }
@media (max-width: 420px) { .logo-img { height: 50px; } }
.logo-footer { display: inline-flex; align-self: flex-start; }
.logo-footer img { display: block; height: 66px; width: auto; }


/* Social icons */
.util-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; white-space: nowrap; }
.util-social, .footer-social { display: flex; align-items: center; gap: 8px; }
.util-social { gap: 6px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.18); }
.util-social a { display: grid; place-items: center; width: 26px; height: 26px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: #CFCFCF; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.util-social a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.util-social svg { width: 13px; height: 13px; display: block; }
.footer-social { gap: 10px; margin-top: 4px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; transition: background 0.2s, transform 0.2s; }
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.site-nav .nav-social { display: none; align-items: center; gap: 10px; margin-top: 16px; }
.site-header.is-open .site-nav .nav-social { display: flex; }
.nav-social a { display: grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 50%; color: var(--ink); }
.nav-social a:hover { color: #fff; background: var(--red); border-color: var(--red) !important; }

@media print {
  .util-bar, .site-header, .site-footer, .mobile-bar, .wa-widget, .enquiry, .no-print, .skip-link { display: none !important; }
  .page-hero { padding: 0 0 16px; background: none; }
  body { padding: 0; }
  .kana { break-inside: avoid; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Branches dropdown ===== */
.nav-drop { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-drop-toggle { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; border-radius: 6px; }
.nav-drop-toggle svg { transition: transform 0.25s ease; }
.nav-drop-toggle:hover { color: var(--red); }
.nav-menu { position: absolute; top: calc(100% + 10px); right: -12px; z-index: 80; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(0,0,0,0.28); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.nav-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop.is-open .nav-drop-toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1181px) {
  .nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .nav-drop-toggle svg { transform: rotate(180deg); }
}
.site-nav .nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 0; white-space: normal; }
.site-nav .nav-menu a:hover { background: var(--tint); color: var(--ink); }
.nm-name { font-weight: 700; font-size: 15px; }
.nm-meta { font-size: 13px; font-weight: 500; color: var(--body); }
.site-nav .nav-menu .nm-all { border-bottom: 1px solid #F0F0F0; border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.site-nav .nav-menu .nm-cta { margin-top: 4px; border-top: 1px solid #F0F0F0; border-radius: 0 0 10px 10px; color: var(--red); font-weight: 700; font-size: 14px; }

/* Branch dropdown: two columns on desktop for nine branches */
@media (min-width: 1181px) {
  .nav-menu { width: 480px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .site-nav .nav-menu .nm-all, .site-nav .nav-menu .nm-cta { grid-column: 1 / -1; }
}
.card-dark, .card-dark p { color: #fff; }
@media (max-width: 1180px) {
  .nav-drop { flex-wrap: wrap; border-bottom: 1px solid #F0F0F0; }
  .site-nav .nav-drop .nav-drop-link { flex: 1; border-bottom: 0; }
  .nav-drop-toggle { width: 44px; height: 44px; justify-content: center; }
  .nav-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-drop.is-open .nav-menu { display: flex; }
  .site-nav .nav-menu a { padding: 10px 8px; }
}

/* ===== Stock photos ===== */
img.photo { display: block; background: var(--tint); }
.hero-photo img { width: 100%; max-width: 560px; aspect-ratio: 5 / 4; height: auto; object-fit: cover; border-radius: 28px; }
.page-hero .hero-photo img, .slide.is-active .hero-photo img { animation-name: rise; animation-iteration-count: 1; }
.post-img img.photo, .post-hero img.photo { width: 100%; height: 100%; object-fit: cover; }
.post-hero img.photo { aspect-ratio: 2 / 1; height: auto; border-radius: 20px; margin-bottom: 32px; }
.life-card img.photo { width: 100%; aspect-ratio: 5 / 3; height: auto; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mosaic-tile { position: relative; display: block; overflow: hidden; border-radius: 18px; color: #fff; text-decoration: none; min-height: 220px; }
.mosaic-big { grid-row: span 2; }
.mosaic-tile img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mosaic-tile:hover img.photo { transform: scale(1.05); }
.mosaic-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 55%); }
.mosaic-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.mosaic-cap strong { font-size: 20px; }
.mosaic-cap span { font-size: 14px; opacity: 0.9; }
.mosaic-tile:hover { color: #fff; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic-big { grid-column: span 2; grid-row: auto; min-height: 280px; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; } .mosaic-big { grid-column: auto; } }

/* ===== Brochure sections ===== */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.why-grid li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; }
.why-grid li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.modules li { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.modules strong { font-size: 17px; }
.pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: none; }
.path-step { position: relative; background: #fff; border-radius: var(--radius); padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--tint); }
.path-step:last-child { background: var(--red); color: #fff; border-top-color: var(--red-dark); }
.path-step:last-child .muted, .path-step:last-child .path-num { color: #fff; }
.path-num { font-size: 26px; font-weight: 800; color: var(--red); line-height: 1; }
.check-list.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; }
.team-card { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0,0,0,0.3); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; display: block; }
.team-card figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.team-card strong { font-size: 17px; }
.team-card figcaption span { font-size: 14px; color: var(--body); }
.more-branches { border-style: dashed; background: var(--tint); }
.why-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) { .pathway { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Trainers ===== */
.team-card figcaption .pill { margin-top: 6px; color: var(--red-dark); }
.trainer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trainer-row { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.trainer-row img { width: 56px; height: 70px; object-fit: cover; object-position: center top; border-radius: 8px; flex: none; }
.trainer-row > span { display: flex; flex-direction: column; gap: 2px; }

/* Who can apply: tiles + sectors card */
.who-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: stretch; }
.who-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.who-tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 92px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.who-tile:hover { border-color: #E3C9C9; box-shadow: 0 14px 30px -22px rgba(0,0,0,0.35); transform: translateY(-2px); }
.who-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--red); display: grid; place-items: center; }
.who-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.who-text strong { font-size: 16px; line-height: 1.3; color: var(--ink); }
.who-text span { font-size: 13.5px; line-height: 1.4; color: var(--body); }
.sectors-card { background: var(--dark, #1A1A1A); color: #fff; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sectors-title { font-size: 22px; font-weight: 800; }
.sectors-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; }
.sectors-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 15px; color: #EDEDED; }
.sectors-list li:last-child { border-bottom: 0; }
.sec-num { font-size: 12px; font-weight: 800; color: #FF9A9E; letter-spacing: 0.04em; min-width: 20px; }
.sectors-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 1100px) { .who-layout { grid-template-columns: 1fr; } .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } .who-tile { min-height: 0; padding: 14px; } .sectors-card { padding: 22px; } }

/* Students placed in Japan */
.alumni-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:20px}
.alumni-card{margin:0;background:#fff;border:1px solid var(--line,#E4E4E4);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.alumni-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(26,26,26,.08)}
.alumni-card img{display:block;width:100%;aspect-ratio:4/5;height:auto;object-fit:cover;background:#F3F3F3}
.alumni-card figcaption{display:flex;flex-direction:column;gap:2px;padding:14px 16px 16px}
.alumni-card strong{font-size:17px;line-height:1.3;color:var(--ink,#1A1A1A)}
.alumni-place{font-size:14px;color:#6B6B6B}
.alumni-tag{align-self:flex-start;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--red,#C8161C);background:#FDECEC;border-radius:999px;padding:4px 10px;margin-bottom:8px}
.alumni-quote{margin-top:10px;font-size:14px;line-height:1.55;color:#4A4A4A}
@media (max-width:560px){.alumni-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.alumni-card figcaption{padding:12px}.alumni-card strong{font-size:15px}}
@media (max-width:560px){.alumni-home .alumni-card:nth-child(5){display:none}}
.partner-note{display:block;margin-top:10px;font-size:13px;color:#6B6B6B}
.partner-note strong{color:var(--red,#C8161C);font-weight:700}
/* YouTube pop-up player */
.yt-dialog { border: 0; padding: 0; background: transparent; width: min(1000px, 94vw); max-height: 92vh; overflow: visible; }
.yt-dialog::backdrop { background: rgba(0,0,0,0.82); }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; border-radius: 14px; overflow: hidden; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-open { display: inline-block; margin-top: 12px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; opacity: .85; }
.yt-open:hover { opacity: 1; text-decoration: underline; }
.video { cursor: pointer; }
/* Life in Japan: featured student reel */
.feature-reel { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 56px; align-items: center; }
.feature-reel-frame { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0,0,0,0.35); border: 1px solid var(--line); }
.feature-reel-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.feature-reel-text .h2 { margin: 0; }
@media (max-width: 900px) { .feature-reel { grid-template-columns: 1fr; gap: 28px; } .feature-reel-frame { max-width: 420px; width: 100%; margin: 0 auto; } .feature-reel-text { order: -1; } }
@media (max-width: 480px) { .feature-reel-frame iframe { height: 640px !important; } }
/* Enquiry form result messages */
[data-form-status].form-done { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #E7F5EC; border: 1px solid #BFE3CC; color: #1E5B37; font-size: 15px; }
[data-form-status].form-done strong { color: #1E5B37; }
[data-form-status].form-done a { color: #1E7B46; font-weight: 700; }
[data-form-status].form-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #FDECEC; border: 1px solid #F3C4C6; color: #9E1015; font-size: 15px; }
[data-form-status].form-error .btn { color: #fff; }
button[type="submit"]:disabled { opacity: .7; cursor: progress; }
/* Branch page: Google map in the hero */
.branch-map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line, #E4E4E4); background: #EEE; min-height: 340px; display: flex; }
.branch-map { display: block; width: 100%; min-height: 340px; border: 0; flex: 1; }
@media (max-width: 760px) { .branch-map-wrap, .branch-map { min-height: 260px; } }
/* Results: JFT score reports */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; max-width: 920px; }
.cert-card { margin: 0; background: #fff; border: 1px solid var(--line, #E4E4E4); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.cert-card a { display: block; background: #fff; padding: 12px 12px 0; }
.cert-card img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #EEE; }
.cert-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.cert-card strong { font-size: 18px; color: var(--ink, #1A1A1A); }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-card img { aspect-ratio: 948 / 800; object-fit: contain; background: #fff; }
.mgmt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #E4E4E4); }
.mgmt-row:first-of-type { border-top: 0; padding-top: 4px; }
.mgmt-row > span { display: flex; flex-direction: column; }
.mgmt-row a { font-weight: 700; color: var(--ink, #1A1A1A); text-decoration: none; white-space: nowrap; }
.mgmt-row a:hover { color: var(--red, #C8161C); }
/* About: two leadership cards side by side */
.leader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.leader-grid .leader-card { grid-template-columns: 200px 1fr; gap: 28px; height: 100%; }
.leader-grid .leader-card figcaption { padding: 24px 24px 24px 0; }
.leader-grid .leader-card strong { font-size: 24px; }
@media (max-width: 1000px) { .leader-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .leader-grid .leader-card { grid-template-columns: 1fr; gap: 0; } .leader-grid .leader-card figcaption { padding: 22px; } }
/* Form sent: pop-up */
.form-popup { border: 0; padding: 40px 32px 32px; width: min(440px, calc(100vw - 32px)); border-radius: 20px; background: #fff; color: var(--ink, #1A1A1A); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.form-popup::backdrop { background: rgba(20,20,20,.55); }
.form-popup[open] { animation: popIn .22s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.form-popup-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #E7F5EC; color: #1E7B46; }
.form-popup.is-error .form-popup-icon { background: #FDECEC; color: #C8161C; }
.form-popup h2 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
.form-popup p { margin: 0 0 24px; color: #4A4A4A; font-size: 16px; line-height: 1.6; }
.form-popup-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.form-popup-actions .btn { min-width: 150px; }
.form-popup-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #6B6B6B; cursor: pointer; border-radius: 50%; }
.form-popup-x:hover { background: #F3F3F3; color: #1A1A1A; }
@media (prefers-reduced-motion: reduce) { .form-popup[open] { animation: none; } }
