/* ============================================================
   Namoo — Main Stylesheet
   namoo.yoga global yoga teacher training directory.

   Fonts:
     - DM Sans      (body / UI)
     - Cormorant    (display / headings — premium serif)

   Palette extracted from Namoo logo:
     Beige bg   #f0ece4   warm cream
     Forest     #243d15   deep green (logo figure + wordmark)
     Leaf       #3d6b22   mid green (accents, links)
     Amber      #d4912a   orange-gold (logo brush circle)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── CSS Variables (design tokens) ───────────────────────── */
:root {
  /* Surfaces */
  --background:           #f0ece4;
  --background-alt:       #e8e2d8;
  --card:                 #f7f4ef;
  --card-foreground:      #1a2e0e;

  /* Text */
  --foreground:           #1a2e0e;
  --muted-foreground:     #5a6650;

  /* Brand */
  --forest:               #243d15;
  --forest-mid:           #3d6b22;
  --forest-light:         #6a9e4a;
  --amber:                #d4912a;
  --amber-light:          #e8b455;
  --amber-pale:           rgba(212,145,42,0.12);

  /* Mapped to component system */
  --primary:              #d4912a;
  --primary-foreground:   #fff8ee;
  --secondary:            #dbe8d2;
  --secondary-foreground: #243d15;
  --muted:                #e8e3da;
  --accent:               #3d6b22;
  --accent-foreground:    #f0ece4;
  --destructive:          hsl(0, 72%, 52%);
  --border:               #d5cec3;
  --ring:                 #d4912a;
  --featured:             #d4912a;
  --featured-foreground:  #fff8ee;

  /* Keep --teal mapped to forest green for shortcode compatibility */
  --teal:                 #3d6b22;
  --teal-foreground:      #f0ece4;

  --radius:               0.75rem;
}

/* ── Header-specific tokens ───────────────────────────────── */
:root {
  --header-bg:            #243d15;
  --header-fg:            #f0ece4;
  --header-border:        rgba(240,236,228,0.12);
  --header-muted:         rgba(240,236,228,0.55);
  --header-hover-bg:      rgba(240,236,228,0.10);
  --header-active-bg:     rgba(212,145,42,0.18);
  --header-active-fg:     #e8b455;
  --topbar-height:        88px;
  --navbar-height:        48px;
}

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.yp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.yp-main { padding: 2rem 0; }

/* ── Header ───────────────────────────────────────────────── */

/* Top bar — dark forest green, centered logo */
.nm-topbar {
  background: var(--header-bg);
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--header-border);
}
.nm-topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nm-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nm-topbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nm-topbar__logo img {
  height: 52px;
  width: auto;
  filter: brightness(1.05);
}
.nm-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Nav bar — slightly lighter strip below top bar */
.nm-navbar {
  background: #1e3412;
  height: var(--navbar-height);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: var(--topbar-height);
  z-index: 199;
}
.nm-navbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  list-style: none;
}
.nm-navbar__inner a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.875rem;
  border-radius: calc(var(--radius) - 4px);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--header-fg);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nm-navbar__inner a:hover {
  background: var(--header-hover-bg);
  color: #fff;
}
.nm-navbar__inner a.active {
  background: var(--header-active-bg);
  color: var(--header-active-fg);
}

/* Header button variants on dark bg */
.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.45rem 1.1rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.nm-btn--ghost {
  background: transparent;
  color: var(--header-fg);
}
.nm-btn--ghost:hover { background: var(--header-hover-bg); color: #fff; }

.nm-btn--outline {
  background: transparent;
  color: var(--header-fg);
  border: 1px solid rgba(240,236,228,0.30);
}
.nm-btn--outline:hover {
  background: var(--header-hover-bg);
  border-color: rgba(240,236,228,0.5);
  color: #fff;
}
.nm-btn--amber {
  background: var(--amber);
  color: #fff8ee;
}
.nm-btn--amber:hover { background: var(--amber-light); color: #fff; }

/* Search in topbar */
.nm-search-wrap { position: relative; }
.nm-search-wrap input {
  height: 2.125rem;
  padding: 0 0.75rem 0 2.125rem;
  border: 1px solid rgba(240,236,228,0.25);
  border-radius: 9999px;
  background: rgba(240,236,228,0.10);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  color: var(--header-fg);
  width: 190px;
  transition: background 0.2s, border-color 0.2s;
}
.nm-search-wrap input::placeholder { color: var(--header-muted); }
.nm-search-wrap input:focus {
  outline: none;
  background: rgba(240,236,228,0.16);
  border-color: rgba(212,145,42,0.6);
}
.nm-search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--header-muted);
  pointer-events: none;
}

/* Dropdown (programmes) */
.nm-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  background: #f7f4ef;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 500;
  padding: 0.75rem;
  color: var(--foreground);
}
.nm-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: #f7f4ef;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

/* Mobile nav overlay */
#nm-mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 90vw);
  background: var(--card);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
#nm-mobile-nav.open { transform: translateX(0); }
#nm-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}
#nm-nav-overlay.open { display: block; }

/* ── Legacy header aliases (keeps old shortcode CSS working) ── */
.yp-header        { display: none; }  /* hidden — replaced by nm-topbar + nm-navbar */
.yp-header__inner { display: none; }


/* ── Buttons ──────────────────────────────────────────────── */
.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: none;
  transition: opacity 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.yp-btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.yp-btn--primary:hover { opacity: 0.9; }

.yp-btn--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.yp-btn--secondary:hover { opacity: 0.85; }

.yp-btn--outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.yp-btn--outline:hover { background: var(--muted); }

.yp-btn--ghost {
  background: transparent;
  color: var(--muted-foreground);
}
.yp-btn--ghost:hover { background: var(--muted); color: var(--foreground); }

.yp-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.yp-btn--lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

.yp-btn--teal { background: var(--teal); color: var(--teal-foreground); }
.yp-btn--teal:hover { opacity: 0.9; }

/* ── Badges ───────────────────────────────────────────────── */
.yp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.yp-badge--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.yp-badge--outline {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
}

.yp-badge--featured {
  background: var(--featured);
  color: var(--featured-foreground);
}

.yp-badge--destructive {
  background: var(--destructive);
  color: white;
}

.yp-badge--teal {
  background: var(--teal);
  color: var(--teal-foreground);
}

/* ── School Card ──────────────────────────────────────────── */
.yp-school-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid hsl(35, 20%, 88%, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.yp-school-card:hover {
  border-color: hsl(15, 55%, 55%, 0.3);
  box-shadow: 0 8px 24px hsl(25, 25%, 15%, 0.1);
}

/* Image */
.yp-school-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--muted);
}

.yp-school-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yp-school-card:hover .yp-school-card__image { transform: scale(1.05); }

/* Hover overlay */
.yp-school-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.yp-school-card:hover .yp-school-card__overlay { opacity: 1; }

/* Badges top-left */
.yp-school-card__badges-tl {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.yp-school-card__badge-lastspot {
  animation: yp-pulse 1.5s ease-in-out infinite;
}

@keyframes yp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Wishlist top-right */
.yp-school-card__wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.yp-wishlist-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.yp-wishlist-btn:hover { background: white; color: var(--destructive); }
.yp-wishlist-btn.active { color: var(--destructive); }
.yp-wishlist-btn svg { width: 1rem; height: 1rem; }

/* Offer strip - bottom of image */
.yp-school-card__offer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 0.5rem 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.yp-school-card__offer-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Compare button - bottom of image, shows on hover */
.yp-school-card__compare {
  position: absolute;
  left: 0.75rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.yp-school-card__compare.has-offer { bottom: 3rem; }
.yp-school-card__compare.no-offer  { bottom: 0.75rem; }
.yp-school-card:hover .yp-school-card__compare,
.yp-school-card__compare.in-compare { opacity: 1; }

/* Content */
.yp-school-card__content { padding: 1rem; }

/* Badge row */
.yp-school-card__meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

/* School name */
.yp-school-card__name {
  font-family: 'Questrial', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.yp-school-card:hover .yp-school-card__name { color: var(--primary); }

/* Location */
.yp-school-card__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.yp-school-card__location svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

/* Scores row */
.yp-school-card__scores {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.yp-score-trust {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  cursor: help;
}
.yp-score-trust svg { width: 0.875rem; height: 0.875rem; }
.yp-score-trust--excellent { color: #16a34a; }
.yp-score-trust--verygood  { color: #059669; }
.yp-score-trust--good      { color: #ca8a04; }
.yp-score-trust--emerging  { color: #ea580c; }

.yp-score-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--featured);
  font-weight: 500;
  cursor: help;
}
.yp-score-rating svg { width: 0.875rem; height: 0.875rem; }
.yp-score-rating__count { color: var(--muted-foreground); font-size: 0.75rem; font-weight: 400; }

/* Date row */
.yp-school-card__date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.yp-school-card__date svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

/* Price */
.yp-school-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.yp-school-card__price-from { font-size: 0.875rem; color: var(--muted-foreground); }
.yp-school-card__price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}
.yp-school-card__price-currency { font-size: 0.875rem; color: var(--muted-foreground); }

/* ── School Grid ──────────────────────────────────────────── */
.yp-schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Tooltip ──────────────────────────────────────────────── */
.yp-tooltip {
  position: relative;
  display: inline-flex;
}

.yp-tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 260px;
  white-space: normal;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.yp-tooltip:hover .yp-tooltip__content { opacity: 1; }

/* ── Wishlist localStorage state ──────────────────────────── */
.yp-wishlist-btn[data-wishlisted="true"] { color: var(--destructive); }

/* ── Spinner ──────────────────────────────────────────────── */
.yp-spinner {
  width: 2rem; height: 2rem;
  border: 3px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: yp-spin 0.7s linear infinite;
}
@keyframes yp-spin { to { transform: rotate(360deg); } }

/* ── No results ───────────────────────────────────────────── */
.yp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--muted-foreground);
}

/* ── Responsive ───────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

html { overflow-x: hidden; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; }

/* ── Weather bar responsive ───────────────────────────────── */
.yp-wb-region { display: inline; }
.yp-wb-extra  { display: flex; }
.yp-wb-humid  { display: inline; }

@media (max-width: 640px) {
  .yp-wb-region { display: none; }
  .yp-wb-extra  { display: none !important; }
  .yp-wb-humid  { display: none !important; }
  .yp-weather-bar { gap: 8px !important; }
}

@media (max-width: 768px) and (min-width: 641px) {
  .yp-wb-humid { display: none !important; }
}

/* ── Tablet (≤ 1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .yp-single-grid { grid-template-columns: 1fr !important; }
  .yp-single-grid > div:last-child {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ── Mobile (≤ 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {

  .yp-container { padding: 0 1rem; }
  .yp-main { padding: 1rem 0; }

  /* Header */
/* Header */
  .yp-header { height: auto; }
  .yp-header__inner { padding: 0 1rem; flex-wrap: nowrap; gap: 0.5rem; min-height: 56px; align-items: center; }
  .yp-header__nav { display: none; }
  .yp-header__actions { gap: 0.375rem; }

  /* Hide Compare + List Your School, keep search + wishlist + hamburger */
  .yp-header__actions .yp-btn--outline { display: none !important; }
  .yp-header__actions .yp-btn--primary { display: none !important; }

  #yp-mobile-toggle { display: flex !important; }

  /* Schools grid */
  .yp-schools-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

  /* Always show compare button on touch */
  .yp-school-card__compare { opacity: 1 !important; }

  /* Filter bar */
  .yp-filter-bar > div { flex-direction: column !important; align-items: stretch !important; }
  .yp-filter-item { width: 100%; }
  .yp-filter-item select { width: 100% !important; min-width: unset !important; box-sizing: border-box; }

  /* Single school grids */
  .yp-quick-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .yp-ai-grid { grid-template-columns: 1fr !important; min-height: auto !important; }
  .yp-ai-grid > div:last-child {
    border-left: none !important;
    border-top: 1px solid rgba(61,107,34,0.2) !important;
    height: 320px !important;
  }

  /* Footer */
  .yp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }

  /* Tooltip */
  .yp-tooltip__content { left: 0 !important; right: 0; transform: none !important; }

  /* Tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* Staff & policies */
  .yp-staff-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .yp-policies-grid { grid-template-columns: 1fr !important; }

  .yp-container, .yp-single-grid, .yp-single-grid > div { max-width: 100%; overflow-x: hidden; }
}

/* ── Small mobile (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .yp-schools-grid  { grid-template-columns: 1fr; }
  .yp-quick-stats   { grid-template-columns: 1fr !important; }
  .yp-footer-grid   { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .yp-header__inner { padding: 0 0.75rem; gap: 0.375rem; }
}

/* ── Extra small (≤ 400px) ────────────────────────────────── */
@media (max-width: 400px) {
  .yp-staff-grid { grid-template-columns: 1fr !important; }
}
.yp-wb-select option {
  background-color: var(--forest-mid) !important;
  color: white !important;
}
/* ── Hero filter bar — mobile 2-column grid ───────────────── */
@media (max-width: 768px) {
  .yp-hero-filter-wrap > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .yp-hero-filter-wrap select {
    min-width: unset !important;
    width: 100% !important;
    height: 2.75rem !important;
    box-sizing: border-box;
  }

  /* Search button spans full width */
  .yp-hero-filter-wrap .yp-btn--primary {
    grid-column: 1 / -1;
    width: 100%;
    height: 2.75rem;
    font-size: 0.9375rem;
  }
}
/* ── How It Works — mobile horizontal cards ──────────────── 
   Replace the existing .yp-how-steps mobile rule in main.css
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Container: make room for timeline spine ── */
  .yp-how-steps,
  .yp-how-steps[style] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    counter-reset: hiw-step;
    position: relative !important;
    padding: 0 0.125rem 0 3rem !important;
  }

  /* ── Vertical spine ── */
  .yp-how-steps::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 1rem !important;
    top: 1.5rem !important;
    bottom: 1.5rem !important;
    width: 2px !important;
    background: linear-gradient(
      to bottom,
      var(--forest-mid) 0%,
      hsl(145,35%,44%) 25%,
      hsl(95,25%,48%) 50%,
      hsl(25,42%,52%) 75%,
      hsl(15,55%,55%) 100%
    ) !important;
    border-radius: 2px !important;
  }

  .yp-how-steps::after {
    display: none !important;
  }

  /* ── Hide SVG / absolute decorators ── */
  .yp-how-steps > svg,
  .yp-how-steps > img,
  .yp-how-steps > [style*="position:absolute"],
  .yp-how-steps > [style*="position: absolute"] {
    display: none !important;
  }

  /* ── Step card ── */
  .yp-how-steps > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    padding: 0.9375rem 0.875rem 0.875rem !important;
    margin: 0 !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    counter-increment: hiw-step;
    overflow: hidden !important;
  }

  /* Top colour bar — teal → coral progression per step */
  .yp-how-steps > div::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
  }

  .yp-how-steps > div:nth-child(1)::before { background: var(--forest-mid) !important; }
  .yp-how-steps > div:nth-child(2)::before { background: hsl(155,40%,42%) !important; }
  .yp-how-steps > div:nth-child(3)::before { background: hsl(100,28%,47%) !important; }
  .yp-how-steps > div:nth-child(4)::before { background: hsl(28,42%,51%) !important; }
  .yp-how-steps > div:nth-child(5)::before { background: hsl(15,55%,55%) !important; }

  /* Ghost step number — Crimson Text, 7% opacity */
  .yp-how-steps > div::after {
    content: '0' counter(hiw-step) !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0.5rem !important;
    font-family: 'Crimson Text', Georgia, serif !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--teal) !important;
    opacity: 0.07 !important;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 0 !important;
  }

  .yp-how-steps > div:nth-child(4)::after,
  .yp-how-steps > div:nth-child(5)::after {
    color: var(--primary) !important;
  }

  /* ── Number circle on the spine ── */
  .yp-how-steps > div > div:first-child,
  .yp-how-steps > div > div:first-child[style] {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    left: -3rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    border-radius: 50% !important;
    border: 2.5px solid var(--background) !important;
    z-index: 3 !important;
    flex-shrink: 0 !important;
  }

  /* Per-step circle colours match the spine */
  .yp-how-steps > div:nth-child(1) > div:first-child { background: var(--forest-mid) !important; }
  .yp-how-steps > div:nth-child(2) > div:first-child { background: hsl(155,40%,42%) !important; }
  .yp-how-steps > div:nth-child(3) > div:first-child { background: hsl(100,28%,47%) !important; }
  .yp-how-steps > div:nth-child(4) > div:first-child { background: hsl(28,42%,51%) !important; }
  .yp-how-steps > div:nth-child(5) > div:first-child { background: hsl(15,55%,55%) !important; }

  .yp-how-steps > div > div:first-child *,
  .yp-how-steps > div > div:first-child[style] * {
    display: none !important;
  }

  .yp-how-steps > div > div:first-child::after {
    content: counter(hiw-step) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .yp-how-steps > div > div:first-child::before {
    display: none !important;
  }

  /* ── Text container ── */
  .yp-how-steps > div > div:nth-child(2),
  .yp-how-steps > div > div:last-child {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Title — Crimson Text serif */
  .yp-how-steps > div > div:nth-child(2) > *:first-child,
  .yp-how-steps > div > div:last-child > *:first-child {
    font-family: 'Crimson Text', Georgia, serif !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--foreground) !important;
    margin: 0 0 0.3125rem !important;
    display: block !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
  }

  /* Description */
  .yp-how-steps > div > div:nth-child(2) > *:last-child,
  .yp-how-steps > div > div:last-child > *:last-child {
    font-size: 0.8125rem !important;
    line-height: 1.55 !important;
    color: var(--muted-foreground) !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Clean up last card */
  .yp-how-steps > div:last-child {
    margin-bottom: 0 !important;
  }
}


/* ── Course offering cards — mobile stack ─────────────────── */
@media (max-width: 640px) {
  .yp-course-card-inner {
    flex-direction: column !important;
  }
  .yp-course-price-col {
    text-align: left !important;
    min-width: unset !important;
    width: 100% !important;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }
}
/* — Schools page title — single line on mobile ————————— */
@media (max-width: 768px) {
  .post-type-archive-school #main h1[style*="1.75rem"] {
    font-size: 1.25rem !important;
    white-space: nowrap;
  }
  .single-school #main h1 {
    font-size: 1.375rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
}
@media (max-width: 768px) {
  /* Reduce hero padding */
  .single-school #main > div:first-child .yp-container > a[style*="Back"] {
    display: none !important;
  }
  /* Shrink badge row */
  .single-school #main > div:first-child [style*="backdrop-filter"],
  .single-school #main > div:first-child [style*="border:1px solid rgba(255"] {
    font-size: 0.6875rem !important;
    padding: 0.15rem 0.5rem !important;
  }
  /* Tighten hero bottom padding */
  .single-school #main > div:first-child > div:last-child {
    padding: 1rem 1rem !important;
  }
  /* Reduce gap between name and location/rating */
  .single-school #main > div:first-child [style*="gap:1rem"][style*="color:rgba(255"] {
    gap: 0.375rem !important;
    font-size: 0.8125rem !important;
    margin-bottom: 0.25rem !important;
  }
}
/* ── Section 5 filter — mobile 2-col grid ─────────────────── */
@media (max-width: 768px) {
  .yp-section5-filter .yp-filter-desktop {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .yp-section5-filter .yp-filter-desktop select {
    min-width: unset !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .yp-section5-filter .yp-filter-desktop button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ── Search: icon on mobile, full bar on desktop ──────────── */
.yp-search-icon-btn { display: none; }

@media (max-width: 768px) {
  .yp-search-icon-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .yp-search-icon-btn:hover { background: var(--secondary); }
  .yp-search-icon-btn svg   { width: 1rem; height: 1rem; }
  #yp-search-wrap { display: none !important; }
}
/* ── Make weather bar sticky too so header stays at top ────── */
.yp-weather-bar {
  position: sticky;
  top: 0;
  z-index: 101;
}

.yp-header {
  top: 32px; /* height of weather bar */
}

@media (max-width: 640px) {
  .yp-header { top: 32px; }
}
/* ── Mobile nav — slide in from right premium ─────────────── */
#yp-mobile-nav {
  position: fixed !important;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 82%;
  max-width: 340px;
  z-index: 999;
  background: var(--background);
  box-shadow: -12px 0 48px rgba(0,0,0,0.18);
  padding: 0 !important;
  border-top: none !important;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
}

#yp-mobile-nav.open { right: 0; }

#yp-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  transition: opacity 0.3s;
}
#yp-nav-overlay.open { display: block; }
/* ── Homepage headline sizes — mobile ─────────────────────── */
@media (max-width: 768px) {
  /* "All Yoga Training Programs" */
  #results h2[style*="clamp"] {
    font-size: 1.75rem !important;
  }

  /* "Helping You Make Informed..." */
  #main section h2[style*="clamp"] {
    font-size: 1.375rem !important;
  }

  /* "How It Works", "Browse by Location" etc — general section h2 */
  #main h2[style*="1.75rem"] {
    font-size: 1.375rem !important;
  }

  /* "Browse Programs" badge — keep small */
  #main section > div > span[style*="0.875rem"] {
    font-size: 0.8125rem !important;
  }
}
/* ── Global font override — replaces all inline Crimson Text/Montserrat ── */
[style*="Crimson Text"],
[style*="'Crimson Text'"] {
  font-family: 'Gilda Display', Georgia, serif !important;
}

[style*="Montserrat"],
[style*="'Montserrat'"] {
  font-family: 'Questrial', system-ui, sans-serif !important;
}
/* ── Unified heading style — match schools archive ─────────── */
[style*="Crimson Text"],
[style*="'Crimson Text'"],
[style*="Georgia,serif"] {
  font-family: 'Questrial', system-ui, sans-serif !important;
  font-style: normal !important;
}
/* ── How We Score hero h1 — fix mobile wrap ───────────────── */
@media (max-width: 768px) {
  .yp-container h1[style*="clamp(2rem"] {
    font-size: 1.75rem !important;
  }
}
/* ── Page Hero ────────────────────────────────────────────── */
.yp-page-hero {
  background: linear-gradient(135deg, rgba(212,145,42,0.06), rgba(61,107,34,0.06), var(--background));
  padding: 4rem 0 3rem;
  text-align: center;
}

.yp-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.yp-page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.yp-page-hero__title span { color: var(--primary); }

.yp-page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── CTA Section ──────────────────────────────────────────── */
.yp-cta-section {
  background: linear-gradient(135deg, rgba(212,145,42,0.08), rgba(61,107,34,0.08), var(--background));
  padding: 4rem 0;
  text-align: center;
}

.yp-cta-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.yp-cta-section__body {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.yp-cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.yp-faq-category {
  margin-bottom: 3rem;
}

.yp-faq-category__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.yp-faq-category__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(61,107,34,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.yp-faq-category__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
}

.yp-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.yp-faq-toggle {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}

.yp-faq-toggle:hover { background: var(--muted); }

.yp-faq-toggle__arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.yp-faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.yp-faq-answer a {
  color: var(--teal);
  font-weight: 500;
}

/* ── Info Boxes ───────────────────────────────────────────── */
.yp-info-box {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.yp-info-box--teal {
  background: rgba(61,107,34,0.06);
  border: 1px solid rgba(61,107,34,0.3);
}

.yp-info-box--coral {
  background: hsl(15, 55%, 55%, 0.05);
  border: 1px solid hsl(15, 55%, 55%, 0.25);
}

.yp-info-box__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(61,107,34,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}

.yp-info-box__title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.yp-info-box__body {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ── SEO content block typography ─────────────────────────── */
.yp-seo-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2rem 0 0.75rem;
}
.yp-seo-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.5rem 0 0.5rem;
}
.yp-seo-content p { margin-bottom: 1rem; }
.yp-seo-content a { color: var(--primary); text-decoration: underline; }
.yp-seo-content strong { color: var(--foreground); }

/* ============================================================
   Namoo — Universal Post Styles v2
   Selector: .yp-article-content (Namoo theme)
   
   INSTALL: Paste at bottom of child theme main.css
   Replace any previous version of this CSS entirely.
   ============================================================ */

/* ── THEME COLORS ── */
:root {
  --yp-green:        #1a3325;
  --yp-green-mid:    #2e5c40;
  --yp-green-light:  #4a8a62;
  --yp-orange:       #c4622a;
  --yp-cream:        #f5f2ec;
  --yp-border:       #ddd8ce;
  --yp-radius:       10px;
  --yp-text:         #2b2b2b;
  --yp-heading:      #1c1c1c;
  --yp-gold:         #c4933a;
  --yp-gold-light:   #e8c07a;
}

/* ============================================================
   BASE
   ============================================================ */

.yp-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--yp-text);
}

.yp-article-content p {
  margin-bottom: 20px;
}

.yp-article-content a {
  color: var(--yp-green-mid);
  text-underline-offset: 3px;
}

.yp-article-content a:hover {
  color: var(--yp-green-light);
}

.yp-article-content strong {
  color: var(--yp-heading);
  font-weight: 600;
}

.yp-article-content hr {
  border: none;
  border-top: 1px solid var(--yp-border);
  margin: 40px 0;
}

.yp-article-content img {
  border-radius: var(--yp-radius);
  max-width: 100%;
  height: auto;
}

/* ============================================================
   HEADINGS
   ============================================================ */

.yp-article-content h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--yp-green);
  line-height: 1.25;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yp-green-light);
}

.yp-article-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--yp-heading);
  margin: 28px 0 10px;
  line-height: 1.3;
}

.yp-article-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--yp-green-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
}

/* ============================================================
   BLOCKQUOTE → ANSWER CAPSULE
   ============================================================ */

.yp-article-content blockquote {
  background: #f0f7f3;
  border-left: 4px solid var(--yp-green-light);
  border-right: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0 var(--yp-radius) var(--yp-radius) 0;
  padding: 18px 22px;
  margin: 4px 0 24px;
  font-style: normal;
}

.yp-article-content blockquote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--yp-heading);
}

.yp-article-content blockquote a {
  color: var(--yp-green-mid);
}

/* ============================================================
   ORDERED LIST → NUMBERED STEPS
   FIX: use padding-left + position absolute so <strong>
   flows inline with the rest of the text naturally.
   ============================================================ */

.yp-article-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: yp-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yp-article-content ol li {
  counter-increment: yp-step;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fff;
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius);
  font-size: 15px;
  color: var(--yp-text);
  line-height: 1.65;
  display: block; /* block not flex — fixes the strong splitting issue */
}

.yp-article-content ol li::before {
  content: counter(yp-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  background: var(--yp-green);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   UNORDERED LIST → STYLED BULLETS
   ============================================================ */

.yp-article-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yp-article-content ul li {
  list-style: none !important;
  position: relative;
  padding: 10px 14px 10px 38px;
  background: #fff;
  border: 1px solid var(--yp-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--yp-text);
  line-height: 1.65;
}

.yp-article-content ul li::before {
  content: '' !important;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--yp-green-light);
  border-radius: 50%;
  font-size: 0;
}

/* ============================================================
   TABLE
   ============================================================ */

.yp-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  border-radius: var(--yp-radius);
  overflow: hidden;
}

.yp-article-content thead tr {
  background: var(--yp-green);
  color: #fff;
}

.yp-article-content thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.yp-article-content tbody tr:nth-child(even) {
  background: var(--yp-cream);
}

.yp-article-content tbody tr:nth-child(odd) {
  background: #fff;
}

.yp-article-content tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--yp-border);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yp-text);
}

.yp-article-content tbody td:first-child {
  font-weight: 600;
  color: var(--yp-heading);
}

.yp-article-content tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   2-COLUMN CARD GRID
   Sidebar-aware: single column below 900px
   ============================================================ */

.yp-article-content .ytt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 28px;
}

.yp-article-content .ytt-grid > div {
  background: #fff;
  border: 1px solid var(--yp-border);
  border-radius: var(--yp-radius);
  padding: 18px 18px 14px;
}

.yp-article-content .ytt-grid > div > strong:first-child,
.yp-article-content .ytt-grid > div > b:first-child {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--yp-green);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.yp-article-content .ytt-grid > div > strong:first-child::before,
.yp-article-content .ytt-grid > div > b:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--yp-green-light);
  border-radius: 50%;
}

.yp-article-content .ytt-grid > div p {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 10px;
}

.yp-article-content .ytt-grid > div a {
  font-size: 13px;
  font-weight: 600;
  color: var(--yp-green-mid);
  text-decoration: none;
}

.yp-article-content .ytt-grid > div a:hover {
  text-decoration: underline;
}

/* ============================================================
   DARK CHECKLIST BOX
   FIX: explicitly kill all default list bullets inside
   ============================================================ */

.yp-article-content .ytt-dark-box {
  background: var(--yp-green);
  border-radius: var(--yp-radius);
  padding: 22px 26px;
  margin: 20px 0 28px;
}

.yp-article-content .ytt-dark-box > strong:first-child,
.yp-article-content .ytt-dark-box > b:first-child {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yp-gold-light);
  margin-bottom: 14px;
}

/* Kill ALL inherited list styles inside dark box */
.yp-article-content .ytt-dark-box ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px;
  background: transparent;
}

.yp-article-content .ytt-dark-box ul li {
  list-style: none !important;
  list-style-type: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2px 0 2px 30px !important;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  position: relative;
}

/* Remove the green dot pseudo from dark box items */
.yp-article-content .ytt-dark-box ul li::before {
  content: '✓' !important;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(196,147,58,0.25);
  border: 1px solid var(--yp-gold);
  color: var(--yp-gold-light);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE — sidebar layout
   ============================================================ */

@media (max-width: 900px) {
  .yp-article-content .ytt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .yp-article-content h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .yp-article-content thead th,
  .yp-article-content tbody td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .yp-article-content ol li {
    padding: 12px 14px 12px 48px;
    font-size: 14px;
  }

  .yp-article-content ul li {
    font-size: 14px;
  }
}

/* ============================================================
   FLAGSHIP LISTICLE — Page-Style Layout Classes
   Add to main.css under .yp-article-content scope
   Designed for LIGHT theme (cream/white background)
   ============================================================ */

/* --- Hero TL;DR Box --- */
.yp-article-content .ytt-hero-tldr {
  background: var(--card);
  border-left: 3px solid var(--teal, var(--forest-mid));
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 40px;
  font-size: 0.97em;
  line-height: 1.75;
}
.yp-article-content .ytt-hero-tldr strong {
  color: var(--teal, var(--forest-mid));
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* --- Section spacing via H2 margin (no wrapper divs needed) --- */
.yp-article-content > h2 {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid hsl(30, 20%, 90%);
}

/* --- Location Cards Grid --- */
.yp-article-content .ytt-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.yp-article-content .ytt-location-card {
  background: hsl(30, 30%, 97%);
  border: 1px solid hsl(30, 20%, 90%);
  border-radius: 8px;
  padding: 24px 24px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yp-article-content .ytt-location-card:hover {
  border-color: var(--teal, var(--forest-mid));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.yp-article-content .ytt-location-card h4 {
  margin: 0 0 4px;
  font-size: 1.1em;
  font-weight: 600;
}
.yp-article-content .ytt-location-card h4 a {
  color: inherit;
  text-decoration: none;
}
.yp-article-content .ytt-location-card h4 a:hover {
  color: var(--teal, var(--forest-mid));
}
.yp-article-content .ytt-location-card .ytt-loc-vibe {
  font-size: 0.85em;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 12px;
  font-style: italic;
}
.yp-article-content .ytt-location-card .ytt-loc-best {
  font-size: 0.9em;
  margin: 0 0 8px;
  line-height: 1.6;
}
.yp-article-content .ytt-location-card .ytt-loc-feature {
  font-size: 0.82em;
  color: rgba(0, 0, 0, 0.4);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid hsl(30, 20%, 90%);
}

/* --- Callout Box (key insight / stat pull-out) --- */
.yp-article-content .ytt-callout {
  background: hsl(38, 50%, 96%);
  border: 1px solid hsl(38, 40%, 88%);
  border-radius: 6px;
  padding: 22px 28px;
  margin: 28px 0;
  font-size: 0.95em;
  line-height: 1.7;
}
.yp-article-content .ytt-callout strong {
  color: hsl(30, 60%, 40%);
}

/* --- School Profile Card --- */
.yp-article-content .ytt-school-profile {
  background: hsl(30, 25%, 97%);
  border: 1px solid hsl(30, 20%, 90%);
  border-top: 3px solid var(--teal, var(--forest-mid));
  border-radius: 10px;
  padding: 36px 36px 36px;
  margin: 56px 0;
}
.yp-article-content .ytt-school-label {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(30, 60%, 40%);
  background: hsl(38, 50%, 93%);
  border: 1px solid hsl(38, 40%, 85%);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.yp-article-content .ytt-school-profile h2 {
  margin-top: 8px;
}
.yp-article-content .ytt-school-profile .ytt-school-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 30px;
  background: var(--teal, var(--forest-mid));
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.yp-article-content .ytt-school-profile .ytt-school-cta:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* --- Visual Numbered Steps --- */
.yp-article-content .ytt-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  counter-reset: step-counter;
}
.yp-article-content .ytt-steps > li {
  counter-increment: step-counter;
  position: relative;
  padding: 28px 28px 28px 76px;
  margin-bottom: 16px;
  background: hsl(30, 25%, 97%);
  border: 1px solid hsl(30, 20%, 91%);
  border-radius: 8px;
  line-height: 1.7;
}
.yp-article-content .ytt-steps > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 34px;
  height: 34px;
  background: var(--teal, var(--forest-mid));
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yp-article-content .ytt-steps > li strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05em;
  color: hsl(15, 30%, 25%);
}

/* --- CTA Strip (bottom of page) --- */
.yp-article-content .ytt-cta-strip {
  text-align: center;
  padding: 48px 32px;
  margin: 56px 0;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.yp-article-content .ytt-cta-strip h2 {
  margin-top: 0;
}
.yp-article-content .ytt-cta-strip .ytt-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.yp-article-content .ytt-cta-strip .ytt-cta-links a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  color: var(--forest-mid);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.yp-article-content .ytt-cta-strip .ytt-cta-links a:hover {
  border-color: var(--teal, var(--forest-mid));
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* --- Review Guidance (trust / warning boxes) --- */
.yp-article-content .ytt-tip-box {
  padding: 24px 28px;
  margin: 28px 0;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.7;
}
.yp-article-content .ytt-tip-box--trust {
  background: var(--card);
  border-left: 3px solid var(--teal, var(--forest-mid));
}
.yp-article-content .ytt-tip-box--warn {
  background: hsl(15, 40%, 97%);
  border-left: 3px solid hsl(15, 55%, 55%);
}
.yp-article-content .ytt-tip-box strong:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

/* --- Editorial Images (full-width between sections) --- */
.yp-article-content .ytt-editorial-img {
  margin: 40px 0;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.yp-article-content .ytt-editorial-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
  border-radius: 10px;
}

/* --- Feature Image Layout (1 large + 2 stacked) --- */
.yp-article-content .ytt-editorial-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin: 36px 0 40px;
  border-radius: 10px;
  overflow: hidden;
}
.yp-article-content .ytt-editorial-feature figure {
  margin: 0;
  position: relative;
  line-height: 0;
  overflow: hidden;
}
.yp-article-content .ytt-editorial-feature .ytt-feature-main {
  grid-row: 1 / 2;
}
.yp-article-content .ytt-editorial-feature .ytt-feature-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 340px;
}
.yp-article-content .ytt-editorial-feature .ytt-feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.yp-article-content .ytt-editorial-feature .ytt-feature-side figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
}
.yp-article-content .ytt-editorial-feature figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}


/* --- Responsive --- */
@media (max-width: 600px) {
  .yp-article-content .ytt-location-grid {
    grid-template-columns: 1fr;
  }
  .yp-article-content .ytt-editorial-feature {
    grid-template-columns: 1fr;
  }
  .yp-article-content .ytt-editorial-feature .ytt-feature-main img {
    min-height: 220px;
  }
  .yp-article-content .ytt-editorial-feature .ytt-feature-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .yp-article-content .ytt-editorial-feature .ytt-feature-side figure img {
    min-height: 140px;
  }
  .yp-article-content .ytt-editorial-img img {
    max-height: 280px;
  }
  .yp-article-content .ytt-school-profile {
    padding: 24px 18px 22px;
  }
  .yp-article-content .ytt-steps > li {
    padding: 20px 18px 20px 60px;
  }
  .yp-article-content .ytt-steps > li::before {
    left: 14px;
    top: 18px;
  }
  .yp-article-content .ytt-hero-tldr {
    padding: 22px 20px;
  }
  .yp-article-content .ytt-cta-strip {
    padding: 36px 18px;
  }
  .yp-article-content .ytt-cta-strip .ytt-cta-links {
    flex-direction: column;
    align-items: center;
  }
}
/* ============================================================
   BLOG ARCHIVE — Category / Archive Pages
   Paste at bottom of main.css
   ============================================================ */

/* Grid */
.yp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Card */
.yp-blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.yp-blog-card:hover {
  border-color: hsl(15, 55%, 55%, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Image */
.yp-blog-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--muted);
}
.yp-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.yp-blog-card:hover .yp-blog-card__img img {
  transform: scale(1.05);
}
.yp-blog-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Body */
.yp-blog-card__body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta row */
.yp-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.yp-blog-card__cat {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(61,107,34,0.1);
  color: var(--teal);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.yp-blog-card__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Title */
.yp-blog-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.yp-blog-card:hover .yp-blog-card__title {
  color: var(--primary);
}

/* Excerpt */
.yp-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Footer */
.yp-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.yp-blog-card__read {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.yp-blog-card__arrow {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.2s;
}
.yp-blog-card:hover .yp-blog-card__arrow {
  transform: translateX(4px);
}

/* Pagination */
.yp-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 3rem;
}
.yp-blog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  background: var(--card);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.yp-blog-pagination__link:hover {
  background: var(--muted);
  border-color: var(--primary);
}
.yp-blog-pagination__link--active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.yp-blog-pagination__link--active:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* Responsive */
@media (max-width: 640px) {
  .yp-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  #main > div:first-child .yp-container > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ── Filter Bar ───────────────────────────────────────────── */
.nm-filter-bar {
  background: rgba(212,145,42,0.08);
  border: 1.5px solid rgba(212,145,42,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.nm-filter-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nm-filter-select {
  height: 2.625rem;
  padding: 0 2.25rem 0 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a6650' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 220px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nm-filter-select:hover {
  border-color: var(--forest-light);
}

.nm-filter-select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-pale);
}

.nm-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.875rem;
  background: var(--forest);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nm-filter-clear:hover {
  background: var(--forest-mid);
}

.nm-filter-pills {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.nm-filter-pill {
  background: var(--amber-pale);
  color: var(--amber);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .nm-filter-bar { padding: 0.875rem 1rem; }
  .nm-filter-bar__row { gap: 0.5rem; }
  .nm-filter-select {
    flex: 1 1 100%;
    max-width: 100%;
    height: 2.75rem;
    font-size: 0.9375rem;
  }
  .nm-filter-clear { flex: 0 0 auto; }
  .nm-filter-pills { width: 100%; }
}

/* Tablet: 2 per row */
@media (min-width: 641px) and (max-width: 900px) {
  .nm-filter-select {
    flex: 1 1 calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAMOO MOBILE OPTIMIZATION
   Comprehensive responsive fixes for all page types
   ═══════════════════════════════════════════════════════════════ */

/* ── Topbar mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --topbar-height: 64px; }
  .nm-topbar__inner { padding: 0 0.75rem; gap: 0.5rem; }
  .nm-topbar__logo img { height: 50px !important; }
  .nm-btn--amber { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .nm-btn--outline { font-size: 0.75rem; padding: 0.3rem 0.625rem; }
  .nm-navbar { display: none; }
}

/* ── Country/region hero mobile ────────────────────────────── */
@media (max-width: 768px) {
  [style*="min-height:420px"] { min-height: 300px !important; }
  [style*="min-height:380px"] { min-height: 280px !important; }
}

/* ── Country/region stats bar mobile ───────────────────────── */
@media (max-width: 640px) {
  [style*="justify-content:center"][style*="gap:2rem"] {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    font-size: 0.8125rem !important;
  }
}

/* ── Month grid mobile (6 cols → 3 cols) ───────────────────── */
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.375rem !important;
  }
}

/* ── Highlights box mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:2rem"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

/* ── School card grid mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .yp-schools-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ── Single school hero mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .single-school [style*="min-height:400px"],
  .single-school [style*="min-height:380px"] {
    min-height: 280px !important;
  }
  .single-school [style*="font-size:2rem"][style*="font-weight:700"][style*="color:white"] {
    font-size: 1.5rem !important;
  }
}

/* ── Single school sidebar mobile ──────────────────────────── */
@media (max-width: 1024px) {
  .yp-single-grid {
    grid-template-columns: 1fr !important;
  }
  .yp-single-grid > div:last-child {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    order: -1;
  }
}

/* ── Single school quick stats mobile ──────────────────────── */
@media (max-width: 640px) {
  .yp-quick-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  .yp-quick-stats > div {
    padding: 0.75rem !important;
  }
}

/* ── Single school offerings cards mobile ──────────────────── */
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Single school AI summary mobile ───────────────────────── */
@media (max-width: 640px) {
  .yp-ai-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .yp-ai-grid > div:last-child {
    border-left: none !important;
    border-top: 1px solid rgba(61,107,34,0.2) !important;
    height: 280px !important;
  }
}

/* ── CTA strip mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  section[style*="padding:4rem"] {
    padding: 2.5rem 0 !important;
  }
}

/* ── Footer mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .yp-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  footer[style*="padding:4rem"] {
    padding: 2.5rem 0 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .yp-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ── General mobile spacing ────────────────────────────────── */
@media (max-width: 640px) {
  .yp-container { padding: 0 1rem; }
  h1 { font-size: 1.5rem !important; line-height: 1.3 !important; }
  h2 { font-size: 1.25rem !important; }
  [style*="gap:3rem"] { gap: 1.5rem !important; }
  [style*="padding:3rem 0"] { padding: 2rem 0 !important; }
}

/* ── Browse pills overflow on mobile ───────────────────────── */
@media (max-width: 640px) {
  [style*="flex-wrap:wrap"][style*="gap:0.625rem"] {
    gap: 0.5rem !important;
  }
}

/* ── Compare page mobile ───────────────────────────────────── */
@media (max-width: 768px) {
  .yp-compare-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Level/type page info cards mobile ─────────────────────── */
@media (max-width: 640px) {
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
