/* ============================================
   HEGURU THAILAND KASET NAWAMIN — DEMO2
   Design specs from resources (header/navbar/footer)
   ============================================ */

/* ---------- @FONT-FACE ---------- */
@font-face {
  font-family: 'MN MINI';
  src: url('../fonts/MN MINI.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MN MINI';
  src: url('../fonts/MN MINI Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FC Mission Rounded';
  src: url('../fonts/FC Mission Rounded [Non-commercial].ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --orange: #ff8036;
  --orange-dark: #e06a1e;
  --orange-light: #FFF3E0;
  --coral: #E8528A;
  --coral-light: #FCE4EC;
  --cyan: #00a7c8;
  --cyan-bg: #d0eeff;
  --peach: #FFECD2;
  --cream: #FFFDF7;
  --ivory: #FFF8F0;
  --blue-light: #E3F2FD;
  --green: #43A047;
  --gray: #818181;
  --gray-light: #808080;
  --gray-border: #d8d8d8;
  --dark: #2D1B0E;
  --dark-soft: #5D4037;
  --text: #3E2723;
  --text-muted: #8D6E63;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(93,64,55,0.08);
  --shadow-md: 0 8px 32px rgba(93,64,55,0.12);
  --shadow-lg: 0 16px 48px rgba(93,64,55,0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'MN MINI', 'Quicksand', sans-serif;
  --font-body: 'MN MINI', 'Sarabun', sans-serif;
  --font-mission: 'FC Mission Rounded', 'Quicksand', sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 19pt; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 12px;
  position: relative;
  padding-left: 36px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 2px;
  background: var(--orange);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 20px;
}
.section-title em { color: var(--orange); font-style: normal; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 32px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: var(--white); box-shadow: 0 4px 20px rgba(255,128,54,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,128,54,0.45); }
.btn--outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }

/* =============================================
   HEADER — from resources/header specs
   ============================================= */
.site-header {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
}
.site-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.site-header__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand (left) */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-header__logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: contain;
}
.site-header__titles {
  display: flex;
  flex-direction: column;
}
.site-header__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.2;
}
.site-header__branch {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.2;
}

/* Right side */
.site-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.site-header__slogan {
  text-align: right;
  line-height: 1.2;
}
.site-header__slogan-line1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
}
.site-header__slogan-line2 {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray);
}
.site-header__contact {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header__line-link,
.site-header__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray);
  transition: color var(--transition);
}
.site-header__line-link:hover,
.site-header__phone-link:hover {
  color: var(--orange);
}
.site-header__icon {
  width: 20px; height: 20px;
  object-fit: contain;
}

/* =============================================
   NAVBAR — from resources/navbar specs
   ============================================= */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.navbar__menu li {
  height: 100%;
  display: flex;
  align-items: center;
}
.navbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-light);
  border-left: 1px solid var(--gray-border);
  transition: all var(--transition);
  position: relative;
}
.navbar__menu li:last-child .navbar__link {
  border-right: 1px solid var(--gray-border);
}
.navbar__link:hover {
  color: var(--cyan);
  background: var(--cyan-bg);
}
.navbar__link.active {
  color: var(--cyan);
  background: var(--cyan-bg);
  font-size: 1.2rem;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 1001;
}
.navbar__hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--gray-light); border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =============================================
   LINE QR POPUP MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}
.modal-overlay.open .modal {
  transform: scale(1);
}
.modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.8rem; color: var(--gray-light);
  cursor: pointer; transition: color var(--transition);
  line-height: 1;
}
.modal__close:hover { color: var(--dark); }
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 20px;
}
.modal__qr {
  width: 200px; height: 200px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
}
.modal__link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  border-bottom: 1px dashed var(--cyan);
  padding-bottom: 2px;
}
.modal__link:hover { color: var(--orange); border-color: var(--orange); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  background: linear-gradient(160deg, #FFF7ED 0%, #FFECD2 30%, #FFD6BA 60%, #FFCDD2 100%);
  min-height: 75vh;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.45;
}
.hero__orb--1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -80px; right: -80px;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
  bottom: -40px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #FFD54F 0%, transparent 70%);
  top: 30%; left: 40%;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 2;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark); margin-bottom: 16px;
}
.hero__title em {
  color: var(--orange); font-style: normal;
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute; bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: rgba(255,128,54,0.2); border-radius: 4px; z-index: -1;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500; color: var(--coral);
  margin-bottom: 16px; letter-spacing: 1px;
}
.hero__desc {
  color: var(--dark-soft); font-size: 1.05rem;
  margin-bottom: 32px; max-width: 480px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: center; }
.hero__image-wrapper { position: relative; width: 320px; height: 360px; }
.hero__illustration {
  width: 100%; height: 100%;
  filter: drop-shadow(0 20px 40px rgba(93,64,55,0.15));
}
.hero__sparkle {
  position: absolute; font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}
.hero__sparkle--1 { top: 10px; right: 20px; color: #FFD54F; animation-delay: 0s; }
.hero__sparkle--2 { top: 60%; left: 0; color: var(--coral); animation-delay: 0.7s; }
.hero__sparkle--3 { bottom: 20px; right: 40px; color: var(--orange); animation-delay: 1.4s; }
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(0.6) rotate(180deg); }
}

/* Feature Cards */
.feature-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 50px;
  position: relative; z-index: 2;
}
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow-md); transition: all var(--transition);
  border: 1px solid rgba(255,128,54,0.08);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card__icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card__title { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.feature-card__desc { font-size: 0.9rem; color: var(--text-muted); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px; align-items: center;
}
.about__photo-frame {
  position: relative; max-width: 340px; margin: 0 auto;
}
.about__photo-frame::before {
  content: '';
  position: absolute; inset: -12px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--orange-light), var(--coral-light));
  z-index: -1;
}
.about__placeholder { border-radius: var(--radius-lg); overflow: hidden; }
.about__badge {
  position: absolute; bottom: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  padding: 8px 24px; border-radius: 50px; box-shadow: var(--shadow-sm);
}
.about__achievements { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.about__achievement {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--ivory); transition: all var(--transition);
}
.about__achievement:hover { background: var(--orange-light); transform: translateX(4px); }
.about__achievement-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--orange); line-height: 1; min-width: 48px;
}
.about__achievement h4 { font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.about__achievement p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   LEARNING METHOD
   ============================================= */
.method { padding: 100px 0; background: var(--cream); }
.method__header { text-align: center; margin-bottom: 60px; }
.method__header .section-label { padding-left: 0; }
.method__header .section-label::before { display: none; }
.method__diagram { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.method__step { text-align: center; max-width: 220px; }
.method__circle {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all var(--transition);
  position: relative;
}
.method__circle::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%; border: 2px dashed; opacity: 0.3;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.method__circle--input { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); color: #1565C0; }
.method__circle--input::before { border-color: #1565C0; }
.method__circle--process { background: linear-gradient(135deg, var(--orange-light), var(--peach)); color: var(--orange); }
.method__circle--process::before { border-color: var(--orange); }
.method__circle--output { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); color: var(--green); }
.method__circle--output::before { border-color: var(--green); }
.method__step:hover .method__circle { transform: scale(1.1); box-shadow: var(--shadow-md); }
.method__step h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--dark); }
.method__step p { font-size: 0.85rem; color: var(--text-muted); }
.method__arrow { flex-shrink: 0; opacity: 0.7; }

/* =============================================
   RIGHT BRAIN DIAGRAM
   ============================================= */
.brain {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--coral-light) 0%, var(--orange-light) 100%);
  overflow: hidden;
}
.brain__header { text-align: center; margin-bottom: 60px; }
.brain__header .section-label { padding-left: 0; }
.brain__header .section-label::before { display: none; }
.brain__header .section-title { color: var(--coral); }
.brain__diagram { position: relative; width: 400px; height: 400px; margin: 0 auto; }
.brain__center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 40px rgba(232,82,138,0.35); z-index: 3;
}
.brain__center::before {
  content: ''; position: absolute; inset: -16px;
  border-radius: 50%; border: 2px solid rgba(232,82,138,0.2);
  animation: pulse-ring 3s ease-in-out infinite;
}
.brain__center::after {
  content: ''; position: absolute; inset: -32px;
  border-radius: 50%; border: 1px solid rgba(232,82,138,0.1);
  animation: pulse-ring 3s ease-in-out infinite 1.5s;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.5; }
}
.brain__center-inner { text-align: center; color: var(--white); }
.brain__center-inner span {
  display: block; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; margin-top: 4px; line-height: 1.3;
}
.brain__skill {
  position: absolute; display: flex; flex-direction: column;
  align-items: center; gap: 6px; width: 100px; text-align: center;
  transition: all var(--transition); cursor: default;
}
.brain__skill:hover { transform: scale(1.15); }
.brain__skill-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.brain__skill:hover .brain__skill-icon { box-shadow: var(--shadow-md); }
.brain__skill span { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; color: var(--dark-soft); }
.brain__skill--1 { top: 0; left: 50%; transform: translateX(-50%); }
.brain__skill--2 { top: 12%; right: 0; }
.brain__skill--3 { top: 42%; right: -10px; }
.brain__skill--4 { bottom: 12%; right: 0; }
.brain__skill--5 { bottom: 0; left: 50%; transform: translateX(-50%); }
.brain__skill--6 { bottom: 12%; left: 0; }
.brain__skill--7 { top: 42%; left: -10px; }
.brain__skill--8 { top: 12%; left: 0; }

/* =============================================
   PHOTO SLIDESHOW — 3-panel horizontal strip
   ============================================= */
.slideshow {
  position: relative;
  width: 100%;
  background: var(--ivory);
  padding: 20px 56px;
  box-sizing: border-box;
  overflow: hidden;
}
.slideshow__track {
  display: flex;
  gap: 12px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.slideshow__slide {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.slideshow__slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slideshow--contact .slideshow__slide img {
  height: 320px;
  object-position: middle center;
}
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
  color: var(--cyan);
}
.slideshow__arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.slideshow__arrow--prev { left: 8px; }
.slideshow__arrow--next { right: 8px; }
.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.slideshow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.slideshow__dot.active {
  background: var(--cyan);
  transform: scale(1.3);
}

/* =============================================
   COURSES HERO (below slideshow)
   ============================================= */
.courses-hero {
  padding: 40px 0 28px;
  background: var(--white);
  text-align: center;
}
.courses-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.courses-hero__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.courses-hero__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #818181;
}
.courses-hero__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =============================================
   COURSE CARDS (ccard)
   ============================================= */
.courses-list {
  padding: 0 0 80px;
  background: var(--white);
}
.courses-list .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
}

.ccard {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.ccard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Left coloured panel — image fill */
.ccard__label {
  padding: 0;
  overflow: hidden;
  min-height: 260px;
}
.ccard__label-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Right body */
.ccard__body {
  padding: 16px;
  display: flex;
  align-items: stretch;
}
.ccard__subtitle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.ccard__list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ccard__list li {
  font-size: 0.82rem;
  color: var(--dark-soft);
  line-height: 1.65;
}

/* Gingham body backgrounds */
.ccard__body--infant {
  background-image: url('../images/bg pink.png');
  background-size: 180px auto;
  background-repeat: repeat;
}
.ccard__body--preschool {
  background-image: url('../images/bg brown.png');
  background-size: 180px auto;
  background-repeat: repeat;
}
.ccard__body--primary {
  background-image: url('../images/bg green.png');
  background-size: 180px auto;
  background-repeat: repeat;
}

/* White inner content box */
.ccard__content-box {
  background: rgba(255,255,255,0.88);
  border-radius: 12px;
  padding: 20px 22px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* =============================================
   MATERIALS SLIDER
   ============================================= */
/* Materials static images */
.materials-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.materials-images__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.materials-section {
  padding: 60px 0;
  background: var(--ivory);
}
.materials-section__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 24px;
}
.materials-slider {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  background: #f5f5f5;
}
.materials-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.materials-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.materials-slider__slide.active { opacity: 1; }
.materials-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.materials-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
  color: var(--cyan);
}
.materials-slider__arrow:hover { background: var(--white); }
.materials-slider__arrow--prev { left: 12px; }
.materials-slider__arrow--next { right: 12px; }

/* =============================================
   COURSES (legacy — kept for index.html)
   ============================================= */
.courses { padding: 100px 0; background: var(--white); }
.courses__header { text-align: center; margin-bottom: 60px; }
.courses__header .section-label { padding-left: 0; }
.courses__header .section-label::before { display: none; }
.courses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card__image { position: relative; overflow: hidden; height: 200px; }
.course-card__svg { width: 100%; height: 100%; }
.course-card__age {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 6px 16px; border-radius: 50px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  color: var(--orange); box-shadow: var(--shadow-sm);
}
.course-card__content { padding: 28px 24px; }
.course-card__content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark); }
.course-card__content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.course-card--infant { border-top: 4px solid #FF8A65; }
.course-card--preschool { border-top: 4px solid #FFD54F; }
.course-card--primary { border-top: 4px solid #4FC3F7; }

/* =============================================
   FAQ HERO (Chat Bubble Header)
   ============================================= */
.faq-hero {
  padding: 40px 0 20px;
  background: linear-gradient(180deg, #e0f4fc 0%, #f0faff 100%);
}
.faq-hero__bubbles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.faq-hero__bubble {
  width: 60px;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  letter-spacing: 4px;
  line-height: 1;
}
.faq-hero__bubble--left {
  background: #b2e5d4;
  color: #fff;
}
.faq-hero__bubble--right {
  background: #f8c8a0;
  color: #fff;
}
.faq-hero__dots {
  margin-top: -4px;
}
.faq-hero__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
}

/* =============================================
   FAQ
   ============================================= */
.faq { padding: 40px 0 80px; background: var(--ivory); }
.faq__header { text-align: center; margin-bottom: 48px; }
.faq__header .section-label { padding-left: 0; }
.faq__header .section-label::before { display: none; }
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq__item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq__item:hover { box-shadow: var(--shadow-md); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px;
  background: linear-gradient(135deg, #b8e6f0 0%, #d4f1f9 50%, #e8f8fd 100%);
  border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--dark); text-align: left; gap: 16px;
  transition: all var(--transition);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.faq__item:not(.open) .faq__question {
  border-radius: var(--radius-md);
}
.faq__question:hover { background: linear-gradient(135deg, #a0dce8 0%, #c4ecf6 50%, #daf4fb 100%); }
.faq__q-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  transition: transform var(--transition);
}
.faq__item.open .faq__q-icon {
  background: var(--orange);
  transform: rotate(15deg);
}
.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gray-light);
}
.faq__item.open .faq__chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}
.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 24px;
}
.faq__item.open .faq__answer {
  max-height: 500px;
  padding: 20px 24px;
}
.faq__answer p {
  font-size: 0.85rem; color: var(--dark-soft); line-height: 1.8;
}

/* =============================================
   CONTACT HERO BANNER
   ============================================= */
.contact-hero {
  position: relative;
  background: linear-gradient(135deg, #b2ebf2 0%, #e0f7fa 40%, #ffe0f0 70%, #fff9c4 100%);
  padding: 36px 20px;
  text-align: center;
  overflow: hidden;
}
.contact-hero__deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
}
.contact-hero__deco--1 {
  width: 80px; height: 80px;
  background: #ff9eb5;
  top: -20px; left: 8%;
}
.contact-hero__deco--2 {
  width: 60px; height: 60px;
  background: #80deea;
  bottom: -15px; right: 12%;
}
.contact-hero__deco--3 {
  width: 48px; height: 48px;
  background: #fff176;
  top: 10px; right: 30%;
}
.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.contact-hero__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 4px;
}
.contact-hero__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #818181;
  margin: 0;
}
.contact-hero__sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #818181;
  margin: 0;
}

/* =============================================
   CONTACT INFO CARDS
   ============================================= */
.contact-info {
  padding: 36px 0 12px;
  background: var(--white);
}
.contact-info__row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-info__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid #e0f7fa;
  background: var(--white);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 200px;
}
.contact-info__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-info__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon--phone { background: var(--cyan); }
.contact-info__icon--line  { background: #00b900; }
.contact-info__icon--fb    { background: #1877f2; }
.contact-info__icon img    { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }
.contact-info__text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-soft);
}
.contact-info__fb-url {
  text-align: center;
  margin-top: 10px;
  font-size: 0.78rem;
}
.contact-info__fb-url a {
  color: var(--text-muted);
  text-decoration: underline;
}
.contact-info__fb-url a:hover { color: var(--cyan); }

/* =============================================
   CONTACT MAP
   ============================================= */
.contact-map {
  padding: 28px 0;
  background: var(--white);
}
.contact-map__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #818181;
  margin-bottom: 12px;
}
.contact-map__frame {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form-section {
  padding: 28px 0 60px;
  background: var(--white);
}
.contact-form__box {
  border: 2.5px solid var(--cyan);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,188,212,0.10);
}
.contact-form__header {
  background: var(--cyan);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-form__header-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.contact-form__header-email {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
}
.contact-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-soft);
}
.contact-form__field input,
.contact-form__field textarea {
  border: 1.5px solid #b2dfdb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--cyan);
}
.contact-form__submit-row {
  display: flex;
  justify-content: flex-end;
}
.contact-form__submit {
  background: var(--cyan);
  color: var(--white);
  border: none;
  padding: 8px 28px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.contact-form__submit:hover {
  background: #0097a7;
  transform: translateY(-1px);
}

/* =============================================
   FOOTER — from resources/footer specs
   ============================================= */
.site-footer {
  background: #f0f0f0;
  padding: 20px 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-light);
}
.site-footer__divider {
  color: var(--gray-light);
  font-size: 1.1rem;
  user-select: none;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-light);
  transition: color var(--transition);
}
.site-footer__link:hover {
  color: var(--orange);
}
.site-footer__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* =============================================
   PAGE TITLE (shared across sub-pages)
   ============================================= */
.page-title-section {
  padding: 40px 0 20px;
  background: var(--white);
  text-align: center;
}
.page-title__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #818181;
  margin-bottom: 4px;
}
.page-title__sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #818181;
}

/* =============================================
   FOUNDERS (About Us page)
   ============================================= */
.founders {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--peach) 50%, var(--ivory) 100%);
}
.founders__heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 40px;
}

.founders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.founder-card {
  text-align: center;
}
.founder-card__photo {
  width: 220px;
  height: 270px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid rgba(255,200,100,0.4);
}
.founder-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}
.founder-card__roles {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.founder-card__roles p {
  margin-bottom: 4px;
}

.founders__description {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--dark-soft);
  line-height: 1.8;
  padding: 28px 32px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}

/* =============================================
   VIDEO (About Us page)
   ============================================= */
.about-video {
  padding: 60px 0;
  background: var(--white);
}
.about-video__wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #f5f5f5;
}
.about-video__player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #222;
}
.about-video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: opacity var(--transition);
}
.about-video__overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.about-video__play {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}
.about-video__play:hover {
  transform: scale(1.1);
}

/* =============================================
   QUOTE (About Us page)
   ============================================= */
.about-quote {
  padding: 48px 0;
  background: var(--ivory);
}
.about-quote__block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px;
  border-left: 4px solid var(--orange);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.about-quote__block p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 12px;
}
.about-quote__source {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}

/* =============================================
   AWARD (About Us page)
   ============================================= */
.about-award {
  padding: 60px 0;
  background: var(--cream);
}
.about-award__content {
  text-align: center;
}
.about-award__img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header */
  .site-header__inner { flex-direction: column; gap: 10px; text-align: center; }
  .site-header__right { align-items: center; }
  .site-header__slogan { text-align: center; }
  .site-header__title, .site-header__slogan-line1, .site-header__slogan-line2 { font-size: 1.2rem; }
  .site-header__branch { font-size: 0.95rem; }

  /* Navbar */
  .navbar__hamburger { display: flex; }
  .navbar__inner { justify-content: flex-end; }
  .navbar__menu {
    position: fixed; top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }
  .navbar__menu.open { right: 0; }
  .navbar__menu li { height: auto; width: 100%; }
  .navbar__link {
    border-left: none; padding: 14px 20px;
    border-bottom: 1px solid var(--gray-border);
    justify-content: flex-start; width: 100%;
    font-size: 1rem;
  }
  .navbar__menu li:last-child .navbar__link { border-right: none; }
  .navbar__link.active { font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 50px 0 30px; min-height: auto; }
  .hero__content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__desc { margin: 0 auto 24px; }
  .hero__cta { justify-content: center; }
  .hero__image-wrapper { width: 240px; height: 280px; }
  .feature-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  /* About */
  .about { padding: 60px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__photo-frame { max-width: 260px; }

  /* Method */
  .method { padding: 60px 0; }
  .method__diagram { flex-direction: column; gap: 16px; }
  .method__arrow { transform: rotate(90deg); }

  /* Brain */
  .brain { padding: 60px 0; }
  .brain__diagram { width: 300px; height: 300px; }
  .brain__center { width: 100px; height: 100px; }
  .brain__skill-icon { width: 40px; height: 40px; font-size: 1rem; }
  .brain__skill span { font-size: 0.6rem; }

  /* Courses (legacy) */
  .courses { padding: 60px 0; }
  .courses__grid { grid-template-columns: 1fr; gap: 20px; }

  /* Slideshow — 1 visible on mobile */
  .slideshow { padding: 16px 44px; }
  .slideshow__slide { flex: 0 0 100%; }
  .slideshow__slide img { height: 200px; }
  .slideshow__arrow { width: 36px; height: 36px; font-size: 0.9rem; }

  /* Course cards */
  .ccard { grid-template-columns: 1fr; }
  .ccard__label { min-height: 200px; }
  .ccard__label-img { object-position: center 20%; }

  /* Materials */
  .materials-slider { height: 260px; }

  /* FAQ */
  .faq { padding: 60px 0; }

  /* Contact */
  .contact-info__row { flex-direction: column; align-items: center; }
  .contact-info__card { min-width: 0; width: 100%; max-width: 340px; }
  .contact-form__row { grid-template-columns: 1fr; }

  /* Founders */
  .founders { padding: 30px 0 40px; }
  .founders__grid { grid-template-columns: 1fr; gap: 32px; max-width: 320px; }
  .founder-card__photo { width: 180px; height: 220px; }

  /* Video */
  .about-video { padding: 40px 0; }

  /* Quote */
  .about-quote { padding: 32px 0; }
  .about-quote__block p { font-size: 0.95rem; }

  /* Award */
  .about-award { padding: 40px 0; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.6rem; }
  .section-title { font-size: 1.5rem; }
  .brain__diagram { width: 260px; height: 260px; }
  .brain__center { width: 80px; height: 80px; }
  .brain__skill { width: 65px; }
  .brain__skill-icon { width: 34px; height: 34px; font-size: 0.85rem; }
  .site-header__title, .site-header__slogan-line1, .site-header__slogan-line2 { font-size: 1rem; }
  .site-header__contact { flex-direction: column; gap: 6px; }
}
