/* ============================================================
   Astro Academy — Japanese Language Coaching, Chennai
   Main stylesheet (mobile-first, SEO-friendly markup)
   ============================================================ */

:root {
  --navy-900: #0b1838;
  --navy-800: #0f1d3f;
  --navy-700: #142554;
  --navy-600: #1b2f6b;
  --brown-900: #2a1410;
  --brown-800: #3a1a13;
  --brown-700: #4a2218;
  --cream-50: #fdf7ee;
  --cream-100: #f7efe1;
  --cream-200: #efe4cf;
  --red-600: #d2362a;
  --red-700: #b82c22;
  --orange-500: #e0671f;
  --amber-500: #d97706;
  --gold-400: #e0a83b;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e8e1d2;
  --white: #fff;
  --black: black;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  --font-jp: 'Noto Serif JP', 'Shippori Mincho', serif;
  --font-zen: "Zen Kaku Gothic New", sans-serif;
  --font-shippori: 'Shippori Mincho', serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 20, 50, .06);
  --shadow-md: 0 8px 24px rgba(10, 20, 50, .10);
  --container: 1200px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .2px;
  margin: 0 0 .5em
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem)
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem)
}

h3 {
  font-size: 1.25rem
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-600);
  font-weight: 600;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .5
}

.eyebrow.center {
  justify-content: center
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem
}

.section-title h2 {
  font-family: var(--font-jp);
}

.section-title h2 .accent {
  color: var(--red-600);
  font-style: italic
}

.section-title .section-sub {
  max-width: 700px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7
}

.stars {
  display: inline-block;
  width: 64px;
  height: 10px;
  background: url('../icons/stars.svg') no-repeat center/contain;
  margin-top: 8px
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--red-600);
  color: #fff
}

.btn-primary:hover {
  background: var(--red-700);
  transform: translateY(-1px);
  color: #FFD700;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent
}

.btn-outline:hover {
  background: #fff;
  color: var(--red-600)
}

.btn-dark {
  background: #fff;
  color: var(--brown-900)
}

.btn-dark:hover {
  background: var(--cream-100)
}

/* ============================================================
   Top Bar + Header
   ============================================================ */
.topbar {
  background: var(--navy-900);
  color: #cfd6e8;
  font-size: .82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfd6e8
}

.topbar a:hover {
  color: #fff
}

.topbar .left {
  display: flex;
  gap: 18px;
  flex-wrap: wrap
}

.topbar .socials {
  display: flex;
  gap: 10px
}

.topbar .socials img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1) opacity(.8)
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px
}

.site-header img {
  width: 95px;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.2rem;
  line-height: 1.1
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  flex: 0 0 38px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.brand-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.1rem
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--red-600);
  text-transform: uppercase
}

.site-footer .brand-name {
  color: #fff
}

.site-footer .brand-sub {
  color: var(--gold-400)
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center
}

.nav a {
  font-size: .94rem;
  color: #222;
  font-weight: 500;
  padding: 6px 0;
  position: relative
}

.nav a.active,
.nav a:hover {
  color: var(--red-600)
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--red-600)
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

/* .dropdown:hover .dropdown-menu {
  display: block;
} */

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  /* vertical center */
  gap: 8px;
  /* space between text & icon */
}

.dropdown-icon {
  width: 16px;
  /* slightly bigger */
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* optional: smoother centering tweak */
.dropdown-toggle svg {
  margin-top: 1px;
  /* tiny adjustment if needed */
}

/* rotate on hover */
/* .dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
} */
.dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

/* default state */
.enroll-btn {
  color: #fff !important;
  transition: all 0.3s ease;
}

/* hover state */
.enroll-btn:hover {
  color: #000 !important;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--cream-100);
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
  position: relative
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0
}

.menu-toggle span::before {
  top: -6px
}

.menu-toggle span::after {
  top: 6px
}

@media (max-width:900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md)
  }

  .nav.open {
    display: flex
  }

  .menu-toggle {
    display: inline-flex
  }

  .topbar {
    font-size: .76rem
  }

  .topbar .left {
    gap: 12px
  }
}

/* ============================================================
   Hero variants
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 110px;
}

/* .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11, 24, 56, .92) 0%, rgba(11, 24, 56, .78) 50%, rgba(11, 24, 56, .55) 100%);
  z-index: 1;
} */

.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* opacity: .55; */
  z-index: 0
}

.hero .container {
  position: relative;
  z-index: 2
}

.hero .hero-panel {
  display: grid;
  grid-template-columns: 1.1fr .95fr;
  gap: 48px;
  align-items: center
}

.hero-copy {
  max-width: 560px
}

.hero-copy .eyebrow {
  color: var(--gold-400);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.7vw, 3.8rem);
  font-family: var(--font-jp);
}

.hero h1 .accent {
  color: var(--red-600);
  display: block
}

.hero p.lead {
  font-size: 1.05rem;
  color: #d6dbe6;
  max-width: 560px;
  margin: 14px 0 30px
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px
}

.trust-pill {
  /* background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); */
  /* padding: 14px 22px; */
  border-radius: 14px;
  color: #f3f7ff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.trust-pill strong {
  font-family: var(--font-jp);
  font-size: 2rem;
  color: var(--gold-400);
  line-height: 1
}

.trust-pill span {
  font-size: 0.8rem;
  color: #cfd6e8;
  letter-spacing: .18em;
  text-transform: uppercase
}

.hero-visual .frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12)
}

.hero-visual .frame img {
  border-radius: 26px
}

.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
  max-width: 720px;
}

.hero .stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 16px;
  text-align: center;
  border-radius: 14px;
  backdrop-filter: blur(5px);
}

.hero .stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.7rem
}

.hero .stat span {
  font-size: .82rem;
  color: #d6dbe6;
  letter-spacing: .05em;
  text-transform: uppercase
}

.hero .frame img {
  width: 100%;
  height: auto;
}

@media (max-width:900px) {
  .hero {
    padding: 70px 0 80px
  }

  .hero .bg {
    display: none;
  }

  .hero .hero-panel {
    grid-template-columns: 1fr;
    gap: 34px
  }

  .hero .stats {
    max-width: none
  }
}

/* Sub-page hero (centered, dark) */
.page-hero {
  position: relative;
  color: #fff;
  padding: 250px 0 250px;
  text-align: center;
  overflow: hidden;
  background: var(--black);
  /* background-color: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); */
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 1;
}

.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .9;
  z-index: 0
}

.page-hero .container {
  position: relative;
  z-index: 2
}

.page-hero h1 {
  color: #fff;
  font-family: var(--font-shippori);
  margin-bottom: 0;
}

.page-hero h1 .accent {
  color: var(--red-600);
  /* font-style: italic */
}

.page-hero p {
  color: #e8d8c5;
  max-width: 640px;
  margin: 14px auto 0
}

/* ============================================================
   Sections
   ============================================================ */
section {
  padding: 80px 0
}

section.tight {
  padding: 60px 0
}

section.bg-cream {
  background: var(--cream-50)
}

section.bg-navy {
  background: var(--navy-900);
  color: #e8edf7
}

section.bg-navy h2 {
  color: #fff
}

section.bg-navy .eyebrow {
  color: var(--gold-400);
  font: var(--font-jp);
}

section.bg-brown {
  background: var(--brown-900);
  color: #f0e6d8
}

section.bg-brown h2 {
  color: #fff
}

/* "Your Pathway to Japan" + content + image grid */
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center
}

.feature-split img {
  border-radius: 12px;
  box-shadow: var(--shadow-md)
}

.feature-split .meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px
}

.feature-split .meta-row .item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .9rem;
}

.feature-split .meta-row .item strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-serif);
  margin-bottom: 2px
}

@media (max-width:900px) {
  .feature-split {
    grid-template-columns: 1fr
  }
}

/* JLPT level cards row */
.level-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.level-card {
  background: linear-gradient(180deg, #1c2f6b 0%, #0f1d40 100%);
  color: #fff;
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}

.level-card:hover {
  transform: translateY(-4px)
}

.level-card .lv {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--red-600);
  font-weight: 700;
}

.level-card .name {
  font-size: .95rem;
  margin: 6px 0 10px
}

.level-card .desc {
  font-size: .78rem;
  color: #bcc4d6;
  line-height: 1.55
}

@media (max-width:900px) {
  .level-strip {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:520px) {
  .level-strip {
    grid-template-columns: 1fr
  }
}

/* Three-up info cards (dark or light) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px
}

.cards-3 .card {
  position: relative;
  background: #0f1d3f;
  padding: 30px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.cards-3 .card:hover {
  border: 1px solid var(--red-600) !important;
}

.cards-3 .card:hover .kanji {
  opacity: 1;
}

section.bg-navy .cards-3 .card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #e8edf7
}

.cards-3 .card .num {
  color: var(--red-600);
  font-family: var(--font-jp);
  font-size: 2.5rem;
  font-weight: 700;
}

.cards-3 .card h3 {
  margin: 10px 0 12px;
  color: inherit;
  /* font-size: 1.35rem; */
  font: var(--font-jp);
}

.cards-3 .card p {
  margin: 0;
  font-size: .9rem;
  color: inherit;
  opacity: .9;
  line-height: 1.75
}

.cards-3 .card .kanji {
  position: absolute;
  top: 0;
  left: 65%;
  font-size: 6rem;
  opacity: 0.3;
}

@media (max-width:900px) {
  .cards-3 {
    grid-template-columns: 1fr
  }
}

/* Two-up content blocks */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px
}

@media (max-width:800px) {
  .cards-2 {
    grid-template-columns: 1fr
  }
}

/* Bullet feature list */
.feature-cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

/* CARD */
.feature-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #f8f7f4;
  border: 1px solid #e6e0d8;
  padding: 20px 30px;
  transition: 0.3s ease;
}

.feature-card:hover {
  border: 1px solid var(--red-600);
}

/* ICON */
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
}

/* CONTENT */
.feature-content {
  flex: 1;
}

.feature-subtitle {
  display: block;
  font-size: 0.78rem;
  color: #9b9288;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.feature-content h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  font-family: var(--font-shippori);
}

.feature-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #7c746d;
  max-width: 900px;
}

/* MOBILE */
@media (max-width: 768px) {
  .feature-card {
    flex-direction: column;
    padding: 24px;
  }

  .feature-content h3 {
    font-size: 1.45rem;
  }

  .feature-content p {
    font-size: 1rem;
  }
}

/* "How we prepare" image+list block */
.split-image {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center
}

.split-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-md)
}

@media (max-width:900px) {
  .split-image {
    grid-template-columns: 1fr
  }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 42px;
  align-items: start
}

.faq-list {
  display: grid;
  gap: 14px
}

.faq-item {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}

.faq-q .ic {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 500;
  transition: transform .35s ease;
}

.faq-item.open .faq-q .ic {
  transform: rotate(135deg);
  background-color: var(--gold-400);
}

.faq-a {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.75;
  width: 97%;
}

.faq-item.open .faq-a {
  display: block
}

.faq-aside {
  background: var(--navy-900);
  color: #fff;
  border-radius: 20px;
  padding: 38px 32px;
  background-image: linear-gradient(160deg, rgba(212, 54, 42, .18), transparent 60%), linear-gradient(180deg, #11214d, #0a1530);
}

.faq-aside h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 12px
}

.faq-aside p {
  color: #cfd6e8;
  font-size: .95rem;
  margin: 0 0 24px;
  line-height: 1.8
}

.faq-aside .contact-row {
  display: grid;
  gap: 12px;
  font-size: .9rem
}

.faq-aside .contact-row a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px
}

.faq-aside .contact-row img {
  width: 16px;
  height: 16px
}

@media (max-width:900px) {
  .faq {
    grid-template-columns: 1fr
  }
}

/* Image gallery (Future Awaits) */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.gallery .item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease
}

.gallery .item:hover img {
  transform: scale(1.05)
}

.gallery .item.tall {
  grid-row: span 2;
  aspect-ratio: 1/2.05
}

@media (max-width:900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery .item.tall {
    grid-row: auto;
    aspect-ratio: 1/1
  }
}

/* From Chennai to Japan – step cards */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 22px;
  border-radius: 12px;
  transition: all 0.3 ease;
}

.step:hover {
  box-shadow: 0px 4px 38px 0px #00000040;
}

.step .badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-100);
  display: grid;
  place-items: center;
  color: var(--red-600);
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-card .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffe8e8;
  color: #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.profile-card .info strong {
  display: block;
  font-size: 15px;
  color: #222;
  margin-bottom: 2px;
}

.profile-card .info p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

@media (max-width:900px) {
  .steps {
    grid-template-columns: 1fr
  }
}

/* Banner CTA strip */
.cta-strip {
  background: var(--brown-900);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
  background-image: radial-gradient(circle at 30% 50%, rgba(216, 74, 60, .12), transparent 50%), radial-gradient(circle at 70% 50%, rgba(216, 74, 60, .10), transparent 50%);
}

.cta-strip h2 {
  color: #fff;
  margin: 0 0 6px
}

.cta-strip h2 .accent {
  color: var(--red-600);
  font-style: italic
}

.cta-strip p {
  color: #e0d2c2;
  margin: 0 0 22px
}

/* ============================================================
   Course list (course.php)
   ============================================================ */
.course-rows {
  display: grid;
  gap: 18px;
  margin-top: 30px
}

.course-row {
  display: grid;
  grid-template-columns: 200px 1fr 1.15fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.course-row:hover {
  border: 1px solid var(--red-600);

}

.course-row .lv-block {
  background: linear-gradient(180deg, #1a2c5e, #0a1736);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  text-align: center;
}

.course-row .lv-block .lv {
  font-family: var(--font-jp);
  font-size: 3.4rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1
}

.course-row:hover .lv-block .lv {
  color: #FFD700;
}

.course-row .lv-block .lv-name {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bcc4d6
}

.course-row .body {
  padding: 24px 26px
}

.course-row .body .eyebrow {
  font-size: .68rem
}

.course-row .body h3 {
  margin: 8px 0 10px;
  font-family: var(--font-jp);
  font-size: 1.4rem;
  color: var(--navy-900)
}

.course-row .body .head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-600);
  font-weight: 600;
}

.course-row .body p {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 12px
}

.course-row .meta {
  display: flex;
  gap: 16px;
  font-size: .82rem;
  color: var(--muted);
  flex-wrap: wrap
}

.course-row .meta b {
  color: var(--navy-900)
}

.course-row .right {
  padding: 24px 26px;
  border-left: 1px solid var(--line)
}

.course-row .right h4 {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-600);
  margin: 0 0 10px
}

.course-row .right ul {
  margin: 0;
  padding-left: 18px;
  font-size: .88rem;
  color: #444;
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-row .right ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.course-row .right ul li::before {
  content: "-";
  color: var(--red-600);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width:900px) {
  .course-row {
    grid-template-columns: 1fr
  }

  .course-row .lv-block {
    padding: 24px 16px
  }

  .course-row .right {
    border-left: 0;
    border-top: 1px solid var(--line)
  }
}

/* Training options dark grid */
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px
}

.training-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 26px 28px;
  border-radius: 14px;
  color: #dde3f1;
}

.training-card:hover {
  box-shadow: 0px 4px 30px 0px #ffffff40;
}

.training-card .num {
  color: var(--red-600);
  font-family: var(--font-jp);
  font-size: 1.8rem;
  font-weight: 700
}

.training-card h3 {
  color: #fff;
  margin: 6px 0 8px;
  font-family: var(--font-jp);
}

.training-card p {
  font-size: .9rem;
  color: #bcc4d6;
  margin: 0
}

.training-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  color: #bcc4d6;
  font-size: .9rem;
}

.training-card ul li {
  position: relative;
  padding-left: 18px;
}

.training-card ul li::before {
  content: "-";
  color: var(--red-600);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width:800px) {
  .training-grid {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   Level course pages (N1..N5)
   ============================================================ */
.level-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.level-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(216, 74, 60, .12), transparent 40%);
}

.level-hero .container {
  position: relative;
  z-index: 2
}

.level-hero .grid {
  display: grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 42px;
  align-items: center
}

.level-hero .lv {
  font-family: var(--font-jp);
  font-size: 5rem;
  color: var(--red-600);
  font-weight: 700;
  line-height: 1;
  margin: 0
}

.level-hero h1 {
  color: #fff;
  font-size: 1.7rem;
  margin: 6px 0 12px
}

.level-hero h1 .accent {
  color: var(--red-600);
  font-family: var(--font-jp);
}

.level-hero p {
  color: #dccdb9;
  max-width: 520px
}

.level-hero .tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px
}

.level-hero .tag {
  font-size: .76rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  letter-spacing: .04em
}

.level-hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* Sidebar enquiry form on level pages */
.level-form {
  background: #fff;
  color: #222;
  padding: 26px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.level-form h3 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-size: 1.15rem;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase
}

.level-form input,
.level-form textarea,
.level-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5dfd0;
  border-radius: 8px;
  font: inherit;
  background: #fbf7ee;
  margin-bottom: 10px;
}

.level-form input:focus,
.level-form textarea:focus,
.level-form select:focus {
  outline: 2px solid var(--red-600);
  outline-offset: 1px;
  background: #fff
}

.level-form button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--red-600);
  color: #fff;
  font-weight: 600
}

@media (max-width:900px) {
  .level-hero .grid {
    grid-template-columns: 1fr
  }
}

/*  */
.row-checks-aim {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row-checks-aim .ck {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.row-checks-aim .ck:hover {
  border-color: var(--red-600) !important;
  color: var(--black);
}

.quick-links {
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CLICKABLE CARD */
.quick-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 10px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.quick-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quick-badge {
  font-size: 2rem;
  font-family: var(--font-jp);
  color: #fff;
  font-weight: 600;
  min-width: 72px;
}

.quick-text {
  text-align: left;
}

.quick-text h4 {
  margin: 0;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-zen);
}

.quick-text p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.quick-arrow {
  color: #9f2f2f;
  font-size: 1.8rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-arrow {
  transform: translateX(5px);
}

/* ACCESSIBILITY */
.quick-card:focus {
  outline: 2px solid #b53a3a;
  outline-offset: 4px;
}

/* Auto numbering */
.row-checks-aim {
  counter-reset: aim;
}

.row-checks-aim .ck::before {
  counter-increment: aim;
  content: counter(aim, decimal-leading-zero);
  font-family: var(--font-shippori);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-600);
  line-height: 1;
  padding-right: 30px;
}

/* Level course content blocks */
.row-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px
}

.row-checks .ck {
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 10px;
  font-size: .92rem;
}

.row-checks .ck:hover {
  border-color: var(--white) !important;
  transform: translateY(-3px);
}

.row-checks .jp-char {
  font-size: 2rem;
  line-height: 1;
  color: #b88a1b;
  font-weight: 300;
  font-family: var(--font-jp);
  padding-bottom: 10px;
}

.row-checks .ck-content {
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
  max-width: 95%;
}

section.bg-navy .row-checks .ck {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
  color: #dde3f1
}

@media (max-width:800px) {
  .row-checks {
    grid-template-columns: 1fr
  }
}

/* "How we teach" steps with red number */
.method-list {
  margin-top: clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* CARD */
.method-list .item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #ebe4dc;
  padding: 30px 28px 0px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

/* Hover */
.method-list .item:hover {
  transform: translateY(-6px);
  border-color: var(--red-700);
  box-shadow: var(--shadow-sm);
}

/* JAPANESE CHARACTER / NUMBER */
.method-list .item .n {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--red-600);
  margin-bottom: 28px;
}

/* TITLE */
.method-list .item h4 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brown-700);
}

/* DESCRIPTION */
.method-list .item p {
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #7b716a;
}

@media (max-width: 560px) {

  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list .item {
    min-height: auto;
    padding: 32px 22px;
  }

  .method-list .item .n {
    margin-bottom: 22px;
    font-size: 2.6rem;
  }

  .method-list .item h4 {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }

  .method-list .item p {
    font-size: 0.9rem;
    line-height: 1.75;
  }
}

/* Certification process */
/* .certif {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 30px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 34px;
}

.certif .badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px dashed rgba(216, 74, 60, .6);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.certif .badge .lv {
  font-family: var(--font-serif);
  color: var(--red-600);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1
}

.certif .badge .lv-name {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #bcc4d6;
  margin-top: 6px
}

.certif p {
  color: #cfd6e8;
  margin: 0
}

@media (max-width:700px) {
  .certif {
    grid-template-columns: 1fr;
    text-align: center
  }

  .certif .badge {
    margin: 0 auto
  }
} */

/* =========================================
   CERTIFICATION SECTION
========================================= */

.cert-section {
  background: var(--cream-100);
  overflow: hidden;
}

.certif {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: center;
  gap: 80px;
}

.cert-left {
  display: flex;
  justify-content: center;
}

.cert-left .badge-wrap {
  position: relative;
  width: 350px;
  height: 350px;
}


.cert-left .badge {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  border: 2px solid #c94334;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  background: transparent;
}

.cert-left .badge .lv {
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  color: #c94334;
  font-family: var(--font-jp);
}

.cert-left .badge .jp {
  margin-top: 10px;
  font-size: .9rem;
  letter-spacing: .22em;
  color: #8d8d8d;
}

.cert-left .badge .lv-name {
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .38em;
  color: var(--navy-600);
}

.cert-right h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  margin: 0;
  color: var(--black);
  font-family: var(--font-jp);
  font-weight: 600;
}

.cert-right h2 span {
  display: block;
  margin-top: 6px;
  font-size: .8em;
  font-weight: 700;
}

.cert-right p {
  margin-top: 28px;
  max-width: 720px;
  line-height: 1.5;
  color: var(--muted);
  font-size: 1rem;
}

.next-level a {
  color: var(--red-600);
  text-decoration: none;
  font-weight: 600;
}

/* =========================================
   TIMELINE
========================================= */

.cert-steps {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cert-steps .steps {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cf4435;
}

.dot.gold {
  background: #c7a046;
}

.line {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #C0392B 0%, #C9A84C 100%);

}

.label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {

  .certif {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .cert-right {
    text-align: center;
  }

  .cert-right p {
    margin-inline: auto;
  }

  .cert-steps {
    justify-content: center;
  }
}

@media (max-width: 640px) {

  .cert-section {
    padding: 30px 0;
  }

  .badge-wrap {
    width: 280px;
    height: 280px;
    margin: 0;
    padding: 0;
  }

  .badge {
    inset: 34px;
  }

  .badge .lv {
    font-size: 4rem;
  }

  .line {
    width: 34px;
  }

  .cert-steps {
    gap: 10px;
  }

  .label {
    font-size: .62rem;
  }
}

/* Support & Resources cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px
}

.support-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  border-color: var(--red-700);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.support-card .num {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-jp);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  min-width: 60px;
  color: var(--red-600);
}

.support-card h3 {
  font-family: var(--font-jp);
  color: var(--navy-900);
  margin: 0 0 6px;
  font-size: 1.05rem
}

.support-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted)
}

@media (max-width:800px) {
  .support-grid {
    grid-template-columns: 1fr
  }
}

/* Bottom dark enquiry CTA on level pages */
.enquiry-bottom {
  background: var(--brown-900);
  color: #fff;
  padding: 70px 0
}

.enquiry-bottom .form-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 30px;
}

.enquiry-bottom .form-card input,
.enquiry-bottom .form-card textarea {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font: inherit;
  margin-bottom: 12px;
}

.enquiry-bottom .form-card input::placeholder,
.enquiry-bottom .form-card textarea::placeholder {
  color: #a89a86
}

.enquiry-bottom .form-card button {
  width: 100%;
  background: var(--red-600);
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600
}

/* ============================================================
   About Japanese page
   ============================================================ */
.split-dark-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px
}

.split-dark-light .light div {
  padding: 20px;
  margin-top: 10px;
  background-color: var(--cream-200);
  border-left: 3px solid #C0392B;
}

.split-dark-light .light div span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.split-dark-light .light {
  background: var(--cream-50);
  padding: 90px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.split-dark-light .dark {
  background: var(--brown-900);
  color: #e8d8c5;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.split-dark-light .dark h3 {
  color: #fff
}

.split-dark-light h2 {
  font-size: 2rem
}

.split-dark-light h2 .accent {
  color: var(--red-600);
  font-style: italic
}

@media (max-width:900px) {
  .split-dark-light {
    grid-template-columns: 1fr
  }

  .split-dark-light .light,
  .split-dark-light .dark {
    padding: 40px 20px;
  }
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px
}

.scripts-grid .card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 30px 26px;
  color: #dde3f1;
}

.scripts-grid .card:hover {
  border-color: var(--white) !important;
}

.scripts-grid .num {
  color: var(--red-600);
  font-family: var(--font-jp);
  font-size: 2.5rem;
  font-weight: 700
}

.scripts-grid .char-count {
  color: var(--red-600);
  font-family: var(--font-jp);
  font-size: .7rem;
  font-weight: 700;
  border: 2px solid #D4A0174D;
  padding: 5px;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 10px;
}

.keyboard span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #3b4a5f;
  color: #cfd8e3;
  border: 1px solid #3b4a5f;
  border-radius: 4px;
  font-size: 20px;
  font-family: var(--font-jp);
  cursor: pointer;
}

.scripts-grid h3 {
  color: #fff;
  margin: 6px 0 10px;
  font-family: var(--font-sans)
}

.scripts-grid .sample {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: 8px
}

.scripts-grid p {
  font-size: .88rem;
  color: #bcc4d6;
  margin: 15px 0;
}

@media (max-width:800px) {
  .scripts-grid {
    grid-template-columns: 1fr
  }

  .keyboard {
    grid-template-columns: repeat(4, 40px);
  }
}

.modern-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 42px;
  align-items: center
}

.modern-grid h2 {
  font-family: var(--font-shippori);
  font-weight: 600;
  font-size: 2.5rem;
}

.modern-grid p {
  font-size: 0.9rem;
}

.modern-stats {
  background: var(--brown-900);
  color: #fff;
  border-radius: 14px;
  padding: 34px 32px;
}

.modern-stats .stat {
  padding: 14px 0;
  border-bottom: 1px solid #fff;
}

.modern-stats .stat:last-child {
  border-bottom: 0
}

.modern-stats .stat strong {
  display: block;
  font-family: var(--font-shippori);
  font-size: 2.5rem;
  color: #fff
}

.modern-stats .stat strong em {
  color: var(--red-600);
  font-style: normal;
  font-size: 3rem;
}

.modern-stats .stat span {
  font-size: .86rem;
  color: #cfb89a
}

@media (max-width:900px) {
  .modern-grid {
    grid-template-columns: 1fr
  }
}

/* About-us specific blocks */
.who-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center
}

.who-grid img {
  border-radius: 12px;
  box-shadow: var(--shadow-md)
}

.who-grid .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px
}

.who-grid .pair .item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 10px
}

.who-grid .pair .item:hover {
  background-color: var(--cream-100);
}

.who-grid .pair .item strong {
  display: block;
  /* font-family: var(--font-serif); */
  color: var(--navy-900)
}

.who-grid .pair .item span {
  font-size: .86rem;
  color: var(--muted)
}

@media (max-width:900px) {
  .who-grid {
    grid-template-columns: 1fr
  }
}

.timeline {
  max-width: 50%;
  margin: 30px auto 0;
}

.timeline .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
  transition: all 0.3s ease;
  gap: 24px;
  border-bottom: 1px dashed var(--line);
  text-align: right;
}

.timeline .row:last-child {
  border-bottom: 0
}

.timeline .row .yr {
  font-family: var(--font-jp);
  /* color: var(--red-600); */
  /* font-size: 1.6rem; */
  /* font-weight: 700; */
  text-align: right;

  display: block;
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.timeline .row p {
  margin: 0;
  color: var(--text);
  font-size: .95rem
}

.timeline .row .side {
  text-align: center;
}

.timeline .row .circle {
  width: 50px;
  height: 50px;
  /* background: #c62828; */
  color: var(--red-600);
  border-radius: 50%;
  border: 1px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: auto;
  transition: all 0.3s ease;
}

@media (max-width:900px) {
  .timeline {
    max-width: 95%;
  }

  .timeline .row {
    padding: 10px;
  }
}

/* Hover effect for circle */
.row:hover .circle {
  background: var(--red-600);
  color: var(--white);
  border: 2px solid #c62828;
}

/* Native teachers */
.teachers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px
}

.teacher {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  color: #dde3f1;
}

.teacher:hover {
  border: 2px solid var(--red-700)
}

.teacher-levels {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.level {
  background: #000;
  color: var(--white) !important;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.teacher .av {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--brown-700);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  border: 3px solid rgba(216, 74, 60, .5);
}

.teacher h4 {
  font-family: var(--font-jp);
  color: var(--black);
  margin: 0 0 4px
}

.teacher span {
  font-size: .85rem;
  color: #8A7D6B;
  letter-spacing: .06em
}

.teacher p {
  font-size: .88rem;
  color: #8A7D6B;
  margin: 12px 0 0
}

@media (max-width:900px) {
  .teachers {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start
}

.contact-info .item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--red-700);
  border-left: 5px solid var(--red-700);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.contact-info .item .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #C0392B1a;
  display: grid;
  place-items: center;
}

.contact-info .item .ic img {
  width: 18px;
  height: 18px;
  filter: invert(27%) sepia(78%) saturate(1900%) hue-rotate(345deg) brightness(88%) contrast(92%);
}

.contact-info .item h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-info .item p {
  margin: 0;
  color: var(--black);
  font-size: .92rem;
  line-height: 1.5
}

.hours-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 8px;
}

.hours-card h4 {
  font-family: var(--font-jp);
  margin: 0 0 12px;
  color: #FFD700;
}

.hours-card .row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10)
}

.hours-card .row:last-child {
  border-bottom: 0
}

.hours-card .row span {
  color: #cfd6e8
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red-600);
  border-radius: 30px;
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-size: 1.5rem;
  margin-bottom: 6px
}

.contact-form .lead {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 18px
}

.contact-form label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #444;
  margin: 10px 0 6px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5dfd0;
  border-radius: 8px;
  font: inherit;
  background: #fbf7ee;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red-600);
  outline-offset: 1px;
  background: #fff
}

.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.contact-form button {
  margin-top: 18px;
  width: 100%;
  background: var(--red-600);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600
}

.contact-form .note {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: .9rem
}

.alert.success {
  background: #e6f6ea;
  color: #1f6c33;
  border: 1px solid #b9e0c4
}

.alert.error {
  background: #fbe9e9;
  color: #a02323;
  border: 1px solid #f0c2c2
}

@media (max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr
  }

  .contact-form .row-2 {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--black);
  color: #cfd6e8;
  padding: 60px 0 0;
  font-size: .92rem
}

.site-footer .grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr 1.1fr;
  gap: 36px
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  margin: 0 0 14px
}

.site-footer p {
  color: #a8b2c6;
  margin: 0 0 14px
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer ul li a {
  font-family: var(--font-zen);
}

.site-footer ul a:hover {
  color: #fff
}

.site-footer .brand {
  color: #fff
}

.site-footer .info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: #cfd6e8
}

.site-footer .info-item img {
  width: 14px;
  height: 16px;
  margin-top: 4px;
  filter: brightness(0) invert(1) opacity(.85)
}

.site-footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 14px
}

.site-footer .socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
}

.site-footer .socials a:hover {
  background: var(--red-600)
}

.site-footer .socials img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1) opacity(.85)
}

.site-footer .copy {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #8893ad;
  font-size: .85rem;
}

@media (max-width:900px) {
  .site-footer .grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .site-footer .grid {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   Home page — Figma-aligned blocks
   ============================================================ */

/* ----- Pathway section (Figma-aligned) ----- */
.pathway-section {
  position: relative;
  overflow: hidden;
  background: var(--cream-100)
}

.pathway-section .kanji-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-jp);
  font-weight: 700;
  color: rgba(180, 150, 110, .10);
  font-size: clamp(20rem, 42vw, 40rem);
  line-height: 1;
  letter-spacing: .1em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

.pathway-section .container {
  position: relative;
  z-index: 1
}

/* Top thin red divider with centered dot */
.pathway-divider {
  position: relative;
  height: 1px;
  background: var(--red-600);
  opacity: .55;
  margin: 0 0 50px;
}

.pathway-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-600);
}

.pathway-split {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.pathway-title {
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: .5px;
  margin: 14px 0 22px;
}

.pathway-title .accent {
  color: var(--red-600);
  font-style: normal;
  display: inline-block
}

.pathway-section p {
  color: #4a4338;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 540px;
  margin: 0 0 18px
}

/* Pathway features — flat, kanji left + text right */
.pathway-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 36px;
  margin-top: 34px;
}

.pf-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.pf-kanji {
  font-family: var(--font-jp);
  color: var(--red-600);
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0;
}

.pf-text strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pf-text p {
  margin: 0;
  color: #6b6258;
  font-size: .88rem;
  line-height: 1.55;
  max-width: none
}

@media (max-width:700px) {
  .pathway-features {
    grid-template-columns: 1fr;
    gap: 22px
  }
}

/* Pathway image — thin red frame */
.pathway-image {
  position: relative;
  padding: 14px
}

.pathway-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--red-600);
  opacity: .45;
  border-radius: 10px;
  pointer-events: none;
}

.pathway-image img {
  border-radius: 4px;
  box-shadow: none;
  width: 100%;
  display: block;
}

@media (max-width:900px) {
  .pathway-split {
    grid-template-columns: 1fr;
    gap: 36px
  }
}

/* JLPT Course Lineup — Figma cards with red hover + featured N3 */
.lineup-jp {
  font-family: var(--font-jp);
  color: var(--red-600);
  font-size: 1rem;
  letter-spacing: .18em;
  margin: 6px 0 14px;
  font-weight: 500;
}

.lineup-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.lineup-strip .lineup-card {
  position: relative;
  background: #fff;
  border: 1px solid #ece5d5;
  color: var(--text);
  text-align: left;
  padding: 34px 28px 28px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .35s ease, color .35s ease, transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}

.lineup-strip .lineup-tag {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a9080;
  font-weight: 600;
}

.lineup-strip .lineup-card .lv {
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.lineup-strip .lineup-card .lv-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 400;
  margin-top: -4px;
}

.lineup-strip .lineup-card .desc {
  color: #6b6258;
  font-size: .86rem;
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.lineup-strip .lineup-arrow {
  margin-top: 14px;
  color: var(--navy-900);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .3s ease, color .35s ease;
}

/* Decorative kanji number in card corners (五/四/三/二/一) */
.lineup-card .card-kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .85);
  color: transparent;
  transition: opacity .35s ease, -webkit-text-stroke-color .35s ease;
  opacity: 0;
}

.lineup-card .card-kanji.top {
  top: 22px;
  right: 24px;
  font-size: 2.2rem;
  letter-spacing: .04em
}

.lineup-card .card-kanji.bottom {
  bottom: 22px;
  right: 24px;
  font-size: 1.6rem;
  opacity: 0
}

/* Show kanji when card is red (hover or featured) */
.lineup-card.featured .card-kanji.top,
.lineup-card:hover .card-kanji.top {
  opacity: .95
}

.lineup-card.featured .card-kanji.bottom,
.lineup-card:hover .card-kanji.bottom {
  opacity: 1
}

/* Hover — turn whole card red */
.lineup-strip .lineup-card:hover {
  background: #B91C1C;
  border-color: var(--red-600);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(210, 54, 42, .25);
}

.lineup-strip .lineup-card:hover .lineup-tag {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  padding: 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  letter-spacing: .18em;
}

.lineup-strip .lineup-card:hover .lv,
.lineup-strip .lineup-card:hover .lv-name,
.lineup-strip .lineup-card:hover .desc,
.lineup-strip .lineup-card:hover .lineup-arrow {
  color: #fff
}

.lineup-strip .lineup-card:hover .lineup-arrow {
  transform: translateX(4px)
}

/* Featured (N3) — red by default */
.lineup-strip .lineup-card.featured {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
  box-shadow: 0 18px 36px rgba(210, 54, 42, .22);
}

.lineup-strip .lineup-card.featured .lineup-tag {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  padding: 6px 14px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  letter-spacing: .18em;
}

.lineup-strip .lineup-card.featured .lv,
.lineup-strip .lineup-card.featured .lv-name,
.lineup-strip .lineup-card.featured .desc,
.lineup-strip .lineup-card.featured .lineup-arrow {
  color: #fff
}

@media (max-width:1100px) {
  .lineup-strip {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:760px) {
  .lineup-strip {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:480px) {
  .lineup-strip {
    grid-template-columns: 1fr
  }
}

/* Why Astro Academy — 6 cards 2x3 with kanji icons */
.why-choose {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 110px;
}

/* .why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11, 24, 56, .92) 0%, rgba(11, 24, 56, .78) 50%, rgba(11, 24, 56, .55) 100%);
  z-index: 1;
} */

.why-choose .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .1;
  z-index: 0
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.why-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  padding: 28px 26px;
  color: #dde3f1;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border: 2px solid rgba(216, 73, 60, 0.678);
}

.why-card .kanji {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(216, 74, 60, .15);
  color: var(--red-600);
  font-family: var(--font-jp);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.why-card h3 {
  color: #fff;
  margin: 0 0 8px;
  font-family: var(--font-zen);
  font-size: 1.15rem
}

.why-card p {
  margin: 0;
  font-size: .9rem;
  color: #bcc4d6;
  line-height: 1.7
}

@media (max-width:900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:600px) {
  .why-grid {
    grid-template-columns: 1fr
  }
}

/* Path to Japan — horizontal stepper */
.path-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 38px;
}

.path-step {
  border: 1px solid var(--line);
  padding: 15px 25px;
  transition: all 0.3s ease;
  /* text-align: center; */
}

.path-step:hover {
  box-shadow: 0 8px 24px 10px rgba(192, 57, 43, .30);
}

.path-step:hover .path-num {
  opacity: 1;
}

.path-step .path-num {
  font-family: var(--font-shippori);
  font-size: 4rem;
  font-weight: 700;
  color: var(--red-600);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.75;
}

.path-step h3 {
  color: var(--navy-900);
  font-family: var(--font-serif);
  margin: 0 0 8px;
  font-size: 1.2rem
}

.path-step p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
  margin-inline: auto
}

.path-dot {
  align-self: center;
  color: var(--red-600);
  opacity: .55;
  font-size: .6rem;
  letter-spacing: .4em;
  margin-top: 32px;
}

@media (max-width:900px) {
  .path-steps {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .path-dot {
    display: none
  }
}

/* How we prepare students — left media, right grouped lists */
.prepare-grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.prepare-media h2 {
  color: #fff;
  margin: 8px 0 18px;
  font-family: var(--font-shippori);
}

.prepare-media p {
  color: var(--muted);
}

.prepare-media img {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  margin-top: 18px
}

.prepare-list {
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* background: #10203c; */
}

.prepare-block {
  display: grid;
  grid-template-columns: 50px 1fr;
  width: 100%;
  gap: 36px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prepare-block:hover {
  border: 1px solid var(--gold-400) !important;
}

.prepare-block:last-child {
  border-bottom: none;
}

/* Left Number */
.prepare-block .num {
  color: var(--red-600);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-shippori);
  opacity: 0.95;
}

/* Right Content */
.prepare-content h3 {
  margin: 0;
  color: #fff;
  /* font-size: 28px; */
  line-height: 1.2;
  font-weight: 500;
  font-family: var(--font-serif);
}

/* Japanese line */
.prepare-content .jp-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 4px;
  font-family: var(--font-shippori);
}

/* Description */
.prepare-content p {
  margin: 8px 0 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 15px;
}

/* List */
.prepare-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  /* gap: 10px; */
}

.prepare-block ul li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 16px;
  line-height: 1.7;
}

/* Red dash */
.prepare-block ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-600);
}

/* Tablet */
@media (max-width: 992px) {
  .prepare-block {
    grid-template-columns: 90px 1fr;
    gap: 26px;
    padding: 40px 30px;
  }

  .prepare-block .num {
    font-size: 58px;
  }

  .prepare-content h3 {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .prepare-block {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 22px;
  }

  .prepare-block .num {
    font-size: 50px;
  }

  .prepare-content h3 {
    font-size: 24px;
  }

  .prepare-content .jp-text {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .prepare-content p,
  .prepare-block ul li {
    font-size: 15px;
  }
}

@media (max-width:900px) {
  .prepare-grid {
    grid-template-columns: 1fr
  }
}

/* FAQ — Upcoming Batches aside */
.batches-aside {
  background: linear-gradient(160deg, #1a1410 0%, #3a1a13 100%);
  color: #fff;
  border-radius: 18px;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.batches-aside .eyebrow {
  margin-bottom: 18px
}

.batch-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.batch-row:last-of-type {
  border-bottom: 0
}

.batch-row h4 {
  margin: 0 0 4px;
  font-family: var(--font-shippori);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;

}

.batch-row p {
  margin: 0;
  font-size: .74rem;
  color: #d6d5d5;
  letter-spacing: .04em;
  line-height: 1.5;
}

.batch-row span {
  background-color: #C0392B26;
  padding: 4px 10px;
  color: var(--red-600);
  font-size: 0.7rem;
}

.batches-cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  font-weight: normal;
}

.batches-cta:hover {
  color: var(--white);
  box-shadow: 0px 4px 22.3px 0px rgba(229, 38, 40, 0.8);
}

/* Phone button in CTA */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial blockquote {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.75;
  position: relative;
  padding-left: 18px;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  left: -2px;
  top: -12px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--red-600);
  line-height: 1;
}

.testimonial figcaption {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial figcaption strong {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-size: 1rem
}

.testimonial figcaption span {
  font-size: .82rem;
  color: var(--muted)
}

@media (max-width:900px) {
  .testimonials {
    grid-template-columns: 1fr
  }
}

/* Captioned gallery — 2 rows of 3 */
.captioned-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.cap-item {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.cap-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease
}

.cap-item:hover img {
  transform: scale(1.06)
}

.cap-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 18px 14px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: .95rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
}

@media (max-width:800px) {
  .captioned-gallery {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:520px) {
  .captioned-gallery {
    grid-template-columns: 1fr
  }
}

.enroll {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0;
}

.enroll a {
  color: var(--red-600);
}

@media (max-width: 768px) {
  .enroll {
    text-align: center;
    line-height: 1.8;
  }

  .enroll a {
    display: block;
    margin-top: 6px;
  }
}


/*  */
/*  */
/*  */
.jp-hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-900);
  padding: 40px 0px;
}

/* Background Japanese Text */
.jp-hero-banner::before {
  content: "日本語 · 学ぶ";
  position: absolute;
  top: 10%;
  left: 10%;
  font-size: 12vw;
  font-weight: 700;
  opacity: 0.05;
  letter-spacing: 10px;
  color: var(--white);
  white-space: nowrap;
  z-index: 1;
  user-select: none;
}

.jp-hero-content {
  position: relative;
  z-index: 2;
  display: block;
  align-items: center;
}

.jp-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.jp-logo img {
  width: 100px;
  max-width: 100%;
}

.jp-hero-banner h1 {
  color: #fff;
  font-size: 64px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.jp-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 28px;
  letter-spacing: 8px;
  margin-bottom: 45px;
  font-weight: 300;
  text-align: center;
}

.jp-button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline:hover .jp-phone-icon img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(30%) saturate(1458%) hue-rotate(190deg) brightness(94%) contrast(98%);
}

/* Tablet */
@media (max-width: 992px) {
  .jp-hero-banner h1 {
    font-size: 48px;
  }

  .jp-subtitle {
    font-size: 22px;
    letter-spacing: 5px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .jp-hero-banner {
    min-height: auto;
    padding: 80px 20px;
  }

  .jp-hero-banner::before {
    font-size: 24vw;
  }

  .jp-logo img {
    width: 90px;
  }

  .jp-hero-banner h1 {
    font-size: 34px;
  }

  .jp-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 35px;
  }

  .jp-button-group {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .course-head {
    grid-template-columns: 1fr !important;
  }
}