:root {
  /* Cakelab Soft Blush & Gold + Academy Olive-Sage Green Palette */
  --bg: #FFF6F5;
  --bg-blush: #FBEBE8;
  --petal: #FFE1DB;
  --petal-deep: #FFBACE;
  --rose-border: #EDC5BE;
  --rose: #BA4666;
  --rose-bright: #E86B92;

  --sage: #5A8B6F;
  --sage-dark: #446E56;
  --sage-soft: #ECF4EE;
  --sage-border: rgba(90, 139, 111, 0.24);

  --gold: #B67C26;
  --gold-soft: #CFB58F;
  --gold-wash: #FBF1DF;

  --ink: #472E22;
  --ink-mid: #704734;
  --ink-muted: #99664E;
  --surface: #FFFFFF;

  --shadow-soft: 0 18px 46px rgba(112, 71, 52, 0.06);
  --shadow-rose: 0 18px 44px rgba(186, 70, 102, 0.11);

  --font-display: 'Amiri', 'Fraunces', Georgia, serif;
  --font-body: 'Tajawal', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  position: relative;
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: clip;
  max-width: 100%;
}

/* Inline UI SVG alignment */
.ui-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
}

/* NON-STICKY Scrollable Background Motifs (moves naturally with page!) */
.ambient-islamic-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23B67C26' stroke-width='1'%3E%3Crect x='42' y='42' width='56' height='56' rx='10'/%3E%3Crect x='42' y='42' width='56' height='56' rx='10' transform='rotate(45 70 70)'/%3E%3Ccircle cx='70' cy='70' r='13' stroke='%235A8B6F'/%3E%3C/g%3E%3C/svg%3E");
}
.ambient-shape {
  position: absolute;
  pointer-events: none;
  animation: gentleDrift 13s ease-in-out infinite;
}
.ambient-shape.s1 { top: 140px; inset-inline-start: 2.5%; width: 130px; opacity: 0.38; }
.ambient-shape.s2 { top: 480px; inset-inline-end: 3%; width: 120px; opacity: 0.25; animation-delay: -3s; }
.ambient-shape.s3 { top: 1120px; inset-inline-start: 3%; width: 115px; opacity: 0.28; animation-delay: -5s; }
.ambient-shape.s4 { top: 1750px; inset-inline-end: 3.5%; width: 135px; opacity: 0.32; animation-delay: -2s; }
.ambient-shape.s5 { top: 2420px; inset-inline-start: 4%; width: 105px; opacity: 0.22; animation-delay: -4s; }
.ambient-shape.s6 { top: 3100px; inset-inline-end: 4%; width: 125px; opacity: 0.26; animation-delay: -7s; }

.container {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.2rem));
  margin-inline: auto;
}

/* Announcement Ribbon */
.announcement-bar {
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, var(--sage) 0%, var(--rose) 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.announcement-bar.hidden { display: none; }
.announcement-pill {
  background: var(--petal);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.14rem 0.65rem;
  border-radius: 999px;
}

/* Floating Pill Header */
.header-wrap {
  position: sticky;
  top: 12px;
  z-index: 45;
  padding: 0 1rem;
  margin-top: 12px;
}
.site-header {
  width: min(1180px, 100%);
  margin-inline: auto;
  background: rgba(255, 246, 245, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rose-border);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  box-shadow: 0 10px 28px rgba(112, 71, 52, 0.06);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--rose-bright), var(--gold-soft), var(--sage));
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--ink-mid); line-height: 1.15; }
.brand-text span { display: block; font-size: 0.74rem; color: var(--ink-muted); }

.nav-links { display: flex; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-mid);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav-links a:hover, .nav-links a.active { background: var(--petal); color: var(--rose); }

.nav-actions { display: flex; align-items: center; gap: 0.55rem; }
.lang-toggle {
  border: 1px solid var(--rose-border);
  background: #fff;
  color: var(--ink-mid);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--petal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sage { background: var(--sage); color: #fff; box-shadow: 0 10px 24px rgba(90, 139, 111, 0.24); }
.btn-sage:hover { background: var(--sage-dark); }
.btn-rose { background: linear-gradient(135deg, var(--rose-bright), var(--rose)); color: #fff; box-shadow: 0 10px 26px rgba(186, 70, 102, 0.22); }
.btn-blush { background: var(--petal); color: var(--ink-mid); border: 1px solid var(--rose-border); }
.btn-blush:hover { background: var(--petal-deep); }
.btn-outline { background: #fff; color: var(--ink-mid); border: 1px solid var(--rose-border); }
.btn-outline:hover { background: var(--bg-blush); }

.mobile-menu-btn {
  display: none;
  background: var(--petal);
  border: 1px solid var(--rose-border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink-mid);
}

/* =========================================================
   SMOOTH SECTION TRANSITIONS (NO HARD STRAIGHT CUTS!)
   ========================================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}
.section-blush {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blush) 18%, var(--bg-blush) 82%, var(--bg) 100%);
}
.section-sage {
  background: linear-gradient(180deg, var(--bg) 0%, var(--sage-soft) 18%, var(--sage-soft) 82%, var(--bg) 100%);
}

/* Hero */
.page-hero { text-align: center; padding: 3.4rem 0 2.4rem; position: relative; z-index: 2; }
.cakelab-hero {
  text-align: center;
  padding: 3.2rem 0 4.5rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 225, 219, 0.28) 0%, var(--bg) 100%);
}
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--petal);
  color: var(--rose);
  border: 1px solid var(--rose-border);
  padding: 0.34rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 0.9rem;
}
.page-hero h1, .cakelab-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
  color: var(--ink-mid);
  margin: 0 0 0.8rem;
  line-height: 1.22;
}
.accent-word { color: var(--rose); position: relative; display: inline-block; }
.accent-word::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 5px;
  height: 10px;
  background: rgba(90, 139, 111, 0.22);
  border-radius: 999px;
  z-index: -1;
}
.page-hero p, .cakelab-hero .hero-sub {
  max-width: 60ch;
  margin: 0 auto 1.6rem;
  color: var(--ink-muted);
  font-size: 1.06rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-bottom: 2.8rem; }
.hero-arch-trio {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 1.4rem;
  align-items: end;
  max-width: 1040px;
  margin: 0 auto;
}
.arch-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-blush) 100%);
  border: 1.5px solid var(--rose-border);
  border-radius: 999px 999px 28px 28px;
  padding: 2.2rem 1.4rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.arch-card:hover { transform: translateY(-6px); }
.arch-card.center-arch {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sage-soft) 100%);
  border-color: var(--sage-border);
  padding: 2.6rem 1.8rem 1.8rem;
}
.arch-card .emblem-circle {
  width: 168px;
  height: 168px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold-soft), var(--rose-bright), var(--sage));
  overflow: hidden;
}
.arch-card .emblem-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.arch-mini-icon { width: 58px; height: 58px; margin: 0 auto 0.9rem; }
.arch-card h3 { font-family: var(--font-display); color: var(--ink-mid); margin: 0 0 0.3rem; font-size: 1.32rem; }
.arch-card p { margin: 0; font-size: 0.88rem; color: var(--ink-muted); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 2.8rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.3vw, 2.65rem); color: var(--ink-mid); margin: 0 0 0.6rem; line-height: 1.25; }
.section-header p { margin: 0; color: var(--ink-muted); font-size: 1.02rem; }

/* About Strip + 4 Stats */
.story-card {
  background: var(--surface);
  border: 1px solid var(--rose-border);
  border-radius: 32px;
  padding: 2.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.story-card h2 { font-family: var(--font-display); font-size: clamp(1.85rem, 3vw, 2.45rem); color: var(--ink-mid); margin: 0 0 0.8rem; }
.story-card p { max-width: 68ch; margin: 0 auto 1.6rem; color: var(--ink-muted); font-size: 1.04rem; }
.stats-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-pill-box { background: var(--bg); border: 1px solid var(--rose-border); border-radius: 24px; padding: 1.1rem 0.8rem; text-align: center; }
.stat-pill-box:nth-child(even) { background: var(--sage-soft); border-color: var(--sage-border); }
.stat-pill-box strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--rose); }
.stat-pill-box span { font-size: 0.84rem; font-weight: 700; color: var(--ink-mid); }

/* Signature 3 Arched Tracks */
.signature-3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.signature-arch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 999px 999px 32px 32px;
  padding: 2.5rem 1.65rem 1.85rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.signature-arch-card:nth-child(2) { background: linear-gradient(180deg, #FFFFFF 0%, var(--sage-soft) 100%); border-color: var(--sage-border); }
.signature-arch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-rose); }
.signature-arch-card .sig-icon { width: 78px; height: 78px; margin: 0 auto 1.1rem; }
.signature-arch-card h3 { font-family: var(--font-display); font-size: 1.42rem; color: var(--ink-mid); margin: 0 0 0.55rem; }
.signature-arch-card p { font-size: 0.93rem; color: var(--ink-muted); margin: 0 0 1.4rem; }

/* =========================================================
   INTERACTIVE SPOTLIGHT WITH COMPACT 9:16 SHOWCASE & THUMBNAILS
   ========================================================= */
.spotlight-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.2rem;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 36px;
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}
.spotlight-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.2rem 0;
}
.spotlight-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--rose-border);
  border-radius: 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink-mid);
  text-align: start;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.spotlight-item-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.spotlight-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rose-border);
  background: #fff;
}
.spotlight-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.spotlight-item-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotlight-item-text small {
  font-size: 0.76rem;
  opacity: 0.8;
  font-weight: 600;
}
.spotlight-item-btn:hover, .spotlight-item-btn.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
  box-shadow: 0 8px 20px rgba(90, 139, 111, 0.18);
}
.spotlight-badge-type {
  font-size: 0.74rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--petal);
  color: var(--rose);
  flex-shrink: 0;
  white-space: nowrap;
}
.spotlight-item-btn.active .spotlight-badge-type {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Compact 9:16 Portrait Reel & Cover Showcase Frame (fits cleanly in one section) */
.reel-9-16-frame {
  position: relative;
  width: min(240px, 100%);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--petal);
  background: var(--bg);
  box-shadow: var(--shadow-rose);
}
.reel-9-16-frame video,
.reel-9-16-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}
.reel-overlay-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(255, 246, 245, 0) 0%, rgba(71, 46, 34, 0.72) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
}
.reel-overlay-fade.hidden { display: none; }

/* Why Us 4 Cards */
.why-4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rose-border);
  border-radius: 28px;
  padding: 1.8rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.why-card:nth-child(2) { background: var(--sage-soft); border-color: var(--sage-border); }
.why-card:nth-child(4) { background: var(--gold-wash); border-color: rgba(182, 124, 38, 0.25); }
.why-card .why-icon { width: 64px; height: 64px; margin: 0 auto 0.9rem; }
.why-card h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-mid); margin: 0 0 0.45rem; }
.why-card p { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }
.card-watermark { position: absolute; bottom: -22px; inset-inline-end: -22px; width: 96px; height: 96px; opacity: 0.1; pointer-events: none; }

/* Plans 2 Cards */
.plans-2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 920px; margin: 0 auto; }
.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 32px;
  padding: 2.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card.sage-plan { background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%); color: #fff; border-color: var(--gold-soft); }
.plan-price { font-family: var(--font-display); font-size: 2.3rem; color: var(--rose); margin: 0.4rem 0 1.2rem; }
.plan-card.sage-plan .plan-price { color: var(--petal); }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.plan-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(182, 124, 38, 0.24);
  font-size: 0.94rem;
}

/* Purpose & Process (01-04) */
.purpose-2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.purpose-card { background: var(--surface); border: 1.5px solid var(--rose-border); border-radius: 32px; padding: 2.2rem; box-shadow: var(--shadow-soft); }
.purpose-card.sage-tint { background: var(--sage-soft); border-color: var(--sage-border); }
.purpose-card h3 { font-family: var(--font-display); color: var(--rose); font-size: 1.55rem; margin: 0 0 0.6rem; }

.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.journey-card { border-radius: 999px 999px 28px 28px; padding: 2.2rem 1.35rem 1.7rem; text-align: center; border: 1.5px solid var(--rose-border); background: var(--surface); box-shadow: var(--shadow-soft); }
.journey-card.tone-sage { background: var(--sage-soft); border-color: var(--sage-border); }
.journey-card.tone-blush { background: var(--bg-blush); }
.journey-card.tone-gold { background: var(--gold-wash); border-color: rgba(182, 124, 38, 0.28); }
.journey-num { width: 52px; height: 52px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--sage); color: #fff; font-family: var(--font-display); font-size: 1.35rem; display: grid; place-items: center; border: 2px solid var(--petal); }
.journey-card h3 { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink-mid); margin: 0 0 0.45rem; }
.journey-card p { font-size: 0.89rem; color: var(--ink-muted); margin: 0; }

/* =========================================================
   CAKELAB /ABOUT#TEAM — ILLUSTRATED TUTOR CARDS WITH WHITE FADE
   ========================================================= */
.teachers-grid, .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.65rem; }
.teacher-card {
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 999px 999px 32px 32px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-rose); }
.teacher-portrait-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}
.teacher-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-portrait-wrap::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  pointer-events: none;
}
.teacher-body { padding: 0.4rem 1.55rem 1.85rem; }
.teacher-card h3 { font-family: var(--font-display); color: var(--ink-mid); margin: 0 0 0.25rem; font-size: 1.38rem; }
.teacher-role { color: var(--rose); font-weight: 800; font-size: 0.86rem; margin-bottom: 0.7rem; display: block; }

/* =========================================================
   CAKELAB /TREATS — COURSE ATELIER CARDS WITH ARTWORK & WHITE FADE
   ========================================================= */
.courses-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tab { border: 1px solid var(--rose-border); background: #fff; color: var(--ink-mid); font-family: inherit; font-weight: 700; font-size: 0.88rem; padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer; }
.filter-tab.active, .filter-tab:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
.search-input { border: 1px solid var(--rose-border); background: #fff; border-radius: 999px; padding: 0.55rem 1.2rem; font-family: inherit; font-size: 0.92rem; min-width: 250px; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.7rem; }
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-rose); }

.course-art-stage {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: var(--bg);
}
.course-art-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Signature Cakelab white bottom fade */
.course-art-stage::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  pointer-events: none;
}
.course-art-badges {
  position: absolute;
  top: 14px;
  inset-inline: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.course-content {
  padding: 0.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.36rem;
  line-height: 1.35;
  color: var(--ink-mid);
  margin: 0;
}
.course-price-tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
}
.course-subtitle {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 0.9rem;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 700; color: var(--sage-dark); }
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--rose-border);
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
}

.course-details-toggle {
  border: none;
  background: transparent;
  color: var(--rose);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.course-features {
  display: none;
  list-style: none;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1.15rem;
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--rose-border);
}
.course-features.open { display: block; }
.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
  font-size: 0.87rem;
}
.course-features li:last-child { margin-bottom: 0; }
.course-features .bullet-icon { color: var(--rose); margin-top: 0.25rem; }

.badge { font-size: 0.76rem; font-weight: 800; padding: 0.26rem 0.78rem; border-radius: 999px; backdrop-filter: blur(8px); }
.badge-open { background: rgba(236, 244, 238, 0.94); color: var(--sage-dark); border: 1px solid var(--sage-border); }
.badge-closed { background: rgba(252, 234, 234, 0.94); color: #9E1B1B; }
.badge-cat { background: rgba(255, 225, 219, 0.94); color: var(--rose); border: 1px solid var(--rose-border); }
.course-price-pill { background: var(--petal); color: var(--ink-mid); font-weight: 800; font-size: 0.86rem; padding: 0.36rem 0.85rem; border-radius: 999px; }

/* Testimonials */
.testimonial-card {
  background: var(--surface);
  border: 1.5px solid var(--rose-border);
  border-radius: 30px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}
.testimonial-card:nth-child(2) { background: var(--sage-soft); border-color: var(--sage-border); }
.quote-mark { color: var(--rose); width: 32px; height: 32px; margin-bottom: 0.4rem; }
.cert-badge {
  display: inline-block;
  background: var(--bg);
  color: var(--sage-dark);
  border: 1px solid var(--sage-border);
  padding: 0.24rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.7rem;
}

/* Contact Page */
.contact-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.enroll-form-card { background: var(--surface); border: 1.5px solid var(--rose-border); border-radius: 32px; padding: 2rem; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.86rem; color: var(--ink-mid); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit;
  font-size: 0.94rem;
  padding: 0.68rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--rose-border);
  background: var(--bg);
  color: var(--ink);
}
.reach-card {
  background: linear-gradient(155deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: #fff;
  border-radius: 32px;
  padding: 2rem;
  border: 1.5px solid var(--petal);
}
.channel-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 225, 219, 0.4);
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.8rem;
}
.channel-icon { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }

.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--rose-border); border-radius: 20px; overflow: hidden; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 1.35rem; background: transparent; border: none; font-family: inherit; font-size: 1rem; font-weight: 800; color: var(--ink-mid); cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.3s ease; padding: 0 1.35rem; color: var(--ink-muted); }
.faq-item.open .faq-answer { max-height: 240px; padding: 0 1.35rem 1.15rem; }

.enroll-success { display: none; background: var(--sage-soft); border: 1.5px solid var(--sage); border-radius: 18px; padding: 1.15rem; margin-top: 1rem; color: var(--sage-dark); }
.enroll-success.show { display: block; }

/* CTA & Smooth 4-Column Footer */
.cta-banner {
  background: linear-gradient(135deg, var(--petal) 0%, var(--bg-blush) 55%, var(--sage-soft) 100%);
  border: 1.5px solid var(--rose-border);
  border-radius: 36px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.7rem); color: var(--ink-mid); margin: 0 0 0.6rem; }

.site-footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blush) 28%, var(--bg-blush) 100%);
  color: var(--ink-mid);
  padding: 4.5rem 0 1.8rem;
  position: relative;
  z-index: 1;
}
.footer-4col { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rose-border); }
.footer-col h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.75rem; color: var(--rose); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { color: var(--ink-mid); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-col a:hover { color: var(--rose); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; font-size: 0.85rem; color: var(--ink-muted); }

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   PLAISIRS SUCRÉS / CAKELAB BLOG GRID & ARTICLE PAGE
   ========================================================= */
.cakelab-blog-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cakelab-blog-card {
  background-color: var(--surface);
  border: 1px solid var(--rose-border);
  border-radius: 32px;
  padding: 8px 8px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.cakelab-blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-rose); }
.cakelab-blog-cover-wrap {
  position: relative;
  width: 100%;
  height: 235px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background-color: var(--bg-blush);
  display: block;
}
.cakelab-blog-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cakelab-blog-card:hover .cakelab-blog-cover-img { transform: scale(1.04); }
.cakelab-img-bottom-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  pointer-events: none;
}
.cakelab-blog-cat-pill {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background-color: rgba(255, 246, 245, 0.94);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}
.cakelab-blog-body {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.cakelab-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.cakelab-blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cakelab-blog-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink-mid);
  margin: 0;
  text-decoration: none;
}
.cakelab-blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cakelab-blog-author-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rose-border);
  margin-top: auto;
}
.cakelab-blog-author-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: var(--petal);
  border: 1px solid var(--gold-soft);
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cakelab-blog-author-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cakelab-blog-author-name { font-size: 13.5px; font-weight: 700; color: var(--rose); line-height: 1.3; }
.cakelab-blog-author-role { font-size: 12px; color: var(--ink-muted); line-height: 1.35; }

/* Article Reading Page */
.cakelab-article-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--rose-border);
  border-radius: 36px;
  padding: 16px 24px 36px;
  box-shadow: var(--shadow-soft);
}
.cakelab-article-cover-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}
.cakelab-article-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.cakelab-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.cakelab-article-meta-bar span { display: inline-flex; align-items: center; gap: 6px; }
.cakelab-article-body { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.85; color: var(--ink); }
.cakelab-article-h1 { font-family: var(--font-display); font-size: 1.85rem; color: var(--ink-mid); margin: 0.4rem 0 0; }
.cakelab-article-h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--sage-dark); margin: 0.3rem 0 0; }
.cakelab-article-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--sage-soft);
  border: 1px solid var(--sage-border);
  border-inline-start: 4px solid var(--sage);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  color: var(--sage-dark);
  font-weight: 700;
}
.cakelab-article-quote {
  margin: 0;
  padding: 1rem 1.4rem;
  background: var(--bg);
  border-inline-start: 4px solid var(--rose);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-mid);
}
.cakelab-article-bullets { padding-inline-start: 22px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cakelab-article-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.cakelab-article-tag {
  background-color: var(--bg);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .cakelab-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cakelab-blog-grid { grid-template-columns: 1fr; }
}

@keyframes gentleDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

@media (max-width: 980px) {
  .hero-arch-trio, .signature-3-grid, .teachers-grid, .testimonials-grid, .contact-split, .spotlight-card, .purpose-2-grid, .plans-2-grid { grid-template-columns: 1fr; }
  .why-4-grid, .journey-grid, .stats-row-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-4col { grid-template-columns: repeat(2, 1fr); }
  .spotlight-card > *, .contact-split > *, .hero-arch-trio > *, .courses-grid > * { min-width: 0; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 1.5rem); }
  .header-wrap { padding: 0 0.75rem; top: 8px; margin-top: 8px; }
  .site-header { border-radius: 999px; padding: 0.42rem 0.75rem; }
  .brand-lockup { gap: 0.5rem; min-width: 0; flex: 1; }
  .brand-logo-wrap { width: 36px; height: 36px; }
  .brand-text { min-width: 0; }
  .brand-text strong {
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text span { display: none; }
  .nav-actions #headerCta { display: none; }
  .lang-toggle { padding: 0.38rem 0.7rem; font-size: 0.78rem; }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 1rem;
    border-radius: 24px;
    border: 1.5px solid var(--rose-border);
    box-shadow: var(--shadow-soft);
    gap: 0.35rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; padding: 0.6rem 1rem; }
  .mobile-nav-cta { display: flex !important; margin-top: 0.4rem; }

  .section { padding: 3.2rem 0; }
  .cakelab-hero { padding: 2.1rem 0 2.8rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; }
  .hero-ctas .btn { width: 100%; }
  .story-card, .spotlight-card, .enroll-form-card, .reach-card, .plan-card, .cta-banner {
    padding: 1.45rem 1.1rem;
    border-radius: 26px;
  }
  .cakelab-article-container { padding: 12px 14px 24px; border-radius: 26px; }
  .cakelab-article-cover-wrap { height: 220px; }
  .search-input { width: 100%; min-width: 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .spotlight-item-btn { padding: 0.55rem 0.7rem; gap: 0.55rem; }
  .spotlight-thumb { width: 42px; height: 42px; border-radius: 10px; }
  .spotlight-badge-type { font-size: 0.7rem; padding: 0.16rem 0.5rem; }
  .announcement-bar { font-size: 0.78rem; padding: 0.45rem 0.75rem; flex-wrap: wrap; gap: 0.35rem; }
  .why-4-grid, .journey-grid, .stats-row-4, .form-grid, .footer-4col { grid-template-columns: 1fr; }
  .ambient-shape { display: none; }
}
.mobile-nav-cta { display: none; }
