/* ============================================
   PUSAT TUISYEN IMPIAN GENIUS — Main Stylesheet
   ============================================ */

:root {
  --color-primary: #5B2D8C;
  --color-primary-dark: #43206A;
  --color-secondary: #F4C430;
  --color-accent: #E76F2A;
  --color-accent-dark: #C85A1F;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAF8F3;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%; 
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }
small { font-size: 0.875rem; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--purple { background: var(--color-primary); color: #fff; }
.section--purple h1, .section--purple h2, .section--purple h3 { color: #fff; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--purple { background: var(--color-primary); color: #fff; }
.btn--purple:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--color-primary); }
.btn--outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline-dark:hover { background: var(--color-primary); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1FAE54; color: #fff; }
.btn--small { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ====== Early Bird Banner ====== */
.eb-banner {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 10px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 100;
}
.eb-banner a { color: var(--color-primary); text-decoration: underline; font-weight: 700; }
.eb-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 10px;
}
.eb-banner.is-hidden { display: none; }

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 90;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 100px; width: auto; }
.nav__logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--color-primary); font-size: 1rem; line-height: 1.1; }
.nav__logo-text small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--color-text-muted); }

.nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  align-items: center;
}
.nav__menu a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
}
.nav__menu a:hover, .nav__menu a.is-active { background: var(--color-bg-soft); color: var(--color-primary); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
}
.lang-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.lang-toggle .is-active-lang { color: var(--color-primary); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 85vh;
  background: var(--color-primary-dark) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 20px;
}
.hero h1 { color: #fff; max-width: 800px; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.125rem; max-width: 700px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 14px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  transform: rotate(8deg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 3;
  text-align: center;
  line-height: 1.1;
}

.hero--small { min-height: 50vh; }

/* ====== USP Grid ====== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.usp-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--transition);
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-secondary); }
.usp-card__icon {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: inline-block;
}
.usp-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.usp-card p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

/* ====== Alternating rows ====== */
.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.alt-row:last-child { margin-bottom: 0; }
.alt-row--reverse .alt-row__media { order: 2; }
.alt-row__media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  background: var(--color-bg-soft);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.alt-row__text h2 { color: var(--color-primary); }

/* ====== Gallery ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item { background: var(--color-bg-soft); border-radius: var(--radius-md); overflow: hidden; }
.gallery__item img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.gallery__caption { padding: 12px 16px; font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted); }

/* ====== Pricing Cards ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 4-column variant for the Tingkatan 1-4 online registration grid */
.pricing-grid.pricing-grid--four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .pricing-grid.pricing-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pricing-grid.pricing-grid--four {
    grid-template-columns: 1fr;
  }
}

.pricing-grid--four {
  grid-template-columns: repeat(4, 1fr);
}
.price-card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.price-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.price-card h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.price-card__price {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.price-card__list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.price-card__list li:last-child { border-bottom: none; }
.price-card__list .subj { font-weight: 600; color: var(--color-text); }
.price-card__list .time { color: var(--color-text-muted); font-size: 0.85rem; text-align: right; }

/* ====== Notice / Info Boxes ====== */
.notice {
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  font-weight: 500;
}
.notice--yellow { background: var(--color-secondary); color: var(--color-primary); }
.notice--alert { background: #FEF2F2; color: #991B1B; border: 2px solid #FCA5A5; }
.notice--info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ====== Two-column comparison ====== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.compare-col {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.compare-col h3 {
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.compare-col ul { padding-left: 20px; margin: 0; }
.compare-col li { margin-bottom: 8px; }

/* ====== FAQ ====== */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.faq__q::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); transition: transform var(--transition); }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-muted);
}
.faq__item.is-open .faq__a { max-height: 500px; padding: 0 24px 18px; }

/* ====== Social proof row ====== */
.social-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.social-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  min-width: 100px;
  transition: all var(--transition);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
}
.social-row a:hover { background: var(--color-secondary); color: var(--color-primary); transform: translateY(-3px); }
.social-row svg, .social-row .social-icon { font-size: 1.6rem; width: 28px; height: 28px; }

/* ====== Footer ====== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.footer-brand img { height: 200px; width: auto; margin-bottom: 1px; }
.footer-brand p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.footer-tagline { font-style: italic; color: var(--color-secondary); margin-bottom: 12px; }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.2); }
.footer-social .social-icon { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ====== Floating WhatsApp Button ====== */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.1); color: #fff; }

/* ====== Mobile sticky bar ====== */
.mobile-bar { display: none; }

/* ====== Section header ====== */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-header h2 { color: var(--color-primary); }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ====== Page intro ====== */
.page-intro {
  max-width: 820px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ====== Misc ====== */
.center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-muted { color: var(--color-text-muted); }

/* ============================================
   ANIMATIONS
   ============================================ */

/* Page load fade-in (pure CSS — works without JS) */
body { animation: bodyFadeIn 0.4s ease both; }
@keyframes bodyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal — doubled-class for specificity over card transitions */
.reveal-on-scroll.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.is-visible-done { will-change: auto; }

/* Hero entrance (pure CSS — works without JS) */
.hero h1     { animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.hero p      { animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.hero__ctas  { animation: heroFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }
.hero__badge { animation: heroBadgeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgeIn {
  from { opacity: 0; transform: rotate(-5deg) scale(0.92); }
  to   { opacity: 1; transform: rotate(8deg) scale(1); }
}

/* Early bird badge pulse — JS adds .is-pulsing after entrance completes.
   Applied via animation-name override so the entrance keyframes' final state
   (rotate(8deg) scale(1)) is preserved as the pulse base. */
.hero__badge.is-pulsing {
  animation: ebPulse 2.4s ease-in-out infinite;
}
@keyframes ebPulse {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.05); }
}

/* Early Bird Banner slide-in (pure CSS) */
.eb-banner { animation: bannerSlideIn 0.5s ease 0.2s both; }
.eb-banner.is-hidden { display: none; }
@keyframes bannerSlideIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* Sticky header — blur + shadow after 80px scroll */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
          backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-md);
}

/* ====== Button enhancements ====== */
.btn { position: relative; overflow: hidden; isolation: isolate; }

/* Primary button: shine sweep behind text */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-20deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.btn--primary:hover::before { transform: translateX(280%) skewX(-20deg); }
.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(231, 111, 42, 0.35);
}

/* Outline buttons fill from left */
.btn--outline, .btn--outline-dark {
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--outline::after, .btn--outline-dark::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.btn--outline::after { background: #fff; }
.btn--outline-dark::after { background: var(--color-primary); }
.btn--outline:hover::after, .btn--outline-dark:hover::after { transform: scaleX(1); }
/* Override the instant background fill from the base hover rule so the slide-in is visible */
.btn--outline:hover, .btn--outline-dark:hover { transform: translateY(-2px); background: transparent; }

/* WhatsApp button */
.btn--whatsapp { transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }

/* Purple button hover lift */
.btn--purple { transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn--purple:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91, 45, 140, 0.35); }

/* ====== Card hover refinements ====== */
.usp-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.usp-card__icon { transition: transform 0.3s ease; transform-origin: center; }
.usp-card:hover .usp-card__icon { transform: scale(1.1) rotate(5deg); }

.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.compare-col {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.compare-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.social-row a { transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.social-row a:hover { box-shadow: var(--shadow-md); }

/* ====== FAQ accordion smoother chevron ====== */
.faq__q::after { transition: transform 0.3s ease; }
.faq__a { transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease; }

.gallery__item picture {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;          /* lock all photos to 4:3 (or try 1/1 for square) */
  border-radius: 8px;            /* optional rounded corners */
}

.gallery__item picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* crops photo to fill container without distortion */
  object-position: center top;   /* keeps faces visible (top of photo) */
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the existing hover effects */
.gallery__item picture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(91, 45, 140, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover picture::after { opacity: 1; }

.gallery__item .gallery__caption { 
  transition: color 0.3s ease;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.gallery__item:hover .gallery__caption { 
  color: var(--color-primary); 
}

/* ====== Hamburger morph (3-line → X) ====== */
.nav__hamburger {
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
}
.nav__hamburger .hamburger-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}
.nav__hamburger .hamburger-line:nth-child(1) { transform: translateY(-8px); }
.nav__hamburger .hamburger-line:nth-child(2) { transform: translateY(0); }
.nav__hamburger .hamburger-line:nth-child(3) { transform: translateY(8px); }
.nav__hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav__hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ====== Floating WhatsApp polish ====== */
.fab-whatsapp { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fab-whatsapp:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45); }
.fab-whatsapp svg { width: 32px; height: 32px; }
.mobile-bar svg.icon { width: 22px; height: 22px; }

/* ====== Footer link hover slide ====== */
.site-footer ul li a { display: inline-block; transition: color 0.2s ease, transform 0.2s ease; }
.site-footer ul li a:hover { transform: translateX(3px); }
.footer-social a { transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.footer-social a:hover { transform: translateY(-3px); }

/* ====== Brand social icons ====== */
.social-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.social-card .social-icon { width: 28px; height: 28px; }
.social-card__content { display: flex; flex-direction: column; }
.social-card__title { font-weight: 600; color: var(--color-primary); }
.social-card__desc { font-size: 0.875rem; color: var(--color-text-muted); }

/* ====== Reduced motion fallback ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body, .reveal-on-scroll, .hero h1, .hero p, .hero__ctas, .hero__badge {
    opacity: 1 !important;
    transform: none !important;
  }
  .eb-banner { transform: none !important; }
  .hero__badge { transform: rotate(8deg) !important; }
}

/* Keep some specific overrides */
.reveal-on-scroll.reveal-on-scroll {
  transition-duration: 0.35s !important;
}

.eb-banner {
  animation-duration: 0.35s !important;
}

/* ============================================
   SECTION: Pilihan Kelas Tuisyen 2026
   ============================================ */
.class-choice {
  background: var(--color-bg-soft);
  position: relative;
  overflow: hidden;
}
.class-choice::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.class-choice::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(91, 45, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.class-choice__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}
.class-choice__eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(91, 45, 140, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.class-choice__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-wrap: balance;
}
.class-choice__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0;
  text-wrap: pretty;
}
.class-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.choice-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.choice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--color-primary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 45, 140, 0.12);
  border-color: var(--color-primary);
}
.choice-card:hover::before { transform: scaleX(1); }
.choice-card--bersemuka { --card-accent: var(--color-primary); }
.choice-card--online    { --card-accent: var(--color-accent); }

.choice-card__visual {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(91, 45, 140, 0.08), rgba(244, 196, 48, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.choice-card--online .choice-card__visual {
  background: linear-gradient(135deg, rgba(231, 111, 42, 0.12), rgba(244, 196, 48, 0.18));
}
.choice-card:hover .choice-card__visual {
  transform: scale(1.05) rotate(-2deg);
}
.choice-card__visual svg {
  width: 52px;
  height: 52px;
  color: var(--color-primary);
}
.choice-card--online .choice-card__visual svg { color: var(--color-accent); }

.choice-card__body { flex-grow: 1; display: flex; flex-direction: column; align-items: center; }
.choice-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
  text-wrap: balance;
}
.choice-card__badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.choice-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
  max-width: 36ch;
  text-wrap: pretty;
}
.choice-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.choice-card__price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
.choice-card__price strong {
  font-weight: 800;
  color: var(--color-primary);
}

.choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.choice-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-20deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.choice-btn:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(231, 111, 42, 0.35);
}
.choice-btn:hover::before { transform: translateX(280%) skewX(-20deg); }

.class-choice__cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.choice-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.choice-btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(91, 45, 140, 0.25);
}
.choice-btn--outline .arrow { transition: transform 0.3s ease; }
.choice-btn--outline:hover .arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .class-choice__grid { gap: 16px; }
}
@media (max-width: 600px) {
  .class-choice { padding: 56px 0; }
  .class-choice__grid { grid-template-columns: 1fr; gap: 16px; }
  .choice-card { padding: 28px 24px; }
  .choice-card__visual { width: 84px; height: 84px; margin-bottom: 16px; }
  .choice-card__visual svg { width: 44px; height: 44px; }
  .choice-card__title { font-size: 1.25rem; }
}

/* ============================================
   TESTIMONIALS — homepage section + testimoni.html
   ============================================ */

/* ===== Homepage testimonial section ===== */
.testimonials {
  background: var(--color-bg-soft);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
/* Make the middle text card match video card height */
.testimonials__grid .testi-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonials__cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ===== Testimonial card (shared) ===== */
.testi-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.testi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 45, 140, 0.12);
  border-color: var(--color-primary);
}
.testi-card__mark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 110px;
  line-height: 1;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.testi-card__quote {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 12px 0 24px;
  text-wrap: pretty;
  flex-grow: 1;
}
.testi-card__author {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text);
  margin: 0 0 12px;
}
.testi-card__author small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.testi-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.testi-card__badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.testi-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #25D366;
  font-weight: 600;
}
.testi-card__tag svg { width: 12px; height: 12px; }

/* ===== Clickable card affordance ===== */
.testi-card[data-proof-id] {
  cursor: pointer;
  outline: none;
}
.testi-card[data-proof-id]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.testi-card[data-proof-id]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(91, 45, 140, 0);
  transition: box-shadow 240ms ease;
}
.testi-card[data-proof-id]:hover::after {
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.testi-card__cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 12px 7px 10px;
  background: rgba(91, 45, 140, 0.08);
  color: var(--color-primary);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  align-self: flex-start;
  transition: background 200ms ease, transform 200ms ease;
}
.testi-card__cue svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.testi-card[data-proof-id]:hover .testi-card__cue {
  background: var(--color-primary);
  color: #fff;
  transform: translateX(2px);
}

/* ===== Proof modal ===== */
.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.proof-modal.is-open { display: flex; animation: pmFade 200ms ease; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.proof-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 40, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proof-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(20, 8, 40, 0.5);
  animation: pmRise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes pmRise { from { transform: translateY(24px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.proof-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f0f7;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.proof-modal__close:hover { background: var(--color-primary); color: #fff; }
.proof-modal__close svg { width: 16px; height: 16px; }
.proof-modal__header {
  margin-bottom: 18px;
  padding-right: 40px;
}
.proof-modal__header h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 4px;
}
.proof-modal__sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}
.proof-modal__note {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--color-text-muted, #888);
  text-align: center;
  margin: 16px 0 0;
  font-style: italic;
}

/* Real WhatsApp screenshot in modal */
.proof-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: #efeae2;
  box-shadow: 0 4px 18px rgba(20, 8, 40, 0.18);
}

/* Hidden cards (filter) */
.testi-card.is-hidden { display: none !important; }

/* ===== Video testimonials ===== */
.testi-video-section { background: var(--color-bg-soft, #faf7f2); }
.testi-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.video-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 8, 40, 0.08);
  display: flex;
  flex-direction: column;
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}
.video-card__placeholder {
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #f3eef9 0%, #e8def4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-primary, #5B2D8C);
}
.video-card__placeholder svg { width: 64px; height: 64px; opacity: 0.6; }
.video-card__placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
}
.video-card__meta {
  padding: 16px 18px 20px;
}
.video-card__meta h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #2a1e3f;
}
.video-card__meta p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-muted, #666);
  margin: 0;
}
@media (max-width: 900px) {
  .testi-video-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .testi-video-grid .video-card:nth-child(3) { grid-column: span 2; max-width: 50%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .testi-video-grid { grid-template-columns: 1fr; }
  .testi-video-grid .video-card:nth-child(3) { grid-column: auto; max-width: none; }
  .proof-modal { padding: 12px; }
  .proof-modal__dialog { padding: 24px 20px 20px; max-height: calc(100vh - 24px); }
}

/* ===== testimoni.html — page hero ===== */
.testi-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.testi-hero h1 { color: #fff; max-width: 820px; margin: 0 auto 16px; }
.testi-hero p {
  color: rgba(255,255,255,0.88);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ===== Sticky filter tabs ===== */
.testi-tabs-wrap {
  position: sticky;
  top: 76px; /* under the site header */
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
          backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.testi-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testi-tabs::-webkit-scrollbar { display: none; }
.testi-tab {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.testi-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.testi-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91, 45, 140, 0.25);
}
.testi-tab__count {
  display: inline-block;
  background: rgba(0,0,0,0.08);
  color: inherit;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
}
.testi-tab.is-active .testi-tab__count {
  background: rgba(255,255,255,0.22);
}

/* ===== Masonry grid (CSS columns) ===== */
.testi-masonry {
  column-count: 3;
  column-gap: 24px;
  padding: 48px 0 64px;
}
.testi-masonry .testi-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
  /* visual rhythm — vary padding slightly */
}
.testi-card.is-hidden {
  display: none;
}
.testi-card[data-emphasis="tall"] .testi-card__quote {
  font-size: 1.12rem;
}

/* ===== Final CTA band ===== */
.testi-final {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.testi-final h2 { color: #fff; margin-bottom: 12px; }
.testi-final p {
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testi-masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-masonry { column-count: 1; column-gap: 0; padding: 32px 0 48px; }
  .testi-card { padding: 28px 24px; }
  .testi-card__mark { font-size: 86px; top: 4px; left: 14px; }
  .testi-hero { padding: 56px 0 48px; }
  .testi-tabs-wrap { top: 64px; }
}

/* ====== Image zoom lightbox ====== */
.gallery__item img,
.alt-row__media img,
img.zoomable { cursor: zoom-in; }

.img-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.img-zoom.is-open { opacity: 1; visibility: visible; }
.img-zoom__img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom.is-open .img-zoom__img { transform: scale(1); }
.img-zoom__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.img-zoom__close:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.05); }
.img-zoom__close svg { width: 20px; height: 20px; }

/* ====== CTA pulse — subtle orange glow on primary buttons ====== */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 111, 42, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(231, 111, 42, 0); }
}
.btn--primary {
  animation: ctaPulse 4s ease-in-out infinite;
}
.btn--primary:hover {
  animation: none;
}

/* ====== Testimonial video cards ====== */
.testi-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-video-card__player {
  flex: 1;
  display: flex;
  min-height: 0;
}
.testi-video-card__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
  background: #000;
}
.testi-video-card__meta {
  padding: 14px 16px;
  background: var(--color-bg-soft);
  flex-shrink: 0;
}
.testi-video-card__meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 2px;
}
.testi-video-card__meta p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}
@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .testi-video-card__player video {
    min-height: 200px;
    aspect-ratio: 16/9;
    height: auto;
  }
}

/* ====== Auto-rotating video carousel (online.html) ====== */
.auto-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.auto-carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.auto-carousel__slide {
  flex: 0 0 calc(33.333% - 16px);
  margin-right: 24px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.55;
  transform: scale(0.95);
}

.auto-carousel__slide.is-center {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(91, 45, 140, 0.22);
  border-color: var(--color-primary);
  z-index: 2;
}

.auto-carousel__slide video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}

.auto-carousel__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auto-carousel__label span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
}

.auto-carousel__label small {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
}

.auto-carousel__sound {
  position: absolute;
  bottom: 52px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.auto-carousel__sound:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}
.auto-carousel__sound svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.auto-carousel__slide:not(.is-center) .auto-carousel__sound {
  display: none;
}

.auto-carousel__fullscreen {
  position: absolute;
  bottom: 52px;
  right: 56px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.auto-carousel__fullscreen:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}
.auto-carousel__fullscreen svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.auto-carousel__slide:not(.is-center) .auto-carousel__fullscreen {
  display: none;
}

.auto-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.auto-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.auto-carousel__dots button.is-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
  transform: scale(1);
}

@media (max-width: 768px) {
  .auto-carousel__slide {
    flex: 0 0 calc(80% - 12px);
    margin-right: 16px;
    opacity: 0.6;
    transform: scale(0.96);
  }
  .auto-carousel__slide.is-center {
    transform: scale(1.02);
  }
}

/* ====== Team horizontal scroll (tentang.html) ====== */
.team-scroll-wrap { position: relative; }
.team-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 16px 4px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.team-scroll::-webkit-scrollbar { display: none; }

.team-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
}
.team-card__avatar--placeholder svg { width: 40px; height: 40px; color: var(--color-border); }
.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 4px;
}
.team-card__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

/* Existing teacher .usp-card cards inside the scroll — keep their original look but participate cleanly in the flex row */
.team-scroll .team-scroll__card {
  flex-shrink: 0;
  width: 280px;
  text-align: center;
  margin: 0;
}

.team-scroll__prev,
.team-scroll__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
  line-height: 1;
}
.team-scroll__prev { left: -18px; }
.team-scroll__next { right: -18px; }
.team-scroll__prev:hover,
.team-scroll__next:hover { background: var(--color-primary-dark); }

@media (max-width: 768px) {
  .team-scroll__prev,
  .team-scroll__next { display: none; }
}
