/*
Theme Name: HomeClass Network
Theme URI: https://homeclassnetwork.com
Author: HomeClass Network
Description: Elementor-compatible theme for HomeClass Network. Header and footer managed separately via Elementor or your own builder. This stylesheet provides all component styles for page sections.
Version: 4.0.0
Requires at least: 5.8
Tested up to: 6.5
Text Domain: homeclassnetwork
Tags: education, tutoring, elementor, custom-colors, responsive-layout
*/

/* =============================================
   DESIGN TOKENS — match these in Elementor
   Appearance > Customise > Additional CSS
   or Elementor > Site Settings > Global Colors
   ============================================= */
:root {
  /* Brand Colours */
  --hcn-sage:        #4A7C59;
  --hcn-sage-dark:   #335540;
  --hcn-sage-mid:    #6A9E7A;
  --hcn-sage-light:  #EAF2EC;
  --hcn-sage-pale:   #F4F9F5;
  --hcn-gold:        #C9893F;
  --hcn-gold-light:  #FDF4E9;
  --hcn-sand:        #F7F3ED;
  --hcn-sand-dark:   #EDE7DC;
  --hcn-white:       #FFFFFF;
  --hcn-ink:         #1E2D24;
  --hcn-ink-mid:     #3D5045;
  --hcn-ink-soft:    #6B8070;
  --hcn-border:      #DDE8DF;

  /* Shadows */
  --hcn-shadow-sm:  0 2px 12px rgba(30,45,36,0.08);
  --hcn-shadow-md:  0 8px 32px rgba(30,45,36,0.12);
  --hcn-shadow-lg:  0 24px 64px rgba(30,45,36,0.16);

  /* Radius */
  --hcn-r-sm: 10px;
  --hcn-r:    16px;
  --hcn-r-lg: 24px;
  --hcn-r-xl: 36px;

  /* Transition */
  --hcn-transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--hcn-ink);
  background: var(--hcn-white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, .hcn-serif {
  font-family: 'DM Serif Display', serif;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* Elementor overrides */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'DM Serif Display', serif !important;
  line-height: 1.15 !important;
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
.hcn-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hcn-sage);
  margin-bottom: 14px;
}
.hcn-section-tag::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--hcn-sage);
  border-radius: 2px;
  flex-shrink: 0;
}
.hcn-section-tag.light { color: rgba(255,255,255,0.8); }
.hcn-section-tag.light::before { background: rgba(255,255,255,0.6); }

/* =============================================
   BUTTONS
   ============================================= */
.hcn-btn,
.elementor-button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition), background var(--hcn-transition);
}
.hcn-btn:hover,
.elementor-button:hover { transform: translateY(-2px); }

/* Primary button */
.hcn-btn-primary,
.elementor-button.hcn-btn-primary {
  background: var(--hcn-sage) !important;
  color: var(--hcn-white) !important;
  box-shadow: 0 4px 20px rgba(74,124,89,0.32);
}
.hcn-btn-primary:hover { background: var(--hcn-sage-dark) !important; }

/* Gold button */
.hcn-btn-gold {
  background: var(--hcn-gold) !important;
  color: var(--hcn-white) !important;
  box-shadow: 0 4px 20px rgba(201,137,63,0.32);
}
.hcn-btn-gold:hover { background: #B07432 !important; }

/* Outline button */
.hcn-btn-outline {
  background: transparent !important;
  color: var(--hcn-sage) !important;
  border: 2px solid var(--hcn-border) !important;
}
.hcn-btn-outline:hover { border-color: var(--hcn-sage) !important; background: var(--hcn-sage-pale) !important; }

/* White ghost button */
.hcn-btn-ghost-white {
  background: rgba(255,255,255,0.12) !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.35) !important;
}
.hcn-btn-ghost-white:hover { background: rgba(255,255,255,0.2) !important; }

/* =============================================



/* =============================================
.hcn-hero-section {
  min-height: 100vh;
  background: var(--hcn-sand);
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}
.hcn-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hcn-sage-light);
  border: 1px solid rgba(74,124,89,0.2);
  color: var(--hcn-sage-dark);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 24px;
}
.hcn-hero-title { margin-bottom: 24px; }
.hcn-hero-title em { font-style: italic; color: var(--hcn-sage); }
.hcn-hero-sub {
  font-size: 1.05rem; color: var(--hcn-ink-soft);
  max-width: 500px; line-height: 1.75; margin-bottom: 40px;
}
.hcn-trust-row {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; margin-top: 32px;
}
.hcn-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--hcn-ink-soft);
}
.hcn-trust-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hcn-sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
/* Blob decorations */
.hcn-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hcn-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,124,89,0.1), transparent 70%);
  top: -80px; right: -80px;
  animation: hcnBlobFloat 8s ease-in-out infinite;
}
.hcn-blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,137,63,0.08), transparent 70%);
  bottom: 0; left: 5%;
  animation: hcnBlobFloat 10s ease-in-out infinite 2s;
}
@keyframes hcnBlobFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.04); }
}

/* =============================================
.hcn-float-card {
  background: var(--hcn-white);
  border-radius: var(--hcn-r);
  padding: 14px 18px;
  box-shadow: var(--hcn-shadow-md);
  display: inline-flex; align-items: center; gap: 12px;
  animation: hcnFloatY 4s ease-in-out infinite;
}
.hcn-float-card.delay { animation-delay: 1.8s; }
.hcn-float-ico { font-size: 1.6rem; }
.hcn-float-lbl { font-size: 0.7rem; color: var(--hcn-ink-soft); }
.hcn-float-val { font-size: 0.95rem; font-weight: 700; color: var(--hcn-ink); }
@keyframes hcnFloatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* =============================================
   TRUST STRIP
   ============================================= */
.hcn-trust-strip {
  background: var(--hcn-sage);
  padding: 36px 5%;
}
.hcn-trust-strip-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 24px;
}
.hcn-stat { text-align: center; }
.hcn-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: white; line-height: 1;
}
.hcn-stat-lbl {
  font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 4px; font-weight: 500;
}
.hcn-strip-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* =============================================
   BENEFIT CARDS
   ============================================= */
.hcn-benefit-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: var(--hcn-sand);
  border-radius: var(--hcn-r);
  border: 1px solid var(--hcn-sand-dark);
  margin-bottom: 16px;
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition), border-color var(--hcn-transition);
}
.hcn-benefit-card:hover {
  transform: translateX(4px);
  box-shadow: var(--hcn-shadow-sm);
  border-color: var(--hcn-border);
}
.hcn-benefit-icon {
  width: 44px; height: 44px; border-radius: var(--hcn-r-sm);
  background: var(--hcn-sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.hcn-benefit-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.hcn-benefit-desc { font-size: 0.82rem; color: var(--hcn-ink-soft); line-height: 1.55; }

/* =============================================
   HOW IT WORKS — STEPS
   ============================================= */
.hcn-step-card { text-align: center; padding: 0 16px; }
.hcn-step-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--hcn-white);
  border: 3px solid var(--hcn-sage-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--hcn-shadow-sm);
  position: relative;
  transition: border-color var(--hcn-transition), box-shadow var(--hcn-transition), transform var(--hcn-transition);
  font-size: 1.6rem;
}
.hcn-step-card:hover .hcn-step-circle {
  border-color: var(--hcn-sage);
  box-shadow: 0 8px 24px rgba(74,124,89,0.2);
  transform: scale(1.08);
}
.hcn-step-badge {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hcn-gold); color: white;
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hcn-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem; margin-bottom: 8px;
}
.hcn-step-desc { font-size: 0.82rem; color: var(--hcn-ink-soft); line-height: 1.6; }

/* =============================================
   SUBJECT CARDS
   ============================================= */
.hcn-subject-card {
  border-radius: var(--hcn-r-lg);
  overflow: hidden;
  border: 1px solid var(--hcn-border);
  background: var(--hcn-white);
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition), border-color var(--hcn-transition);
  cursor: pointer;
}
.hcn-subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hcn-shadow-md);
  border-color: var(--hcn-sage-light);
}
.hcn-subject-header {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; font-size: 3.5rem;
}
.hcn-subject-header.maths  { background: linear-gradient(135deg,#E8F4F8,#C5DDE8); }
.hcn-subject-header.english { background: linear-gradient(135deg,#FDF4E9,#F5DDB5); }
.hcn-subject-header.science { background: linear-gradient(135deg,#EAF2EC,#C4D9C6); }
.hcn-subject-header.gcse   { background: linear-gradient(135deg,#F3EEF8,#D9C8ED); }
.hcn-subject-header.alevel { background: linear-gradient(135deg,#FEF0F0,#F5C4C4); }
.hcn-subject-header.homework { background: linear-gradient(135deg,#EDF4FF,#BDD2F4); }
.hcn-subject-body { padding: 22px; }
.hcn-subject-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; margin-bottom: 8px;
}
.hcn-subject-desc { font-size: 0.83rem; color: var(--hcn-ink-soft); line-height: 1.6; margin-bottom: 14px; }
.hcn-pill {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 11px; border-radius: 50px;
  background: var(--hcn-sage-light); color: var(--hcn-sage-dark);
  margin: 2px;
}
.hcn-pill.gold { background: var(--hcn-gold-light); color: #8A5A1A; }

/* =============================================
   ANIMATED MATHS BOARD
   ============================================= */
.hcn-maths-section {
  background: linear-gradient(160deg,#1A2F3D,#223344);
  color: white;
}
.hcn-formula-board {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--hcn-r-xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.hcn-formula-board::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 28px,
    rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 29px
  );
}
.hcn-formula-line {
  font-family: 'DM Serif Display', serif;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  position: relative; z-index: 1;
  opacity: 0; animation: hcnTypeIn 0.4s ease forwards;
}
.hcn-formula-line.l1 { font-size: 1.8rem; animation-delay: 0.3s; }
.hcn-formula-line.l2 { font-size: 1.2rem; color: rgba(255,255,255,0.6); animation-delay: 0.7s; }
.hcn-formula-line.l3 { font-size: 2.2rem; color: #7ECBA1; animation-delay: 1.1s; }
.hcn-formula-line.l4 { font-size: 1rem; color: rgba(255,255,255,0.5); animation-delay: 1.5s; }
.hcn-formula-line.l5 { font-size: 1.5rem; color: #FFD080; animation-delay: 1.9s; }
@keyframes hcnTypeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Floating maths symbols */
.hcn-math-symbol {
  position: absolute;
  font-family: 'DM Serif Display', serif;
  color: rgba(74,124,89,0.22);
  font-weight: 900;
  animation: hcnMathDrift 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hcnMathDrift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(6deg); }
}

/* =============================================
   ANIMATED SCIENCE ATOM
   ============================================= */
.hcn-atom-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 380px;
}
.hcn-nucleus {
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--hcn-sage-mid), var(--hcn-sage-dark));
  box-shadow: 0 0 28px rgba(74,124,89,0.5), 0 0 56px rgba(74,124,89,0.2);
  position: absolute; z-index: 3;
}
.hcn-orbit {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(74,124,89,0.25);
}
.hcn-orbit.o1 { width: 120px; height: 120px; animation: hcnOrbit 4s linear infinite; }
.hcn-orbit.o2 { width: 200px; height: 96px; animation: hcnOrbit 6s linear infinite reverse; transform: rotate(60deg); }
.hcn-orbit.o3 { width: 280px; height: 124px; animation: hcnOrbit 9s linear infinite; transform: rotate(120deg); }
@keyframes hcnOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hcn-electron {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  top: -5px; left: 50%; transform: translateX(-50%);
}
.hcn-electron.e1 { background: var(--hcn-gold); box-shadow: 0 0 8px rgba(201,137,63,0.6); }
.hcn-electron.e2 { background: #7ECBA1; box-shadow: 0 0 8px rgba(126,203,161,0.6); }
.hcn-electron.e3 { background: #80B0E0; box-shadow: 0 0 8px rgba(128,176,224,0.6); }

/* Periodic element chips */
.hcn-element-chip {
  background: var(--hcn-white);
  border: 1px solid var(--hcn-border);
  border-radius: 8px; padding: 6px 10px;
  text-align: center; min-width: 52px;
  box-shadow: var(--hcn-shadow-sm);
  display: inline-block; margin: 4px;
}
.hcn-el-sym { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--hcn-sage); }
.hcn-el-name { font-size: 0.58rem; color: var(--hcn-ink-soft); }

/* =============================================
   EXAM CARDS
   ============================================= */
.hcn-exam-card {
  border-radius: var(--hcn-r-lg);
  padding: 32px 28px;
  border: 1px solid var(--hcn-border);
  background: var(--hcn-white);
  position: relative; overflow: hidden;
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition);
  height: 100%;
}
.hcn-exam-card:hover { transform: translateY(-4px); box-shadow: var(--hcn-shadow-md); }
.hcn-exam-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--hcn-sage);
}
.hcn-exam-card.gold::before { background: var(--hcn-gold); }
.hcn-exam-card.purple::before { background: #8B5CF6; }
.hcn-exam-card.blue::before { background: #3B82F6; }
.hcn-exam-flag { font-size: 2rem; margin-bottom: 12px; }
.hcn-exam-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; margin-bottom: 10px;
}
.hcn-exam-desc { font-size: 0.83rem; color: var(--hcn-ink-soft); line-height: 1.65; margin-bottom: 18px; }
.hcn-exam-list { list-style: none; padding: 0; margin: 0; }
.hcn-exam-list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.82rem; color: var(--hcn-ink-mid); margin-bottom: 8px;
}
.hcn-exam-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--hcn-sage); flex-shrink: 0; margin-top: 6px;
}
.hcn-exam-card.gold .hcn-exam-list li::before { background: var(--hcn-gold); }

/* =============================================
   TESTIMONIAL CARDS
   ============================================= */
.hcn-testi-card {
  background: var(--hcn-white);
  border-radius: var(--hcn-r-lg);
  padding: 28px 24px;
  border: 1px solid var(--hcn-sand-dark);
  box-shadow: 0 1px 4px rgba(30,45,36,0.06);
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition);
  height: 100%;
}
.hcn-testi-card:hover { transform: translateY(-4px); box-shadow: var(--hcn-shadow-md); }
.hcn-stars { color: var(--hcn-gold); letter-spacing: 2px; margin-bottom: 14px; }
.hcn-testi-quote {
  font-family: 'DM Serif Display', serif;
  font-style: italic; font-size: 0.98rem;
  color: var(--hcn-ink); line-height: 1.7; margin-bottom: 20px;
}
.hcn-author { display: flex; align-items: center; gap: 12px; }
.hcn-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: white; flex-shrink: 0;
}
.hcn-author-name { font-weight: 700; font-size: 0.85rem; }
.hcn-author-loc { font-size: 0.75rem; color: var(--hcn-ink-soft); }

/* =============================================
   SCHEDULE MOCKUP (Homeschool)
   ============================================= */
.hcn-schedule {
  background: white;
  border-radius: var(--hcn-r);
  padding: 20px 18px;
  box-shadow: var(--hcn-shadow-sm);
  max-width: 320px; margin: 0 auto;
}
.hcn-sched-day {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--hcn-sage); margin-bottom: 12px;
}
.hcn-sched-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 0.78rem;
}
.hcn-sched-item.active { background: var(--hcn-sage-light); }
.hcn-sched-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hcn-sage); flex-shrink: 0; }
.hcn-sched-dot.gold { background: var(--hcn-gold); }
.hcn-sched-dot.blue { background: #3B82F6; }
.hcn-sched-time { color: var(--hcn-ink-soft); font-size: 0.7rem; margin-left: auto; }

/* =============================================
   SAFEGUARDING BADGES
   ============================================= */
.hcn-sg-badge {
  background: var(--hcn-sand);
  border-radius: var(--hcn-r);
  padding: 20px 18px;
  border: 1px solid var(--hcn-sand-dark);
  transition: transform var(--hcn-transition);
  height: 100%;
}
.hcn-sg-badge:hover { transform: translateY(-3px); }
.hcn-sg-icon { font-size: 1.6rem; margin-bottom: 10px; }
.hcn-sg-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.hcn-sg-desc { font-size: 0.76rem; color: var(--hcn-ink-soft); line-height: 1.5; }

/* =============================================
   FEATURE LIST (maths/science points)
   ============================================= */
.hcn-feature-list { list-style: none; padding: 0; margin: 0; }
.hcn-feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.88rem; margin-bottom: 14px;
}
.hcn-feature-list li::before {
  content: '✓';
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(126,203,161,0.2); color: #7ECBA1;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.hcn-feature-list.dark li { color: rgba(255,255,255,0.85); }

/* =============================================
   CTA BANNER
   ============================================= */
.hcn-cta-section {
  background: linear-gradient(160deg, var(--hcn-sage), var(--hcn-sage-dark));
  text-align: center; padding: 96px 5%;
  position: relative; overflow: hidden;
}
.hcn-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='3' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
}
.hcn-cta-step {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85); font-size: 0.82rem; margin: 8px 16px;
}
.hcn-cta-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: white; flex-shrink: 0;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.hcn-faq-item {
  background: var(--hcn-white);
  border-radius: var(--hcn-r);
  border: 1px solid var(--hcn-border);
  overflow: hidden; margin-bottom: 12px;
  transition: box-shadow var(--hcn-transition);
}
.hcn-faq-item:hover { box-shadow: var(--hcn-shadow-sm); }
.hcn-faq-q {
  padding: 18px 20px; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; user-select: none;
}
.hcn-faq-toggle {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hcn-sage-light); color: var(--hcn-sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
  transition: transform var(--hcn-transition), background var(--hcn-transition);
}
.hcn-faq-item.open .hcn-faq-toggle {
  transform: rotate(45deg);
  background: var(--hcn-sage); color: white;
}
.hcn-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.83rem; color: var(--hcn-ink-soft); line-height: 1.65;
}
.hcn-faq-item.open .hcn-faq-a { max-height: 200px; padding: 0 20px 18px; }

/* =============================================
   CONTACT FORM
   ============================================= */
.hcn-form-wrap {
  background: var(--hcn-white);
  border-radius: var(--hcn-r-xl);
  padding: 40px;
  box-shadow: var(--hcn-shadow-md);
  border: 1px solid var(--hcn-border);
}
.hcn-form-group { margin-bottom: 20px; }
.hcn-form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--hcn-ink-mid); margin-bottom: 6px;
}
.hcn-form-group input,
.hcn-form-group select,
.hcn-form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; padding: 12px 16px;
  border: 1px solid var(--hcn-border);
  border-radius: var(--hcn-r-sm);
  background: var(--hcn-sand);
  color: var(--hcn-ink); width: 100%;
  outline: none;
  transition: border-color var(--hcn-transition), box-shadow var(--hcn-transition);
}
.hcn-form-group input:focus,
.hcn-form-group select:focus,
.hcn-form-group textarea:focus {
  border-color: var(--hcn-sage);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}
.hcn-form-group textarea { resize: vertical; min-height: 120px; }

/* =============================================
   PRICING CARDS
   ============================================= */
.hcn-pricing-card {
  border-radius: var(--hcn-r-xl);
  border: 1px solid var(--hcn-border);
  overflow: hidden;
  background: var(--hcn-white);
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition);
  height: 100%;
}
.hcn-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--hcn-shadow-md); }
.hcn-pricing-card.featured { border-color: var(--hcn-sage); box-shadow: 0 0 0 2px var(--hcn-sage); }
.hcn-pricing-head { padding: 28px 24px 20px; background: var(--hcn-sand); }
.hcn-pricing-card.featured .hcn-pricing-head { background: var(--hcn-sage); }
.hcn-pricing-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hcn-sage); margin-bottom: 8px; }
.hcn-pricing-card.featured .hcn-pricing-label { color: rgba(255,255,255,0.8); }
.hcn-pricing-name { font-family: 'DM Serif Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.hcn-pricing-card.featured .hcn-pricing-name { color: white; }
.hcn-pricing-price { font-family: 'DM Serif Display', serif; font-size: 2.4rem; line-height: 1; color: var(--hcn-ink); }
.hcn-pricing-card.featured .hcn-pricing-price { color: white; }
.hcn-pricing-body { padding: 24px; }
.hcn-pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.hcn-pricing-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.84rem; color: var(--hcn-ink-mid); margin-bottom: 10px;
}
.hcn-pricing-features li::before { content: '✓'; color: var(--hcn-sage); font-weight: 700; flex-shrink: 0; }

/* =============================================
   INNER PAGE HERO
   ============================================= */
.hcn-inner-hero {
  background: linear-gradient(160deg, var(--hcn-sage), var(--hcn-sage-dark));
  padding: 100px 5% 72px; text-align: center;
  position: relative; overflow: hidden;
}
.hcn-inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2.5' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
}
.hcn-inner-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.hcn-inner-hero h1 { color: white; margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.2rem); }
.hcn-inner-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; }

/* =============================================
   VALUE CARDS (About page)
   ============================================= */
.hcn-value-card {
  background: var(--hcn-white);
  border-radius: var(--hcn-r-lg);
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--hcn-border);
  transition: transform var(--hcn-transition), box-shadow var(--hcn-transition);
  height: 100%;
}
.hcn-value-card:hover { transform: translateY(-4px); box-shadow: var(--hcn-shadow-md); }
.hcn-value-icon { font-size: 2.4rem; margin-bottom: 14px; }
.hcn-value-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: 10px; }
.hcn-value-desc { font-size: 0.83rem; color: var(--hcn-ink-soft); line-height: 1.65; }

/* =============================================
.hcn-soc:hover { background: var(--hcn-sage); }

/* WhatsApp float */

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

/* =============================================
   ELEMENTOR HELPERS
   ============================================= */
/* Remove default Elementor section padding when using hcn sections */
.elementor-section.hcn-no-padding > .elementor-container { padding: 0; }

/* Make Elementor columns stretch full height */
.elementor-widget-wrap { height: 100%; }

/* =============================================
   RESPONSIVE GRID UTILITIES
   Used by all HTML widget grids across the site
   ============================================= */

/* 3-column grid */
.hcn-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
}

/* 2-column grid */
.hcn-grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
}

/* 5-column steps grid */
.hcn-grid-steps {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.hcn-grid-steps::before {
  content: '';
  position: absolute;
  top: 44px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(
    to right, #DDE8DF 0, #DDE8DF 10px, transparent 10px, transparent 22px
  );
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {

  /* Elementor stacks columns at tablet — ensure full width */
  .elementor-column { width: 100% !important; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================= */
@media (max-width: 767px) {

  /* ── Navbar ── */
  /* Push page content below shorter mobile navbar */
  .elementor-section.elementor-top-section:first-child,
  body > .elementor > .elementor-section:first-child { margin-top: 64px; }

  /* ── Elementor column stacking ── */
  .elementor-column,
  .elementor-col-50,
  .elementor-col-55,
  .elementor-col-45,
  .elementor-col-40,
  .elementor-col-60,
  .elementor-col-33,
  .elementor-col-66 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Reverse column order on mobile where image comes second on desktop
     (image cols appear after text — keep text first on mobile) */
  .elementor-section .elementor-row {
    flex-direction: column !important;
  }

  /* ── Section padding — reduce on mobile ── */
  .elementor-section > .elementor-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .elementor-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* ── Hero ── */
  .hcn-hero-section { padding: 80px 20px 56px !important; }
  .hcn-hero-eyebrow { font-size: 0.72rem; }

  /* ── Trust strip ── */
  .hcn-trust-strip-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 12px;
    text-align: center;
  }
  .hcn-strip-divider { display: none; }
  .hcn-stat-val { font-size: 1.8rem; }

  /* ── Benefit cards ── */
  .hcn-benefit-card { flex-direction: column; gap: 10px; }
  .hcn-benefit-card:hover { transform: none; }


  /* ── Maths formula board ── */
  .hcn-formula-board { padding: 20px !important; }
  .hcn-formula-line.l1 { font-size: 1.2rem !important; }
  .hcn-formula-line.l2 { font-size: 0.95rem !important; }
  .hcn-formula-line.l3 { font-size: 1.5rem !important; }
  .hcn-formula-line.l5 { font-size: 1.1rem !important; }

  /* ── Science atom ── */
  .hcn-atom-wrap { height: 220px !important; }
  .hcn-orbit.o3 { display: none !important; }
  .hcn-nucleus { width: 44px !important; height: 44px !important; }
  .hcn-orbit.o1 { width: 90px !important; height: 90px !important; }
  .hcn-orbit.o2 { width: 150px !important; height: 70px !important; }
  .periodic-chips { display: none !important; }

  /* ── Testimonials — single col ── */
  .hcn-testi-card { margin-bottom: 16px; }

  /* ── Schedule mockup ── */
  .hcn-schedule { max-width: 100% !important; }

  /* ── CTA steps — wrap nicely ── */
  div[style*="justify-content:center;gap:32px"] {
    gap: 14px !important;
    justify-content: flex-start !important;
    padding: 0 4px;
  }
  .hcn-cta-step { font-size: 0.78rem; }

  /* ── CTA buttons — stack vertically ── */
  div[style*="justify-content:center;gap:14px"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  div[style*="justify-content:center;gap:14px"] .hcn-btn {
    width: 100% !important;
    max-width: 340px;
    justify-content: center !important;
  }

  /* ── Hero CTA buttons ── */
  div[style*="display:flex;flex-wrap:wrap;gap:14px"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  div[style*="display:flex;flex-wrap:wrap;gap:14px"] .hcn-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ── Trust row items ── */
  .hcn-trust-row {
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .hcn-trust-item { font-size: 0.78rem; }

  /* ── Responsive grid classes ── */
  .hcn-grid-3 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .hcn-grid-2 { grid-template-columns: 1fr !important; gap: 14px !important; }
  .hcn-grid-steps { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .hcn-grid-steps::before { display: none !important; }

  /* ── Subject card header — shorter on mobile ── */
  .hcn-subject-header { height: 120px !important; font-size: 2.5rem !important; }

  /* ── Form — single col ── */
  div[style*="grid-template-columns:1fr 1fr;gap:16px"],
  div[style*="grid-template-columns: 1fr 1fr; gap: 16px"] {
    grid-template-columns: 1fr !important;
  }
  .hcn-form-wrap { padding: 24px 18px !important; }

  /* ── Contact info items ── */
  div[style*="display:flex;flex-direction:column;gap:20px"] { gap: 16px !important; }

  /* ── Inner hero ── */
  .hcn-inner-hero { padding: 90px 20px 56px !important; }
  .hcn-inner-hero h1 { font-size: 2rem !important; }

  /* ── Footer ── */
  /* ── Headings scale down ── */
  .elementor-widget-heading h1 { font-size: 2rem !important; }
  .elementor-widget-heading h2 { font-size: 1.7rem !important; }
  .elementor-widget-heading h3 { font-size: 1.2rem !important; }

  /* ── Floating cards — hide on mobile (prevent overflow) ── */
  .hcn-float-card { display: none !important; }

  /* ── Homeschool visual — reduce padding ── */
  div[style*="background:linear-gradient(135deg,#EAF2EC"] {
    padding: 32px 16px !important;
    min-height: auto !important;
    border-radius: 20px !important;
  }
}

/* =============================================
   DEBUGGED ADDITIONS v3.0
   ============================================= */


@keyframes hcnMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Elementor sections on full-width pages: first section needs top padding for navbar */
.hcn-full-width-page .elementor-top-section:first-child {
}


/* ── Elementor button global overrides ── */
.elementor-widget-button .elementor-button {
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px) !important;
}

/* ── Elementor heading font override ── */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'DM Serif Display', serif !important;
}

/* ── Fix: Elementor forms styling ── */
.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea {
  font-family: 'DM Sans', sans-serif !important;
  border-radius: 10px !important;
  border: 1px solid var(--hcn-border) !important;
  background: var(--hcn-sand) !important;
  padding: 12px 16px !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
  border-color: var(--hcn-sage) !important;
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12) !important;
  outline: none !important;
}
.elementor-button[type="submit"],
.elementor-field-type-submit .elementor-button {
  background: var(--hcn-sage) !important;
  color: white !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  border: none !important;
}
.elementor-button[type="submit"]:hover,
.elementor-field-type-submit .elementor-button:hover {
  background: var(--hcn-sage-dark) !important;
  transform: translateY(-2px) !important;
}

/* ── Fix: Elementor nav widget (if used) ── */
.elementor-nav-menu a {
  font-family: 'DM Sans', sans-serif !important;
}

/* ── Fix: image widget border radius ── */
.elementor-widget-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── WA float pulse fix ── */

/* ── CSS custom property fallbacks for older browsers ── */
.hcn-btn { border: none; cursor: pointer; }

/* ── Scroll reveal: ensure elements start hidden ── */
.hcn-subject-card,
.hcn-exam-card,
.hcn-testi-card,
.hcn-step-card,
.hcn-value-card,
.hcn-sg-badge,
.hcn-benefit-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hcn-subject-card.visible,
.hcn-exam-card.visible,
.hcn-testi-card.visible,
.hcn-step-card.visible,
.hcn-value-card.visible,
.hcn-sg-badge.visible,
.hcn-benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for cards */
.hcn-subject-card:nth-child(2) { transition-delay: 0.08s; }
.hcn-subject-card:nth-child(3) { transition-delay: 0.16s; }
.hcn-exam-card:nth-child(2)    { transition-delay: 0.08s; }
.hcn-exam-card:nth-child(3)    { transition-delay: 0.16s; }
.hcn-exam-card:nth-child(4)    { transition-delay: 0.24s; }
.hcn-testi-card:nth-child(2)   { transition-delay: 0.1s; }
.hcn-testi-card:nth-child(3)   { transition-delay: 0.2s; }

/* ── Elementor editor: show everything at full opacity ── */
.elementor-editor-active .hcn-subject-card,
.elementor-editor-active .hcn-exam-card,
.elementor-editor-active .hcn-testi-card,
.elementor-editor-active .hcn-step-card,
.elementor-editor-active .hcn-value-card,
.elementor-editor-active .hcn-sg-badge,
.elementor-editor-active .hcn-benefit-card {
  opacity: 1 !important;
  transform: none !important;
}

