/* ==========================================================================
   Thrive Analysis Group — V1 (Brief-aligned: Professional Sleek)
   ========================================================================== */

/* ---------- Custom fonts ---------- */
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand colors (from logo + client brief: red, blue, black, white) */
  --color-navy: #0c71c3;
  --color-navy-dark: #094f87;
  --color-blue: #1d4e89;
  --color-red: #d41424;
  --color-red-dark: #a80f1c;
  --color-white: #ffffff;
  --color-ink: #16233d;
  --color-text: #2c3648;
  --color-text-muted: #5b6579;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f9;
  --color-bg-navy: #0c71c3;
  --color-border: #e2e6ed;

  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --container-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 8px rgba(12, 113, 195, 0.06), 0 1px 2px rgba(12, 113, 195, 0.08);
  --shadow-lift: 0 12px 32px rgba(12, 113, 195, 0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 280ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100% !important; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* Orphan prevention: pair the last two words with a non-breaking space */
.no-orphans { text-wrap: pretty; }
h1, h2, h3, h4, p, .balance { text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--color-red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.9rem 1.4rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

section { position: relative; }
.section-pad { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.bg-alt { background: var(--color-bg-alt); }
.bg-navy { background: var(--color-navy); color: #fff; }
.bg-navy .section-body, .bg-navy p { color: rgba(255,255,255,0.86); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-ink); font-weight: 700; letter-spacing: -0.01em; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1rem;
}
.bg-navy .eyebrow { color: #fff; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--color-text-muted); }
.lede a { color: var(--color-red); text-decoration: underline; text-underline-offset: 2px; }
.lede a:hover { color: var(--color-red-dark); }
.bg-navy .lede { color: rgba(255,255,255,0.82); }

.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

p + p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  white-space: normal;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-red); color: #fff; box-shadow: 0 4px 14px rgba(212,20,36,0.28); }
.btn-primary:hover { background: var(--color-red-dark); box-shadow: 0 8px 20px rgba(212,20,36,0.34); }

.bg-navy .btn-primary { background: #fff; color: var(--color-navy); box-shadow: none; }
.bg-navy .btn-primary:hover { background: rgba(255,255,255,0.88); box-shadow: none; }

.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; }

.bg-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.bg-navy .btn-outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--color-navy); padding-inline: 0.25rem; }
.btn-ghost svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost:hover { color: var(--color-red); }
.bg-navy .btn-ghost { color: #fff; }
.bg-navy .btn-ghost:hover { color: rgba(255,255,255,0.75); }

/* ---------- Alert bar ---------- */
.alert-bar {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--color-navy-dark);
  color: #fff;
}
.alert-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  height: 48px;
}
.alert-email { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1rem; color: #fff; }
.alert-email svg { width: 18px; height: 18px; color: var(--color-red); flex-shrink: 0; }
.alert-email:hover { color: rgba(255,255,255,0.78); }
.btn-sm { padding: 0.35rem 1.1rem; line-height: 1.2; }
@media (max-width: 560px) { .alert-email-text { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 48px;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 72px; width: auto; }
.brand-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.65rem; color: var(--color-ink); letter-spacing: -0.01em; line-height: 1.05; }
@media (max-width: 1199px){ .brand-word { font-size: 1.30rem; } }
@media (max-width: 480px) {
  .brand img { height: 52px; }
  .brand-word { font-size: 1.1rem; }
}

.header-email {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.header-email:hover { background: var(--color-red-dark); }

@media (max-width: 1023px) {
  .alert-bar { display: none; }
  .site-header { top: 0; }
  .brand-word { display: none; }
  .header-email { display: flex; }
  .header-actions { margin-left: auto; }
}

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
}
.main-nav > ul { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-ink);
  padding: 0.5rem 0.1rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: none; cursor: default; }
.dropdown-toggle svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.has-dropdown:hover .dropdown-toggle svg,
.has-dropdown:focus-within .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  min-width: 280px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.has-dropdown.is-open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-ink);
}
.dropdown-menu a:hover { background: var(--color-bg-alt); color: var(--color-red); }
.dropdown-menu a span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.dropdown-menu a:hover span { color: var(--color-text-muted); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 84px 0 0 0;
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
  overflow-y: auto;
  padding: 1.5rem;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a, .mobile-nav .msub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
  width: 100%; background: none; border: none; text-align: left;
}
.msub-toggle svg { width: 18px; height: 18px; transition: transform var(--dur-fast); }
.msub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.msub-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
.msub-panel.is-open { max-height: 240px; }
.msub-panel a { font-weight: 500; font-size: 1rem; padding-left: 1rem; color: var(--color-text-muted); }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1800&q=75');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,26,51,0.97) 20%, rgba(11,37,69,0.86) 60%, rgba(11,37,69,0.55) 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 993px) { .hero-grid { grid-template-columns: 1.025fr 0.975fr; gap: 2rem; } }
.hero-inner { position: relative; z-index: 2; max-width: 650px; }
@media (min-width: 768px) { .hero-inner-wide { max-width: 900px; } }
@media (min-width: 768px) { .hero-h1-nowrap { white-space: nowrap; } }
.hero-books { display: none; }
@media (min-width: 993px) {
  .hero-books { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; }
  .hero-books img { width: 100%; height: auto; max-width: 460px; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45)); }
}
.hero-books-caption {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  text-align: center;
  max-width: 300px;
  color: rgba(255,255,255,0.72);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--color-red); }
.hero h1 { margin-bottom: 1.25rem; color: #fff; }
.hero .lede { max-width: 620px; margin-bottom: 2rem; color: rgba(255,255,255,0.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  position: relative;
  z-index: 2;
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  gap: 1rem;
}
@media (min-width: 768px) { .hero-meta { flex-wrap: nowrap; justify-content: space-evenly;} }
@media (max-width: 767px){ .hero-meta{ display: block; } .hero-meta-item{ max-width: 100% !important; } }
.hero-meta-item { display: flex; align-items: flex-start; gap: 0.65rem; flex: 1 1 260px; font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; color: rgba(255,255,255,0.9); }
.hero-meta-item:first-child{ max-width: 25%; }
.hero-meta-item{ max-width: 32%; }
.hero-meta-item svg { width: 40px; height: 40px; color: var(--color-red); flex-shrink: 0; }

/* ---------- Problem / agitation ---------- */
.problem-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 993px) { .problem-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.problem-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.problem-card-media { width: 100%; height: 250px; }
.problem-card-media img { width: 100%; height: 100%; object-fit: cover; }
.problem-card-body { padding: clamp(1.75rem, 3vw, 2.5rem); }
.problem-card .stat { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--color-red); line-height: 1; }
.problem-card .stat span { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1rem, 5vw, 2rem); color: var(--color-red); line-height: 1; }
.problem-card .stat-label { font-weight: 600; color: var(--color-ink); margin-top: 0.5rem; }
.problem-card p { margin-top: 1.25rem; color: var(--color-text-muted); }
.callout {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-red);
}

/* ---------- Value pillars (Our goal is for you to Thrive) ---------- */
.pillars-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pillar-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,20,36,0.08);
  color: var(--color-red);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: 0.65rem; }
.pillar-card p { color: var(--color-text-muted); }
.tool-note {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.tool-note svg { width: 24px; height: 24px; color: var(--color-red); flex-shrink: 0; margin-top: 2px; }
.tool-note p { color: var(--color-text); font-weight: 500; font-size: 1.4rem; }
.section-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.section-cta.center { justify-content: center; }
.icon-sprite { display: none; }

/* ---------- What you gain (tangible/intangible) ---------- */
.gain-grid { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .gain-grid { grid-template-columns: 1fr 1fr; } }
.gain-card { background: var(--color-navy); color: #fff; border-radius: var(--radius-lg); padding: 2.25rem; }
.gain-card.alt { background: var(--color-red); }
.gain-card h3 { color: #fff; display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.5rem; }
.gain-card h3 svg { width: 24px; height: 24px; }
.gain-card ul { display: flex; flex-direction: column; gap: 1rem; }
.gain-card li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1.02rem; color: rgba(255,255,255,0.92); }
.gain-card li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #fff; }
.gain-summary { margin-top: 2.25rem; text-align: center; max-width: 700px; margin-inline: auto; }
.gain-summary p { font-size: 1.1rem; font-weight: 600; color: var(--color-ink); }

/* ---------- Methodology ---------- */
.method-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1200px) { .method-grid { grid-template-columns: 1fr 500px !important; } }
@media (min-width: 993px) { .method-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.method-photo { display: none; }
@media (min-width: 993px) {
  .method-photo {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    height: 100%;
  }
}
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
.method-list { display: flex; flex-direction: column; gap: 1.5rem; }
.method-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}
.method-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-red);
  background: rgba(212,20,36,0.08);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.method-item h3 { margin-bottom: 0.6rem; }
.method-item p { color: var(--color-text-muted); margin-bottom: 1rem; }

/* ---------- Use cases / results ---------- */
.results-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  aspect-ratio: 21 / 8;
  background-image: url('/wp-content/uploads/2026/09/trackrecord.jpg');
  background-size: cover;
  background-position: center 55%;
}
.cases-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 4px solid var(--color-red);
}
#training .case-card { background: #fff; }
.case-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.85rem;
}
.case-card p { color: var(--color-text); }
.case-result {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  background: #fff;
  padding: 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
}
.case-result svg { width: 18px; height: 18px; color: var(--color-red); }

.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.cert-row img { height: 92px; width: auto; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 840px; margin-inline: auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
  padding: 1.35rem 1.5rem;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-red); transition: transform var(--dur-fast) var(--ease-out); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); padding: 0 1.5rem; }
.faq-a p { color: var(--color-text-muted); padding-bottom: 1.35rem; }
.faq-item.is-open .faq-a { max-height: 300px; }

/* ---------- Jeff section ---------- */
.jeff-grid { display: grid; gap: 2.5rem; align-items: start; }
.jeff-grid-center { align-items: center; }
@media (min-width: 993px) { 
    .jeff-grid { 
        grid-template-columns: 0.85fr 1.15fr; 
        gap: 4rem; 
    } 
    .jeff-copy { 
        text-align: left !important; 
    } 
    .jeff-copy .section-cta{ 
        justify-content: flex-start !important; 
    }
}
.jeff-avatar-wrap { display: flex; justify-content: center; }
@media (min-width: 993px) { .jeff-avatar-wrap { min-width: 360px; } }
.jeff-avatar {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.jeff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jeff-copy .role { font-family: var(--font-heading); font-weight: 600; color: var(--color-red); margin-bottom: 0.5rem; display: block; font-size: 1.05rem; }
.jeff-copy { text-align: center; }
.jeff-copy p { color: var(--color-text); }
.jeff-copy .section-cta{ justify-content: center; }
.jeff-sign { margin-top: 1.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); font-style: italic; font-size: 1.1rem; }

/* ---------- Beyond FSO ---------- */
.beyond-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .beyond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .beyond-grid { grid-template-columns: repeat(4, 1fr); } }
.beyond-card {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.beyond-card svg { width: 30px; height: 30px; color: #fff; }
.beyond-card h3 { color: #fff; font-size: 1.1rem; }
.beyond-card p { color: rgba(255,255,255,0.78); font-size: 1rem; }

/* ---------- Why Thrive ---------- */
.why-grid { display: grid; gap: 2.5rem; }
@media (min-width: 993px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.why-grid h3 { margin-top: 2rem; }
.who-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); height: 100%; min-height: 260px; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; }
.who-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.who-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.who-list svg { width: 20px; height: 20px; color: var(--color-red); flex-shrink: 0; }
.who-list + p { margin-top: 1.5rem; }

/* ---------- Checklist as boxed cards (e.g. "What We Cover") ---------- */
.cover-grid { display: grid; gap: 1.25rem; margin-top: 0.75rem; }
@media (min-width: 768px) { .cover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cover-grid { grid-template-columns: repeat(3, 1fr); } }
.cover-grid + p { margin-top: 1.5rem; }
.cover-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-red);
  padding: 1.5rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
#covers .cover-card { background: #fff; }
.container-narrow { max-width: 760px; }

/* ---------- Resource channels (YouTube / Podcast) ---------- */
.channel-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
.channel-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
}
.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212,20,36,0.1);
  color: var(--color-red);
  margin-bottom: 1.1rem;
}
.channel-card h3 { margin-bottom: 0.6rem; }
.channel-card p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.channel-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pill-link {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pill-link:hover { background: var(--color-red); color: #fff; }

/* ---------- Newsletter banner (inline, mirrors popup card) ---------- */
.newsletter-modal.newsletter-inline { max-width: 900px; margin-inline: auto; transform: none; }
@media (min-width: 700px) {
  .newsletter-inline { display: flex; align-items: stretch; }
  .newsletter-inline .newsletter-media {
    flex: 0 0 260px;
    height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }
  .newsletter-inline .newsletter-media img { height: 84px; }
  .newsletter-inline .newsletter-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 3vw, 3rem); }
}

/* ---------- Blog carousel ---------- */
.blog-carousel { position: relative; margin-top: 2.5rem; }
.blog-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-track::-webkit-scrollbar { display: none; }
.blog-track .blog-card { flex: 0 0 calc((100% - 4rem) / 3); scroll-snap-align: start; }
@media (max-width: 992px) { .blog-track .blog-card { flex-basis: calc((100% - 2rem) / 2); } }
@media (max-width: 767px) { .blog-track .blog-card { flex-basis: 82%; } }
.blog-card-media { position: relative; }
.blog-date-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: var(--color-navy-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  color: var(--color-ink);
  z-index: 3;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.carousel-arrow:hover { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
@media (max-width: 992px) { .carousel-arrow { display: none; } }
.container-narrow-inner { max-width: none; margin-top: 2.5rem; }

/* ---------- Generic two-column content block (internal pages) ---------- */
.two-col-list { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 768px) { .two-col-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 992px){ .two-col-list{ margin-top: 3rem; }
}
.two-col-list h3 { margin-bottom: 0.25rem; }

/* ---------- Blog grid (Resources page) ---------- */
.blog-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.blog-card-media { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-alt); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.75rem;
}
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.blog-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; flex: 1; }
.blog-card .btn-ghost { align-self: flex-start; }

/* ---------- Media row (image + content pairing, internal pages) ---------- */
.media-row { display: grid; gap: 2.5rem; align-items: center; margin-top: 2.5rem; }
@media (min-width: 993px) { .media-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 993px) { .media-row.reverse > *:first-child { order: 2; } }
.media-row img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.media-row .photo-frame { position: relative; height: 100%; min-height: 260px; border-radius: var(--radius-lg); overflow: hidden; }
.media-row .photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.media-row .video-embed { align-self: start; }
.video-embed { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-ink); }
.video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-embed .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.video-embed .play-btn svg { margin-left: 4px; }
.video-embed:hover .play-btn { background: var(--color-red-dark); transform: translate(-50%, -50%) scale(1.08); }
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-image: repeating-linear-gradient(45deg, var(--color-bg-alt), var(--color-bg-alt) 12px, #e4e9f0 12px, #e4e9f0 24px);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.media-row-note { margin-top: 2.5rem; }
.slogan-block { margin-top: 1.75rem; }
.slogan-block strong { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-ink); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--color-red) 0%, #ad1420 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.final-cta h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.final-cta .lede { color: rgba(255,255,255,0.9); max-width: 620px; margin-inline: auto; margin-bottom: 2rem; }
.final-cta .btn-primary { background: #fff; color: var(--color-red); box-shadow: none; }
.final-cta .btn-primary:hover { background: var(--color-navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-dark); color: #dbe6f0; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { max-width: 320px; color: #b7c9db; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  position: relative;
  display: inline-block;
  color: #c3d3e3;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--dur-med) var(--ease-out);
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { width: 100%; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; color: #c3d3e3; margin-bottom: 0.9rem; }
.footer-contact svg { width: 19px; height: 19px; color: var(--color-red); flex-shrink: 0; margin-top: 2px; }
.social-row { display: flex; gap: 0.65rem; margin-top: 0; flex-wrap: wrap; }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.social-row svg { width: 18px; height: 18px; color: #fff; }
.social-row a:hover { background: var(--color-red); border-color: var(--color-red); }
.social-row a::after { content: none; }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.15); margin: 1.5rem 0; }

.footer-assoc {
  padding-block: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-assoc-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93aac0;
  margin-bottom: 1.5rem;
}
.footer-assoc-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
}
@media (min-width: 700px) { .footer-assoc-row { grid-template-columns: repeat(4, 1fr); } }
.assoc-item { display: flex; align-items: center; }
.assoc-logo { width: 140px; height: auto; max-width: 100%; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  font-size: 0.8rem;
  color: #93aac0;
}
.footer-bottom a {
  position: relative;
  display: inline-block;
  color: #b7c9db;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-bottom a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--dur-med) var(--ease-out);
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom a:hover::after { width: 100%; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.footer-legal .sep { color: #5f7996; }
.best-link { font-weight: 600; }

/* ---------- Newsletter modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,15,28,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.newsletter-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-med) var(--ease-out);
}
.modal-overlay.is-open .newsletter-modal { transform: translateY(0) scale(1); }
.newsletter-media {
  height: 130px;
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-red) 100%);
  display: flex; align-items: center; padding: 0 2rem;
}
.newsletter-media img { height: 40px; width: auto; }
.newsletter-body { padding: 2rem; }
.newsletter-body h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.newsletter-body p { color: var(--color-text-muted); margin-bottom: 0.6rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.85rem; }
.field-label { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--color-ink); }
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
}
.newsletter-form input[type="email"]:focus { border-color: var(--color-red); }
.newsletter-form .btn { width: 100%; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 993px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.contact-grid .section-head { max-width: none; margin-bottom: 0; }
.contact-grid .contact-form { margin-top: 2.5rem; }
@media (min-width: 993px) { .contact-grid .contact-form { margin-top: 0; } }
.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
  margin-top: 2.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 600px) { .contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-red); }
.contact-form .btn { justify-self: start; }
.form{
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.newsletter-fineprint { font-size: 1rem; color: var(--color-text-muted); margin-top: 0.9rem; }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.modal-close svg { width: 18px; height: 18px; color: var(--color-ink); }

/* ---------- Gravity Forms Overrides (Matching TAG Design) ---------- */

/* 1. Main form wrapper container */
.gform_wrapper.gform-theme--orbital {
  font-family: var(--font-body);
}

/* 2. Grid layout and fields spacing */
.gform_wrapper.gform-theme--orbital .gform_fields {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gform_wrapper.gform-theme--orbital .gform_fields {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Force Name and Email fields to take half width and sit side by side */
  .gform_wrapper.gform-theme--orbital .gfield.gfield--width-half {
    grid-column: span 1;
  }

  /* Force 'What can we help you with?' textarea to span full width */
  .gform_wrapper.gform-theme--orbital .gfield--width-full,
  .gform_wrapper.gform-theme--orbital .gfield--type-textarea {
    grid-column: 1 / -1;
  }
}

/* 3. Field labels */
.gform_wrapper.gform-theme--orbital .gfield_label,
.gform_wrapper.gform-theme--orbital .gform-field-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
  display: block;
}

/* Hide the "(Required)" validation text for a cleaner design */
.gform_wrapper.gform-theme--orbital .gfield_required {
  display: none;
}

/* 4. Text inputs and textareas */
.gform_wrapper.gform-theme--orbital input:not([type="submit"]):not([type="radio"]):not([type="checkbox"]),
.gform_wrapper.gform-theme--orbital textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-text);
  box-sizing: border-box; 
  height: 51px;
}

/* Specific adjustments for the textarea */
.gform_wrapper.gform-theme--orbital textarea {
  resize: vertical;
  height: 140px;
}

/* Focus state */
.gform_wrapper.gform-theme--orbital input:not([type="submit"]):focus,
.gform_wrapper.gform-theme--orbital textarea:focus {
  border-color: var(--color-red);
  outline: none; /* Reset native outline to use custom red border */
}

/* 5. Submit button (Matching .btn-primary) */
.gform_wrapper.gform-theme--orbital .gform_footer {
  margin-top: 1.5rem;
  padding: 0;
  justify-content: flex-start; /* Align to the left */
  grid-column: 1 / -1; /* Ensure footer spans full width of the grid */
}

.gform_wrapper.gform-theme--orbital .gform_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.9rem 1.6rem !important;
  border-radius: var(--radius-sm) !important;
  border: 2px solid transparent !important;
  background: var(--color-red) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(212,20,36,0.28) !important;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.gform_wrapper.gform-theme--orbital .gform_button:hover {
  background: var(--color-red-dark) !important;
  box-shadow: 0 8px 20px rgba(212,20,36,0.34) !important;
  transform: translateY(-2px) !important;
}

.gform_wrapper.gform-theme--orbital .gform_button:active {
  transform: translateY(0) !important;
}

/* ---------- Placeholder Styling ---------- */

/* Standard browsers */
.gform_wrapper.gform-theme--orbital input::placeholder,
.gform_wrapper.gform-theme--orbital textarea::placeholder {
  font-size: 1rem !important; 
}

/* Microsoft Edge / Internet Explorer fallback */
.gform_wrapper.gform-theme--orbital input:-ms-input-placeholder,
.gform_wrapper.gform-theme--orbital textarea:-ms-input-placeholder {
  font-size: 1rem !important;
}

/* Mozilla Firefox fallback */
.gform_wrapper.gform-theme--orbital input::-moz-placeholder,
.gform_wrapper.gform-theme--orbital textarea::-moz-placeholder {
  font-size: 1rem !important;
}

/* ---------- Gravity Forms Submit Button Arrow Icon ---------- */

/* Inject the arrow using a pseudo-element after the button text */
.form .gform_wrapper.gform-theme--orbital .gform_button::after {
  content: '' !important;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 0.25rem;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--dur-fast) var(--ease-out);
}

/* ---------- Newsletter Form Custom Styles (Matching TAG Design) ---------- */

/* 1. Make the submit button span full width for the newsletter layout */
#gform_wrapper_1 .gform_footer {
  margin-top: 1.5rem;
  padding: 0;
}

#gform_wrapper_1 .gform_button {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.9rem 1.6rem !important;
  border-radius: var(--radius-sm) !important;
  border: 2px solid transparent !important;
  background: var(--color-red) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(212,20,36,0.28) !important;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out) !important;
  cursor: pointer !important;
}

/* 2. Button hover effects */
#gform_wrapper_1 .gform_button:hover {
  background: var(--color-red-dark) !important;
  box-shadow: 0 8px 20px rgba(212,20,36,0.34) !important;
  transform: translateY(-2px) !important;
}

#gform_wrapper_1 .gform_button:active {
  transform: translateY(0) !important;
}

/* ==========================================================================
   Single Post Template Styles (Thrive Analysis Group)
   ========================================================================== */

/* ---------- Post Header ---------- */
.single-post .post-hero {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.single-post .post-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.single-post .meta-divider {
  color: var(--color-border);
}

/* ---------- Featured Image ---------- */
.post-image-wrapper {
  padding-top: clamp(4rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.post-featured-image {
  width: auto;
  height: auto;
  max-height: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--color-border);
}

/* ---------- Post Content ---------- */
.post-content {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--color-text-muted);
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Links */
.post-content a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

.post-content a:hover {
  color: var(--color-red-dark);
  text-decoration-color: var(--color-red-dark);
}

/* Lists */
.post-content ul, 
.post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.post-content ul li, 
.post-content ol li {
  margin-bottom: 0.5rem;
}

.post-content ul li {
  list-style-type: none;
  position: relative;
}

.post-content ul li::before {
  content: '•';
  color: var(--color-red);
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  left: -1.25rem;
  top: -4px;
}

/* Blockquotes */
.post-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.15rem;
  box-shadow: var(--shadow-card);
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* In-Article Images */
.post-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  max-width: 100%;
  height: auto;
}

/* WordPress Core Alignment Classes */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-navigation{
    display: flex; 
    justify-content: space-between; 
    padding: 5rem 0;
    gap: 2rem;
}

/* Base styles for the labels (Previous / Next) */
.post-navigation .nav-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-red);
}

/* Ensure equal width for desktop */
.nav-previous, 
.nav-next {
    flex: 1;
}

/* Align the 'Next' block to the right on desktop */
.nav-next {
    text-align: right;
}

.post-navigation a{
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--color-text-muted);
}

/* --- Mobile Layout --- */
@media (max-width: 767px) {
  .post-featured-image {
    max-height: 300px;
  }
  .post-navigation {
    flex-direction: column; /* Stacks them vertically */
    gap: 1.5rem;
  }
  
  .nav-next {
    text-align: left; /* Changes 'Next' to left-aligned for a cleaner mobile look */
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border); /* Adds a subtle divider between the stacked links */
  }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 980px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(11,37,69,0.22);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  z-index: 150;
  transform: translateY(140%);
  transition: transform var(--dur-med) var(--ease-out);
}
.cookie-banner.is-open { transform: translateY(0); }
.cookie-banner p { flex: 1 1 320px; font-size: 1rem; color: var(--color-text-muted); }
.cookie-banner a { color: var(--color-navy); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.7rem 1.25rem; }

/* ---------- Legal pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.legal-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.legal-hero p { color: rgba(255,255,255,0.78); }
.legal-body { max-width: 760px; margin-inline: auto; }
.legal-body h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; font-size: 1.4rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--color-text); margin-bottom: 0.9rem; }
.legal-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-body ul li { margin-bottom: 0.5rem; }
.legal-updated { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 2rem; display: inline-block; }
.legal-toc { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.legal-toc h2 { margin-top: 0 !important; font-size: 1.1rem; }
.legal-toc ol { padding-left: 1.3rem; margin: 0; }
.legal-toc li { margin-bottom: 0.5rem; }
.legal-toc a { color: var(--color-navy); font-weight: 600; }
.legal-toc a:hover { color: var(--color-red); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
