/* ============================================================
   ClassCover Ireland — styles.css
   Mobile-first, single stylesheet
   ============================================================ */

/* --- Google Font import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --purple:        #3A0CA3;
  --purple-light:  #EBE7F6;
  --purple-section:#D8D0F0;
  --purple-card:   #E8E4F8;
  --text-dark:     #111111;
  --text-body:     #333333;
  --white:         #ffffff;
  --max-w:         1160px;
  --nav-h:         72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* --- Typography scale --- */
h1 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--text-dark);
  line-height: 1.1;
}

h2 {
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--text-dark);
  line-height: 1.2;
}

h3 {
  font-weight: 600;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-dark);
  line-height: 1.25;
}

h4 {
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-dark);
  line-height: 1.3;
}

p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section-pad {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .section-pad { padding: 96px 0; }
}

/* --- Eyebrow label --- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  border-radius: 50px;
  padding: 5px 14px;
  background: transparent;
  white-space: nowrap;
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  background: var(--purple);
  color: #ffffff !important;
  border-radius: 50px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--purple) !important;
  border: 2px solid var(--purple);
}

.btn-outline:hover { background: var(--purple); color: var(--white) !important; opacity: 1; }

.btn-white {
  background: var(--white);
  color: var(--purple) !important;
}

.btn-white:hover { opacity: 0.9; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 12, 163, 0.08);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple); }

/* Ensure the nav CTA button always has white text regardless of link colour cascade */
.nav-links .btn,
.nav-links .btn:hover {
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Hamburger open state */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(58, 12, 163, 0.1);
  padding: 20px;
  gap: 4px;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.nav-drawer.is-open { display: flex; }

.nav-drawer a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}

.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--purple); }

.nav-drawer .btn {
  margin-top: 12px;
  align-self: flex-start;
  border-bottom: none !important;
  padding: 14px 28px;
}

/* Region switcher pill */
.nav-region {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(58,12,163,0.06);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 8px;
}
.nav-region-current {
  color: var(--text-dark);
  opacity: 1;
  cursor: default;
}
.nav-region-sep {
  color: #ccc;
  font-size: 11px;
}
.nav-region-link {
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}
.nav-region-link:hover { opacity: 1; color: var(--purple); }
.nav-drawer .nav-region {
  align-self: center;
  margin-top: 16px;
  border-bottom: none !important;
}

/* Desktop: show nav links, hide toggle */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 72px;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%);
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  max-width: 760px;
}

.hero-sub {
  max-width: 620px;
  font-size: 18px;
  color: var(--text-body);
}

.hero .btn-group {
  justify-content: center;
}

/* Hero video embed */
.hero-visual {
  margin-top: 16px;
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(58, 12, 163, 0.18);
}

/* 16:9 responsive iframe wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof {
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--white) 30%);
}

.social-proof-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 900px) {
  .social-proof-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
}

.social-proof-text {
  flex: 1;
}

.social-proof-text h2 { margin-bottom: 12px; }

.social-proof-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.social-proof-visual img {
  width: 100%;
  max-width: 480px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--purple-card);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.stat-card .stat-num {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================================
   FOR SCHOOLS
   ============================================================ */
.for-schools {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-section) 12%, var(--purple-section) 88%, var(--white) 100%);
}

.for-schools-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.for-schools-intro h2 { margin-top: 12px; }
.for-schools-intro p { margin-top: 12px; }
.for-schools-intro .btn { margin-top: 24px; display: inline-block; }

/* Two-column layout: text + image */
.split-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split-section {
    flex-direction: row;
    gap: 60px;
    align-items: center;
  }

  .split-section.reverse { flex-direction: row-reverse; }

  .split-section > * { flex: 1; }
}

.split-visual img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.split-content h3 { margin-bottom: 12px; }
.split-content p { color: var(--text-body); }

/* Problem copy block */
.problem-block {
  border-left: 4px solid var(--purple);
  padding-left: 20px;
  margin-bottom: 28px;
}

.schools-mini-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-left: 24px;
}

.mini-callout h4 {
  font-size: clamp(17px, 1.8vw, 20px);
  margin-bottom: 6px;
}

.mini-callout p {
  font-size: 15px;
  color: var(--text-body);
  margin: 0;
}

.schools-split-2 {
  margin-top: 64px;
  align-items: flex-start;
}

.schools-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 28px;
}

.schools-feature {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(58, 12, 163, 0.07);
}

.schools-feature h3,
.schools-feature h4 {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  margin-bottom: 8px;
}

.schools-feature p {
  font-size: 15px;
  color: var(--text-body);
  margin: 0;
}

.schools-cta-btn {
  display: inline-block;
}

.problem-block h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
}

.problem-block p {
  font-size: 16px;
  color: var(--text-body);
}

/* Features list */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.feature-item {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(58, 12, 163, 0.07);
}

.feature-item h3,
.feature-item h4 { font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; margin-bottom: 8px; }
.feature-item p { font-size: 16px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--white);
}

.how-it-works-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.how-it-works-header h2 { margin-top: 12px; margin-bottom: 16px; }

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .steps-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
}

.step-card {
  background: var(--purple-card);
  border: 1.5px solid rgba(58, 12, 163, 0.18);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.step-text h3,
.step-text h4 { font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; margin-bottom: 6px; }
.step-text p { font-size: 16px; }

.hiw-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   FOR SUBS
   ============================================================ */
.for-subs {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-section) 10%, var(--purple-section) 78%, var(--white) 100%);
}

.for-subs-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.for-subs-intro h2 { margin-top: 12px; }
.for-subs-intro p { margin-top: 12px; }

.subs-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .subs-split {
    flex-direction: row;
    gap: 60px;
  }
  .subs-split > * { flex: 1; }
}

.subs-split-visual img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.for-subs-intro .btn {
  margin-top: 24px;
  display: inline-block;
}

/* Showcase: two feature columns flanking a centred image */
/* Second subs section: 2×2 feature grid left, image right */
.subs-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .subs-showcase {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .subs-showcase-grid { flex: 1; }
  .subs-showcase-visual { flex: 1; }
}

.subs-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  width: 100%;
}

.subs-showcase .feature-item {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-top: 2px solid var(--purple);
  padding-top: 16px;
}

.subs-showcase .feature-item h3,
.subs-showcase .feature-item h4 {
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
}

.subs-showcase .feature-item p {
  font-size: 15px;
}

.subs-showcase-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(58, 12, 163, 0.14);
  display: block;
  margin: 0 auto;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
  background: var(--white);
}

.reviews-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

/* ============================================================
   PRE-REGISTER CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(180deg, #5a35c7 0%, var(--purple) 20%, var(--purple) 80%, #5a35c7 100%);
  color: var(--white);
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    gap: 0;
    align-items: stretch;
  }
}

.cta-panel {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-panel + .cta-panel {
  border-top: 1px solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
  .cta-panel + .cta-panel {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.2);
  }
}

.cta-panel .eyebrow {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.cta-panel h2 { color: var(--white); }

.cta-panel p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--white);
}

.subscribe-section {
  background: var(--white);
}

.faq-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.faq-header h2 { margin-top: 0; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--purple); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s, background 0.2s;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--purple);
  color: var(--white);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #f4f0fc;
  border-top: 1px solid rgba(58, 12, 163, 0.1);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    gap: 60px;
  }
}

.footer-brand {
  flex: 1.5;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-body);
  max-width: 300px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover { background: var(--purple); color: var(--white); }

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-nav-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  flex: 2;
}

.footer-col h3,
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--purple); }

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 14px;
  color: #888;
}

/* ============================================================
   LEGAL PAGES (privacy, terms, cookies)
   ============================================================ */
.legal-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%);
  text-align: center;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.legal-body h2 {
  margin: 36px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.legal-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

.legal-body a {
  color: var(--purple);
  text-decoration: underline;
}

/* ============================================================
   MISC
   ============================================================ */
/* Offset for fixed nav on anchor links */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ============================================================
   AUSTRALIA GEOLOCATION POPUP
   ============================================================ */
.au-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.au-popup.is-visible { opacity: 1; }
.au-popup-box {
  background: white;
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(58,12,163,0.18);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.3s;
}
.au-popup.is-visible .au-popup-box { transform: translateY(0); }
.au-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.au-popup-close:hover { color: var(--text-dark); }
.au-popup-flag { font-size: 48px; margin-bottom: 12px; }
.au-popup-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.au-popup-box p { font-size: 15px; color: var(--text-body); margin-bottom: 24px; line-height: 1.6; }

/* ============================================================
   BLOG — SHARED
   ============================================================ */

/* Active nav link on blog pages */
.nav-links a[aria-current="page"],
.nav-drawer a[aria-current="page"] {
  color: var(--purple);
  font-weight: 700;
}

/* Post tag chip */
.post-tag {
  display: inline-block;
  background: #ede9fe;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */

.blog-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text-dark);
  margin-bottom: 16px;
}
.blog-hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

/* Post card grid */
.blog-listing .container {
  max-width: var(--max-w);
}
.blog-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Post card */
.post-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(58,12,163,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(58,12,163,0.13);
}
.post-card-image-link { display: block; overflow: hidden; }
.post-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.post-card:hover .post-card-img { transform: scale(1.03); }
.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card-date {
  font-size: 13px;
  color: var(--text-body);
}
.post-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}
.post-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--purple); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: auto;
  border-top: 1px solid #f3f0ff;
  padding-top: 14px;
}
.post-card-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: 64px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.blog-empty-icon { font-size: 48px; margin-bottom: 16px; }
.blog-empty h2 { font-size: 24px; margin-bottom: 12px; color: var(--text-dark); }
.blog-empty p { color: var(--text-body); margin-bottom: 28px; }
.blog-empty--small { padding: 32px 16px; }
.blog-empty--small p { margin-bottom: 16px; }

/* Blog CTA band */
.blog-cta {
  background: var(--purple);
}
.blog-cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.blog-cta-inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: #fff;
  margin-bottom: 12px;
}
.blog-cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

/* Post hero image */
.post-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 0;
  margin-top: var(--nav-h);
}
@media (min-width: 768px) {
  .post-hero-img {
    max-height: 560px;
    aspect-ratio: auto;
  }
}

/* Post header */
.post-header {
  padding: 40px 0 0;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-pillar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-title {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
  max-width: 780px;
}

/* Author card (inline on post) */
.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 32px;
  border-bottom: 1px solid #ede9fe;
  margin-bottom: 32px;
}
.author-card-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-card-text {}
.author-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.author-card-name:hover { color: var(--purple); }
.author-card-role {
  font-size: 13px;
  color: var(--text-body);
  display: block;
}
.author-card-meta {
  font-size: 13px;
  color: var(--text-body);
}
.author-card-meta span + span::before {
  content: ' · ';
}

/* TL;DR / Key Takeaways box */
.tldr-box {
  background: #f5f3ff;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.tldr-box-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple);
  margin-bottom: 10px;
  display: block;
}
.tldr-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: disc;
}
.tldr-box li {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 6px;
}
.tldr-box li:last-child { margin-bottom: 0; }

/* Post body content */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 0 20px 64px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .post-layout { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1024px) {
  .post-layout {
    max-width: var(--max-w);
    grid-template-columns: minmax(0, 720px) 280px;
  }
}
.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}
.post-body h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-dark);
  line-height: 1.25;
}
.post-body h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-dark);
}
.post-body p { font-size: 17px; margin-bottom: 20px; }
.post-body ul,
.post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { font-size: 17px; margin-bottom: 8px; }
.post-body strong { font-weight: 700; }
.post-body a { color: var(--purple); }
.post-body a:hover { text-decoration: none; }
.post-body blockquote {
  border-left: 4px solid var(--purple);
  margin: 28px 0;
  padding: 12px 20px;
  background: #f5f3ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-body);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}
.post-body th {
  background: var(--purple);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.post-body td {
  padding: 10px 14px;
  border-bottom: 1px solid #ede9fe;
  vertical-align: top;
}
.post-body tr:last-child td { border-bottom: none; }

/* Citations block */
.post-citations {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #ede9fe;
}
.post-citations-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 10px;
  display: block;
}
.post-citations ol {
  padding-left: 20px;
  margin: 0;
}
.post-citations li {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 6px;
  line-height: 1.5;
}
.post-citations a { color: var(--purple); font-size: 13px; }

/* Post FAQ section */
.post-faq {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid #ede9fe;
}
.post-faq h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}
/* Inherits .faq-item, .faq-question, .faq-answer, .faq-icon from main styles */

/* Post sidebar (desktop only) */
.post-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .post-sidebar { display: block; }
}
.post-sidebar-card {
  background: #f5f3ff;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.post-sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-dark);
}
.post-sidebar-card p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Post CTA band */
.post-cta {
  background: var(--purple);
}
.post-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .post-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.post-cta-inner h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #fff;
  margin: 0;
}
.post-cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin: 8px 0 0;
}
.post-cta-text { flex: 1; }

/* Related posts */
.related-posts {
  padding: 48px 0;
}
.related-posts h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.related-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Back to blog link */
.post-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.post-back:hover { text-decoration: underline; }

/* ============================================================
   AUTHOR BIO PAGE
   ============================================================ */

.author-bio-page {
  padding-top: calc(var(--nav-h) + 48px);
}
.author-bio-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid #ede9fe;
}
@media (min-width: 600px) {
  .author-bio-card {
    flex-direction: row;
    align-items: flex-start;
  }
}
.author-bio-photo-wrap { flex-shrink: 0; }
.author-bio-photo-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.author-bio-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.author-bio-name {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 6px;
}
.author-bio-role {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 16px;
}
.author-bio-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.author-bio-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-posts-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text-dark);
}

/* Post body extras */
.post-source {
  font-size: 13px;
  color: #888;
  margin-top: -8px;
  margin-bottom: 28px;
}
.post-source a { color: var(--purple); text-decoration: underline; }

.post-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(58,12,163,0.08);
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.post-table th {
  background: var(--purple);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.post-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:nth-child(even) td { background: var(--purple-card); }

/* ============================================================
   SCHOOLS PILOT LANDING PAGE
   ============================================================ */

/* Pilot product section */
.pilot-product {
  background: var(--purple-section);
}
.pilot-product .split-content p {
  margin-bottom: 28px;
}
.pilot-product .schools-mini-callouts {
  padding-left: 0;
}

/* Hero gradient flows into purple product section */
.pilot-hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-section) 100%);
}

/* Pilot hero — allow eyebrow to wrap on mobile */
.pilot-hero .eyebrow {
  white-space: normal;
}

/* Proof strip under hero CTA */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.proof-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}
.proof-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.proof-sep {
  width: 1px;
  height: 32px;
  background: rgba(58,12,163,0.2);
}
@media (max-width: 480px) {
  .proof-sep { display: none; }
  .proof-strip { gap: 16px; }
  .proof-item { flex-direction: row; gap: 8px; }
}

/* Pilot — What is the pilot program? */
.pilot-what {
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--white) 100%);
}

/* Two-column layout: copy left, cards right */
.pilot-what-split {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 900px) {
  .pilot-what-split {
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
  }
  .pilot-what-left { flex: 1; }
  .pilot-what-right { flex: 1; }
}
.pilot-what-left h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}
.pilot-what-left p {
  margin-bottom: 14px;
}
.pilot-what-left .btn {
  margin-top: 12px;
}

/* Pilot cards — stacked on the right */
.pilot-what-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pilot-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(58,12,163,0.08);
  border: 1.5px solid rgba(58,12,163,0.1);
}
.pilot-card-num {
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.pilot-card h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  margin-bottom: 10px;
}
.pilot-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* Pilot — Comparison table */
.pilot-compare {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-section) 20%, var(--purple-section) 80%, var(--white) 100%);
}
.pilot-compare-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.pilot-compare-header h2 {
  margin-top: 12px;
}

.compare-table-wrap {
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(58,12,163,0.1);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}
.compare-table thead th {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  background: #f5f3ff;
  color: var(--text-dark);
  border-bottom: 2px solid rgba(58,12,163,0.12);
}
.compare-table thead th:first-child {
  width: 30%;
}
.compare-table thead th.compare-highlight {
  background: var(--purple);
  color: var(--white);
  border-bottom-color: var(--purple);
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(58,12,163,0.08);
  vertical-align: top;
  line-height: 1.55;
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-feature {
  font-weight: 700;
  color: var(--text-dark);
}
.compare-highlight-cell {
  background: rgba(58,12,163,0.04);
}

.compare-callout {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  background: var(--white);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(58,12,163,0.08);
}
.compare-callout p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.compare-callout p:last-child {
  margin-bottom: 0;
}

.pilot-cta-center {
  text-align: center;
  margin-top: 32px;
}

/* Pilot steps — 4 column variant */
@media (min-width: 700px) {
  .pilot-steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (min-width: 960px) {
  .pilot-steps {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Pilot — Why county by county */
.pilot-why {
  background: var(--white);
}
.pilot-why-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .pilot-why-inner {
    flex-direction: row;
    gap: 64px;
    align-items: center;
  }
}
.pilot-why-text {
  flex: 1;
}
.pilot-why-text h2 {
  margin: 12px 0 16px;
}
.pilot-why-text p {
  margin-bottom: 14px;
}
.pilot-why-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.pilot-why-visual img {
  width: 100%;
  max-width: 480px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-origin {
  background: var(--white);
}
.about-split {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-split {
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
  }
  .about-split-text { flex: 1.2; }
  .about-split-visual { flex: 0.8; }
}
.about-split-text h2 {
  margin-bottom: 16px;
}
.about-split-text p {
  margin-bottom: 14px;
}
.about-split-visual img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* Quote card */
.about-quote-card {
  background: var(--purple-card);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.about-quote-mark {
  font-size: 56px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.about-quote-card p {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}
.about-quote-attr {
  font-size: 14px;
  color: var(--text-body);
  font-style: italic;
}

/* What ClassCover does */
.about-what {
  background: var(--purple-light);
}
.about-what-header {
  max-width: 780px;
  margin: 0 auto;
}
.about-what-header h2 {
  margin-bottom: 20px;
}
.about-what-header p {
  margin-bottom: 16px;
}

/* Scale & trust */
.about-scale {
  background: var(--white);
}
.about-scale-heading {
  text-align: center;
  margin-bottom: 36px;
}
.about-stats {
  max-width: 720px;
  margin: 0 auto 48px;
}
.about-trust {
  max-width: 780px;
  margin: 0 auto;
}
.about-trust h3 {
  margin-bottom: 14px;
}
.about-trust p {
  margin-bottom: 16px;
}
.about-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.about-trust-list li {
  background: var(--purple-card);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

/* Ireland section */
.about-ireland {
  background: var(--purple-light);
}
.about-ireland-cta {
  text-align: center;
  margin-top: 40px;
}

/* Team */
.about-team {
  background: var(--white);
}
.about-team-heading {
  text-align: center;
  margin-bottom: 36px;
}
.about-team-grid {
  max-width: 480px;
  margin: 0 auto;
}
.about-team-card {
  background: var(--purple-card);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.about-team-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.about-team-role {
  font-size: 15px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 14px;
}
.about-team-card p:last-child {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.65;
}
