/* =========================================================
   Học viện Giáo dục Quốc tế SAITAMA — Design tokens
   Palette: trích xuất từ logo (dải xanh lá hình khối) —
            primary #105A39 (chủ đạo) + accent #2E8034 (CTA/nhấn)
            trên nền trắng, xám-lục trung tính
   Type: một font duy nhất — Roboto (sans-serif)
   ========================================================= */

:root {
  --text: #171b19;
  --text-soft: #52605a;
  --surface: #ffffff;
  --surface-alt: #f3f8f4;
  --primary: #105a39;
  --primary-deep: #0c4a2e;
  --primary-mist: #1f7a46;
  --accent: #2e8034;
  /* #2e8034 đạt 4.94:1 trên nền trắng/primary — AA cho text nhỏ (thay cho vermillion cũ) */
  --accent-soft: #8ed257;
  --success-line: #bee3b4;
  /* Giữ nguyên giá trị gold đã fix contrast trước đó (#7d5f22 ~ 6:1 trên nền trắng) — sao dùng làm quy ước đánh giá, tách khỏi palette thương hiệu */
  --star: #7d5f22;
  --white: #ffffff;

  --font-display: "Roboto", "Roboto", sans-serif;
  --font-body: "Roboto", "Roboto", sans-serif;

  --max-width: 1160px;
  --header-h: 88px;

  /* Unified card radius — trước đây có 3 giá trị khác nhau (4/6/20px) không rõ lý do;
     giờ tách 2 tầng rõ ràng: card nội dung thường + khối trực quan nổi bật (feature) */
  --radius-card: 8px;
  --radius-feature: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Anchor targets (#gioi-thieu, #ly-do...) must not hide under the sticky 88px header */
[id] { scroll-margin-top: 104px; }

/* Visible keyboard focus ring — WCAG 2.4.7. Mouse users never see it (:focus-visible). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Skeleton loading cho ảnh nội dung: nền + dải sáng chạy qua trong lúc chờ tải,
   tắt ngay khi ảnh đã hiển thị (class .is-loaded/.is-error do main.js gắn vào).
   Icon nhỏ trong header/nút liên hệ nổi không cần hiệu ứng này. */
img:not(.brand-mark):not(.floating-contact-btn img) {
  background-color: var(--surface-alt);
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: img-skeleton 1.6s ease-in-out infinite;
}

img.is-loaded,
img.is-error {
  animation: none;
  background: none;
}

@keyframes img-skeleton {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  img { animation: none; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
/* Nổi trong suốt trên banner ảnh; chuyển sang nền trắng đặc khi cuộn xuống
   (đổi bằng JS thêm class .is-scrolled) hoặc khi mở menu mobile, để chữ luôn đọc được */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--surface);
  border-bottom-color: rgba(12, 74, 46, 0.1);
  box-shadow: 0 2px 16px rgba(10, 14, 28, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text .vi {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

.brand-text .jp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .brand-text .vi {
  color: var(--primary);
}

.site-header.is-scrolled .brand-text .jp {
  color: var(--text-soft);
}

/* Nút "Đăng ký tư vấn" ẩn khi header còn trong suốt, chỉ hiện khi đã cuộn (nền trắng) */
.site-header .btn-primary {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-header.is-scrolled .btn-primary {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #25682a; }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Biến thể outline dùng trên nền tối (hero) — thay cho style inline lặp lại ở 2 file */
.btn-outline-invert {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-invert:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

/* Full-bleed auto-rotating photo slideshow, behind .hero-scrim + .hero-inner */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Neutral dark overlay so hero text keeps AA contrast regardless of image content */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.72) 32%, rgba(0,0,0,0.48) 58%, rgba(0,0,0,0.22) 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Header giờ nổi trong suốt (position: fixed, không còn chiếm chỗ trong flow)
     nên phải tự chừa khoảng trống bằng chiều cao header để chữ không bị che */
  padding: calc(var(--header-h) + 76px) 32px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.3;
  max-width: 560px;
}

.hero-title .jp-sub {
  display: block;
  font-size: 0.4em;
  font-family: var(--font-body);
  font-weight: 400;
  /* 0.7 (không phải 0.6 như bản indigo cũ) — nền primary sáng hơn indigo nên cần alpha cao hơn để giữ 4.5:1 */
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.hero-desc {
  margin-top: 22px;
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  line-height: 1.8;
}

.hero-loc {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-bottom-space { height: 68px; }

/* ---------- Section dots (scroll-spy, fixed right-center) ---------- */
/* Ẩn dưới 1024px — không đủ chỗ và trùng với thao tác cuộn bằng ngón tay trên tablet/mobile */
.section-dots {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.section-dot {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.section-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(23, 27, 25, 0.35);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-dot:hover::before,
.section-dot:focus-visible::before {
  border-color: var(--primary);
}

.section-dot.is-active::before {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.3);
}

.section-dot-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-deep);
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.section-dot:hover .section-dot-label,
.section-dot:focus-visible .section-dot-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1024px) {
  .section-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-dot::before,
  .section-dot-label {
    transition: none;
  }
}

/* ---------- Floating contact (Zalo / Messenger) ---------- */
.floating-contact {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-contact-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(10, 14, 28, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: floating-contact-pulse 2.6s ease-in-out infinite;
}

.floating-contact-btn svg { width: 27px; height: 27px; }

.floating-contact-btn--zalo {
  background: var(--white);
  padding: 7px;
  animation-delay: 0s;
}
.floating-contact-btn--zalo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-contact-btn--messenger {
  background: linear-gradient(135deg, #00c6ff 0%, #0068ff 100%);
  animation-delay: 1.3s;
}

.floating-contact-btn:hover,
.floating-contact-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(10, 14, 28, 0.3);
}

@keyframes floating-contact-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(10, 14, 28, 0.22), 0 0 0 0 rgba(0, 104, 255, 0.35); }
  50% { box-shadow: 0 10px 24px rgba(10, 14, 28, 0.22), 0 0 0 8px rgba(0, 104, 255, 0); }
}

/* Tooltip flows to the right — mirror of .section-dot-label, which sits on the right edge and flows left */
.floating-contact-tip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-deep);
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.floating-contact-btn:hover .floating-contact-tip,
.floating-contact-btn:focus-visible .floating-contact-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 880px) {
  /* Moved to the right edge — every icon/number badge in the page content (feature
     icons, "01/02" cards, checklist icons) sits at the LEFT edge of the column, so a
     left-docked FAB was permanently overlapping them while scrolling. The right edge
     only ever meets ragged line-endings, which avoids that collision. */
  .floating-contact { left: auto; right: 14px; bottom: 14px; gap: 12px; }
  .floating-contact-btn { width: 50px; height: 50px; }
  .floating-contact-btn svg { width: 24px; height: 24px; }
  .floating-contact-tip {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 6px;
    transform: translateY(-50%) translateX(-8px);
  }
  .floating-contact-btn:hover .floating-contact-tip,
  .floating-contact-btn:focus-visible .floating-contact-tip {
    transform: translateY(-50%) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-btn { animation: none; }
  .floating-contact-btn,
  .floating-contact-tip {
    transition: none;
  }
}

/* ---------- Section shell ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

/* Nền "banner" — gradient nghiêng + halo mờ + hoạ tiết sóng Nhật (seigaiha) rất nhạt,
   thay cho mảng màu phẳng đơn điệu, vẫn giữ tông thương hiệu để chữ/ảnh nổi rõ */
.section-scenic {
  position: relative;
  background: linear-gradient(160deg, #eaf6ee 0%, var(--surface-alt) 45%, #e2f0e6 100%);
  overflow: hidden;
}

.section-scenic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* mảng sáng phủ góc trên-trái để chữ luôn nổi trên nền gần như trắng */
    linear-gradient(120deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0) 56%),
    radial-gradient(circle at 96% 10%, rgba(142, 210, 87, 0.3) 0%, transparent 46%),
    radial-gradient(circle at 88% 104%, rgba(16, 90, 57, 0.14) 0%, transparent 42%);
  pointer-events: none;
}

.section-scenic::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23105a39' stroke-opacity='0.07' stroke-width='1.5'%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Ccircle cx='0' cy='0' r='16'/%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='32' cy='0' r='8'/%3E%3Ccircle cx='32' cy='0' r='16'/%3E%3Ccircle cx='32' cy='0' r='24'/%3E%3Ccircle cx='64' cy='0' r='8'/%3E%3Ccircle cx='64' cy='0' r='16'/%3E%3Ccircle cx='64' cy='0' r='24'/%3E%3Ccircle cx='16' cy='32' r='8'/%3E%3Ccircle cx='16' cy='32' r='16'/%3E%3Ccircle cx='16' cy='32' r='24'/%3E%3Ccircle cx='48' cy='32' r='8'/%3E%3Ccircle cx='48' cy='32' r='16'/%3E%3Ccircle cx='48' cy='32' r='24'/%3E%3Ccircle cx='0' cy='64' r='8'/%3E%3Ccircle cx='0' cy='64' r='16'/%3E%3Ccircle cx='0' cy='64' r='24'/%3E%3Ccircle cx='32' cy='64' r='8'/%3E%3Ccircle cx='32' cy='64' r='16'/%3E%3Ccircle cx='32' cy='64' r='24'/%3E%3Ccircle cx='64' cy='64' r='8'/%3E%3Ccircle cx='64' cy='64' r='16'/%3E%3Ccircle cx='64' cy='64' r='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  /* chừa vùng trên-trái (nơi đặt tiêu đề) sạch hoạ tiết, hoạ tiết chỉ hiện rõ dần về phía dưới-phải */
  mask-image: linear-gradient(135deg, transparent 0%, transparent 34%, black 78%);
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, transparent 34%, black 78%);
  pointer-events: none;
}

.section-scenic > .wrap {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-eyebrow--dual::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

.section-lede {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
}

/* ---------- About / Giới thiệu ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: stretch;
}

/* Poster-style visual — photo of SAITAMA with caption overlay */
.intro-visual {
  position: relative;
  border-radius: var(--radius-feature);
  background: linear-gradient(160deg, var(--primary-mist) 0%, var(--primary) 55%, var(--primary-deep) 100%);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 28px;
}

.intro-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-visual-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 44, 24, 0.15) 0%, rgba(12, 44, 24, 0.35) 55%, rgba(12, 44, 24, 0.75) 100%);
}

.intro-visual-text { position: relative; text-align: center; color: var(--white); }

.intro-visual-eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.intro-visual-mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.intro-visual-jp {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

.intro-visual-chip {
  position: absolute;
  bottom: 26px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.intro-visual-chip svg { width: 20px; height: 20px; }

.intro-content { display: flex; flex-direction: column; }

.intro-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 7px 14px;
  margin-bottom: 18px;
}

.intro-content .section-title { margin-bottom: 22px; }

.intro-text p { color: var(--text-soft); font-size: 16px; line-height: 1.9; margin-bottom: 18px; }
.intro-text p:last-child { margin-bottom: 0; }

.about-lede {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--primary);
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.intro-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 28px; }

.feature-item { display: flex; gap: 16px; align-items: flex-start; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 18px; height: 18px; }

.feature-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1.4;
}

.feature-text { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ---------- Chairman message (signature block) ---------- */
.chairman-card {
  background: var(--surface);
  border: 1px solid rgba(16, 90, 57, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 48px rgba(16, 90, 57, 0.1);
  padding: 56px;
}

.chairman {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: flex-start;
}

.chairman-portrait { position: relative; }

.portrait-frame {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-mist), var(--primary-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--surface-alt), 0 0 0 8px var(--accent-soft), 0 18px 30px rgba(16, 90, 57, 0.2);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 60%;
  background: rgba(255,255,255,0.05);
  bottom: -20%;
  left: -20%;
  border-radius: 50%;
  pointer-events: none;
}

.chairman-name {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.02em;
}

.chairman-role {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
  text-align: center;
}

.chairman-quote-mark {
  width: 40px;
  height: 30px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.chairman-pull {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.55;
  color: var(--primary);
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
  margin-bottom: 28px;
}

.chairman-quote {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-soft);
  position: relative;
}

.chairman-quote p { margin-bottom: 18px; }
.chairman-quote strong { color: var(--text); }

/* padding+negative margin pads the tap target to ~44px (WCAG touch-target minimum)
   without shifting surrounding layout — text/icon still render at their original size */
.chairman-more {
  margin: -10px 0 -14px;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border: none;
  background: none;
  padding: 14px 0;
}

.chairman-extra { display: none; }
.chairman-extra.open { display: block; }

/* ---------- Reasons grid ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.reason-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(16, 90, 57, 0.18);
}

.reason-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reason-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}

.reason-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reason-icon svg { width: 19px; height: 19px; }

.reason-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.reason-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- Admission intakes / Các kỳ nhập học ---------- */
.intake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  align-items: stretch;
}

.intake-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(12, 74, 46, 0.14);
  border-radius: var(--radius-card);
  padding: 34px 28px 28px;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.06);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.intake-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16, 90, 57, 0.14); }
.intake-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Kỳ đang được chọn để xem chi tiết — mặc định là thẻ đầu tiên, đổi khi người dùng bấm chọn thẻ khác (main.js) */
.intake-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(16, 90, 57, 0.16);
}

.intake-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 6px 14px rgba(16, 90, 57, 0.25);
  transition: background-color 0.22s ease;
}
.intake-card.is-selected .intake-badge { background: var(--accent); }

.intake-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.intake-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.intake-icon svg { width: 22px; height: 22px; }

/* Màu nền riêng theo mùa — đồng bộ với icon và màu nền ở khối Học phí (.tuition-year2-icon) */
.intake-icon--spring { background: #4a8f3c; }
.intake-icon--summer { background: #10241d; }
.intake-icon--autumn { background: #7a4e26; }

.intake-season {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.intake-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.intake-duration {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(12, 74, 46, 0.18);
}
.intake-duration-num { font-size: 28px; font-weight: 700; color: var(--accent); margin-right: 4px; }

.intake-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  flex-grow: 1;
}
.intake-meta li { display: flex; flex-direction: column; gap: 3px; }

.meta-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.meta-value { font-size: 14px; color: var(--text); line-height: 1.55; }

.intake-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.intake-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.intake-cta:hover { background: var(--primary); color: var(--white); }

.intake-card.is-selected .intake-cta {
  background: var(--accent);
  border-color: transparent;
  color: var(--white);
}
.intake-card.is-selected .intake-cta:hover { background: #25682a; }

/* ---------- Admission requirements / Điều kiện tuyển sinh ---------- */
.admission-block + .admission-block { margin-top: 44px; }

.admission-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.admission-group-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.admission-group-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

/* Ảnh và checklist cân bằng thị giác trên desktop; đảo cột giữa 2 nhóm bằng thứ tự trong HTML
   (nhóm A: list rồi tới ảnh, nhóm B: ảnh rồi tới list) để giữ đúng thứ tự đọc cho a11y. */
.admission-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 36px;
  align-items: stretch;
}

.admission-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid rgba(12, 74, 46, 0.14);
  border-radius: var(--radius-card);
  padding: 6px 26px;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.admission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.admission-item + .admission-item { border-top: 1px solid rgba(12, 74, 46, 0.1); }

.admission-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admission-item-icon svg { width: 19px; height: 19px; }

.admission-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Dấu tick "đạt điều kiện" — dùng --success-line (đã có sẵn cho trạng thái xác nhận ở form liên hệ) */
.admission-item-check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--success-line);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admission-item-check svg { width: 11px; height: 11px; }

.admission-item-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.admission-visual { margin: 0; height: 100%; }

/* Ảnh chính chiếm trọn khung, cao bằng cột checklist bên cạnh (object-fit: cover)
   để 2 cột cân đối chiều cao. */
.admission-photo-stack {
  position: relative;
  height: 100%;
}

.admission-photo-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid var(--surface);
  box-shadow: 0 20px 40px rgba(16, 90, 57, 0.14);
}
.admission-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.admission-photo-frame--main {
  z-index: 1;
  height: 100%;
}
.admission-photo-frame--main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admission-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px dashed rgba(12, 74, 46, 0.2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}
.admission-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.admission-note strong { color: var(--text); }

/* Ghi chú mốc thời gian nhập học — cùng khuôn dạng tag với .admission-note */
.intake-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 620px;
  margin: 32px auto 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px dashed rgba(12, 74, 46, 0.2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
  text-align: left;
}
.intake-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.intake-note strong { color: var(--text); }

/* ---------- Financial guarantor documents / Hồ sơ bảo lãnh tài chính ---------- */
/* Reuses .intro-grid's visual-panel recipe (.intro-visual/-blob/-art/-text/-chip) and
   .intro-content/.intro-badge/.about-lede — same poster-style illustration pattern as
   #gioi-thieu, mirrored so the checklist column runs wider than the visual. */
.guarantor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: stretch;
}

/* Visual panel shows 3 real photos as an overlapping polaroid-style collage,
   each rotated a couple degrees over a warm dotted backdrop. Mirrors the
   "scrapbook hồ sơ" reference the client supplied while keeping the site's
   own palette (kraft/--star tint for the backdrop instead of introducing a
   new beige theme). overflow:visible overrides .intro-visual so the rotated
   corners aren't clipped by the parent. */
.guarantor-visual { border-radius: 10px; background: transparent; overflow: visible; }

.guarantor-photo-grid {
  position: absolute;
  inset: 0;
}

.guarantor-photo-dots {
  position: absolute;
  inset: -14px 10% 10% -14px;
  border-radius: 18px;
  background-color: rgba(125, 95, 34, 0.06);
  background-image: radial-gradient(rgba(125, 95, 34, 0.4) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  z-index: 0;
}

.guarantor-photo {
  position: absolute;
  overflow: hidden;
  background: var(--white);
  padding: 7px;
  border-radius: 8px;
  box-shadow: 0 16px 26px -8px rgba(12, 44, 24, 0.32);
}

/* Three photos cascade top-to-bottom, alternating left/right, each tucked
   slightly behind the one above it (z-index descends main > secondary > tertiary). */
.guarantor-photo--main {
  top: 0;
  left: 0;
  width: 82%;
  height: 42%;
  transform: rotate(-2.5deg);
  z-index: 3;
}

.guarantor-photo--secondary {
  top: 34%;
  right: 0;
  width: 58%;
  height: 36%;
  transform: rotate(3deg);
  z-index: 2;
}

.guarantor-photo--tertiary {
  bottom: 0;
  left: 4%;
  width: 54%;
  height: 34%;
  transform: rotate(-3deg);
  z-index: 1;
}

.guarantor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guarantor-checklist {
  list-style: none;
  margin-top: 28px;
}

.guarantor-req {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(12, 74, 46, 0.18);
}
.guarantor-req:first-child { padding-top: 0; }
.guarantor-req:last-child { border-bottom: none; padding-bottom: 0; }

/* Kraft-tag style index chip, alternating tilt for a hand-labelled feel —
   echoes the torn-paper number tags in the client's reference layout. */
.guarantor-req-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border-radius: 5px;
  background: rgba(125, 95, 34, 0.1);
  border: 1px solid rgba(125, 95, 34, 0.22);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--star);
  transform: rotate(-2deg);
}
.guarantor-req:nth-child(even) .guarantor-req-index { transform: rotate(2deg); }

.guarantor-req-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* Ghi chú "※..." cố tình tách tông màu (gold, tái dùng --star) khỏi lưu ý xanh ở .admission-note để nổi bật riêng */
.guarantor-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(125, 95, 34, 0.07);
  border: 1px solid rgba(125, 95, 34, 0.28);
  border-radius: 8px;
  font-size: 13px;
  color: var(--star);
  line-height: 1.65;
}
.guarantor-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--star); }

.guarantor-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.guarantor-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(12, 74, 46, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.guarantor-download:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Tuition / Học phí ---------- */
.tuition-year1 {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 40px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(16, 90, 57, 0.24);
  overflow: hidden;
}

.tuition-year1::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.tuition-year1-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--accent-soft);
  padding: 8px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.tuition-year1-badge svg { width: 15px; height: 15px; }

.tuition-year1-label {
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin: 0 auto;
}

.tuition-year1-amount {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 12px;
}
.tuition-year1-amount .yen { font-size: 0.5em; color: var(--accent-soft); margin-left: 4px; }

.tuition-year1-desc {
  position: relative;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.66);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Connector giữa khối Năm 1 và bảng Năm 2 — badge tóm tắt + cây rẽ nhánh xuống đúng tâm 3 thẻ kỳ nhập học bên dưới */
.tuition-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto -8px;
}

.tuition-connector-lead {
  width: 2px;
  height: 30px;
  background: repeating-linear-gradient(to bottom, var(--success-line) 0 4px, transparent 4px 8px);
}

.tuition-connector-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--surface-alt);
  border: 1px solid var(--success-line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.08);
}

.tuition-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.tuition-connector-badge p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.tuition-connector-badge strong { color: var(--primary); font-weight: 700; }

.tuition-connector-tree {
  display: block;
  width: 100%;
  height: 90px;
  margin-top: -2px;
}
.tuition-connector-branch {
  fill: none;
  stroke: var(--success-line);
  stroke-width: 2;
}
.tuition-connector-node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2.5;
}

.tuition-connector-line-mobile { display: none; }

/* Grid 3 cột đồng bộ visual với .intake-grid (kỳ Xuân/Hạ/Thu) để nhất quán xuyên suốt trang */
.tuition-year2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.tuition-year2-card {
  background: var(--surface);
  border: 1px solid rgba(12, 74, 46, 0.14);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tuition-year2-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(16, 90, 57, 0.14);
}

.tuition-year2-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tuition-year2-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tuition-year2-icon svg { width: 20px; height: 20px; }

/* Màu nền riêng theo mùa — đồng bộ với icon (sprout/mặt trời/giọt nước) cho từng kỳ */
.tuition-year2-icon--spring { background: #4a8f3c; }
.tuition-year2-icon--summer { background: #10241d; }
.tuition-year2-icon--autumn { background: #7a4e26; }

.tuition-year2-season {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.tuition-year2-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(12, 74, 46, 0.18);
}

.tuition-year2-amount {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.tuition-year2-amount .yen { font-size: 0.55em; margin-left: 2px; }

.tuition-year2-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Ghi chú "Tổng chi phí đã bao gồm..." + ký túc xá — 2 khung đặt cùng hàng, ngay dưới bảng học phí để tăng độ tin cậy */
.tuition-includes-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.tuition-includes {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--success-line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.06);
}

.tuition-includes-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--success-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tuition-includes-icon svg { width: 15px; height: 15px; }

.tuition-includes-text { font-size: 14px; color: var(--text); line-height: 1.65; }
.tuition-includes-text strong { color: var(--primary); }
.tuition-includes-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tuition-includes-text a:hover { text-decoration: underline; }

.tuition-dorm-note { margin-top: 0; }

/* ---------- Teachers / Giáo viên ---------- */
.teachers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.teacher-card {
  background: linear-gradient(160deg, #f2faf3 0%, var(--surface) 55%);
  border: 1px solid rgba(12, 74, 46, 0.1);
  border-radius: var(--radius-feature);
  padding: 40px 36px;
  box-shadow: 0 10px 26px rgba(16, 90, 57, 0.07);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Pastel warm cream variant on the second card — differentiates the two teachers */
.teacher-card--mina { background: linear-gradient(160deg, #fdf8ec 0%, var(--surface) 55%); }

.teacher-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px rgba(16, 90, 57, 0.16);
}

.teacher-photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--accent-soft), 0 14px 28px rgba(16, 90, 57, 0.18);
  transition: transform 0.3s ease;
}
.teacher-card:hover .teacher-photo-wrap { transform: scale(1.05); }

.teacher-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.teacher-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.teacher-role {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.teacher-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.teacher-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(16, 90, 57, 0.06);
  border: 1px solid rgba(16, 90, 57, 0.14);
  border-radius: 20px;
  padding: 6px 12px;
}
.teacher-tag svg { width: 14px; height: 14px; flex-shrink: 0; }

.teacher-bio {
  text-align: left;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Quote block for the 3 self-questions — kept visible by default (not behind "Xem thêm"),
   this is the emotional hook the section is built around */
.teacher-quote-block {
  text-align: left;
  background: rgba(142, 210, 87, 0.14);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.teacher-quote-mark { width: 26px; height: 20px; color: var(--accent-soft); margin-bottom: 6px; }

.teacher-quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--primary);
  margin-bottom: 8px;
}
.teacher-quote-block p:last-child { margin-bottom: 0; }

.teacher-extra {
  display: none;
  text-align: left;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
}
.teacher-extra p { margin-bottom: 14px; }
.teacher-extra p:last-child { margin-bottom: 0; }
.teacher-extra.open { display: block; margin-bottom: 20px; }

/* padding+negative margin pads the tap target to ~44px (WCAG touch-target minimum)
   without shifting surrounding layout — text/icon still render at their original size */
.teacher-more {
  margin: -14px 0;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border: none;
  background: none;
  padding: 14px 0;
}

/* SVG thay cho emoji 📍 — emoji render khác nhau theo hệ điều hành và phá tông màu primary/accent */
.hero-loc svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Hoạt động ngoại khóa / Sự kiện ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.activity-photo {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 20px rgba(16, 90, 57, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.activity-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(16, 90, 57, 0.16);
}
.activity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.activity-photo:nth-child(4) img {
  object-position: center top;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .vi {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 16px;
}

.footer-brand .jp {
  margin-top: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-brand p { margin-top: 14px; color: rgba(255,255,255,0.6); line-height: 1.75; }

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--accent-soft); }

.footer-col-right {
  text-align: right;
  margin-left: auto;
}

.section-head.center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .section-eyebrow { justify-content: center; }
.section-head.center .section-eyebrow::before { display: none; }

/* Chú thích số liệu minh họa (*) */
.footnote {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-soft);
}

.jp-small { color: var(--text-soft); font-size: 14px; }

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  /* .45 alpha gave 4.42:1, dưới AA cho text nhỏ 13px */
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Liên hệ ---------- */
/* Sidebar thông tin + CTA hẹp bên trái, bản đồ chiếm phần rộng hơn bên phải; bản đồ giãn theo
   chiều cao sidebar (align-items: stretch) để không bị dẹt như bố cục full-width trước đây */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(12, 74, 46, 0.12);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
}

.contact-panel h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 19px;
  margin-bottom: 20px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
}

.contact-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(12, 74, 46, 0.08);
}
.contact-info-list .contact-info-row:last-child { border-bottom: none; }

.contact-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-info-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-info-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* CTA đứng dạng khối, đẩy xuống đáy panel để cân bằng khi 2 panel cao bằng nhau */
.contact-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.contact-cta { width: 100%; justify-content: center; }

.contact-panel-map { padding: 32px; }
.contact-panel-map h3 { margin-bottom: 16px; }

/* ---------- Map embed ---------- */
.map-embed {
  flex: 1;
  min-height: 260px;
  border: 1px solid rgba(12, 74, 46, 0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
.map-caption a { color: var(--primary); font-weight: 600; }
.map-caption a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  :root { --header-h: 64px; }

  /* Tighter outer gutters — 32px was eating ~40% of a 375px viewport */
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }

  .site-header .wrap { height: 64px; gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  /* Logo + CTA + hamburger cùng lúc không đủ chỗ cho tên trường đầy đủ trong header 64px
     -> ẩn tên chữ, giữ lại huy hiệu tròn "SAITAMA" làm điểm nhận diện trên mobile */
  .brand-text { display: none; }
  /* CTA vẫn giữ hiển thị trên mobile — đây là nút chuyển đổi chính, không ẩn sau menu */
  .site-header .btn-primary { padding: 10px 16px; font-size: 13px; white-space: nowrap; }

  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 40px); }
  .hero-bottom-space { height: 40px; }
  /* Text now spans full width on mobile, not just the left half — swap the
     left-to-right scrim for a top(lighter, shows photo)-to-bottom(darker, under text) one */
  .hero-scrim { background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.68) 38%, rgba(0,0,0,0.85) 100%); }
  .hero-slide-controls { bottom: 12px; }
  .intro-grid, .guarantor-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-visual { min-height: 260px; padding: 32px 20px; order: -1; }
  .about-lede { padding-left: 16px; }
  .chairman-card { padding: 32px 24px; }
  .chairman { grid-template-columns: 1fr; gap: 28px; }
  .chairman-portrait { max-width: 176px; margin: 0 auto; }
  .chairman-pull { padding-left: 18px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-card { padding: 24px 20px; }
  .intake-grid { grid-template-columns: 1fr; gap: 32px; }
  .intake-card { padding: 30px 22px 24px; }
  .admission-block-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Trên mobile luôn hiện cụm ảnh trước cụm thông tin, bất kể nhóm A/B có thứ tự HTML khác nhau để cân bằng thị giác trên desktop (xem chú thích ở .admission-block-grid) */
  .admission-visual { order: -1; height: auto; }
  /* 1 cột thì không còn cột checklist bên cạnh để ảnh "mượn" chiều cao (stretch),
     nên cần tỉ lệ khung hình cố định để ảnh không co về 0. */
  .admission-photo-stack { height: auto; }
  .admission-photo-frame--main { height: auto; aspect-ratio: 16 / 10; }
  .admission-list { padding: 4px 22px; }
  .guarantor-visual { display: none; }
  .tuition-year1 { padding: 36px 24px; }
  .tuition-year2-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Grid xếp 1 cột nên cây rẽ 3 nhánh không còn khớp — thay bằng một đường thẳng nối xuống thẻ đầu tiên */
  .tuition-connector-tree { display: none; }
  .tuition-connector-line-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .tuition-connector-line-mobile::before {
    content: "";
    width: 2px;
    height: 24px;
    background: repeating-linear-gradient(to bottom, var(--success-line) 0 4px, transparent 4px 8px);
  }
  .tuition-connector-line-mobile::after {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--surface);
    border: 2.5px solid var(--accent);
    border-radius: 50%;
  }
  .tuition-connector { margin-bottom: 8px; }
  .tuition-includes-row { grid-template-columns: 1fr; gap: 16px; }
  .tuition-includes { padding: 18px 20px; }
  .teachers-grid { grid-template-columns: 1fr; gap: 24px; }
  .teacher-card { padding: 32px 24px; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }

  /* Dưới 880px không đủ chỗ cho sidebar + bản đồ cạnh nhau — gộp về 1 cột,
     bản đồ mất chiều cao "stretch" theo sidebar nên cần tỷ lệ khung hình cố định */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 32px 24px; }
  .map-embed { flex: none; min-height: 0; aspect-ratio: 16/10; }
}

@media (max-width: 520px) {
  .intro-highlights { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .chairman-card { padding: 28px 18px; }
  .guarantor-cta { flex-direction: column; align-items: stretch; }
  .guarantor-cta .btn { justify-content: center; }
  .guarantor-download { justify-content: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 16px; }
}
