/*
Theme Name:  MathCollege Child
Theme URI:   https://mathcollege.co.uk
Description: Custom child theme for MathCollege.co.uk — built on GeneratePress Pro
Author:      Delivix
Author URI:  https://delivix.co.uk
Template:    generatepress
Version:     1.9.10
License:     Private
Text Domain: mathcollege-child
*/
/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Colour */
  --blue:       #1a56db;
  --blue-mid:   #1d4ed8;
  --blue-dark:  #1e3a8a;
  --blue-light: #dbeafe;
  --blue-xlt:   #EFF6FF;
  --pink:       #E8457A;
  --pink-light: #FDE8EF;
  --pink-dark:  #d63868;
  --mint:       #64efd6;
  --mint-dark:  #00d4ca;
  --white:      #FFFFFF;
  --off-white:  #F8F9FC;
  --gray-100:   #F1F4F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #64748B;
  --gray-800:   #1E293B;
  --text:       #1A2340;
  --text-muted: #64748B;

  /* Typography */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing — 4pt grid */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(27,58,107,.12);
  --shadow-lg: 0 12px 40px rgba(27,58,107,.16);

  /* Transitions */
  --duration-fast:   150ms;
  --duration-base:   200ms;
  --duration-slow:   300ms;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-base:   0;
  --z-raised: 10;
  --z-nav:    100;
  --z-drawer: 200;
  --z-modal:  300;
  --z-toast:  400;
}

/* ========================================
   RESET & BASE (MOBILE-FIRST)
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}
button:hover,
button:focus,
button:active { background: none; box-shadow: none; color: inherit; }
ul { list-style: none; }

/* Container — mobile padding, max-width at desktop */
.w {
  width: 100%;
  padding: 0 var(--space-5);
  margin: 0 auto;
}
@media (min-width: 600px)  { .w { padding: 0 var(--space-8); } }
@media (min-width: 900px)  { .w { max-width: 1080px; padding: 0 var(--space-12); } }
@media (min-width: 1280px) { .w { max-width: 1140px; padding: 0 var(--space-16); } }

/* Section spacing — standard padding */
.sec { padding: var(--space-12) 0; }
@media (min-width: 600px)  { .sec { padding: var(--space-16) 0; } }
@media (min-width: 900px)  { .sec { padding: var(--space-20) 0; } }

/* Background utilities */
.bg-off  { background: var(--off-white); }
.bg-dark { background: var(--blue); }

/* Section headers */
.slabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: var(--space-3);
}
.stitle {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stitle .ac { color: var(--blue); }
.stitle-w { color: var(--white); }
.ssub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.65;
}
.ssub-w { color: rgba(255,255,255,.6); }
.sh {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--space-10);
}
@media (min-width: 600px) {
  .stitle { font-size: 32px; }
}
@media (min-width: 900px) {
  .stitle { font-size: 36px; }
  .sh { margin-bottom: var(--space-12); }
}

/* ========================================
   BUTTONS — all states required (WCAG 2.1 AA)
   ======================================== */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}
.c-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.c-btn:active { transform: scale(0.98); }
.c-btn:disabled,
.c-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sizes */
.c-btn--sm  { padding: 9px 20px;  font-size: 13px; }
.c-btn--md  { padding: 13px 28px; font-size: 15px; }
.c-btn--lg  { padding: 16px 36px; font-size: 16px; }

/* Variants */
.c-btn--primary {
  background: var(--pink);
  color: var(--white);
}
.c-btn--primary:hover {
  background: #d63d6e;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.c-btn--blue {
  background: var(--blue);
  color: var(--white);
}
.c-btn--blue:hover {
  background: var(--blue-mid);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.c-btn--outline {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.c-btn--outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.c-btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.c-btn--ghost:hover,
.c-btn--ghost:focus-visible {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.c-btn--ghost:active { transform: scale(0.98); }

/* White variant — for use on dark/blue backgrounds */
.c-btn--white {
  background: var(--white);
  color: var(--blue);
}
.c-btn--white:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* ========================================
   FORM COMPONENTS — all states required
   ======================================== */
.c-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.c-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.c-input,
.c-select,
.c-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
  appearance: none;
}
.c-input:focus,
.c-select:focus,
.c-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.c-input.is-error,
.c-select.is-error,
.c-textarea.is-error {
  border-color: #dc2626;
}
.c-input:disabled,
.c-select:disabled,
.c-textarea:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}
.c-error-msg {
  font-size: 12px;
  color: #dc2626;
  margin-top: calc(var(--space-1) * -1);
}

/* ========================================
   TAGS & BADGES
   ======================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  background: var(--blue-xlt);
  color: var(--blue);
}
.tag--pink  { background: var(--pink-light); color: var(--pink); }
.tag--green { background: #dcfce7; color: #166534; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  color: var(--white);
  backdrop-filter: blur(8px);
}

/* ========================================
   NAV
   ======================================== */
#main-nav {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-drawer) + 1);
  padding: var(--space-3) var(--space-5);
  background: var(--blue);
  transition: background 300ms ease;
}
#main-nav.scrolled { background: transparent; }
.nav-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 60px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-5);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  max-width: 1100px;
  margin: 0 auto;
  transition: box-shadow 300ms ease;
}
#main-nav.scrolled .nav-i { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
  flex-shrink: 0;
}
.logo span { color: var(--pink); }

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  gap: var(--space-6);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Split-button nav item — clickable label + adjacent caret toggle */
.nav-dd-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dd-label {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-dd-label:hover { color: var(--blue); }
.nav-dd-label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.nav-dd-item:hover .nav-dd-label,
.nav-dd-item:focus-within .nav-dd-label { color: var(--blue); }

/* Dropdown trigger — now caret-only — explicit resets beat GP's button defaults */
.nav-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  padding: 4px 2px;
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-dd-trigger:hover,
.nav-dd-trigger:active { color: var(--blue); background: none; box-shadow: none; }
.nav-dd-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.nav-dd-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}
.nav-dd-item:hover .nav-dd-trigger,
.nav-dd-item:focus-within .nav-dd-trigger { color: var(--blue); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-out),
              visibility var(--duration-fast) var(--ease-out);
}
.nav-dd-item:hover > .nav-dropdown,
.nav-dd-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.nav-dd-item:hover .nav-dd-arrow,
.nav-dd-item:focus-within .nav-dd-arrow {
  transform: rotate(180deg);
}
.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--duration-fast) var(--ease-out);
}
.nav-dropdown a:hover {
  background: var(--blue-xlt);
  color: var(--blue);
}
.nav-dropdown a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* Nav CTA button */
.nav-cta {
  display: none; /* hidden on mobile — CTA lives in the drawer; shown on desktop */
  background: var(--pink);
  color: var(--white);
  padding: var(--space-2) var(--space-5);
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.nav-cta:hover {
  background: #d63868;
  color: var(--white);
  transform: translateY(-1px);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.nav-cta:active { transform: scale(0.98); }

/* Hamburger — visible on mobile only */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  z-index: calc(var(--z-drawer) + 1);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: var(--z-drawer);
  padding: 80px var(--space-5) var(--space-8);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}
.drawer.is-open { transform: translateX(0); }
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.drawer-links > a {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--gray-200);
}
/* Drawer split-button row: label link + caret toggle */
.drawer-acc-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--gray-200);
}
.drawer-acc-label {
  flex: 1;
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.drawer-acc-label:hover { color: var(--blue); }
.drawer-acc-label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.drawer-acc-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0 var(--space-4);
  min-width: 48px;
}
.drawer-acc-arrow {
  font-size: 12px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.drawer-acc-trigger.is-open .drawer-acc-arrow { transform: rotate(180deg); }
.drawer-acc-panel {
  display: none;
  padding: 0 0 var(--space-2) var(--space-4);
}
.drawer-acc-panel.is-open { display: block; }
.drawer-acc-panel a {
  display: block;
  padding: var(--space-2) 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.drawer-links > a:hover,
.drawer-acc-panel a:hover { color: var(--blue); }

.drawer-links > a:focus-visible,
.drawer-acc-trigger:focus-visible,
.drawer-acc-panel a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.drawer-cta:hover { background: #d63868; color: var(--white); }
.drawer-cta:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.drawer-cta:active { transform: scale(0.98); }

.drawer-cta {
  display: block;
  text-align: center;
  background: var(--pink);
  color: var(--white);
  padding: var(--space-4);
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  margin-top: var(--space-8);
}

/* Desktop: 3-col grid centres links regardless of logo/CTA width */
@media (min-width: 900px) {
  .nav-i {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 12px 10px 28px;
  }
  .logo { grid-column: 1; font-size: 22px; }
  .nav-links {
    display: flex;
    grid-column: 2;
    justify-self: center;
  }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    grid-column: 3;
    justify-self: end;
    padding: 11px 24px;
    font-size: 14px;
  }
  .hamburger { display: none; }
  .drawer { display: none !important; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: var(--blue);
  padding: var(--space-12) 0 var(--space-10);
  position: relative;
  overflow: hidden;
}
.hero-pi {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.03);
  font-weight: 900;
  font-family: var(--font-head);
  pointer-events: none;
  line-height: 1;
  display: none;
}
.hero-g {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}
.accent,
.hero-accent-line {
  width: 48px;
  height: 4px;
  background: var(--pink);
  border-radius: 2px;
  margin-bottom: var(--space-5);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.hero h1 .hi,
.hero h1 .highlight {
  background: var(--pink);
  color: var(--white);
  padding: 2px 10px 4px;
  border-radius: var(--radius-sm);
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}
.pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.pill {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  padding: 7px 15px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
}
.hero-btn {
  background: var(--pink);
  color: var(--white);
  padding: var(--space-4) var(--space-8);
  border-radius: 32px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 6px 24px rgba(232,69,122,.45);
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.hero-btn:hover {
  background: #d63868;
  transform: translateY(-1px);
}
.hero-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.hero-btn:active { transform: scale(0.98); }

/* Form card */
.fc {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-6);
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.fc h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-1);
}
.fc .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.fsub {
  background: var(--pink);
  color: var(--white);
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.fsub:hover { background: #d63868; color: var(--white); transform: translateY(-1px); }
.fsub:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.fsub:active { transform: scale(0.98); }
.fnote {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

@media (min-width: 600px) {
  .hero h1 { font-size: 38px; }
  .hero { padding: var(--space-16) 0; }
}
@media (min-width: 900px) {
  .hero { padding: var(--space-20) 0 72px; }
  .hero-pi { display: block; font-size: 320px; }
  .hero-g {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-12);
    align-items: center;
  }
  .hero h1 { font-size: 50px; }
  .fc { padding: var(--space-8); }
}

/* ========================================
   TRUST STRIP
   ======================================== */
.ts {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
}
/* Single Google-reviews badge (Arkan has Google reviews only) */
.ts .w { display: flex; justify-content: center; }
.ts-google {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.ts-google:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-light); }
.ts-google:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ts-google:active { transform: translateY(0) scale(0.99); }

.ts-g-logo { flex-shrink: 0; line-height: 0; }
.ts-g-logo .g-logo { width: 26px; height: 26px; }

.ts-g-main { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; text-align: left; min-width: 0; }
.ts-g-top { display: flex; align-items: center; gap: var(--space-2); }
.ts-g-rating { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--text); }
.ts-g-stars { color: #FBBC05; font-size: 15px; letter-spacing: 1px; }
.ts-g-sub { font-size: 13px; color: var(--text-muted); }
.ts-g-sub strong { color: var(--text); font-weight: 700; }

.ts-g-cta { flex-shrink: 0; color: var(--pink); font-weight: 800; font-size: 18px; transition: transform var(--duration-base) var(--ease-out); }
.ts-google:hover .ts-g-cta { transform: translateX(3px); }

@media (min-width: 600px) {
  .ts-google { gap: var(--space-4); padding: var(--space-3) var(--space-6); }
  .ts-g-logo .g-logo { width: 30px; height: 30px; }
  .ts-g-rating { font-size: 20px; }
  .ts-g-stars { font-size: 16px; }
  .ts-g-sub { font-size: 14px; }
}

/* Small Google "G" chip — white circle so the logo stays crisp on coloured/dark
   backgrounds (hero trust pill, scrolling ticker). */
.g-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.g-chip .g-logo { width: 100%; height: 100%; }

/* Google reviews badge placed in the footer brand column (on the blue band) */
.ft-google { margin-top: var(--space-4); }

/* ========================================
   WHY MATHCOLLEGE
   ======================================== */
.why-g {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.why-c h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.why-c h2 .ac { color: var(--blue); }
.why-c p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.why-pts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.why-pts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
}
.ck {
  background: var(--pink);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Image placeholders */
.why-v {
  position: relative;
  min-height: 300px;
}
/* Real photo fills its box (overrides the placeholder background + centred label) */
.wpm > .why-img,
.wpa > .why-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.wpm {
  width: 100%;
  height: 280px;
  background: var(--blue-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wpa {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 55%;
  height: 160px;
  background: var(--pink-light);
  border-radius: 20px;
  border: 4px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  .why-c h2 { font-size: 32px; }
  .wpm { height: 320px; }
  .wpa { height: 180px; }
}
@media (min-width: 900px) {
  .why-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }
  .why-c h2 { font-size: 38px; }
  .why-v { min-height: 440px; }
  .wpm { position: absolute; top: 0; left: 0; width: 82%; height: 370px; }
  .wpa { bottom: 0; width: 52%; height: 220px; }
}

/* ========================================
   SERVICES GRID
   ======================================== */
.sg {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.sc {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,86,219,.1);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.sc:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26,86,219,.18);
}
.sc:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.sc-top {
  background: var(--blue);
  padding: var(--space-6) var(--space-5) var(--space-12);
  text-align: center;
}
.sc-icon {
  font-size: 52px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.3));
}
.sc-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  margin-top: -28px;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  position: relative;
}
.ltags {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.ltag {
  font-size: 10px;
  font-weight: 700;
  background: var(--blue-xlt);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-body h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.sc-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}
.sc-cta {
  background: var(--pink);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.sc-cta:hover { background: #d63868; color: var(--white); transform: translateY(-1px); }
.sc-cta:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.sc-cta:active { transform: scale(0.98); }

.sg-more {
  text-align: center;
  margin-top: var(--space-8);
}
.sg-more a {
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  transition: color var(--duration-fast) var(--ease-out);
}
.sg-more a:hover { color: var(--blue-mid); }
.sg-more a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 600px) {
  .sg { grid-template-columns: repeat(2, 1fr); }
  .sc-icon { font-size: 56px; }
}
@media (min-width: 900px) {
  .sg { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .sc-icon { font-size: 60px; }
  .sc-top { padding: 28px 20px 48px; }
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-g {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.hs { text-align: center; }
.sn2 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.hs h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.hs p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .how-g { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .sn2 { width: 52px; height: 52px; font-size: 21px; }
}
@media (min-width: 900px) {
  .how-g { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
  .sn2 { width: 56px; height: 56px; font-size: 22px; }
}

/* ========================================
   TUTOR CARDS
   ======================================== */
.tg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.tc {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.tc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,86,219,.13);
}
.tc:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tp {
  background: var(--blue-light);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ti2 { padding: var(--space-4); }
.tn {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tsubj {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  margin: 3px 0 var(--space-2);
}
.ttags { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.ttag {
  font-size: 11px;
  background: var(--blue-xlt);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

@media (min-width: 600px) {
  .tp { height: 170px; }
  .tn { font-size: 16px; }
}
@media (min-width: 900px) {
  .tg { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .tp { height: 180px; }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.rev-sec {
  background: var(--white);
  padding: var(--space-12) 0;
}
.rev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}
.rev-head .stitle { text-align: left; }
.rev-arrows { display: flex; gap: var(--space-3); flex-shrink: 0; }
.rev-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.rev-arrow:hover { background: var(--blue); transform: translateY(-1px); }
.rev-arrow:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.rev-arrow:active { transform: scale(0.98); }
.swiper { overflow: hidden; }
.rev-card {
  background: var(--blue);
  border-radius: 20px;
  padding: var(--space-8) var(--space-6);
  position: relative;
  min-height: 220px;
}
.rev-stars {
  color: var(--pink);
  font-size: 16px;
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}
.rev-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.rev-quote {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}
.rev-author {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.rev-loc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.rev-mark {
  position: absolute;
  bottom: 24px;
  right: 24px;
  line-height: 0;
}
/* Google logo — white chip badge for dark cards */
.g-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
}
.g-logo { display: block; width: 20px; height: 20px; }
.g-badge .g-logo { width: 100%; height: 100%; }

@media (min-width: 600px) {
  .rev-sec { padding: var(--space-16) 0; }
  .rev-arrow { width: 48px; height: 48px; font-size: 18px; }
  .rev-card { padding: 44px; min-height: 260px; }
  .rev-title { font-size: 22px; }
  .rev-quote { font-size: 15px; }
  .rev-mark { bottom: 28px; right: 32px; }
}
@media (min-width: 900px) {
  .rev-sec { padding: var(--space-20) 0; }
  .rev-head { margin-bottom: var(--space-10); }
}

/* ========================================
   COVERAGE
   ======================================== */
.city-g {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-8);
}
.cpill {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  padding: var(--space-2) var(--space-5);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.cpill:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.cpill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.cpill--tbc {
  border-style: dashed;
  color: var(--text-muted);
}
.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}
.cpill--tbc .cdot { background: var(--gray-400); }

@media (min-width: 600px) {
  .cpill { font-size: 14px; padding: 10px 20px; }
  .city-g { gap: var(--space-3); }
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.faq-left .stitle { text-align: left; font-size: 28px; }
.faq-left .section-sub { margin-bottom: var(--space-6); text-align: left; }
.faq-left .section-sub a { color: var(--blue); font-weight: 600; }
.faq-cta {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
}
.faq-cta h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.faq-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
/* CTA button uses reusable .c-btn--primary — no custom button rules needed */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.faq-q:hover { background: none; }
.faq-q:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq-q span:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding-right: var(--space-4);
}
.faq-icon {
  font-size: 20px;
  color: var(--pink);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: var(--space-4);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.is-open .faq-answer { display: block; }
.faq-answer a { color: var(--blue); font-weight: 600; }

@media (min-width: 600px) {
  .faq-left .stitle { font-size: 32px; }
}
@media (min-width: 900px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }
  .faq-left .stitle { font-size: 36px; }
}

/* ========================================
   PRICING BAND (mint/teal)
   ======================================== */
.yband {
  background: var(--mint);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.yd1 {
  position: absolute; top: -10px; left: 40px;
  font-size: 56px; opacity: .3; transform: rotate(-20deg); pointer-events: none;
}
.yd2 {
  position: absolute; bottom: -10px; right: 60px;
  font-size: 44px; opacity: .3; transform: rotate(12deg); pointer-events: none;
}
.pcard {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-8) var(--space-6);
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  box-shadow: 8px 8px 0 var(--mint-dark);
}
.pcard-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.pcard-t h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-1);
}
.pcard-free {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-3);
}
.pcard-t p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.pcard-t a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  margin-top: var(--space-2);
  display: inline-block;
}
.pcard-btn {
  background: var(--blue);
  color: var(--white);
  padding: 15px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.pcard-btn:hover { background: var(--blue-mid); transform: translateY(-1px); }
.pcard-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pcard-btn:active { transform: scale(0.98); }

@media (min-width: 600px) {
  .pcard-t h3 { font-size: 26px; }
  .yd1 { font-size: 70px; }
  .yd2 { font-size: 56px; }
}
@media (min-width: 900px) {
  .pcard {
    flex-direction: row;
    text-align: left;
    padding: 36px 40px;
    gap: var(--space-8);
  }
}

/* ========================================
   LEAD MAGNET
   ======================================== */
.lm { background: var(--blue-xlt); }
.lm-g {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.lm h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.lm p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}
.lf {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.lf input {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 30px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.lf input:focus { border-color: var(--blue); }
.lf button {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 13px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: background var(--duration-fast) var(--ease-out);
}
.lf button:hover { background: #d63868; color: var(--white); }
.lf button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.lf button:active { transform: scale(0.98); }
.lv {
  background: var(--blue-light);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: var(--space-8);
  text-align: center;
}
.lv .icon { font-size: 56px; margin-bottom: var(--space-3); display: block; }
.lv h3 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.lv p { font-size: 13px; color: var(--text-muted); }

@media (min-width: 600px) {
  .lf { flex-direction: row; }
  .lf input { flex: 1; }
  .lm h2 { font-size: 30px; }
  .lv .icon { font-size: 64px; }
}
@media (min-width: 900px) {
  .lm-g {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: var(--space-16);
    align-items: center;
  }
  .lm h2 { font-size: 34px; }
  .lv .icon { font-size: 72px; }
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-b {
  background: var(--blue);
  padding: var(--space-12) 0;
  text-align: center;
}
.cta-b h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.cta-b h2 .hi,
.cta-b h2 .highlight {
  background: var(--pink);
  color: var(--white);
  padding: 0 10px 2px;
  border-radius: 5px;
}
.cta-b p {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  margin-bottom: var(--space-8);
}
.ctaf {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}
/* CF7 autop wraps fields in <p>+<br> — dissolve wrapper so children become direct flex items */
.ctaf > p { display: contents; }
.ctaf br  { display: none; }
/* CF7 renders [submit] as <input type="submit">; scope input styles to non-submit only */
.ctaf input:not([type="submit"]) {
  padding: 14px 18px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  width: 100%; /* column mode: stretch to match button width */
  box-sizing: border-box;
}
.ctaf input:not([type="submit"]):focus { border: 2px solid rgba(255,255,255,.8); }
/* Both <button> (static fallback) and <input type="submit"> (CF7 output) */
.ctaf button,
.ctaf input[type="submit"] {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--duration-fast) var(--ease-out);
  width: 100%; /* column mode: full width to match input */
  box-sizing: border-box;
}
.ctaf button:hover,
.ctaf input[type="submit"]:hover { background: #d63868; color: var(--white); }
.ctaf button:focus-visible,
.ctaf input[type="submit"]:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ctaf button:active,
.ctaf input[type="submit"]:active { transform: scale(0.98); }
/* CF7 injects a spinner span after submit — hide it so it doesn't become a flex item */
.ctaf .wpcf7-spinner { display: none !important; }

@media (min-width: 600px) {
  .cta-b { padding: var(--space-16) 0; }
  .cta-b h2 { font-size: 34px; }
  .ctaf { flex-direction: row; }
  /* Static fallback: email input is a direct flex child */
  .ctaf input:not([type="submit"]) { flex: 1; width: auto; }
  /* CF7: email input is wrapped in .wpcf7-form-control-wrap span — grow the span instead */
  .ctaf .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
  .ctaf .wpcf7-form-control-wrap input { width: 100%; }
  /* Button: natural width in row, not full width */
  .ctaf button,
  .ctaf input[type="submit"] { width: auto; }
}
@media (min-width: 900px) {
  .cta-b { padding: 72px 0; }
  .cta-b h2 { font-size: 38px; }
  .cta-b p { font-size: 17px; }
}

/* ========================================
   SCROLLING TICKER
   ======================================== */
.ticker {
  background: var(--blue);
  overflow: hidden;
  padding: var(--space-3) 0;
}
.ticker-t {
  display: flex;
  animation: tick 35s linear infinite;
  width: max-content;
}
.ti {
  padding: 0 var(--space-4);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}
@media (min-width: 600px) {
  .ti { font-size: 14px; padding: 0 18px; }
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========================================
   BLOG TEASER
   ======================================== */
.bg2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.bc {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--duration-base) var(--ease-out);
  display: block;
}
.bc:hover { transform: translateY(-4px); }
.bc:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bt {
  background: var(--blue-light);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb { padding: var(--space-5); }
.btag {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.btit {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.bex {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 600px) {
  .bg2 { grid-template-columns: repeat(2, 1fr); }
  .bt { height: 170px; }
}
@media (min-width: 900px) {
  .bg2 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--blue);
  color: rgba(255,255,255,.7);
  padding: var(--space-12) 0 0;
}
.ft-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.ft-brand .logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  display: block;
}
.ft-brand .logo span { color: var(--pink); }
.ft-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  color: rgba(255,255,255,.6);
}
.ft-social { display: flex; gap: var(--space-3); }
.ft-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: background var(--duration-fast) var(--ease-out);
}
.ft-social a:hover { background: var(--pink); }
.ft-social a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.fcol h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}
.fcol ul { display: flex; flex-direction: column; gap: 11px; }
.fcol ul li a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-out);
}
.fcol ul li a:hover { color: var(--white); }
.fcol ul li a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Footer CTA card */
.ft-cta {
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: var(--space-6);
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}
.ft-cta-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.ft-cta-text span {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 400;
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
}
.ft-cta a {
  background: var(--pink);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-out);
}
.ft-cta a:hover { background: #d63868; color: var(--white); }
.ft-cta a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Footer bottom bar */
.fbot {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.fbot a { color: rgba(255,255,255,.4); transition: color var(--duration-fast) var(--ease-out); }
.fbot a:hover { color: var(--white); }
.fbot a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.fbot-links { display: flex; gap: var(--space-5); }

@media (min-width: 600px) {
  .ft-top { grid-template-columns: repeat(2, 1fr); }
  .ft-cta { flex-direction: row; text-align: left; justify-content: space-between; }
  .fbot { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) {
  footer { padding: var(--space-20) 0 0; }
  .ft-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-12); }
  .ft-brand .logo { font-size: 24px; }
  .ft-cta { padding: var(--space-8); }
  .ft-cta-text { font-size: 20px; }
  .ft-top { margin-bottom: var(--space-16); }
}

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-t { animation: none; }
}

@media print {
  nav, .drawer, .ticker, .cta-b, .yband, .ft-cta { display: none; }
  .hero { background: var(--white); color: var(--text); padding: 20px 0; }
  .hero h1 { color: var(--text); }
  .hero h1 .hi { background: none; color: var(--pink); }
  footer { background: var(--white); color: var(--text); }
}

/* ========================================
   INNER PAGE HERO  (c-hero--page)
   ======================================== */
.c-hero--page {
  background: var(--blue);
  padding: 56px 0 52px;
  position: relative;
  z-index: 0;
}
.c-hero--page .hero-accent-line {
  width: 40px; height: 4px; background: var(--pink);
  border-radius: 2px; margin-bottom: var(--space-4);
}
.c-hero--page h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}
.c-hero--page .hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: var(--space-8);
}
.c-hero--page .c-btn--hero {
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  will-change: transform;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.c-hero--page .c-btn--hero:hover        { background: var(--pink-dark); transform: translateY(-1px); }
.c-hero--page .c-btn--hero:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 30px; }
.c-hero--page .c-btn--hero:active       { transform: scale(0.98); }

/* ── Breadcrumb ── */
.page-bc {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .82rem;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.page-bc a          { color: rgba(255,255,255,.65); transition: color var(--duration-fast) var(--ease-out); }
.page-bc a:hover    { color: var(--white); }
.page-bc a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 2px; }
.page-bc .bc-sep    { color: rgba(255,255,255,.35); }
.page-bc .bc-cur    { color: rgba(255,255,255,.85); }

/* ── Anchor scroll offset (sticky nav compensation) ── */
[id="contact-form"],
[id="tutor-apply"],
[id="faq"] {
  scroll-margin-top: 100px;
}

@media (min-width: 900px) {
  .c-hero--page { padding: 72px 0 68px; }
}

/* ========================================
   LOCATION PAGES
   ======================================== */
.loc-intro-g {
  display: grid;
  gap: var(--space-10);
}
.loc-intro-g p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.loc-intro-img {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 500;
}
.loc-intro-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.loc-intro-img:hover img { transform: scale(1.03); }

/* Nearby cities — uses shared .city-g + .cpill component */

@media (min-width: 900px) {
  .loc-intro-g { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ========================================
   SERVICE / LEVEL PAGES
   ======================================== */

/* Syllabus topics grid — mobile-first: 1 col → 2 col → 3 col */
.syllabus-g {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.syllabus-card {
  background: var(--blue-xlt);
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.syllabus-card .sc-icon2 {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.syllabus-card h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
.syllabus-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Exam overview — single column on mobile and tablet, 2-col only at desktop */
.exam-g {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.exam-paper {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.exam-paper-num {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exam-paper-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
.exam-paper-body p {
  font-size: .875rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .syllabus-g { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .syllabus-g { grid-template-columns: repeat(3, 1fr); }
  .exam-g     { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   BLOG ARCHIVE
   ======================================== */
.blog-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.blog-card:hover        { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-light); }
.blog-card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-lg); }

.blog-card-img {
  background: var(--blue-light);
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-img-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 500;
  background: var(--blue-light);
  aspect-ratio: 16/9;
}
.blog-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-cat {
  display: inline-block;
  background: var(--blue-xlt);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: var(--space-3);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.blog-card-title a:hover     { color: var(--blue); }
.blog-card-title a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-5);
}
.blog-card-meta {
  font-size: .8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.blog-card-read {
  margin-left: auto;
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.blog-card-read:hover { color: var(--blue-mid); }
.blog-card-read:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* Pagination — targets WP paginate_links() default output classes */
.blog-pag {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-16);
  flex-wrap: wrap;
}
.blog-pag .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--text);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.blog-pag .page-numbers:not(.dots):hover { background: var(--blue-xlt); border-color: var(--blue); color: var(--blue); }
.blog-pag .page-numbers.current          { background: var(--blue); color: var(--white); border-color: var(--blue); }
/* Dots are non-interactive — no border, no hover, lighter appearance */
.blog-pag .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--gray-400);
  cursor: default;
  pointer-events: none;
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   BLOG SINGLE
   ======================================== */
/* Block layout — not grid. Each section uses its own margin. */
.single-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-5);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.post-meta-cat {
  background: var(--blue-xlt);
  color: var(--blue);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-feat-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--blue-light);
  margin-bottom: var(--space-8);
}
.post-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-feat-img-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 500;
}

/* Post content typography */
.post-content { max-width: 65ch; }
.post-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700; color: var(--text);
  text-wrap: balance;
  margin: var(--space-8) 0 var(--space-4);
}
.post-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 700; color: var(--text);
  text-wrap: balance;
  margin: var(--space-6) 0 var(--space-3);
}
.post-content p  { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: var(--space-5); }
.post-content ul, .post-content ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.post-content li { font-size: 1.05rem; line-height: 1.75; color: var(--text); margin-bottom: var(--space-2); }
.post-content a  {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--blue-mid); }
.post-content a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.post-content blockquote {
  border-left: 4px solid var(--pink);
  padding: var(--space-4) var(--space-6);
  background: var(--blue-xlt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--text);
}

/* In-post CTA */
.in-post-cta {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-10) 0;
}
.in-post-cta h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-3); text-wrap: balance; }
.in-post-cta p  { color: rgba(255,255,255,.8); margin-bottom: var(--space-6); font-size: .95rem; }
.in-post-cta a  {
  background: var(--pink); color: var(--white);
  text-decoration: none;
  padding: 12px 28px; border-radius: 30px;
  font-weight: 700; font-size: .95rem;
  display: inline-block;
  transition: background var(--duration-fast) var(--ease-out);
}
.in-post-cta a:hover         { background: var(--pink-dark); }
.in-post-cta a:focus-visible  { outline: 2px solid var(--white); outline-offset: 3px; }

/* Post share */
.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1.5px solid var(--gray-200);
  border-bottom: 1.5px solid var(--gray-200);
  flex-wrap: wrap;
  margin: var(--space-8) 0;
}
.post-share-label { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.post-share a {
  background: var(--gray-100);
  color: var(--text);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.post-share a:hover { background: var(--blue-xlt); color: var(--blue); }
.post-share a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 20px; }

/* ========================================
   TUTOR SINGLE
   ======================================== */
.tutor-profile-g {
  display: grid;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-10);
}
.tutor-profile-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--blue-light);
  max-width: 320px;
  width: 100%;
}
.tutor-profile-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.tutor-profile-img:hover img { transform: scale(1.03); }
.tutor-profile-img-ph {
  width: 100%; height: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 500;
}
.tutor-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tutor-profile-badge {
  background: var(--blue-xlt);
  color: var(--blue);
  border: 1.5px solid var(--blue-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}
.tutor-profile-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: var(--space-2);
}
.tutor-profile-subj {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-6);
}
.tutor-profile-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-8);
}
.tutor-profile-cta {
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  will-change: transform;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.tutor-profile-cta:hover        { background: var(--pink-dark); transform: translateY(-1px); }
.tutor-profile-cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 30px; }
.tutor-profile-cta:active       { transform: scale(0.98); }

@media (min-width: 900px) {
  .tutor-profile-g { grid-template-columns: 300px 1fr; }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.founder-g {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.founder-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-light);
  aspect-ratio: 4/5;
  max-width: 340px;
  width: 100%;
}
.founder-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.founder-img:hover img { transform: scale(1.03); }
.founder-img-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 500;
}
.founder-bio p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-5);
}
.founder-creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.founder-cred {
  background: var(--blue-xlt);
  border: 1.5px solid var(--blue-light);
  color: var(--blue);
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}

/* USP checklist */
.usp-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.usp-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.usp-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.usp-item h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
.usp-item p { font-size: .875rem; color: var(--text-muted); line-height: 1.55; }

@media (min-width: 900px) {
  .founder-g { grid-template-columns: 340px 1fr; }
  .usp-list  { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   PRICING PAGE
   ======================================== */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--blue-light);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 540px;
  margin: var(--space-10) auto 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.pricing-card-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.pricing-card-price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card-label {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: var(--space-8);
}
.pricing-incl {
  text-align: left;
  margin-bottom: var(--space-8);
}
.pricing-incl li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.pricing-incl li:last-child { border-bottom: none; }
.pricing-incl .pi-check {
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-note {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: var(--space-5);
  line-height: 1.6;
}

/* Comparison table — wrapper handles mobile overflow */
.comp-tbl-wrap { overflow-x: auto; margin-top: var(--space-8); }
.comp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 480px;
}
.comp-tbl th {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  padding: var(--space-4) var(--space-5);
  text-align: left;
}
.comp-tbl th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comp-tbl th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.comp-tbl td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  color: var(--text);
}
.comp-tbl tr:nth-child(even) td { background: var(--off-white); }
.comp-tbl .tick  { color: #16a34a; font-weight: 700; }
.comp-tbl .cross { color: #dc2626; }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-g {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-200);
}
.contact-form-card h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: var(--space-2);
}
.contact-form-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: var(--space-6);
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--off-white);
  border-radius: var(--radius-md);
}
.contact-info-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-info-item h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: var(--space-1);
}
.contact-info-item p, .contact-info-item a {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-decoration: none;
}
.contact-info-item a:hover { color: var(--blue); }
.contact-info-item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

@media (min-width: 900px) {
  .contact-g { grid-template-columns: 1fr 360px; }
}

/* ========================================
   REVIEWS PAGE
   ======================================== */
.review-platforms {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.review-platform-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.review-platform-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.review-platform-card p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.review-platform-card .rp-score {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.review-platform-card .rp-stars {
  color: #FBBF24;
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

@media (min-width: 600px) {
  .review-platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .review-platforms { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   BECOME A TUTOR PAGE
   ======================================== */
.tutor-apply-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-200);
  max-width: 620px;
  margin: 0 auto;
}
.tutor-apply-form h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: var(--space-2);
}
.tutor-apply-form p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: var(--space-6);
}
/* CF7 file upload inputs */
.tutor-apply-form .wpcf7-form-control-file,
.tutor-apply-form input[type="file"] {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text);
  padding: var(--space-3);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--off-white);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.tutor-apply-form .wpcf7-form-control-file:hover,
.tutor-apply-form input[type="file"]:hover { border-color: var(--blue); }
.tutor-apply-form .wpcf7-form-control-file:focus,
.tutor-apply-form input[type="file"]:focus { border-color: var(--blue); outline: none; }
/* CF7 file wrap — make full width */
.tutor-apply-form .wpcf7-form-control-wrap { display: block; }

/* ========================================
   INNER PAGE — GENERIC CONTENT
   ======================================== */
.page-content {
  max-width: 65ch;
  margin: 0 auto;
}
.page-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700; color: var(--text);
  text-wrap: balance;
  margin: var(--space-8) 0 var(--space-4);
}
.page-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 700; color: var(--text);
  text-wrap: balance;
  margin: var(--space-6) 0 var(--space-3);
}
.page-content p  { font-size: 1.05rem; line-height: 1.75; color: var(--text); margin-bottom: var(--space-5); }
.page-content ul, .page-content ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.page-content li { font-size: 1.05rem; line-height: 1.7; color: var(--text); margin-bottom: var(--space-2); }
.page-content a  {
  color: var(--blue);
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--blue-mid); text-decoration: underline; }
.page-content a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ========================================
   REDUCED MOTION — extend existing block
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-img img,
  .loc-intro-img img,
  .founder-img img,
  .tutor-profile-img img,
  .c-btn--hero,
  .tutor-profile-cta {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* ========================================
   CONTACT PAGE
   ======================================== */

/* Split layout grid */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-split { grid-template-columns: 1fr 1.85fr; gap: var(--space-10); }
}

/* ── Info pane (left) ── */
.contact-pane {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
  border-top: 4px solid var(--blue);
}
/* Animation only when JS is active */
.js-anim .contact-pane {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.js-anim .contact-pane.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Availability status row */
.contact-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
}
.contact-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%       { box-shadow: 0 0 0 8px rgba(34,197,94,.06); }
}
.contact-status-info strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.contact-status-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Contact items */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.contact-item:hover {
  transform: translateY(-2px);
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--blue-xlt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  stroke-width: 1.75;
  fill: none;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.contact-item-value a          { color: var(--blue); font-weight: 600; }
.contact-item-value a:hover    { color: var(--blue-mid); }
.contact-item-value.is-placeholder { color: var(--text-muted); font-style: italic; }
.contact-badge {
  display: inline-flex;
  align-items: center;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

/* Reply card */
.contact-reply-card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}
.contact-reply-card p {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.contact-reply-card strong {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: var(--space-4);
}

/* Trust pills row */
.contact-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-200);
}
.contact-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--blue-xlt);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
/* Google reviews badge in the contact info card (replaces the old trust pills) */
.contact-google {
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-200);
}

/* ── Form card (right) ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
}
/* Animation only when JS is active */
.js-anim .contact-form-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: 100ms;
}
.js-anim .contact-form-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-form-head { margin-bottom: var(--space-6); }
.contact-form-head h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.contact-form-head p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Fallback form */
.cf-fallback { display: flex; flex-direction: column; gap: var(--space-4); }
.cf-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 600px) { .cf-row { grid-template-columns: 1fr 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: var(--space-2); }
.cf-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.cf-field .c-input,
.cf-field .c-select,
.cf-field .c-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.cf-field .c-input:focus,
.cf-field .c-select:focus,
.cf-field .c-textarea:focus    { border-color: var(--blue); }
.cf-field .c-textarea          { resize: vertical; min-height: 120px; }
.cf-field .c-select            { appearance: none; -webkit-appearance: none; cursor: pointer; }
.cf-field .cf-optional         { color: var(--text-muted); font-weight: 400; }
.cf-submit                     { margin-top: var(--space-2); }
.cf-submit .c-btn              { width: 100%; justify-content: center; }

/* Extend reduced-motion block */
@media (prefers-reduced-motion: reduce) {
  .js-anim .contact-pane,
  .js-anim .contact-form-wrap { transition: none !important; transform: none !important; opacity: 1 !important; }
  .contact-status-dot { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.about-founder { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .about-founder { grid-template-columns: 1fr 1.85fr; } }

.founder-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.founder-photo { width: 100%; max-width: 280px; aspect-ratio: 3/4; border-radius: var(--radius-xl); background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: 14px; text-align: center; padding: var(--space-4); }
.founder-creds { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; max-width: 280px; }
.founder-cred { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--blue-xlt); color: var(--blue); font-size: 13px; font-weight: 600; padding: var(--space-2) var(--space-3); border-radius: 30px; }

/* Inline-style replacements */
.founder-photo-img { width: 100%; max-width: 280px; border-radius: var(--radius-xl); display: block; }
.founder-bio-cta   { margin-top: var(--space-6); display: inline-flex; }
.sec--off-white    { background: var(--off-white); }

.about-usp-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 600px) { .about-usp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .about-usp-grid { grid-template-columns: 1fr 1fr 1fr; } }

.usp-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); border-top: 4px solid var(--pink); box-shadow: var(--shadow-sm); transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.usp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.usp-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.usp-icon { width: 44px; height: 44px; background: var(--blue-xlt); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.usp-icon svg { width: 24px; height: 24px; stroke: var(--blue); stroke-width: 1.75; fill: none; }
.usp-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: var(--space-2); }
.usp-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════════ */
.pricing-card-wrap { display: flex; justify-content: center; margin-bottom: var(--space-12); }
.pricing-card { background: var(--white); border-radius: var(--radius-xl); border-top: 4px solid var(--blue); box-shadow: var(--shadow-md); padding: var(--space-10); width: 100%; max-width: 640px; }

.pricing-amount { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.pricing-amount .price { font-family: var(--font-head); font-size: 56px; font-weight: 800; color: var(--blue); line-height: 1; }
.pricing-amount .unit  { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.pricing-level-label { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-6); }
.pricing-divider { border: none; border-top: 1px solid var(--gray-200); margin-bottom: var(--space-6); }

.pricing-includes { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.pricing-includes li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 15px; color: var(--text); }
.pricing-includes li svg { width: 18px; height: 18px; stroke: #16a34a; stroke-width: 2.5; fill: none; flex-shrink: 0; }

.pricing-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: var(--space-4); }

.pricing-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-compare { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricing-compare th { background: var(--blue); color: var(--white); font-family: var(--font-head); font-size: 14px; font-weight: 600; padding: var(--space-4) var(--space-5); text-align: left; }
.pricing-compare th:first-child { width: 40%; }
.pricing-compare td { padding: var(--space-4) var(--space-5); font-size: 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.pricing-compare tr:last-child td { border-bottom: none; }
.pricing-compare tr:nth-child(even) td { background: var(--off-white); }
.pricing-compare .yes   { color: #16a34a; font-weight: 600; }
.pricing-compare .no    { color: #dc2626; font-weight: 600; }
.pricing-compare .maybe { color: var(--text-muted); font-weight: 500; }
.pricing-compare-note { font-size: 12px; color: var(--text-muted); margin-top: var(--space-4); text-align: center; font-style: italic; }
.pricing-card-cta  { width: 100%; justify-content: center; }
.pricing-compare-title { text-align: center; margin-bottom: var(--space-8); }

/* ========================================
   TUTOR PROFILE  (single-tutor.php)
   Editorial magazine layout — portrait left,
   sticky sidecard right, long-form bio centre.
   ======================================== */

/* --- Hero --- */
.tp-hero {
  background: var(--blue);
  color: var(--white);
  padding: var(--space-10) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.tp-hero::before {
  /* subtle texture — pink radial glow bottom-left */
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(232,69,122,.18) 0%, transparent 60%);
  pointer-events: none;
}
.tp-hero .w { position: relative; z-index: 1; }
.tp-hero .page-bc { margin-bottom: var(--space-8); }

.tp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
.tp-portrait-wrap {
  position: relative;
  max-width: 320px;
  justify-self: start;
}
.tp-portrait-wrap::after {
  /* pink offset frame echoing pricing card shadow */
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--pink);
  border-radius: var(--radius-xl);
  z-index: 0;
}
.tp-portrait-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.tp-portrait-ph {
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 96px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-hero-copy .hero-accent-line { margin-bottom: var(--space-5); }
.tp-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
.tp-headline {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin: 0 0 var(--space-6);
  max-width: 56ch;
}
.tp-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tp-pill {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
}
.tp-pill-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,.6);
  font-weight: 700;
}

.tp-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.tp-hero-ctas .c-btn--hero {
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.tp-hero-ctas .c-btn--hero:hover         { background: var(--pink-dark); transform: translateY(-1px); color: var(--white); }
.tp-hero-ctas .c-btn--hero:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.tp-hero-ctas .c-btn--hero:active        { transform: scale(0.98); }
.tp-call {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}
.tp-call:hover { color: var(--white); text-decoration: underline; }

/* --- Quick facts strip --- */
.tp-qf-sec { padding: var(--space-12) 0; }
.tp-qf {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.tp-qf-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.tp-qf-k {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.tp-qf-v {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tp-qf-v--solo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.tp-chip {
  background: var(--blue-xlt);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}
.tp-chip--pink { background: var(--pink-light); color: var(--pink-dark); }

/* --- Body grid (long bio + sticky sidecard) --- */
.tp-body-sec { padding: var(--space-16) 0; }
.tp-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.tp-body-main {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  max-width: 68ch;
}
.tp-body-main > :first-child { margin-top: 0; }
.tp-body-main h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-12) 0 var(--space-4);
  line-height: 1.2;
}
.tp-body-main h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-8) 0 var(--space-3);
}
.tp-body-main p { margin: 0 0 var(--space-5); }
.tp-body-main p:first-of-type::first-letter {
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--pink);
}
.tp-body-main ul, .tp-body-main ol {
  margin: 0 0 var(--space-5) var(--space-6);
}
.tp-body-main li { margin-bottom: var(--space-2); }
.tp-body-main a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tp-body-main a:hover { color: var(--pink); }
.tp-body-main strong { color: var(--text); font-weight: 700; }

/* --- Sidecard --- */
.tp-sidecard {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 8px 8px 0 var(--pink);
  position: relative;
}
.tp-sidecard-k {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  margin-bottom: var(--space-2);
}
.tp-sidecard-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.tp-sidecard-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15);
}
.tp-sidecard-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
}
.tp-sidecard-meta li span {
  color: rgba(255,255,255,.6);
  font-weight: 500;
}
.tp-sidecard-meta li strong {
  color: var(--white);
  font-weight: 700;
  text-align: right;
}
.tp-sidecard-cta {
  display: block;
  background: var(--pink);
  color: var(--white);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.tp-sidecard-cta:hover { background: var(--pink-dark); transform: translateY(-1px); color: var(--white); }
.tp-sidecard-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.tp-sidecard-cta:active { transform: scale(0.98); }
.tp-sidecard-foot {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin: var(--space-4) 0 0;
}

/* --- Qualifications timeline --- */
.tp-quals-sec { padding: var(--space-16) 0; }
.tp-quals {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  position: relative;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.tp-quals::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--blue-light);
}
.tp-qual {
  position: relative;
  padding-left: 38px;
  margin-bottom: var(--space-8);
}
.tp-qual:last-child { margin-bottom: 0; }
.tp-qual-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--pink-light);
}
.tp-qual-lvl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 2px;
}
.tp-qual-ins {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.tp-qual-awd {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.tp-qual-yr {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* --- Trust block --- */
.tp-trust-sec { padding: var(--space-16) 0; }
.tp-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.tp-trust-col {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.tp-trust-ic {
  color: var(--blue);
  margin-bottom: var(--space-4);
}
.tp-trust-col h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.tp-trust-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --- Enquiry section --- */
.tp-enquire-sec {
  background: var(--blue);
  color: var(--white);
  padding: var(--space-16) 0;
}
.tp-enquire-sec .sh-light { text-align: center; }
.tp-enquire-sec .slabel-light { color: rgba(255,255,255,.65); }
.tp-enquire-sec .stitle-light { color: var(--white); }
.tp-enquire-sec .stitle-light .ac-pink { color: var(--pink); }
.tp-enquire-sec .ssub-light { color: rgba(255,255,255,.8); }
.tp-enquire-form {
  max-width: 560px;
  margin: var(--space-10) auto 0;
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: 12px 12px 0 var(--pink);
  color: var(--text);
}

/* --- Related tutors section — reuses .tg / .tc --- */
.tp-related-sec { padding: var(--space-16) 0; }
.tp-related-link { display: block; color: inherit; text-decoration: none; }
.tp-related-link:hover .tn { color: var(--blue); }

/* ========================================
   TUTORS LISTING  (page-tutors.php)
   Reuses .tg / .tc from homepage, adds
   filter pills and card headline.
   ======================================== */
.tl-listing-sec { padding: var(--space-16) 0; }
.tl-empty {
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: var(--space-12) auto;
}
.tl-empty a { color: var(--blue); text-decoration: underline; }
.tl-empty a:hover { color: var(--pink); }

.tl-filter-note {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  margin: 0 0 var(--space-4);
}
.tl-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-12);
}
.tl-fpill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.tl-fpill:hover {
  background: var(--blue-xlt);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}
.tl-fpill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.tl-fpill--active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.tl-fpill--active:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
}

.tl-tg { margin-top: 0; }
.tl-card { display: block; color: inherit; text-decoration: none; }
.tl-card:hover .tn { color: var(--blue); }
.tl-card .ti2 { display: flex; flex-direction: column; gap: 0; }
.tl-headline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: var(--space-2) 0 var(--space-3);
  font-weight: 500;
  /* clamp to 3 lines so card heights stay consistent */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-cta-hint {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  transition: transform var(--duration-fast) var(--ease-out);
}
.tl-card:hover .tl-cta-hint { transform: translateX(3px); }

/* Listing grid: 1 → 2 → 3 columns */
.tl-tg { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .tl-tg { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tl-tg { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}
@media (min-width: 1280px) {
  .tl-tg { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   TUTOR PROFILE — BREAKPOINTS
   ======================================== */
@media (min-width: 600px) {
  .tp-qf { grid-template-columns: repeat(3, 1fr); }
  .tp-trust { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .tp-hero { padding: var(--space-16) 0 var(--space-20); }
  .tp-hero-grid {
    grid-template-columns: 360px 1fr;
    gap: var(--space-12);
  }
  .tp-hero-ctas { flex-direction: row; align-items: center; gap: var(--space-6); }

  .tp-body {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--space-12);
  }
  .tp-side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

@media (min-width: 1280px) {
  .tp-hero-grid { grid-template-columns: 400px 1fr; gap: var(--space-16); }
  .tp-body { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* ========================================
   PLAN 5 — LOCATION + SERVICE EXPANSION
   BoFu, topic grids, process walkthroughs,
   filtered tutor cards.
   ======================================== */

/* --- Location: Why section (BoFu) --- */
.loc-why {
  max-width: 720px;
  margin: var(--space-10) auto 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.loc-why p {
  margin: 0 0 var(--space-5);
}
.loc-why p:last-child { margin-bottom: 0; }

/* --- Location: Topic grid (shared topics) --- */
.loc-topics-g {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.loc-topic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.loc-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.loc-topic-ic {
  font-size: 40px;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.loc-topic-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.loc-topic-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --- Location: Process walkthrough --- */
.loc-process {
  list-style: none;
  padding: 0;
  margin: var(--space-10) auto 0;
  max-width: 720px;
  display: grid;
  gap: var(--space-6);
}
.loc-process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
}
.loc-process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-process-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-1);
}
.loc-process-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* --- Service: Why section --- */
.svc-why {
  max-width: 720px;
  margin: var(--space-10) auto 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.svc-why p {
  margin: 0 0 var(--space-5);
}
.svc-why p:last-child { margin-bottom: 0; }

/* --- Service: Common struggles grid --- */
.svc-struggles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.svc-struggle-card {
  background: var(--white);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.svc-struggle-topic {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.svc-struggle-explain {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* --- Service: Session walkthrough --- */
.svc-session {
  list-style: none;
  padding: 0;
  margin: var(--space-10) auto 0;
  max-width: 720px;
  display: grid;
  gap: var(--space-6);
}
.svc-session-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
}
.svc-session-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-session-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-1);
}
.svc-session-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* --- Filtered tutor cards extras --- */
.thead {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: var(--space-2) 0 var(--space-3);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Plan 5 breakpoints --- */
@media (min-width: 600px) {
  .loc-topics-g    { grid-template-columns: repeat(2, 1fr); }
  .svc-struggles   { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .loc-topics-g    { grid-template-columns: repeat(3, 1fr); }
  .svc-struggles   { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* ========================================
   BLOG HUB + ARCHIVE
   ======================================== */

/* Blog hero variant — light blue, no CTA button */
.c-hero--blog            { background: var(--blue-xlt); padding: var(--space-20) 0 var(--space-16); }
.c-hero--blog .w         { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-5); }
.c-hero--blog h1         { color: var(--text); font: 700 clamp(2rem, 1rem + 3vw, 3rem)/1.15 var(--font-head); margin: var(--space-4) 0 var(--space-4); }
.c-hero--blog .hero-sub  { color: var(--text-muted); font: 400 1.0625rem/1.6 var(--font-body); max-width: 640px; margin: 0; }
.c-hero--blog .hero-sub p { margin: 0; }

/* Filter pills row */
.bfilter           { background: var(--white); padding: var(--space-8) 0 var(--space-4); }
.bfilter .w        { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-5); }
.bfilter__list     { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.bfilter__item     { margin: 0; }

.bpill {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--gray-200); border-radius: 60px;
  font: 500 .9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.bpill:hover            { border-color: var(--pink); color: var(--pink); }
.bpill:focus-visible    { outline: 2px solid var(--pink); outline-offset: 2px; }
.bpill.is-active        { background: var(--pink); color: var(--white); border-color: var(--pink); }
.bpill.is-active:hover  { background: var(--pink); color: var(--white); }

.bpill__nojs            { display: none; }
body:not(.js-anim) .bpill                { display: none; }
body:not(.js-anim) .bpill__nojs {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border: 1.5px solid var(--gray-200); border-radius: 60px;
  color: var(--text); text-decoration: none;
  font: 500 .9375rem/1 var(--font-body);
}
body:not(.js-anim) .bpill__nojs:hover { border-color: var(--pink); color: var(--pink); }

/* Hub section + count caption */
.sec--blog          { padding: var(--space-8) 0 var(--space-20); background: var(--white); }
.sec--blog .w       { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-5); }
.bcount             { font: 500 .9375rem/1.4 var(--font-body); color: var(--text-muted); margin: 0 0 var(--space-6); }
.bnoresults         { font: 500 1rem/1.5 var(--font-body); color: var(--text-muted); padding: var(--space-12) 0; text-align: center; }

/* Hub grid variant — same card styles but explicit grid here */
.bg2--hub           { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 600px) { .bg2--hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bg2--hub { grid-template-columns: repeat(3, 1fr); } }

/* AJAX busy state */
.bg2[aria-busy="true"]  { opacity: .5; transition: opacity var(--duration-base); }

/* Load more button — pink-outlined pill, fills on hover */
.bload-wrap         { display: flex; justify-content: center; margin-top: var(--space-12); }
.bload {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; padding: 14px 32px;
  background: var(--white); color: var(--pink);
  border: 1.5px solid var(--pink); border-radius: 60px;
  font: 600 .9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}
.bload:hover            { background: var(--pink); color: var(--white); }
.bload:focus-visible    { outline: 2px solid var(--pink); outline-offset: 2px; }
.bload.is-loading::after { content: '…'; margin-left: 4px; }
.bload.is-disabled,
.bload[disabled] {
  background: var(--gray-100); color: var(--text-muted);
  border-color: var(--gray-200); cursor: not-allowed;
}

/* ========================================
   BLOG DETAIL (single.php)
   ======================================== */

.w--narrow          { max-width: 860px; margin-inline: auto; padding-inline: var(--space-5); }

/* Breadcrumb on blog detail */
.page-bc--blog      { background: var(--white); padding: var(--space-6) 0 0; }
.page-bc--blog .w   { /* inherits w--narrow */ }
.page-bc--blog a    { color: var(--text-muted); text-decoration: none; font: 500 .875rem/1.4 var(--font-body); }
.page-bc--blog a:hover { color: var(--pink); }
.page-bc--blog .bc-sep { color: var(--gray-400); margin: 0 6px; }
.page-bc--blog .bc-cur { color: var(--text); font: 500 .875rem/1.4 var(--font-body); }

.post-hero          { padding: var(--space-8) 0 var(--space-8); background: var(--white); }
.post-hero__cat {
  display: inline-block; padding: 6px 14px;
  background: var(--pink-light); color: var(--pink);
  border-radius: 60px; font: 600 .8125rem/1 var(--font-body);
  text-decoration: none; margin-bottom: var(--space-5);
}
.post-hero__cat:hover   { background: var(--pink); color: var(--white); }

.post-hero__title {
  font: 700 clamp(1.75rem, 1rem + 2.5vw, 2.75rem)/1.15 var(--font-head);
  color: var(--text); margin: 0 0 var(--space-4);
}

.post-hero__meta {
  font: 400 .9375rem/1.4 var(--font-body);
  color: var(--text-muted); margin: 0 0 var(--space-10);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.post-hero__sep         { opacity: .6; }

.post-hero__img-wrap {
  background: var(--blue);
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-xl);
  margin: 0 0 var(--space-8);
}
.post-hero__img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg);
}

/* Body / .prose — block editor output */
.post-body          { padding: 0 0 var(--space-16); background: var(--white); }
.prose              { max-width: 720px; margin-inline: auto; color: var(--text); font: 400 1.0625rem/1.7 var(--font-body); }
.prose > * + *      { margin-top: var(--space-5); }
.prose h2           { font: 700 clamp(1.5rem, 1rem + 1.5vw, 2rem)/1.25 var(--font-head); margin-top: var(--space-12); margin-bottom: var(--space-4); color: var(--text); }
.prose h3           { font: 700 clamp(1.25rem, 1rem + .75vw, 1.5rem)/1.3 var(--font-head); margin-top: var(--space-10); margin-bottom: var(--space-3); color: var(--text); }
.prose h4           { font: 600 1.125rem/1.4 var(--font-head); margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--text); }
.prose p            { margin: 0 0 var(--space-5); }
.prose a            { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover      { color: var(--blue-mid); }
.prose strong       { font-weight: 700; color: var(--text); }
.prose em           { font-style: italic; }
.prose ul, .prose ol { padding-left: var(--space-6); margin: 0 0 var(--space-5); }
.prose li           { margin-bottom: var(--space-2); }
.prose blockquote   { border-left: 4px solid var(--pink); padding: var(--space-2) var(--space-5); margin: var(--space-8) 0; font-style: italic; color: var(--text-muted); }
.prose figure       { margin: var(--space-8) 0; }
.prose img          { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.prose figcaption   { font-size: .9rem; color: var(--text-muted); text-align: center; margin-top: var(--space-2); }
.prose code         { background: var(--gray-100); padding: 2px 6px; border-radius: var(--radius-sm); font: .9em/1 var(--font-body); }
.prose pre          { background: var(--gray-100); padding: var(--space-4); border-radius: var(--radius-md); overflow-x: auto; }
.prose pre code     { background: transparent; padding: 0; }
.prose hr           { border: 0; border-top: 1px solid var(--gray-200); margin: var(--space-12) 0; }

/* Related posts section */
.brel               { padding: var(--space-16) 0; }
.brel .w            { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-5); }
.brel .sh           { margin-bottom: var(--space-8); }
.brel .stitle       { font: 700 clamp(1.5rem, 1rem + 1.5vw, 2rem)/1.25 var(--font-head); color: var(--text); margin: var(--space-3) 0 0; }
.brel .bg2          { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 600px) { .brel .bg2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .brel .bg2 { grid-template-columns: repeat(3, 1fr); } }

/* ── /reviews/ page ─────────────────────────────────────────────────────────
   Rating summary + review grid. Tile pattern mirrors .usp-card (white card,
   pink top border) but leads with a star row instead of an icon. */
.rv-summary       { text-align: center; max-width: 640px; margin: 0 auto var(--space-12); }
.rv-score         { font-family: var(--font-head); font-weight: 800; color: var(--blue); line-height: 1; font-size: clamp(40px, 8vw, 64px); }
.rv-stars         { color: #FBBF24; letter-spacing: 2px; }
.rv-summary .rv-stars { font-size: 22px; margin: var(--space-2) 0 var(--space-3); }
.rv-summary p     { color: var(--text-muted); margin-top: var(--space-3); }
.rv-grid          { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 600px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .rv-grid { grid-template-columns: 1fr 1fr 1fr; } }
.rv-tile          { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); border-top: 4px solid var(--pink); display: flex; flex-direction: column; gap: var(--space-3); }
.rv-tile .rv-stars { font-size: 18px; }
.rv-tile blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); }
.rv-meta          { margin-top: auto; }
.rv-name          { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 15px; }
.rv-loc           { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.rv-google        { position: absolute; top: var(--space-5); right: var(--space-5); line-height: 0; }
.rv-google .g-logo { width: 22px; height: 22px; }

/* ── Answer-first page intro (service + location pages) ─────────────────────── */
.page-intro       { max-width: 720px; margin: 0 auto; }
.page-intro p     { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin: 0 0 var(--space-4); }
.page-intro p:last-child { margin-bottom: 0; }
.page-intro__lead { font-size: 1.1875rem; font-weight: 500; line-height: 1.7; margin: 0 0 var(--space-4); }
.exam-source    { margin-top: var(--space-5); font-size: 13px; color: var(--text-muted); }
.exam-source a  { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
