/*
Theme Name: Edvion Plus
Theme URI: https://edvionplus.com
Author: Edvion Plus
Author URI: https://edvionplus.com
Description: Block theme for Edvion Plus, an EdTech coaching and academic tutoring landing page for Classes 6-12 CBSE & State Board students.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edvion-plus
*/

:root {
  --navy: #03081A;
  --blue: #0047E6;
  --white: #FFFFFF;
  --gray: #F5F7FA;
  --blue-tint: #4D7DFF;
  --wide-size: 1280px;
  --ease-ascend: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.wide-width {
  max-width: var(--wide-size);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  animation: fadeDown 0.7s var(--ease-ascend) both;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--blue-tint);
  background: rgba(0, 71, 230, 0.12);
  transform: translateY(-1px);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.3rem 0.05rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--blue-tint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-ascend);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ---------- Hamburger ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--blue-tint);
  background: rgba(0, 71, 230, 0.12);
}

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-ascend), opacity 0.2s ease, top 0.3s var(--ease-ascend);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-ascend);
}

.mobile-nav-panel.is-open {
  max-height: 420px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 2rem 1.5rem;
  gap: 0.25rem;
}

.mobile-nav-inner a {
  padding: 0.85rem 0.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a:focus-visible {
  color: var(--blue-tint);
}

.mobile-nav-inner .btn {
  margin-top: 1rem;
  justify-content: center;
  border-bottom: none;
}

/* ---------- Buttons ---------- */

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-ascend), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-ascend);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translateX(4px);
}

.btn-primary,
a.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(0, 71, 230, 0.35);
  border: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0e56ff;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 71, 230, 0.48);
}

.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: calc(1rem - 1.5px) calc(1.9rem - 1.5px);
  font-size: 1rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue-tint);
  color: var(--blue-tint);
  transform: translateY(-2px);
}

.btn-ghost-dark,
a.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(3, 8, 26, 0.25);
  padding: calc(0.7rem - 1.5px) calc(1.4rem - 1.5px);
  font-size: 0.92rem;
}

.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--navy);
  color: var(--white);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 4.5rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-dotgrid {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent 90%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), transparent 90%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 4%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 71, 230, 0.4) 0%, rgba(0, 71, 230, 0) 68%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

.hero-accent-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #0052FF 0%, var(--blue) 55%, #0038B8 100%);
  clip-path: polygon(70% 0%, 100% 0%, 100% 100%, 56% 100%);
  z-index: 2;
  animation: panelReveal 0.9s var(--ease-ascend) both;
}

.hero-accent-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), var(--blue-tint));
  box-shadow: -1px 0 30px rgba(77, 125, 255, 0.6);
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-ascend) 0.15s both;
}

h1.hero-headline {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 1.3rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-ascend) 0.32s both;
}

.hero-headline .accent {
  position: relative;
  white-space: normal;
}

.hero-headline .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: linear-gradient(90deg, rgba(0, 71, 230, 0.55), rgba(77, 125, 255, 0.85));
  z-index: -1;
  border-radius: 2px;
}

.hero-subhead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-ascend) 0.46s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-ascend) 0.6s both;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-ascend) 0.74s both;
}

.trust-row li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-tint);
}

/* ---------- Data cluster (on the blue panel) ---------- */

.data-cluster {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 440px;
  height: 440px;
  justify-self: end;
}

.stat-card {
  position: absolute;
  background: var(--white);
  border: 1px solid #E7EBF3;
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(3, 8, 26, 0.16);
  padding: 1.1rem 1.2rem;
  color: var(--navy);
  opacity: 0;
  transform: translateY(24px) scale(0.94) rotate(var(--tilt, 0deg));
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  box-shadow: 0 26px 52px rgba(3, 8, 26, 0.22);
  z-index: 6;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, 0deg)); }
}

.card-health {
  top: 2%;
  left: 6%;
  width: 200px;
  --tilt: -5deg;
  animation-delay: 0.85s;
}

.ring-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 0.65rem;
}

.ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0deg, var(--blue) calc(var(--pct, 88) * 3.6deg), #E7EBF3 calc(var(--pct, 88) * 3.6deg), #E7EBF3 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringPulse 3.2s ease-in-out infinite;
}

.ring::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  background: var(--white);
}

.ring-value {
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
}

@keyframes ringPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(0, 71, 230, 0)); }
  50% { filter: drop-shadow(0 0 10px rgba(0, 71, 230, 0.35)); }
}

.card-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.card-sub {
  text-align: center;
  font-size: 0.68rem;
  color: #6B7386;
  margin-top: 0.15rem;
}

.card-attendance {
  top: 0;
  right: 2%;
  width: 156px;
  --tilt: 5deg;
  animation-delay: 1.05s;
}

.attendance-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #6B7386;
}

.attendance-figure {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--blue);
  line-height: 1;
  margin-top: 0.25rem;
}

.attendance-bar-track {
  margin-top: 0.7rem;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E7EBF3;
  overflow: hidden;
}

.attendance-bar-fill {
  height: 100%;
  width: 94%;
  border-radius: 999px;
  background: var(--blue);
}

.card-scores {
  bottom: 10%;
  left: 12%;
  width: 216px;
  --tilt: 4deg;
  animation-delay: 1.25s;
}

.score-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.75rem;
}

.score-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 58px;
}

.score-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  height: 100%;
}

.score-bar-fill {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--blue), #002E94);
}

.score-bar-label {
  font-size: 0.58rem;
  color: #6B7386;
  font-weight: 600;
}

.card-verified {
  bottom: 2%;
  right: 8%;
  width: 168px;
  --tilt: -4deg;
  animation-delay: 1.45s;
  text-align: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 71, 230, 0.08);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.verified-percentile {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
}

/* ============================================================
   Why Edvion Plus
   ============================================================ */

.why-section {
  background: var(--gray);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 71, 230, 0.1);
  color: var(--blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 40rem;
  margin: 0 0 0.75rem;
}

.section-subhead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4B5468;
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

.why-card {
  position: relative;
  background: var(--white);
  border: 1px solid #E7EBF3;
  border-top: 4px solid var(--blue);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  height: 100%;
}

.why-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  margin-bottom: 1.25rem;
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.why-card-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4B5468;
  margin: 0;
}

/* ============================================================
   Programs
   ============================================================ */

.programs-section {
  background: var(--white);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.program-card {
  position: relative;
  background: var(--gray);
  border: 1px solid #E7EBF3;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.program-card.is-live {
  background: var(--navy);
  border-color: var(--navy);
}

.program-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.program-badge.is-live-badge {
  background: var(--blue-tint);
  color: var(--navy);
}

.program-badge.is-soon-badge {
  background: rgba(3, 8, 26, 0.08);
  color: var(--navy);
}

.program-card.is-live .program-badge.is-soon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.program-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.program-card.is-live .program-title {
  color: var(--white);
}

.program-grade {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4B5468;
  margin: 0 0 1rem;
}

.program-card.is-live .program-grade {
  color: rgba(255, 255, 255, 0.68);
}

.program-board-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
}

.program-board-tags li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: rgba(0, 71, 230, 0.08);
  border: 1px solid rgba(0, 71, 230, 0.25);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.program-card.is-live .program-board-tags li {
  color: var(--blue-tint);
  background: rgba(77, 125, 255, 0.12);
  border-color: rgba(77, 125, 255, 0.4);
}

.program-copy {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4B5468;
  margin: 0 0 1.1rem;
}

.program-card.is-live .program-copy {
  color: rgba(255, 255, 255, 0.78);
}

.program-subjects {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.program-subjects li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #E7EBF3;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.program-card.is-live .program-subjects li {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ============================================================
   Equal-height cards
   ============================================================ */

.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

.cta-bottom .wp-block-button.cta-primary .wp-block-button__link {
  background: var(--blue);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(0, 71, 230, 0.35);
  transition: transform 0.25s var(--ease-ascend), box-shadow 0.25s ease;
}

.cta-bottom .wp-block-button.cta-primary .wp-block-button__link:hover {
  background: #0e56ff;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 71, 230, 0.48);
}

.cta-bottom .wp-block-button.cta-ghost .wp-block-button__link {
  background: transparent;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border: 1.5px solid rgba(3, 8, 26, 0.25);
  border-radius: 999px;
  padding: calc(0.7rem - 1.5px) calc(1.4rem - 1.5px);
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease-ascend), border-color 0.25s ease, color 0.25s ease;
}

.cta-bottom .wp-block-button.cta-ghost .wp-block-button__link:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ============================================================
   Parent Transparency dashboard teaser
   ============================================================ */

.dashboard-teaser {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.dashboard-teaser::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 71, 230, 0.35) 0%, rgba(0, 71, 230, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.dashboard-teaser .section-eyebrow {
  background: rgba(77, 125, 255, 0.14);
  color: var(--blue-tint);
}

.dashboard-teaser .section-heading {
  color: var(--white);
}

.dashboard-teaser .section-subhead {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-teaser-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .dashboard-teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .dashboard-teaser-grid { grid-template-columns: 1fr; }
}

.teaser-card {
  position: relative;
  background: var(--white);
  color: var(--navy);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(3, 8, 26, 0.28);
  padding: 1.4rem 1.4rem;
  height: 100%;
}

.teaser-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  margin: 0 0 1rem;
}

.mastery-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.mastery-row:last-child { margin-bottom: 0; }

.mastery-label {
  flex: 0 0 92px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #4B5468;
}

.mastery-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #E7EBF3;
  overflow: hidden;
}

.mastery-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.mastery-bar-fill.is-mastered { background: var(--blue); }
.mastery-bar-fill.is-progress { background: var(--blue-tint); }
.mastery-bar-fill.is-review { background: #C4CCDA; }

.teaser-consult-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 71, 230, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.teaser-consult-icon-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--blue);
}

.teaser-consult-figure {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.dashboard-disclaimer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

/* ============================================================
   Testimonial
   ============================================================ */

.testimonial-section {
  background: var(--gray);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #E7EBF3;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.25rem);
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote-mark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue-tint);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.testimonial-attribution {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.testimonial-quote-block {
  position: relative;
  border: 1px solid #E7EBF3;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(2.5rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.25rem);
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote-block::before {
  content: "\201C";
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue-tint);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-quote-block p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.testimonial-quote-block cite {
  font-size: 0.88rem;
  font-weight: 600;
  font-style: normal;
  color: var(--blue);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  background: var(--white);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

details.faq-item {
  border-bottom: 1px solid #E7EBF3;
  padding: 1.4rem 0;
}

details.faq-item summary.faq-question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

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

details.faq-item summary.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-ascend);
}

details.faq-item[open] summary.faq-question::after {
  transform: rotate(45deg);
}

details.faq-item .faq-answer {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4B5468;
  margin-top: 1rem;
}

/* ============================================================
   Final Enrollment CTA
   ============================================================ */

.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0052FF 0%, var(--blue) 55%, #0038B8 100%);
  color: var(--white);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 85% 20%, rgba(0, 0, 0, 0.9), transparent 60%);
  mask-image: radial-gradient(circle at 85% 20%, rgba(0, 0, 0, 0.9), transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.final-cta-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 1rem;
}

.final-cta-subhead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
  margin: 0;
}

.lead-form {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 24px 60px rgba(3, 8, 26, 0.3);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field:last-of-type {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-field input,
.form-field select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gray);
  border: 1.5px solid #E7EBF3;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
}

.lead-form .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--gray);
  color: #4B5468;
  padding-top: clamp(3rem, 5vw, 4rem);
  padding-bottom: 2rem;
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.site-footer .logo {
  height: 40px;
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.site-footer .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4B5468;
  max-width: 24rem;
  margin: 0 0 1rem;
}

.footer-contact {
  font-size: 0.88rem;
  color: #4B5468;
  margin: 0 0 0.4rem;
}

.footer-contact a {
  color: #4B5468;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--blue);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1rem;
}

.footer-links p {
  margin: 0 0 0.6rem;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: #4B5468;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.site-footer .wp-block-social-links a {
  background: rgba(3, 8, 26, 0.06);
}

.site-footer .wp-block-social-links a svg {
  fill: var(--navy);
}

.site-footer .wp-block-social-links a:hover {
  background: var(--blue);
}

.site-footer .wp-block-social-links a:hover svg {
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(3, 8, 26, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #6B7386;
}

/* ============================================================
   Page template
   ============================================================ */

.page-title-band {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.page-title-band .wp-block-post-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

/* ============================================================
   Keyframes
   ============================================================ */

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateX(7%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   Animation vocabulary
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

.hover-lift {
  transition: transform 0.25s var(--ease-ascend), box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(3, 8, 26, 0.14);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .header-inner, .eyebrow, .hero-headline, .hero-subhead,
  .hero-actions, .trust-row, .hero-accent-panel, .stat-card, .mobile-nav-panel,
  .animate-on-scroll, .fade-up, .fade-in, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .stat-card { transform: rotate(var(--tilt, 0deg)) !important; }
  .hero-glow, .ring { animation: none; }
}

/* ---------- Editor: keep animated content visible while editing ---------- */

.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .fade-in,
.editor-styles-wrapper .slide-in-left,
.editor-styles-wrapper .slide-in-right,
.editor-styles-wrapper .scale-up,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > *,
.editor-styles-wrapper .eyebrow,
.editor-styles-wrapper .hero-headline,
.editor-styles-wrapper .hero-subhead,
.editor-styles-wrapper .hero-actions,
.editor-styles-wrapper .trust-row,
.editor-styles-wrapper .hero-accent-panel,
.editor-styles-wrapper .stat-card,
.editor-styles-wrapper .header-inner {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions .btn-lg-label-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav-panel { display: block; }

  .hero-accent-panel { clip-path: polygon(62% 0%, 100% 0%, 100% 100%, 40% 100%); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.5rem; }
  .data-cluster { max-width: 380px; height: 400px; }
  .card-health { width: 168px; }
  .card-attendance { width: 136px; }
  .card-scores { width: 184px; }
  .card-verified { display: none; }

  .final-cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 3rem; padding-bottom: 2rem; display: block; }
  .hero-accent-panel { clip-path: polygon(0% 68%, 100% 54%, 100% 100%, 0% 100%); }
  .hero-dotgrid { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-content { max-width: 100%; }
  .data-cluster {
    max-width: 100%;
    height: 360px;
    margin-top: 2rem;
    justify-self: stretch;
  }
  .card-verified { display: block; }
  h1.hero-headline { font-size: clamp(1.9rem, 6vw, 2.6rem); }
}

@media (max-width: 420px) {
  .logo { height: 42px; }
  .data-cluster { height: 320px; }
  .card-health { width: 150px; left: 0; }
  .card-attendance { width: 120px; right: 0; }
  .card-scores { width: 168px; left: 2%; }
  .card-verified { width: 140px; right: 0; }
}

/* ============================================================
   Light mode
   ============================================================
   Dark (navy header/hero/dashboard-teaser) is the default brand
   look. Light mode — Design 3's white/navy/blue palette — flips
   only those three navy surfaces to light; sections that are
   already light (Why, Programs, Testimonial, FAQ, footer) and the
   blue accent band (final CTA, hero diagonal panel) are unchanged
   in both themes, since they already read correctly either way. */

.site-header,
.hero,
.dashboard-teaser,
.main-nav a,
.nav-toggle,
.nav-toggle-bars span,
.mobile-nav-panel,
.mobile-nav-inner a,
.theme-toggle,
h1.hero-headline,
.hero-subhead,
.trust-row li,
.dashboard-teaser .section-eyebrow,
.dashboard-teaser .section-heading,
.dashboard-teaser .section-subhead,
.dashboard-disclaimer {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

[data-theme="light"] .site-header {
  background: var(--white);
  border-bottom-color: #E7EBF3;
}

[data-theme="light"] .main-nav a {
  color: rgba(3, 8, 26, 0.78);
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a:focus-visible {
  color: var(--blue);
}

[data-theme="light"] .nav-toggle {
  border-color: rgba(3, 8, 26, 0.22);
}

[data-theme="light"] .nav-toggle:hover,
[data-theme="light"] .nav-toggle:focus-visible {
  border-color: var(--blue);
  background: rgba(0, 71, 230, 0.08);
}

[data-theme="light"] .nav-toggle-bars span {
  background: var(--navy);
}

[data-theme="light"] .theme-toggle {
  color: var(--navy);
  border-color: rgba(3, 8, 26, 0.22);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .theme-toggle:focus-visible {
  border-color: var(--blue);
  background: rgba(0, 71, 230, 0.08);
}

[data-theme="light"] .mobile-nav-panel {
  background: var(--white);
  border-bottom-color: #E7EBF3;
}

[data-theme="light"] .mobile-nav-inner a {
  color: rgba(3, 8, 26, 0.82);
  border-bottom-color: #E7EBF3;
}

[data-theme="light"] .mobile-nav-inner a:hover,
[data-theme="light"] .mobile-nav-inner a:focus-visible {
  color: var(--blue);
}

[data-theme="light"] .hero {
  background: var(--white);
  color: var(--navy);
}

[data-theme="light"] .hero-dotgrid {
  background-image: radial-gradient(rgba(3, 8, 26, 0.10) 1.4px, transparent 1.4px);
}

[data-theme="light"] h1.hero-headline {
  color: var(--navy);
}

[data-theme="light"] .hero-subhead {
  color: rgba(3, 8, 26, 0.72);
}

[data-theme="light"] .trust-row li {
  color: rgba(3, 8, 26, 0.62);
}

[data-theme="light"] .btn-ghost {
  color: var(--navy);
  border-color: rgba(3, 8, 26, 0.25);
}

[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

[data-theme="light"] .dashboard-teaser {
  background: var(--gray);
  color: var(--navy);
}

[data-theme="light"] .dashboard-teaser::before {
  opacity: 0.6;
}

[data-theme="light"] .dashboard-teaser .section-eyebrow {
  background: rgba(0, 71, 230, 0.1);
  color: var(--blue);
}

[data-theme="light"] .dashboard-teaser .section-heading {
  color: var(--navy);
}

[data-theme="light"] .dashboard-teaser .section-subhead {
  color: #4B5468;
}

[data-theme="light"] .dashboard-disclaimer {
  color: #6B7386;
  border-top-color: #E7EBF3;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero,
  .dashboard-teaser,
  .main-nav a,
  .nav-toggle,
  .nav-toggle-bars span,
  .mobile-nav-panel,
  .mobile-nav-inner a,
  .theme-toggle,
  h1.hero-headline,
  .hero-subhead,
  .trust-row li {
    transition: none;
  }
}
