/* =============================================================
   design4.css — MomSoft Learning: Design 4 "Rainbow Burst" Theme
   Version: 1.0 | June 2026

   IMPORTANT: Loads AFTER main.css on every page.
   Overrides main.css visual styles and adds the full Design 4
   component library for new pages. DO NOT remove main.css.
   ============================================================= */

/* ── FONTS ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

/* ── CSS VARIABLES (Design 4 palette) ──────────────────────── */
:root {
  /* Core rainbow palette */
  --d4-purple:       #9C27B0;
  --d4-purple-dark:  #7B1FA2;
  --d4-blue:         #2196F3;
  --d4-green:        #4CAF50;
  --d4-orange:       #FF9800;
  --d4-pink:         #E91E63;
  --d4-yellow-pale:  #FFF9C4;

  /* Gradients */
  --d4-grad-logo:    linear-gradient(90deg, #9C27B0, #2196F3, #E91E63);
  --d4-grad-primary: linear-gradient(135deg, #9C27B0, #2196F3);
  --d4-grad-cta:     linear-gradient(135deg, #9C27B0, #E91E63);
  --d4-grad-footer:  linear-gradient(135deg, #7B1FA2, #9C27B0, #E91E63);
  --d4-grad-rainbow: linear-gradient(135deg, #9C27B0, #2196F3, #4CAF50, #FF9800, #E91E63);

  /* Typography */
  --d4-font-display: 'Fredoka One', cursive;
  --d4-font-body:    'Nunito', sans-serif;

  /* Override main.css variables so cascade picks up Design 4 colours */
  --primary-color:   #9C27B0;
  --secondary-color: #E91E63;
  --accent-color:    #2196F3;
  --bg-light:        #FAFAFA;
}

/* ── GLOBAL BASE ────────────────────────────────────────────── */
body {
  font-family: var(--d4-font-body);
  background: #fff;
}

h1, h2, h3, h4,
.section-title,
.hero-title {
  font-family: var(--d4-font-display);
}

a { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   PHASE A — EXISTING PAGE OVERRIDES
   Makes every existing page look like Design 4
   without touching any HTML.
   ═══════════════════════════════════════════════════════════════ */

/* ── HEADER ─────────────────────────────────────────────────── */
.main-header {
  background: #fff !important;
  color: #222 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  padding: 0 !important;
}

.header-container {
  height: 72px;
  padding: 0 48px;
}

/* Logo text — rainbow gradient */
.logo-text {
  font-family: var(--d4-font-display) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  background: var(--d4-grad-logo) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Nav links — dark on white */
.main-nav .nav-link {
  color: #555 !important;
  font-family: var(--d4-font-body) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-bottom: none !important;
  opacity: 1 !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--d4-purple) !important;
  border-bottom: 2px solid var(--d4-purple) !important;
  opacity: 1 !important;
}

/* Mobile nav on white */
@media (max-width: 768px) {
  .main-nav {
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  }
  .main-nav .nav-link {
    color: #555 !important;
  }
  .mobile-menu-toggle {
    color: #555 !important;
  }
  .mobile-menu-toggle span {
    background: #555 !important;
  }
}

/* Auth slot buttons */
.header-auth-btn {
  font-family: var(--d4-font-body) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  font-size: 14px !important;
}

/* ── PRIMARY BUTTON ─────────────────────────────────────────── */
.btn-primary,
.btn.btn-primary {
  background: var(--d4-grad-primary) !important;
  border: none !important;
  border-radius: 20px !important;
  font-family: var(--d4-font-body) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 16px rgba(156,39,176,0.3) !important;
  color: #fff !important;
  padding: 12px 28px !important;
  transition: opacity 0.2s, transform 0.15s !important;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
/* Replace the old bright purple gradient with a white + soft blob background */
.hero {
  background: #fff !important;
  position: relative;
  overflow: hidden;
}

/* Soft blob in top-left (purple tint) */
.hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #E1BEE7;
  opacity: 0.35;
  top: -110px;
  left: -110px;
  pointer-events: none;
  z-index: 0;
}

/* Soft blob in top-right (blue tint) */
.hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #BBDEFB;
  opacity: 0.35;
  top: -70px;
  right: -70px;
  pointer-events: none;
  z-index: 0;
}

/* Keep content above the blobs */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kids-container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--d4-font-display) !important;
  color: #222 !important;
}

.hero-lead {
  font-family: var(--d4-font-body);
  font-weight: 600;
  color: #555 !important;
}

/* ── SECTION TITLES ─────────────────────────────────────────── */
.section-title {
  font-family: var(--d4-font-display) !important;
  color: #222;
}

/* ── AGE NAV BUTTONS ────────────────────────────────────────── */
.age-nav-item {
  border-radius: 20px !important;
  font-family: var(--d4-font-body) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  padding: 13px 22px !important;
}

.age-nav-item:nth-child(1) { background: var(--d4-purple) !important; }
.age-nav-item:nth-child(2) { background: var(--d4-blue)   !important; }
.age-nav-item:nth-child(3) { background: var(--d4-green)  !important; }
.age-nav-item:nth-child(4) { background: var(--d4-orange) !important; }
.age-nav-item:nth-child(5),
.age-nav-item-advanced     { background: var(--d4-pink)   !important; }

.age-nav-item:hover,
.age-nav-item.active {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2) !important;
  opacity: 1 !important;
  border-bottom: none !important;
}

.age-nav-item span:first-child {
  font-family: var(--d4-font-display) !important;
  color: #fff !important;
}

.age-nav-item span:last-child {
  color: #fff !important;
}

/* ── SUBJECT CARDS (existing pages) ─────────────────────────── */
.subject-card {
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09) !important;
  transition: transform 0.2s !important;
}
.subject-card:hover {
  transform: translateY(-4px) !important;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.main-footer {
  background: var(--d4-grad-footer) !important;
  border: none !important;
  color: #fff !important;
  margin-top: 0 !important;
  padding: 48px 0 24px !important;
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--d4-font-display) !important;
  font-weight: 400 !important;
}

.footer-bottom {
  border-top-color: rgba(255,255,255,0.2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.75) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE B — INJECTED HEADER / FOOTER CLASSES
   Used by shared-ui.js when it replaces the header and footer.
   ═══════════════════════════════════════════════════════════════ */

/* ── INJECTED HEADER ────────────────────────────────────────── */
.d4-site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.d4-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.d4-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.d4-logo-text {
  font-family: var(--d4-font-display);
  font-size: 22px;
  background: var(--d4-grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1.2;
}

.d4-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.d4-nav-link {
  font-family: var(--d4-font-body);
  font-weight: 700;
  color: #555;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.d4-nav-link:hover,
.d4-nav-link.active {
  color: var(--d4-purple);
  border-bottom-color: var(--d4-purple);
}

/* Auth entry point — auth.js appends login/logout button here */
#auth-entry-point {
  display: flex;
  align-items: center;
  gap: 12px;
}

.d4-btn-trial {
  background: var(--d4-grad-primary);
  color: #fff;
  border-radius: 20px;
  padding: 10px 22px;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(156,39,176,0.3);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.d4-btn-trial:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger for mobile */
.d4-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}
.d4-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav drawer (hidden until toggle) */
.d4-mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 16px 20px;
  border-top: 1px solid #eee;
}
.d4-mobile-nav.open { display: flex; }
.d4-mobile-nav .d4-nav-link {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 16px;
}

/* Dashboard header variant (parent-dashboard.html) */
.dashboard-site-header .d4-header-inner,
.d4-site-header.dashboard-site-header .d4-header-inner {
  background: linear-gradient(135deg, var(--d4-purple-dark), var(--d4-purple));
  max-width: 100%;
  padding: 0 32px;
  border-radius: 0;
}
.dashboard-site-header .d4-logo-text,
.d4-site-header.dashboard-site-header .d4-logo-text {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}
.dashboard-site-header .d4-nav-link,
.d4-site-header.dashboard-site-header .d4-nav-link {
  color: rgba(255,255,255,0.85);
}
.dashboard-site-header .d4-nav-link:hover,
.d4-site-header.dashboard-site-header .d4-nav-link:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.6);
}

/* ── INJECTED FOOTER ────────────────────────────────────────── */
.d4-site-footer {
  background: var(--d4-grad-footer);
  color: #fff;
  padding: 56px 48px 28px;
}

.d4-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.d4-footer-brand-logo {
  font-family: var(--d4-font-display);
  font-size: 26px;
  margin-bottom: 12px;
  font-weight: 400;
}

.d4-footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  font-weight: 600;
}

.d4-footer-col h4 {
  font-family: var(--d4-font-display);
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 400;
}

.d4-footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.d4-footer-col a:hover { color: #fff; }

.d4-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.d4-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.d4-footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.d4-footer-badge {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN 4 COMPONENT LIBRARY
   New classes for new pages — not in main.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── COLOUR UTILITIES ───────────────────────────────────────── */
/* Subject strip colours (card top-bars and card buttons) */
.strip-purple, .bg-d4-purple { background: var(--d4-purple) !important; }
.strip-blue,   .bg-d4-blue   { background: var(--d4-blue)   !important; }
.strip-green,  .bg-d4-green  { background: var(--d4-green)  !important; }
.strip-orange, .bg-d4-orange { background: var(--d4-orange) !important; }
.strip-pink,   .bg-d4-pink   { background: var(--d4-pink)   !important; }

.btn-purple { background: var(--d4-purple) !important; color: #fff !important; }
.btn-blue   { background: var(--d4-blue)   !important; color: #fff !important; }
.btn-green  { background: var(--d4-green)  !important; color: #fff !important; }
.btn-orange { background: var(--d4-orange) !important; color: #fff !important; }
.btn-pink   { background: var(--d4-pink)   !important; color: #fff !important; }

.border-purple { border-color: var(--d4-purple) !important; }
.border-blue   { border-color: var(--d4-blue)   !important; }
.border-green  { border-color: var(--d4-green)  !important; }
.border-orange { border-color: var(--d4-orange) !important; }
.border-pink   { border-color: var(--d4-pink)   !important; }

/* Light tint backgrounds */
.bg-tint-purple { background: #F3E5F5; }
.bg-tint-blue   { background: #E3F2FD; }
.bg-tint-green  { background: #E8F5E9; }
.bg-tint-orange { background: #FFF3E0; }
.bg-tint-pink   { background: #FCE4EC; }
.bg-tint-yellow { background: #FFF9C4; }

/* Pill / meta badges */
.pill-purple { background: #F3E5F5; color: #7B1FA2; }
.pill-blue   { background: #E3F2FD; color: #1565C0; }
.pill-green  { background: #E8F5E9; color: #2E7D32; }
.pill-orange { background: #FFF3E0; color: #E65100; }
.pill-pink   { background: #FCE4EC; color: #C2185B; }

/* ── BLOB DECORATIONS (hero backgrounds) ─────────────────────── */
.d4-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.d4-blob-purple { width: 340px; height: 340px; background: #E1BEE7; opacity: 0.45; top: -80px; left: -80px; }
.d4-blob-blue   { width: 280px; height: 280px; background: #BBDEFB; opacity: 0.45; top: -40px; right: -60px; }
.d4-blob-green  { width: 260px; height: 260px; background: #C8E6C9; opacity: 0.40; bottom: -70px; left: 120px; }
.d4-blob-orange { width: 240px; height: 240px; background: #FFE0B2; opacity: 0.40; bottom: -50px; right: 80px; }
.d4-blob-pink   { width: 180px; height: 180px; background: #FCE4EC; opacity: 0.50; top: 40%; left: 42%; }

/* ── HERO SECTION ───────────────────────────────────────────── */
.d4-hero {
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.d4-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  width: 100%;
  gap: 40px;
}

.d4-hero-left  { flex: 1; max-width: 580px; }
.d4-hero-right { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.d4-hero-badge {
  display: inline-block;
  background: #FCE4EC;
  color: #C2185B;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.d4-hero-h1 {
  font-family: var(--d4-font-display);
  font-size: 58px;
  line-height: 1.1;
  color: #222;
  margin-bottom: 20px;
}

.d4-hero-sub {
  font-size: 18px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 600;
  max-width: 480px;
}

.d4-hero-pick {
  font-family: var(--d4-font-display);
  font-size: 22px;
  color: var(--d4-purple);
  margin-bottom: 16px;
}

.d4-age-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.d4-age-btn {
  color: #fff;
  border-radius: 20px;
  padding: 13px 22px;
  border: none;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
}
.d4-age-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ── SECTION WRAPPERS ───────────────────────────────────────── */
.d4-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.d4-content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.d4-section-bg-grey  { background: #FAFAFA; }
.d4-section-bg-tint  { background: #F3E5F5; }
.d4-section-bg-white { background: #fff; }

/* ── SECTION HEADINGS ───────────────────────────────────────── */
.d4-section-title {
  font-family: var(--d4-font-display);
  font-size: 38px;
  text-align: center;
  color: #222;
  margin-bottom: 10px;
}

.d4-section-sub {
  text-align: center;
  color: #777;
  font-size: 16px;
  margin-bottom: 48px;
  font-weight: 600;
}

/* ── PAGE BANNER (topic / skill pages) ──────────────────────── */
.d4-page-banner {
  background: linear-gradient(135deg, var(--d4-purple), var(--d4-purple-dark));
  padding: 56px 48px 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.d4-page-banner-rainbow {
  background: var(--d4-grad-rainbow);
  padding: 4px;
}

.d4-page-banner-white {
  background: #fff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.d4-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.d4-banner-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.d4-banner-title {
  font-family: var(--d4-font-display);
  font-size: 52px;
  color: #fff;
  margin-bottom: 12px;
}

.d4-banner-title-dark {
  font-family: var(--d4-font-display);
  font-size: 44px;
  color: #222;
  margin-bottom: 10px;
}

.d4-banner-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  max-width: 480px;
  line-height: 1.55;
}

.d4-banner-eyebrow {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.d4-banner-age-pill {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.35);
}

.d4-banner-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--d4-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.d4-breadcrumb-bar {
  background: #FAFAFA;
  border-bottom: 1px solid #eee;
  padding: 14px 48px;
}

.d4-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  flex-wrap: wrap;
}

.d4-breadcrumb a {
  color: var(--d4-purple);
  text-decoration: none;
}
.d4-breadcrumb a:hover { text-decoration: underline; }
.d4-breadcrumb-sep     { color: #bbb; }
.d4-breadcrumb-current { color: #555; }

/* ── SUBJECT CARDS (new pages) ──────────────────────────────── */
.d4-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.d4-subject-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.d4-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

.d4-card-strip {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.d4-card-body { padding: 22px 24px 26px; }

.d4-card-name {
  font-family: var(--d4-font-display);
  font-size: 22px;
  color: #222;
  margin-bottom: 8px;
}

.d4-card-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  font-weight: 600;
}

.d4-card-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.d4-card-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── TOPIC CARDS ────────────────────────────────────────────── */
.d4-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.d4-topic-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.d4-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

.d4-topic-strip {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.d4-topic-new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--d4-purple);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
}

.d4-topic-body   { padding: 22px 22px 26px; }
.d4-topic-name   { font-family: var(--d4-font-display); font-size: 22px; color: #222; margin-bottom: 8px; }
.d4-topic-desc   { font-size: 14px; color: #666; line-height: 1.55; margin-bottom: 14px; font-weight: 600; }

.d4-diff-row     { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.d4-diff-label   { font-size: 12px; font-weight: 700; color: #999; }

.d4-topic-meta   { display: flex; align-items: center; justify-content: space-between; }
.d4-activity-count { font-size: 12px; color: #999; font-weight: 700; }

.d4-topic-btn {
  padding: 9px 20px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.d4-topic-btn:hover { opacity: 0.85; }

/* ── SKILL CARDS ────────────────────────────────────────────── */
.d4-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.d4-skill-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-left: 5px solid transparent;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.d4-skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.d4-skill-color-strip { height: 6px; }
.d4-skill-card-inner  { padding: 24px; }

.d4-skill-top     { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.d4-skill-num     { font-size: 11px; font-weight: 800; color: #bbb; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.d4-skill-name    { font-family: var(--d4-font-display); font-size: 22px; color: #222; }
.d4-skill-emoji   { font-size: 32px; }
.d4-skill-desc    { font-size: 14px; color: #666; line-height: 1.55; margin-bottom: 16px; font-weight: 600; }
.d4-skill-footer  { display: flex; align-items: center; justify-content: space-between; }

.d4-star-row      { display: flex; gap: 3px; }
.d4-star-filled   { color: var(--d4-orange); font-size: 20px; }
.d4-star-empty    { color: #ddd; font-size: 20px; }

.d4-status-badge-done     { background: #E8F5E9; color: #2E7D32; padding: 5px 14px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.d4-status-badge-progress { background: #FFF3E0; color: #E65100; padding: 5px 14px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.d4-status-badge-new      { background: #E3F2FD; color: #1565C0; padding: 5px 14px; border-radius: 12px; font-size: 12px; font-weight: 800; }

.d4-skill-btn {
  padding: 9px 20px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
.d4-skill-btn:hover { opacity: 0.85; }

/* ── STATS BANNER ───────────────────────────────────────────── */
.d4-stats-banner { background: var(--d4-grad-rainbow); padding: 4px; }

.d4-stats-inner {
  background: #fff;
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.d4-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.d4-stat-num   { font-family: var(--d4-font-display); font-size: 48px; margin-bottom: 6px; }
.d4-stat-label { font-weight: 700; color: #555; font-size: 15px; }

/* ── FEATURE BLOCKS ─────────────────────────────────────────── */
.d4-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.d4-feature-block { padding: 36px 28px; border-radius: 20px; text-align: center; }

.d4-feat-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  color: #fff;
}

.d4-feat-title { font-family: var(--d4-font-display); font-size: 22px; margin-bottom: 10px; color: #222; }
.d4-feat-desc  { font-size: 15px; color: #666; line-height: 1.65; font-weight: 600; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.d4-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.d4-testi-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(156,39,176,0.08);
}

.d4-testi-stars  { font-size: 18px; color: var(--d4-orange); margin-bottom: 12px; }
.d4-testi-quote  { font-size: 14px; color: #444; line-height: 1.65; margin-bottom: 16px; font-weight: 600; font-style: italic; }
.d4-testi-author { font-weight: 800; color: var(--d4-purple); font-size: 14px; }

/* ── CTA STRIP ──────────────────────────────────────────────── */
.d4-cta-strip   { background: var(--d4-grad-cta); padding: 72px 48px; text-align: center; }
.d4-cta-h2      { font-family: var(--d4-font-display); font-size: 42px; color: #fff; margin-bottom: 16px; }
.d4-cta-sub     { color: rgba(255,255,255,0.88); font-size: 18px; margin-bottom: 36px; font-weight: 600; }

.d4-cta-btn {
  background: #fff;
  color: var(--d4-purple);
  padding: 16px 48px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-family: var(--d4-font-display);
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.d4-cta-btn:hover { opacity: 0.95; transform: translateY(-2px); }

/* ── ENCOURAGE STRIP (learning zone motivator) ───────────────── */
.d4-encourage-strip {
  background: linear-gradient(135deg, #FFF9C4, #FCE4EC);
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  border: 2px dashed var(--d4-orange);
}
.d4-encourage-strip h3 { font-family: var(--d4-font-display); font-size: 24px; color: var(--d4-purple); margin-bottom: 8px; }
.d4-encourage-strip p  { font-size: 15px; color: #555; font-weight: 600; line-height: 1.55; }

/* ── PROGRESS SUMMARY ───────────────────────────────────────── */
.d4-progress-summary {
  background: linear-gradient(135deg, #F3E5F5, #E3F2FD);
  border-radius: 20px;
  padding: 32px 40px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.d4-summary-stat   { text-align: center; flex: 1; }
.d4-summary-num    { font-family: var(--d4-font-display); font-size: 42px; margin-bottom: 6px; }
.d4-summary-label  { font-size: 14px; font-weight: 700; color: #555; }
.d4-summary-divider { width: 1px; height: 60px; background: rgba(156,39,176,0.2); }

/* ── FILTER PILLS ───────────────────────────────────────────── */
.d4-filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }

.d4-filter-pill {
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--d4-font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

/* ── NAVIGATION BUTTONS ─────────────────────────────────────── */
.d4-nav-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; }

.d4-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--d4-orange);
  color: var(--d4-orange);
  border-radius: 20px;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.d4-btn-back:hover { background: var(--d4-orange); color: #fff; }

.d4-btn-next {
  background: var(--d4-grad-cta);
  color: #fff;
  padding: 12px 28px;
  border-radius: 20px;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.d4-btn-next:hover { opacity: 0.9; }

/* ── CONTENT HEADER ROW ─────────────────────────────────────── */
.d4-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.d4-content-h2 { font-family: var(--d4-font-display); font-size: 30px; color: #222; }
.d4-content-title { font-family: var(--d4-font-display); font-size: 32px; color: #222; }

/* ── LEGEND ─────────────────────────────────────────────────── */
.d4-legend       { display: flex; gap: 16px; }
.d4-legend-item  { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.d4-legend-dot   { width: 12px; height: 12px; border-radius: 50%; }

/* ── META PILLS ─────────────────────────────────────────────── */
.d4-meta-pill {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════════════
   SUBJECT HUB CLASSES — Written dynamically by msh-skill-play-shell.js
   Must be defined here so Phase C can safely retire main.css copies.
   ══════════════════════════════════════════════════════════════ */
.english-skills-page--kids        { --subject-color: var(--d4-purple); }
.math-skills-page--kids           { --subject-color: var(--d4-blue);   }
.science-skills-page--kids        { --subject-color: var(--d4-green);  }
.creative-arts-skills-page--kids  { --subject-color: var(--d4-orange); }
.motor-skills-page--kids          { --subject-color: var(--d4-purple); }
.music-rhythm-skills-page--kids   { --subject-color: var(--d4-pink);   }
.cognitive-skills-page--kids      { --subject-color: var(--d4-blue);   }
.social-studies-skills-page--kids { --subject-color: var(--d4-green);  }
.stories-reading-skills-page--kids { --subject-color: var(--d4-orange); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .d4-subject-grid,
  .d4-topic-grid    { grid-template-columns: repeat(2, 1fr); }
  .d4-feature-grid  { grid-template-columns: repeat(2, 1fr); }
  .d4-testi-grid    { grid-template-columns: repeat(2, 1fr); }
  .d4-stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .d4-footer-main   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-container { padding: 0 20px; }
  .d4-header-inner  { padding: 0 20px; }
  .d4-nav           { display: none; }
  .d4-mobile-toggle { display: flex; }

  .d4-hero-inner    { flex-direction: column; padding: 48px 20px; }
  .d4-hero-h1       { font-size: 38px; }
  .d4-hero-right    { display: none; }

  .d4-subject-grid,
  .d4-topic-grid,
  .d4-skill-grid    { grid-template-columns: 1fr; }
  .d4-feature-grid  { grid-template-columns: 1fr; }
  .d4-testi-grid    { grid-template-columns: 1fr; }
  .d4-footer-main   { grid-template-columns: 1fr; }

  .d4-section-title { font-size: 28px; }
  .d4-cta-h2        { font-size: 30px; }
  .d4-banner-title  { font-size: 36px; }
  .d4-hero-h1       { font-size: 36px; }

  .d4-section,
  .d4-content-area  { padding: 40px 20px 60px; }
  .d4-site-footer   { padding: 40px 20px 20px; }
  .d4-breadcrumb-bar { padding: 14px 20px; }
  .d4-cta-strip     { padding: 48px 20px; }
  .d4-encourage-strip { flex-direction: column; padding: 24px; }
  .d4-progress-summary { flex-direction: column; }
  .d4-summary-divider { width: 60px; height: 1px; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTION OVERRIDES — existing page content areas
   ═══════════════════════════════════════════════════════════════ */

/* ── LOGIN / REGISTER pages ─────────────────────────────────── */
.generic-page-shell {
  background: #FAFAFA;
  min-height: calc(100vh - 72px);
  padding: 48px 20px;
}

.generic-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.generic-page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.generic-page-hero h2 {
  font-family: var(--d4-font-display) !important;
  font-size: 36px !important;
  color: var(--d4-purple) !important;
  margin-bottom: 10px;
}

.generic-page-hero p {
  font-size: 16px;
  color: #666;
  font-weight: 600;
}

.auth-page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.auth-card {
  background: #fff;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(156,39,176,0.10) !important;
  padding: 36px !important;
  border: none !important;
}

.auth-card h1 {
  font-family: var(--d4-font-display) !important;
  font-size: 28px !important;
  color: #222 !important;
  margin-bottom: 8px;
}

.auth-card p {
  color: #666;
  font-weight: 600;
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-weight: 700;
  color: #444;
  margin-bottom: 16px;
  font-family: var(--d4-font-body);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--d4-font-body);
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--d4-purple);
}

.auth-links {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.auth-links a {
  color: var(--d4-purple);
  font-weight: 700;
}

.mission-vision-card {
  background: linear-gradient(135deg, #F3E5F5, #E3F2FD);
  border-radius: 20px !important;
  padding: 32px !important;
  border: none !important;
}

.mission-vision-kicker {
  font-family: var(--d4-font-display);
  font-size: 13px;
  color: var(--d4-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px !important;
  font-weight: 400 !important;
}

.mission-vision-block {
  margin-bottom: 24px;
}

.mission-vision-block h3 {
  font-family: var(--d4-font-display) !important;
  font-size: 18px !important;
  color: #222 !important;
  margin-bottom: 8px;
  font-weight: 400 !important;
}

.mission-vision-quote {
  font-size: 14px;
  color: #555;
  font-style: italic;
  font-weight: 600;
  line-height: 1.65;
  border-left: 3px solid var(--d4-purple);
  padding-left: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .auth-page-split { grid-template-columns: 1fr; }
  .mission-vision-card { display: none; }
}

/* ── MEMBERSHIP page ────────────────────────────────────────── */
.mship-main { background: #fff; }

.mship-hero {
  background: linear-gradient(135deg, var(--d4-purple), var(--d4-purple-dark)) !important;
  padding: 72px 48px !important;
  text-align: center;
}

.mship-hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--d4-font-body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.mship-hero-title {
  font-family: var(--d4-font-display) !important;
  font-size: 48px !important;
  color: #fff !important;
  margin-bottom: 16px;
}

.mship-hero-sub {
  font-size: 17px !important;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600 !important;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.mship-hero-tags span {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  margin: 4px;
}

.mship-cards-section {
  padding: 72px 48px;
  background: #FAFAFA;
}

.mship-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.mship-card {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 36px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09) !important;
  border: none !important;
}

.mship-card-title {
  font-family: var(--d4-font-display) !important;
  font-size: 26px !important;
  color: #222 !important;
  margin-bottom: 12px;
  font-weight: 400 !important;
}

.mship-card-lead {
  font-size: 15px !important;
  color: #666 !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  margin-bottom: 16px;
}

.mship-card-bullets {
  padding-left: 18px;
  margin-bottom: 24px;
}

.mship-card-bullets li {
  font-size: 14px;
  color: #555;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.mship-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 16px;
  font-family: var(--d4-font-body) !important;
  font-weight: 800 !important;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mship-btn--primary {
  background: var(--d4-grad-primary) !important;
  color: #fff !important;
  border: none !important;
}

.mship-btn--secondary {
  background: #fff !important;
  border: 2px solid var(--d4-purple) !important;
  color: var(--d4-purple) !important;
}

.mship-btn--ghost,
.mship-btn[class*="outline"] {
  background: none !important;
  border: 2px solid #ddd !important;
  color: #666 !important;
}

.mship-btn:disabled,
.mship-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.mship-card-note {
  font-size: 12px !important;
  color: #999 !important;
  font-weight: 600 !important;
  margin-top: 16px;
  line-height: 1.55;
}

.mship-simple-plan-section {
  padding: 72px 48px;
  background: #fff;
}

.mship-simple-plan-section h2 {
  font-family: var(--d4-font-display) !important;
  font-size: 36px !important;
  color: #222 !important;
  text-align: center;
  margin-bottom: 12px;
}

.mship-payment-banner {
  background: linear-gradient(135deg, #FFF9C4, #FCE4EC);
  border-radius: 20px;
  padding: 32px 40px;
  margin: 0 48px 48px;
  text-align: center;
}

@media (max-width: 768px) {
  .mship-cards-grid { grid-template-columns: 1fr; }
  .mship-hero { padding: 48px 20px !important; }
  .mship-hero-title { font-size: 32px !important; }
  .mship-cards-section { padding: 48px 20px; }
}

/* ── ABOUT / FAQ / CONTACT pages ────────────────────────────── */
.activities-section {
  padding: 72px 48px;
  background: #fff;
}

.activities-section h1,
.activities-section h2 {
  font-family: var(--d4-font-display) !important;
  color: #222 !important;
  margin-bottom: 16px;
}

.activities-section h1 { font-size: 42px !important; }
.activities-section h2 { font-size: 32px !important; }

.activities-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 16px;
}

.activities-section ul,
.activities-section ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.activities-section li {
  color: #555;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.6;
}

.activities-section a {
  color: var(--d4-purple);
  font-weight: 700;
}

/* FAQ accordion items */
.faq-item,
details {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #eee;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary,
details summary {
  padding: 18px 20px;
  font-family: var(--d4-font-body);
  font-weight: 700;
  font-size: 16px;
  color: #222;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker,
details summary::-webkit-details-marker { display: none; }

details[open] {
  border-color: var(--d4-purple);
}

details[open] summary {
  color: var(--d4-purple);
}

/* Contact form */
.contact-form,
form[id*="contact"] {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(156,39,176,0.09);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--d4-font-body);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--d4-purple);
}

/* ── PARENT DASHBOARD overrides ─────────────────────────────── */
.dashboard-site-header {
  background: linear-gradient(135deg, var(--d4-purple-dark), var(--d4-purple)) !important;
}

/* ── SKILL-PLAY hub overrides ───────────────────────────────── */
.msh-skill-play-page {
  background: #FAFAFA;
}

.msh-skill-play-page h1,
.msh-skill-play-page h2 {
  font-family: var(--d4-font-display) !important;
}

/* Back/return button */
.msh-skill-play-return-enhance,
.msh-return-cta {
  background: none !important;
  border: 2px solid var(--d4-orange) !important;
  color: var(--d4-orange) !important;
  border-radius: 20px !important;
  font-family: var(--d4-font-body) !important;
  font-weight: 800 !important;
  padding: 10px 22px !important;
}

/* Activity cards within skill-play */
.msh-skill-card,
.activity-card {
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09) !important;
  transition: transform 0.2s !important;
}

.msh-skill-card:hover,
.activity-card:hover {
  transform: translateY(-3px) !important;
}

@media (max-width: 768px) {
  .activities-section { padding: 40px 20px; }
  .mship-payment-banner { margin: 0 20px 40px; padding: 24px 20px; }
}

/* ── PAGE TITLE / SUBTITLE (about, faq, contact) ────────────── */
.page-title {
  font-family: var(--d4-font-display) !important;
  font-size: 42px !important;
  color: #222 !important;
  text-align: center;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 18px !important;
  color: #666 !important;
  font-weight: 600 !important;
}

.about-panel {
  background: #fff;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(156,39,176,0.09) !important;
  padding: 40px !important;
}

.about-panel-heading,
.faq-item-heading {
  font-family: var(--d4-font-display) !important;
  font-size: 22px !important;
  color: var(--d4-purple) !important;
  margin-bottom: 12px;
  font-weight: 400 !important;
}

.faq-content {
  background: #fff;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(156,39,176,0.09) !important;
  padding: 40px !important;
}

.faq-contact-strip {
  margin-top: 32px;
  background: linear-gradient(135deg, #F3E5F5, #E3F2FD);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-contact-strip-text {
  font-weight: 700 !important;
  color: #444 !important;
  font-size: 16px !important;
}

.faq-contact-strip-link {
  display: inline-block;
  background: var(--d4-grad-primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
