/* ==========================================================================
   Components (components.css)
   ==========================================================================
   Reusable UI patterns + page-specific styles.
   Uses variables from settings.css.
   ========================================================================== */

/* ------------------------------------------------------------------
   Container / Layout
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ------------------------------------------------------------------
   Section
   ------------------------------------------------------------------ */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

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

.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary p {
  color: var(--color-white);
}

/* Section variants (legacy class names used in templates) */
.section-white {
  background: var(--color-bg);
  padding: 4rem 0;
}

.section-light {
  background: var(--color-bg-alt);
  padding: 4rem 0;
}

.section-gradient {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0;
}

.section-gradient h2 {
  color: var(--color-white);
}

.section-gradient p {
  color: var(--color-white);
}

.section-supporting {
  background: var(--color-bg-alt);
  padding: var(--space-section) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  max-width: 750px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: linear-gradient(to bottom, #4D97D1, #3879B6);
  color: var(--color-white);
  border-color: #3879B6;
}

.btn--primary:hover,
.btn--primary:focus {
  background: linear-gradient(to bottom, #3879B6, #2d65a0);
  border-color: #2d65a0;
  color: var(--color-white);
  text-decoration: none;
}

.btn--secondary {
  background-color: transparent;
  color: #3879B6;
  border-color: #3879B6;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: rgba(56, 121, 182, 0.08);
  color: #2d65a0;
  border-color: #2d65a0;
  text-decoration: none;
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--white:hover,
.btn--white:focus {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  text-decoration: none;
}

.btn--sm {
  font-size: var(--text-small);
  padding: var(--space-xs) var(--space-lg);
}

.btn--lg {
  font-size: var(--text-body);
  padding: var(--space-md) var(--space-2xl);
}

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}

.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  align-self: center;
  text-decoration: none;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 0 var(--space-xs);
}

.nav-login {
  font-size: var(--text-small) !important;
  font-weight: var(--weight-medium) !important;
  letter-spacing: 0.5px;
  color: var(--color-text) !important;
}

.nav-login::after {
  display: none !important;
}

.nav-cta-btn {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: var(--weight-semibold) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px;
}

.nav-cta-btn::after {
  display: none !important;
}

.nav-cta-btn:hover {
  background-color: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-sm);
}

/* ------------------------------------------------------------------
   Hero (static)
   ------------------------------------------------------------------ */
.hero-section {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 5.5rem 0;
  text-align: center;
}

.hero-section--compact {
  padding: 2.5rem 0 2rem;
}

.hero-section--sm {
  padding: 3rem 0;
  text-align: center;
}

.hero-section--sm p {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.category-tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.category-tab,
.category-tab:link,
.category-tab:visited,
.category-tab:active {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 2rem;
  color: var(--color-white);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.category-tab:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-section--bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Brand teal placeholder — avoids a black flash before the bg image paints */
  background-color: var(--color-primary-dark);
  position: relative;
}

.hero-section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}

.hero-section--bg .container {
  position: relative;
  z-index: 1;
}


.hero-section h1 {
  color: var(--color-white);
  font-size: var(--text-h1);
  margin-bottom: var(--space-lg);
}

.hero-section p {
  font-size: var(--text-h4);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  color: var(--color-white);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero with background image */
.hero--bg-image {
  background-size: cover;
  background-position: center center;
  position: relative;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 121, 182, 0.40);
}

/* ------------------------------------------------------------------
   Hero Carousel
   ------------------------------------------------------------------ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 121, 182, 0.40);
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 480px;
  padding-bottom: 48px;
  text-align: center;
  color: var(--color-white);
}

.carousel-content h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.carousel-content p {
  font-size: var(--text-lg);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
  font-weight: var(--weight-regular);
  color: var(--color-white);
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-white);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-cta-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero-cta-btn {
  padding: var(--space-sm) var(--space-xl);
  text-align: center;
  color: var(--color-white);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  background: rgba(56, 121, 182, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  transition: background var(--transition-fast);
  text-decoration: none;
}

.hero-cta-btn:hover {
  background: rgba(77, 151, 209, 0.75);
  color: var(--color-white);
  text-decoration: none;
}

/* ------------------------------------------------------------------
   Value Proposition Bar
   ------------------------------------------------------------------ */
.value-bar {
  background-color: var(--color-primary);
  padding: var(--space-xl) 0;
}

.value-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.value-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 21px;
  font-weight: var(--weight-semibold);
}

/* ------------------------------------------------------------------
   Steps (3-step booking flow)
   ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.step {
  padding: var(--space-lg);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-h4);
  margin-bottom: var(--space-md);
}

.step__title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.step__text {
  color: var(--color-text-light);
  font-size: var(--text-small);
}

/* ------------------------------------------------------------------
   Service Cards
   ------------------------------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border-top: 3px solid var(--color-primary);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-h4);
}

.service-card p {
  color: var(--color-text-light);
  font-size: var(--text-small);
  margin-bottom: var(--space-lg);
}

.service-card.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card.has-image h3,
.service-card.has-image p {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.service-card.has-image p {
  padding-bottom: var(--space-xl);
}

.service-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Source images have rounded corners + padding baked in. Scale up so
     those edges crop outside the container and the photo fills it. */
  transform: scale(1.08);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card-img img {
  transform: scale(1.13);
}

/* ------------------------------------------------------------------
   Split Section (two-column layout)
   ------------------------------------------------------------------ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-text h2 {
  margin-bottom: var(--space-md);
}

.split-text p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------------
   Conditions List
   ------------------------------------------------------------------ */
.conditions-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.condition-item {
  padding: var(--space-sm) var(--space-md);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  font-size: var(--text-body);
}

.conditions-list .condition-item {
  text-align: left;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.condition-item a {
  color: var(--color-primary-dark);
  font-weight: var(--weight-semibold);
}

/* Breathing room between the conditions list and the CTA below it. */
.split-text .conditions-list + .btn {
  margin-top: var(--space-xl);
}

/* ------------------------------------------------------------------
   As Featured In / Media Logos
   ------------------------------------------------------------------ */
.featured-in {
  padding: var(--space-3xl) 0;
}

.featured-in-title {
  font-size: var(--text-h4);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.media-logos img {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.media-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ------------------------------------------------------------------
   Therapist Cards
   ------------------------------------------------------------------ */
.therapist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.therapist-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.therapist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.therapist-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
}

.therapist-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}

.therapist-card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.therapist-card .designation {
  color: var(--color-primary-dark);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-sm);
  font-size: var(--text-small);
}

.therapist-card .meta {
  font-size: var(--text-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.therapist-card .bio {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  font-size: var(--text-small);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-primary-light);
  color: var(--color-text);
  border-radius: 20px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  margin: 0.15rem;
}

.badge--more {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

/* ------------------------------------------------------------------
   Info Cards
   ------------------------------------------------------------------ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.info-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.info-card h3 {
  margin-bottom: var(--space-sm);
}

.info-card p {
  color: var(--color-text-light);
}

/* ------------------------------------------------------------------
   Modality Cards (how-it-works)
   ------------------------------------------------------------------ */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  max-width: 800px;
  margin-inline: auto;
}
/* If the last card is an orphan (odd total), span both columns and center it
   so it lines up under the gap between the two cards above. */
.modality-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - var(--space-xl) / 2);
  margin-inline: auto;
}

.modality-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 3px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.modality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.modality-card .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.modality-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.modality-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
}

.modality-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ------------------------------------------------------------------
   Issues Columns
   ------------------------------------------------------------------ */
.issues-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.issues-columns ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.issues-columns li {
  padding: var(--space-xs) 0;
  font-size: var(--text-body);
  color: var(--color-text);
}

/* ------------------------------------------------------------------
   Help Panels
   ------------------------------------------------------------------ */
.help-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.help-panel-text h3 {
  margin-bottom: var(--space-md);
}

.help-panel-text p {
  color: var(--color-text-light);
  line-height: 1.7;
}

.help-panel-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------------
   Blog Cards
   ------------------------------------------------------------------ */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card h3 {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body);
  line-height: 1.4;
}

.blog-card .btn {
  margin: 0 var(--space-lg) var(--space-lg);
}

/* ------------------------------------------------------------------
   Blog Article (full post page)
   ------------------------------------------------------------------ */
.blog-article {
  padding: var(--space-3xl) 0;
}

.blog-article__back {
  display: inline-block;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
}

.blog-article__back:hover {
  color: var(--color-primary-dark);
}

.blog-article__header {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
}

.blog-article__header h1 {
  margin-bottom: var(--space-md);
}

.blog-article__meta {
  display: flex;
  gap: var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-xl);
}

.blog-article__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blog-article__hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog — Two-Column Layout (article + sidebar) */
.blog-article__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.blog-article__main {
  min-width: 0;
}

.blog-article__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .blog-article__layout {
    grid-template-columns: 1fr;
  }
  .blog-article__sidebar {
    position: static;
    order: -1;
  }
}

/* Blog — Table of Contents (sidebar) */
.blog-toc {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.blog-toc__title {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.blog-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc__item {
  margin-bottom: var(--space-xs);
}

.blog-toc__item--nested {
  padding-left: var(--space-lg);
}

.blog-toc__item a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: var(--text-small);
  line-height: var(--leading-normal);
  transition: color var(--transition-fast);
}

.blog-toc__item a:hover {
  color: var(--color-primary);
}

/* Blog — Sidebar Related Articles */
.blog-sidebar-related {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.blog-sidebar-related__title {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.blog-sidebar-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.blog-sidebar-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

.blog-sidebar-card:hover {
  opacity: 0.8;
}

.blog-sidebar-card__img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.blog-sidebar-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.blog-sidebar-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

.blog-sidebar-card__meta {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* Blog — Article Body */
.blog-article__body {
  line-height: 1.8;
  color: var(--color-text);
}

.blog-article__body h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  scroll-margin-top: calc(var(--nav-height) + var(--space-md));
}

.blog-article__body h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--text-h4);
  scroll-margin-top: calc(var(--nav-height) + var(--space-md));
}

.blog-article__body p {
  margin-bottom: var(--space-md);
}

.blog-article__body ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.blog-article__body li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.blog-article__cta {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-article__cta p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ------------------------------------------------------------------
   Blog Hero Banner
   ------------------------------------------------------------------ */
.blog-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 121, 182, 0.55);
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100%;
  max-width: var(--max-width);
  padding: var(--space-xl) var(--space-lg);
  margin: 0 auto;
}

.blog-hero__content h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin: 0;
}

/* ------------------------------------------------------------------
   Blog Index Grid
   ------------------------------------------------------------------ */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-index-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.blog-index-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-index-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-index-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-index-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  opacity: 0.12;
}

.blog-index-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-index-card__date {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.blog-index-card__body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-index-card__body h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-index-card__body h3 a:hover {
  color: var(--color-primary);
}

.blog-index-card__body p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.blog-index-card__body .btn {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .blog-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-index-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   FAQ / Accordion
   ------------------------------------------------------------------ */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-item summary {
  padding: var(--space-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.accordion-item summary:hover {
  background: var(--color-bg-alt);
}

.accordion-item summary::after {
  content: '+';
  font-size: var(--text-h4);
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

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

.accordion-item .answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Value Grid
   ------------------------------------------------------------------ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

/* ------------------------------------------------------------------
   Values Grid (about page)
   ------------------------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-item {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.value-item.has-image {
  text-align: left;
}

.value-item-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto var(--space-md);
  display: block;
  border-radius: var(--radius-md);
}

.value-item .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.value-item p {
  color: var(--color-text-light);
  font-size: var(--text-small);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Serve Grid (about page)
   ------------------------------------------------------------------ */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.serve-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.serve-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.serve-card h3 {
  margin-bottom: var(--space-sm);
}

.serve-card p {
  color: var(--color-text-light);
  font-size: var(--text-small);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ------------------------------------------------------------------
   Pathways (care-pathways page)
   ------------------------------------------------------------------ */
.pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pathway-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border-top: 3px solid var(--color-primary);
}

.pathway-card.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pathway-card.has-image h3,
.pathway-card.has-image p {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.pathway-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.pathway-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pathway-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.pathway-card h3 {
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.pathway-card p {
  color: var(--color-text-light);
  font-size: var(--text-small);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.pathway-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-xl) var(--space-xl);
}

/* ------------------------------------------------------------------
   Pathway Detail Page (/pathway-<slug>)
   ------------------------------------------------------------------ */
.pathway-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.pathway-benefits__chip {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--text-small);
  border-radius: 6px;
}

.pathway-about {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.pathway-about__item h4 {
  text-transform: uppercase;
  font-size: var(--text-small);
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.pathway-about__item p {
  margin: 0;
  font-size: var(--text-base);
}

.pathway-phases {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.pathway-phase {
  padding: var(--space-xl);
  background: var(--color-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
}

.pathway-phase h3 {
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.5px;
}

.pathway-therapist {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.pathway-therapist__quote p {
  font-size: var(--text-lg);
  line-height: 1.6;
}

.pathway-therapist__attribution {
  font-style: italic;
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

.pathway-therapist__card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pathway-therapist__img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}

.pathway-therapist__creds {
  color: var(--color-muted);
  font-size: var(--text-small);
  margin: 0;
}

.pathway-subassessments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pathway-resources {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-xl);
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}

.pathway-resources__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.pathway-resources__item a {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

@media (max-width: 768px) {
  .pathway-benefits,
  .pathway-about,
  .pathway-subassessments {
    grid-template-columns: 1fr 1fr;
  }
  .pathway-therapist,
  .pathway-resources {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Assessment Links
   ------------------------------------------------------------------ */
.assessment-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.assessment-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
  letter-spacing: 0.5px;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.assessment-link:hover {
  border-color: var(--color-primary);
  background: rgba(77, 151, 209, 0.1);
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* ------------------------------------------------------------------
   Assessment Cards (assessments page)
   ------------------------------------------------------------------ */
.assessments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.assessment-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.assessment-card.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assessment-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.assessment-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assessment-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.assessment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.assessment-header h3 {
  font-size: var(--text-h4);
}

.assessment-price {
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
  color: var(--color-text);
}

.assessment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.assessment-footer .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stack price + button vertically below 1024px. The 769-1024 range keeps the
   2-col assessments-grid, so each card is narrow enough that the horizontal
   footer overflows; 481-768 is single-column but stacking stays visually
   consistent with the mobile experience. */
@media (max-width: 1024px) {
  .assessment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

.assessment-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.assessment-reasons {
  margin-bottom: var(--space-lg);
}

.assessment-reasons strong {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-small);
}

.assessment-reasons ul {
  list-style: none;
  padding: 0;
}

.assessment-reasons li {
  padding: var(--space-xs) 0;
  font-size: var(--text-small);
  color: var(--color-text-light);
  padding-left: 1.2rem;
  position: relative;
}

.assessment-reasons li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}

/* ------------------------------------------------------------------
   Questionnaire (get-started page)
   ------------------------------------------------------------------ */
.questionnaire-container {
  max-width: 700px;
  margin: 0 auto;
}

/* Once we hit the results step, give the 3-card grid more breathing room */
.questionnaire-container:has(.step-container[data-step="results"].active) {
  max-width: 1200px;
}

.step-container[data-step="results"] {
  max-width: var(--max-width);
  margin: 0 auto;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.progress-step.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.progress-step.completed {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.step-container {
  display: none;
}

.step-container.active {
  display: block;
}

.step-container h3 {
  margin-bottom: var(--space-lg);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.option-btn {
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
  text-align: center;
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
}

.option-btn:hover {
  border-color: var(--color-primary);
}

.option-btn.selected {
  border-color: var(--color-primary);
  background: rgba(77, 151, 209, 0.1);
  color: var(--color-primary-dark);
}

.option-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

.max-hint {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* ------------------------------------------------------------------
   Matching Session CTA (above filters on therapist directory)
   ------------------------------------------------------------------ */
.match-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}

.match-cta p {
  margin: 0;
  flex: 1;
}

.match-cta .btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .match-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------
   Filter Field (labeled dropdown — therapist directory)
   ------------------------------------------------------------------ */
.filter-bar.filter-bar--labeled {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: end;
}

@media (max-width: 1024px) {
  .filter-bar.filter-bar--labeled {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-bar.filter-bar--labeled {
    grid-template-columns: 1fr;
  }
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-field__label {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.filter-field select {
  width: 100%;
}

.filter-reset {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--space-md);
}

/* ------------------------------------------------------------------
   Filter Bar (therapist directory — legacy unlabeled)
   ------------------------------------------------------------------ */
.filter-bar {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.filter-bar select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  min-width: 160px;
}

.filter-bar select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.no-results {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-text-light);
}

.no-results h3 {
  margin-bottom: var(--space-md);
}

/* Results section in get-started */
.results-section {
  margin-top: var(--space-xl);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.results-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow var(--transition-base);
}

.results-card:hover {
  box-shadow: var(--shadow-lg);
}

.results-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}

.results-card__photo--placeholder {
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
}

.results-card__name {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.results-card__designation {
  color: var(--color-primary-dark);
  font-weight: var(--weight-medium);
  font-size: var(--text-small);
  margin-bottom: var(--space-xs);
}

.results-card__meta {
  font-size: var(--text-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.results-card__bio {
  font-size: var(--text-small);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

.results-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.results-card__see-more {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: var(--text-small);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  font-weight: var(--weight-medium);
}

.results-card__see-more:hover {
  text-decoration: underline;
}

.results-card__book {
  margin-top: auto;
}

/* Care Coordinator Card */
.care-coordinator-card {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-primary);
}

.care-coordinator-card__photo {
  flex-shrink: 0;
}

.care-coordinator-card__photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.care-coordinator-card__body h4 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.care-coordinator-card__name {
  color: var(--color-primary-dark);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.care-coordinator-card__body p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  font-size: var(--text-small);
  line-height: var(--leading-normal);
}

@media (max-width: 600px) {
  .care-coordinator-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Stands in for the results grid when nothing matches — sits where the
   therapist cards would be, so it needs the grid's margin-top, not the
   larger one .care-coordinator-card normally uses when trailing content. */
.care-coordinator-card--results {
  margin-top: var(--space-lg);
}

/* ------------------------------------------------------------------
   Location Cards
   ------------------------------------------------------------------ */
.location-province {
  margin-bottom: var(--space-3xl);
}

.location-province h3 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

.location-city {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.location-city:first-of-type {
  margin-top: var(--space-md);
}

.location-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.location-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(33.333% - var(--space-md));
  position: relative;
}

.location-card-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-md);
}

/* Vaughan uses the wide WELL Health co-brand lockup (wordmark + subtitle
   side by side rather than stacked); give it extra width so the subtitle
   stays legible in the narrow 3-up card. */
.location-card-logo[src*="location-vaughan"] {
  max-width: 260px;
}

.location-card h4 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-body);
  font-weight: 700;
}

.location-card .address {
  color: var(--color-text-light);
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
  flex: 1;
}

.location-card__map-wrap {
  position: relative;
  margin-bottom: var(--space-md);
}

.location-card__map-cta {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--text-small);
  font-family: inherit;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.location-card__map-cta:hover,
.location-card__map-cta:focus {
  background: var(--color-primary);
  color: var(--color-bg);
  outline: none;
}

.location-card__map-popover {
  position: absolute;
  bottom: calc(100% + var(--space-xs));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  z-index: 10;
  width: 320px;
  max-width: 90vw;
}

.location-card__map-popover[hidden] {
  display: none;
}

.location-card__map-popover-close {
  position: absolute;
  top: calc(var(--space-xs) * -1);
  right: calc(var(--space-xs) * -1);
  width: 24px;
  height: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.location-card__map-link {
  display: block;
  line-height: 0;
}

.location-card__map-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.location-card__address-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.location-card__address-link:hover,
.location-card__address-link:focus {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
  outline: none;
}

.location-card__address-link-icon {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.85em;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .location-card {
    width: 100%;
  }
  /* On mobile, render the popover as a fixed bottom-anchored sheet so it
     can't be clipped by the card's positioning context or section overflow. */
  .location-card__map-popover {
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    width: 92vw;
    max-width: 380px;
    z-index: 100;
  }
}

/* ------------------------------------------------------------------
   How It Works (Locations page)
   ------------------------------------------------------------------ */
.how-it-works-layout {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.how-it-works-image {
  flex: 0 0 40%;
}

.how-it-works-image img {
  width: 100%;
  height: auto;
}

.how-it-works-text {
  flex: 1;
}

.how-it-works-text .section-title {
  text-align: left;
}

@media (max-width: 768px) {
  .how-it-works-layout {
    flex-direction: column;
  }

  .how-it-works-image {
    flex: none;
    width: 80%;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------------
   Crisis Cards
   ------------------------------------------------------------------ */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.crisis-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.crisis-card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-sm);
}

.crisis-card .description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.crisis-card .contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.crisis-card .contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-small);
  min-width: 0;
}

.crisis-card .contact-method .label {
  font-weight: var(--weight-semibold);
  min-width: 60px;
  flex-shrink: 0;
}

.crisis-card .contact-method a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ------------------------------------------------------------------
   For Therapists — Application Form
   ------------------------------------------------------------------ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.benefit-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.benefit-card h3 {
  margin-bottom: var(--space-md);
}

.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
}

.benefit-list li:last-child {
  border-bottom: none;
}

.checklist {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: var(--space-lg) auto;
}

.checklist li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}

.testimonial {
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

.testimonial p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
}

.quote-mark {
  display: inline-block;
  width: 25px;
  height: auto;
}

.quote-mark--top {
  margin-bottom: var(--space-sm);
}

.quote-mark--bottom {
  margin-top: var(--space-sm);
}

.testimonial cite {
  display: block;
  margin-top: var(--space-md);
  font-style: normal;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.section-alt {
  background: var(--color-bg-alt);
  padding: var(--space-section) 0;
}

.application-form {
  margin-top: var(--space-xl);
}

/* Honeypot: off-screen (not just visually clipped) and out of the tab
   order / accessibility tree, so it's invisible to real users and screen
   readers alike but still discoverable by naive form-filling bots. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group .required {
  color: var(--color-error);
}

.form-row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-help {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.form-help a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Checkbox groups — flex-wrap container for multi-select checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-sm) 0;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-base);
  cursor: pointer;
  line-height: 1.4;
  min-width: 0;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.radio-group {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
}

/* Headshot examples */
.headshot-examples {
  display: block;
  max-width: 100%;
  margin: var(--space-sm) auto var(--space-md);
  border-radius: var(--radius-md);
}

/* File inputs */
.form-group input[type="file"] {
  padding: var(--space-sm);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  width: 100%;
}

.form-success {
  background: var(--color-bg-alt);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.form-success h3 {
  color: var(--color-primary);
}

.form-error {
  background: #FFF0F0;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-error p {
  color: var(--color-error);
  margin-bottom: 0;
}

/* Edit return link on success page */
.edit-return-link {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: #e3f2fd;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  text-align: left;
}

.edit-return-link p {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-sm);
}

.edit-return-link__box {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.edit-return-link__input {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: var(--text-sm);
  background: var(--color-white, #fff);
}

/* File preview for edit mode */
.file-preview {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: #e8f5e9;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.file-preview__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.file-preview__link {
  color: var(--color-primary);
  font-weight: 600;
}

.file-preview__label {
  color: var(--color-text-light, #666);
}

/* View mode: read-only application display */
.view-mode-banner {
  background: #e3f2fd;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.view-mode-banner h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.application-view-only {
  opacity: 0.85;
  pointer-events: none;
}

.application-view-only .form-accordion__header {
  pointer-events: auto;
  cursor: pointer;
}

/* Unsaved changes floating indicator */
.unsaved-indicator {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.unsaved-indicator--saved {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

/* CTA bar — positioned via JS as fixed top bar */
.form-cta-bar {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-white, #fff);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-cta-bar--fixed {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 200;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--color-white, #fff);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal__body {
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.modal__body h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.modal__body p {
  margin-bottom: var(--space-sm);
}

.modal__body .modal-link-box {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}

.modal__body .modal-link-input {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: var(--text-sm);
  background: var(--color-bg-alt, #f5f5f5);
}

.modal__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row--three {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #3879B6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-emergency {
  background: #4A4A5A;
  color: var(--color-white);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.6;
}

.footer-emergency p {
  color: var(--color-white);
}

.footer-emergency strong {
  color: var(--color-white);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  flex-shrink: 0;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: var(--text-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: var(--text-body);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--space-sm);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  font-size: var(--text-small);
  flex-wrap: wrap;
}

.footer-copyright-bar .compliance-img {
  height: 35px;
  width: auto;
  opacity: 0.8;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

/* Main content offset for sticky nav */
.main-content {
  min-height: calc(100vh - var(--nav-height) - 200px);
}

/* ------------------------------------------------------------------
   Alert / Warning Banner
   ------------------------------------------------------------------ */
.alert {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.alert--warning {
  background: #FFF8E1;
  border: 1px solid var(--color-warning);
  color: #5D4037;
}

.alert--warning p {
  color: #5D4037;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

/* ------------------------------------------------------------------
   Intake CTA (assessments page)
   ------------------------------------------------------------------ */
.intake-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0;
}
.intake-cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.intake-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-xl);
}

.intake-cta__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-white);
  display: block;
  margin: 0 auto var(--space-sm);
}

.intake-cta__info {
  flex-shrink: 0;
  text-align: center;
  min-width: 140px;
}

.intake-cta__info p {
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.intake-cta__content {
  flex: 1;
}

.intake-cta__content p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .intake-cta {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  .intake-cta__content {
    text-align: center;
  }
  .intake-cta p {
    margin-bottom: var(--space-lg);
  }
}

/* ------------------------------------------------------------------
   Image Utilities
   ------------------------------------------------------------------ */
.img--centered-sm {
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

/* ------------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------------ */
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.text-primary   { color: var(--color-primary); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-white); }
.text-uppercase { text-transform: uppercase; }

.mt-0   { margin-top: 0; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-0   { margin-bottom: 0; }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ------------------------------------------------------------------
   Responsive — Tablet (768px)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    grid-template-columns: 1fr auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    gap: 0;
    grid-column: unset;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .nav-menu a {
    padding: var(--space-md);
    width: 100%;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-separator {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Hero */
  .hero-section {
    padding: var(--space-3xl) 0;
  }

  .hero-section h1 {
    font-size: var(--text-h2);
  }

  .hero-carousel {
    height: 520px;
  }

  .carousel-content {
    height: 520px;
    padding: 0 var(--space-md);
  }

  .carousel-content h1 {
    font-size: var(--text-h2);
  }

  .hero-cta-bar {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-btn {
    font-size: var(--text-small);
  }

  /* Grids */
  .value-grid,
  .service-grid,
  .service-grid.four-col {
    grid-template-columns: 1fr;
  }

  .therapist-grid {
    grid-template-columns: 1fr;
  }

  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .issues-columns {
    grid-template-columns: 1fr 1fr;
  }

  .help-panel {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .split-image {
    order: -1;
  }

  .split-text .conditions-list + .btn {
    display: block;
    margin-inline: auto;
    width: fit-content;
  }

  .value-bar-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .media-logos {
    gap: var(--space-xl);
  }

  .media-logos img {
    height: 25px;
  }

  .modality-grid,
  .values-grid,
  .pathways-grid,
  .serve-grid {
    grid-template-columns: 1fr;
  }

  .assessment-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .assessments-grid {
    grid-template-columns: 1fr;
  }

  .crisis-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    min-width: 100%;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .container {
    padding: 0 var(--space-md);
  }

  h1 { font-size: var(--text-h2); }
  h2 { font-size: var(--text-h3); }
}

/* ------------------------------------------------------------------
   Responsive — Mobile (480px)
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: var(--text-h3);
  }

  .hero-section p {
    font-size: var(--text-body);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .service-grid.four-col {
    grid-template-columns: 1fr;
  }

  .conditions-grid,
  .conditions-list,
  .issues-columns {
    grid-template-columns: 1fr;
  }

  /* In single-column mode the original column-gap becomes a row-gap, leaving
     visual breaks between the three <ul>s — collapse it. Also tighten the
     per-li padding so 21 stacked bullets don't feel airy on a phone. */
  .issues-columns {
    gap: 0;
  }

  .issues-columns li {
    padding: 0;
  }

  .compliance-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ------------------------------------------------------------------
   AI Application Pre-Fill
   ------------------------------------------------------------------ */
.ai-prefill {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.ai-prefill h3 {
  margin-bottom: var(--space-sm);
}

.ai-prefill > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.ai-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.ai-dropzone:hover,
.ai-dropzone--active {
  border-color: var(--color-primary);
  background: rgba(77, 151, 209, 0.04);
}

.ai-dropzone p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-light);
}

.ai-dropzone p:first-child {
  color: var(--color-text);
}

.ai-assist-btn {
  display: inline-block;
  margin-top: var(--space-xs);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-assist-btn:hover {
  color: var(--color-primary-dark);
}

.ai-assist-btn:disabled {
  color: var(--color-text-light);
  cursor: wait;
  text-decoration: none;
}

.ai-result {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ai-result .btn {
  margin-top: var(--space-sm);
}

.ai-status {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  display: none;
}

.ai-status--loading {
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.ai-status--loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ai-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

/* --- Validation errors --- */
.form-field-error {
  outline: 2px solid var(--color-error, #c62828);
  outline-offset: -1px;
}

.form-group--error .checkbox-group,
.form-group--error .radio-group {
  outline: 2px solid var(--color-error, #c62828);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.form-validation-msg {
  color: var(--color-error, #c62828);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.form-accordion__header--error {
  color: var(--color-error, #c62828);
}

.form-accordion__header--error::after {
  content: ' — missing fields';
  font-size: var(--text-sm);
  font-weight: normal;
}

/* Busy state for AI buttons */
.btn--busy {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
  padding-left: calc(var(--space-md) + 20px);
}

.btn--busy::before {
  content: '';
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ai-spin 0.7s linear infinite;
}

/* Pulsing overlay for drop zone during AI processing */
.ai-dropzone--busy {
  pointer-events: none;
  opacity: 0.6;
  animation: ai-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.ai-status--success {
  color: var(--color-success, #2e7d32);
}

.ai-status--error {
  color: var(--color-error, #c62828);
}

/* ------------------------------------------------------------------
   Form Accordion
   ------------------------------------------------------------------ */
.form-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.form-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background 0.2s;
}

.form-accordion__header:hover {
  background: var(--color-border);
}

.form-accordion__icon::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s;
  display: inline-block;
}

.form-accordion__header--open .form-accordion__icon::after {
  content: '\2212';
}

.form-accordion__body {
  display: none;
  padding: var(--space-lg);
}

.form-accordion__body--open {
  display: block;
}

/* ------------------------------------------------------------------
   Draft Save Banners
   ------------------------------------------------------------------ */
.draft-banner {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.draft-banner p {
  margin: 0 0 var(--space-sm);
}

.draft-banner--info {
  background: #e3f2fd;
  border-left: 3px solid var(--color-primary);
}

.draft-banner--success {
  background: #e8f5e9;
  border-left: 3px solid var(--color-success, #2e7d32);
}

.draft-link-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.draft-link-input {
  flex: 1;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--color-bg);
}

/* ------------------------------------------------------------------
   Partner Landing Pages
   ------------------------------------------------------------------ */

/* Hero: co-branding logos */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.partner-logos__well {
  height: 48px;
  width: auto;
}
/* wmhw-horizontal-white.png is a full-bleed wide wordmark (~20:1) — size by
   width, not height, or it renders hundreds of pixels wide. */
.partner-logos__well--wordmark {
  height: auto;
  width: 220px;
  max-width: 100%;
}
.partner-logos__divider {
  font-size: var(--text-h3);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
}
.partner-logos__partner {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}
/* Opt out of the white-silhouette treatment for full-color partner logos/badges */
.partner-logos__partner--full-color {
  filter: none;
}
/* 3x logo size for pages that want a more prominent co-branding lockup */
.partner-logos--lg .partner-logos__partner {
  height: 144px;
}
.partner-logos--lg .partner-logos__well--wordmark {
  width: 660px;
}
.partner-benefit-text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
}

/* Top-of-page partner announcement banner */
.partner-banner {
  background: var(--color-primary);
  padding: var(--space-sm) 0;
  text-align: center;
}
.partner-banner p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-white);
}

/* Circular avatar shown above pricing card heading.
   Matches the hiw-* asset style (some are pre-cropped to circles with transparent
   corners), so we treat both pricing-card images as circles for consistency. */
.pricing-card__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  align-self: center;
  margin-bottom: var(--space-sm);
}

/* Darker hero overlay used on partner landing pages — improves text legibility */
.hero__overlay--dark {
  background: rgba(0, 0, 0, 0.55);
}

/* Strike-through "regular rate" line under WELLbeings discounted price */
.partner-price-regular {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  text-decoration: line-through;
  margin-top: calc(-1 * var(--space-sm));
}

/* Value props checklist */
.value-props-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
}
.value-props-list li {
  padding: var(--space-sm) 0 var(--space-sm) 2rem;
  position: relative;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--color-border);
}
.value-props-list li:last-child {
  border-bottom: none;
}
.value-props-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}

/* How It Works — 3-step grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.step-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}
.step-card p {
  font-size: var(--text-body);
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}
.step-card__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-h4);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}
.step-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
/* Two-card layout, centered (used on partner pages with only Text + Phone/Video tiers) */
.pricing-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin-inline: auto;
}
/* Single-card layout, centered */
.pricing-grid--1col {
  grid-template-columns: minmax(0, 1fr);
  max-width: 400px;
  margin-inline: auto;
}
.pricing-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.pricing-card--featured {
  border-top-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.pricing-card h3 {
  font-size: var(--text-h4);
  margin-bottom: 0;
}
.pricing-card__price {
  font-size: var(--text-h3);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
}
.pricing-card__price span {
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  color: var(--color-text-light);
}
.pricing-card p {
  color: var(--color-text-light);
  flex: 1;
  margin: 0;
}
.pricing-note {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Assessment pathway cards (partner page — simpler than assessments page) */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.assessment-grid .assessment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  border: none;
  border-top: 3px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.assessment-grid .assessment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.assessment-card__label {
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
}
.assessment-card__cta {
  font-size: var(--text-sm);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .assessment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .assessment-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Testimonial block
   ------------------------------------------------------------------ */
.testimonial {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-xl) var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin: 0;
}
.testimonial p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.testimonial cite {
  font-size: var(--text-small);
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-light);
}

/* ------------------------------------------------------------------
   Resources (Learning Resources pages)
   ------------------------------------------------------------------ */

.breadcrumb {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
}
.breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.resource-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.resource-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}
.resource-card__body h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0;
}
.resource-card__body p {
  font-size: var(--text-base);
  color: var(--color-text-light);
  flex: 1;
  margin: 0;
}
.resource-card__body .btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}
.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}
.article-content h2 {
  margin-top: var(--space-xl);
}
.article-content ul, .article-content ol {
  padding-left: var(--space-xl);
  margin: var(--space-md) 0;
}
.article-content li {
  margin-bottom: var(--space-sm);
}
.article-cta {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  text-align: center;
}
.article-cta h2 {
  margin-bottom: var(--space-sm);
}
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.article-sidebar h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.related-list li a {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
}
.related-list li a:hover {
  text-decoration: underline;
}
.related-list li p {
  font-size: var(--text-small);
  color: var(--color-text-light);
  margin: 0;
}
.sidebar-cta {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}
.sidebar-cta h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.contact-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.contact-block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.contact-block a {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Blog
   ------------------------------------------------------------------ */

/* Hero banner */
.blog-hero {
  position: relative;
  height: 320px;
  background: center/cover no-repeat var(--color-primary);
}
.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.blog-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.blog-hero__content h1 {
  color: var(--color-white);
  font-size: var(--text-h1);
  margin: 0;
}

/* Tag filter bar (shared with resources) */
.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}
.blog-tag-btn {
  background: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  font-size: var(--text-small);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.blog-tag-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.blog-tag-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Tag chip pill (blog index cards, blog post header, resource articles) */
.blog-post-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  font-size: var(--text-caption);
  font-weight: 600;
  margin: 0 0.25rem 0.25rem 0;
  text-decoration: none;
}
a.blog-post-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Featured post card */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}
.blog-featured__img-link {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-featured__img-link:hover .blog-featured__img {
  transform: scale(1.03);
}
.blog-featured__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  opacity: 0.12;
}
.blog-featured__body {
  padding: var(--space-xl);
}
.blog-featured__badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}
.blog-featured__tags {
  margin-bottom: var(--space-sm);
}
.blog-featured__body h2 {
  font-size: var(--text-h2);
  margin: var(--space-sm) 0;
}
.blog-featured__body h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.blog-featured__body h2 a:hover {
  color: var(--color-primary);
}
.blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__img-link {
    aspect-ratio: 16/9;
  }
}

/* Blog index grid */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.blog-index-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.blog-index-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog-index-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-index-card__img a {
  display: block;
  height: 100%;
}
.blog-index-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-index-card:hover .blog-index-card__img img {
  transform: scale(1.04);
}
.blog-index-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary-light);
}
.blog-index-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-index-card__tags {
  margin-bottom: var(--space-xs);
}
.blog-index-card__date {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
.blog-index-card__body h3 {
  font-size: var(--text-lg);
  margin: var(--space-xs) 0 var(--space-sm);
}
.blog-index-card__body h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.blog-index-card__body h3 a:hover {
  color: var(--color-primary);
}
.blog-index-card__body > p {
  font-size: var(--text-small);
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: var(--space-md);
}
.blog-index-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.blog-reading-time {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
@media (max-width: 1024px) {
  .blog-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-index-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog article page */
.blog-article {
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.blog-article__header {
  max-width: 760px;
  margin: 0 auto var(--space-xl);
}
.blog-article__back {
  color: var(--color-primary);
  font-size: var(--text-small);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-lg);
}
.blog-article__back:hover {
  text-decoration: underline;
}
.blog-article__header h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-md);
}
.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.blog-article__tags {
  margin-bottom: var(--space-lg);
}
.blog-article__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}
.blog-article__hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
/* (blog article body and related posts styles are defined above in the sidebar layout section) */
