/* ============================================================
   HFYC GHOST THEME — screen.css
   Help For Your Child Blog
   Design: Warm White bg, Deep Teal authority, Warm Coral CTAs
   Fonts: Montserrat (headings) + Lato (body)
   Version: 2.0 — self-hosted Ghost under /blog: self-hosted fonts, server-rendered tags/pills/breadcrumbs/pagination, no search
   ============================================================ */

/* Fonts: self-hosted (OFL-1.1, from @fontsource 5.3.0; licences in assets/fonts/) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/lato-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

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

:root {
  --page-bg:      #FFFFFF;
  --teal-deep:    #1F6B6B;
  --teal-mid:     #2A8A8A;
  --teal-pale:    #D0ECEC;
  --teal-tint:    #E8F4F4;
  --coral-warm:   #D4603A;
  --coral-light:  #E8896A;
  --navy-dark:    #0F3A3A;
  --slate-blue:   #4A6B8A;
  --white:        #ffffff;
  --text-dark:    #222222;
  --text-mid:     #444444;
  --text-light:   #666666;
  --border:       #DDD8D0;
}

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

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal-deep);
}

/* Inline text links use Slate Blue — never Coral */
a { color: var(--slate-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-deep); }

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

/* ---- Layout ---- */
.gh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .gh-container { padding: 0 2rem; }
}

/* ============================================================
   HEADER — matches staging site nav EXACTLY
   Single <nav> element: padding 0 24px, height 72px, flex space-between
   ============================================================ */
.gh-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--teal-pale);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* No wrapper div — nav IS the container (matches staging) */

/* Logo — transparent PNG on white background */
.gh-head-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.gh-logo-img {
  height: 53px;
  width: auto;
  display: block;
  /* Ensure transparent PNG/WebP renders correctly on white navbar */
  background: transparent;
  mix-blend-mode: normal;
  object-fit: contain;
}

/* Desktop nav — flex container (EXACT match: justifyContent:center, flex:1 1 0%, padding:0) */
.gh-head-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1 1 0%;
  justify-content: center;
  white-space: nowrap;
}

/* Each nav item wrapper */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Top-level nav links — underline style matching staging site exactly */
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border-radius: 0;
}
.nav-item > a:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
  background: none;
}
/* Active: Parents item — teal underline + teal text + bold */
.nav-parents-active > a {
  color: var(--teal-deep);
  font-weight: 700;
  border-bottom-color: var(--teal-deep);
}
.nav-item > a.current {
  color: var(--teal-deep);
  font-weight: 700;
  border-bottom-color: var(--teal-deep);
}

/*/* Chevron SVG — 14px, rotates 180deg on hover */
.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1.5px solid var(--teal-pale);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31,107,107,0.14);
  z-index: 200;
  padding: 6px 0;
  flex-direction: column;
}
.nav-has-dropdown:hover .nav-dropdown {
  display: flex;
}

/* Dropdown links */
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-bottom: none !important;
}
.nav-dropdown a:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-bottom: none !important;
}

/* Legacy flat nav links (non-dropdown items) */
.gh-head-menu a {
  display: block;
  padding: 8px 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.gh-head-menu a:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
}
.gh-head-menu a.current {
  color: var(--teal-deep);
  font-weight: 700;
  border-bottom-color: var(--teal-deep);
}

/*/* Header actions: search icon + CTA + phone — matches staging action cluster */
.gh-head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
  white-space: nowrap;
}

/*/* Phone number — Montserrat 600 teal */
.gh-head-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.gh-head-phone:hover { color: var(--teal-mid); }

/*/* CTA Button — Coral background, Montserrat 700, 4px border-radius (matches staging) */
.btn-coral {
  background-color: var(--coral-warm);
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 14px;
  transition: background-color 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-coral:hover {
  background-color: var(--coral-light);
  color: var(--white) !important;
}

/*/* Search button — inside actions cluster, no extra margin */
.gh-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 0;
  border-radius: 8px;
  color: var(--text-mid);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.gh-search-btn:hover {
  color: var(--teal-deep);
  background: var(--teal-tint);
}
.gh-search-btn svg { display: block; }

:root {
  --sodo-search-brand-color: #1F6B6B;
}

/* Hamburger */
.gh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background 0.15s;
}
.gh-burger:hover { background: var(--teal-tint); }
.gh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav overlay */
.gh-head-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  padding: 1rem 1rem 1.5rem;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(31,107,107,0.12);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}
.gh-head-mobile.is-open {
  display: flex;
  transform: translateY(0);
}

.gh-head-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.4);
}
.gh-head-mobile-backdrop.is-open { display: block; }

.gh-head-mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.gh-head-mobile-close:hover { background: var(--teal-tint); }

.gh-head-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gh-head-mobile nav a {
  padding: 0.875rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--teal-tint);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.gh-head-mobile nav a:hover { color: var(--teal-deep); background: var(--teal-tint); }

.gh-head-mobile-cta {
  margin-top: 1rem;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile dropdown (details/summary) */
.mobile-dropdown {
  border-bottom: 1px solid var(--teal-tint);
}
.mobile-dropdown summary {
  padding: 0.875rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: block;
}
.mobile-dropdown summary::-webkit-details-marker { display: none; }
.mobile-dropdown summary::after {
  content: ' \25BE';
  font-size: 0.75rem;
  color: var(--text-light);
}
.mobile-dropdown[open] summary::after { content: ' \25B4'; }
.mobile-dropdown a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: none;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.mobile-dropdown a:hover {
  color: var(--teal-deep);
  background: var(--teal-tint);
}

/* Override Ghost's injected body padding-top (announcement bar placeholder) — must use !important */
body { padding-top: 0 !important; }

@media (max-width: 1023px) {
  .gh-head-menu,
  .gh-head-actions { display: none; }
  .gh-burger { display: flex; }
}

/* ============================================================
   HERO — Blog Index
   Matches staging site: gradient 135deg from #0F3A3A to #1F6B6B to #2A8A8A
   padding: 72px 24px
   ============================================================ */
.gh-hero {
  background: linear-gradient(135deg, #0F3A3A 0%, #1F6B6B 60%, #2A8A8A 100%);
  color: var(--white);
  padding: 72px 24px;
}
.gh-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero eyebrow — plain text, no pill/oval, matches website hub pages */
.gh-hero-badge {
  display: block;
  background: none;
  color: var(--teal-pale);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 16px;
}

.gh-hero h1 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Two-line hero title — tight line spacing */
.hero-title-salmon {
  color: #E8896A;
  display: block;
  line-height: 1.15;
  margin-bottom: 0.05em;
}

.hero-title-white {
  color: var(--white);
  display: block;
  line-height: 1.15;
}

.gh-hero p {
  font-family: 'Lato', sans-serif;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin: 0;
  max-width: 560px;
}

/* ============================================================
   POST GRID
   ============================================================ */
.gh-feed {
  padding: 3rem 0 4rem;
}

.gh-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gh-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(31,107,107,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
}
.gh-card:hover {
  box-shadow: 0 6px 28px rgba(31,107,107,0.14);
  transform: translateY(-3px);
}

.gh-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gh-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gh-card:hover .gh-card-image img { transform: scale(1.04); }

.gh-card-image-placeholder {
  aspect-ratio: 16/9;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--teal-deep);
  opacity: 0.35;
}

.gh-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gh-card-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-mid);
  background: var(--teal-pale);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.gh-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.gh-card-title a { color: inherit; text-decoration: none; }
.gh-card-title a:hover { color: var(--teal-mid); }

.gh-card-excerpt {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: auto;
}
.gh-card-meta-dot { color: var(--border); }

/* ============================================================
   PAGINATION
   ============================================================ */
.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 4rem;
}
.gh-pagination a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  border: 2px solid var(--teal-deep);
  border-radius: 4px;
  padding: 0.55rem 1.5rem;
  transition: all 0.2s;
  text-decoration: none;
}
.gh-pagination a:hover {
  background: var(--teal-deep);
  color: var(--white);
}
.gh-pagination .gh-pagination-count {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* ============================================================
   ARTICLE / POST PAGE
   ============================================================ */
.gh-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.gh-article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.gh-article-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-mid);
  background: var(--teal-pale);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.gh-article-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--teal-deep);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.gh-article-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--coral-warm);
  border-radius: 2px;
  margin: 1rem auto;
}

.gh-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
}

.gh-article-feature-image {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.gh-article-feature-image img {
  width: 100%;
  border-radius: 12px;
}

/* Post body content */
.gh-content {
  font-family: 'Lato', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.gh-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal-deep);
  margin: 1.5rem 0 0.75rem;
}
.gh-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-deep);
  margin: 1.25rem 0 0.5rem;
}
.gh-content p { margin-bottom: 1rem; }
.gh-content ul, .gh-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.gh-content li { margin-bottom: 0.5rem; }
.gh-content a { color: var(--slate-blue); text-decoration: underline; }
.gh-content a:hover { color: var(--teal-deep); }
.gh-content blockquote {
  border-left: 4px solid var(--teal-pale);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--teal-tint);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-mid);
}
.gh-content img {
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hide duplicate featured image that appears as first element in migrated WP post bodies */
.gh-content > figure:first-child img[src*="Hero-Image"],
.gh-content > p:first-child > img[src*="Hero-Image"],
.gh-content > img:first-child[src*="Hero-Image"] {
  display: none;
}
.gh-content figure { margin: 1rem 0; }
.gh-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Tag pills */
.gh-tag-pill {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-mid);
  background: var(--teal-pale);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  transition: background 0.15s;
}
.gh-tag-pill:hover {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

/* Author box */
.gh-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--teal-tint);
  border-radius: 12px;
  border: 1.5px solid var(--teal-pale);
}
.gh-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gh-author-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.gh-author-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-deep);
  margin-bottom: 0.25rem;
}
.gh-author-info p {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* Post CTA Banner — Deep Teal Navy background, HFYC branded */
.gh-post-cta {
  background: var(--navy-dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  margin-top: 3rem;
}
.gh-post-cta h2 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.gh-post-cta p {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   Matches staging site exactly: Dark Teal Navy #0F3A3A background,
   4-column grid (brand, quick links, locations, services)
   ============================================================ */
.gh-foot {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-family: 'Lato', sans-serif;
}

.gh-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gh-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

@media (max-width: 900px) {
  .gh-foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }
}
@media (max-width: 540px) {
  .gh-foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }
}

/* Brand column */
.gh-foot-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}
.gh-foot-brand-tagline {
  font-size: 11px;
  color: var(--teal-pale);
  margin-top: 4px;
  margin-bottom: 16px;
}
.gh-foot-brand-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  max-width: 280px;
}
.gh-foot-brand-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gh-foot-brand-contacts a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s;
}
.gh-foot-brand-contacts a:last-child {
  font-size: 13px;
  font-weight: 400;
}
.gh-foot-brand-contacts a:hover { color: var(--white); }

/* Column headings */
.gh-foot-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-pale);
  margin-bottom: 16px;
}

/* Quick links */
.gh-foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gh-foot-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.gh-foot-links a:hover { color: var(--white); }

/* Locations */
.gh-foot-locations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gh-foot-location {
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.gh-foot-location:hover { color: var(--white); }
.gh-foot-location-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2px;
}
.gh-foot-location-addr {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

/* Provider referral link */
.gh-foot-provider-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--coral-warm);
  text-decoration: none;
  transition: color 0.15s;
}
.gh-foot-provider-link:hover { color: var(--coral-light); }

/* Footer bottom bar */
.gh-foot-bottom {
  background: var(--navy-dark);
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.gh-foot-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin: 0;
}
.gh-foot-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.gh-foot-bottom a:hover { color: var(--white); }

/* ============================================================
   TABLE OF CONTENTS (TOC) & ARTICLE AT A GLANCE
   ============================================================ */

/* Article at a Glance Card */
.article-glance {
  background-color: var(--teal-tint);
  border: 1.5px solid var(--teal-pale);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(31,107,107,0.08);
}

.article-glance h3 {
  color: var(--teal-deep);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-glance h3::before {
  content: '✨';
  font-size: 1.2rem;
}

.article-glance ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-glance li {
  position: relative;
  padding-left: 1.5rem !important;
  margin-bottom: 0.75rem !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.article-glance li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal-mid);
  font-weight: bold;
}

/* Table of Contents (TOC) Card */
.gh-toc-card {
  background-color: #fcfcfc;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
}

.gh-toc-header {
  padding: 1rem 1.25rem;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.gh-toc-header h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gh-toc-toggle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-transform: uppercase;
}

.gh-toc-content {
  padding: 1.25rem;
  display: none; /* Collapsed by default */
}

.gh-toc-content.is-open {
  display: block;
}

.gh-toc-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.gh-toc-content li {
  margin-bottom: 0.5rem !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

.gh-toc-content a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: color 0.15s;
}

.gh-toc-content a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.gh-toc-content ul ul {
  padding-left: 1.25rem !important;
  margin-top: 0.5rem !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   KOENIG EDITOR CLASSES — Required by Ghost
   ============================================================ */

/* Wide width images/embeds */
.kg-width-wide {
  max-width: 1000px;
  margin: 0 auto;
}

/* Full width images/embeds */
.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Koenig gallery */
.kg-gallery-container {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.kg-gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.kg-gallery-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Koenig video */
.kg-video {
  width: 100%;
  margin: 2rem 0;
}

/* Koenig bookmark */
.kg-bookmark-container {
  display: flex;
  border: 1px solid var(--teal-pale);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  transition: box-shadow 0.15s;
}

.kg-bookmark-container:hover {
  box-shadow: 0 4px 12px rgba(31,107,107,0.1);
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kg-bookmark-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.kg-bookmark-description {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.kg-bookmark-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.kg-bookmark-thumbnail {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-left: 1px solid var(--teal-pale);
}

/* Koenig callout */
.kg-callout-card {
  border-left: 4px solid var(--teal-pale);
  background: var(--teal-tint);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.kg-callout-card.kg-callout-card-grey {
  border-left-color: #999;
  background: #f3f3f3;
}

.kg-callout-card.kg-callout-card-white {
  border-left-color: #999;
  background: #fff;
}

.kg-callout-card.kg-callout-card-blue {
  border-left-color: var(--teal-deep);
  background: var(--teal-tint);
}

.kg-callout-card.kg-callout-card-green {
  border-left-color: #2d8a2d;
  background: #e8f5e9;
}

.kg-callout-card.kg-callout-card-yellow {
  border-left-color: #f5a623;
  background: #fffaeb;
}

.kg-callout-card.kg-callout-card-red {
  border-left-color: #e74c3c;
  background: #fadbd8;
}

.kg-callout-emoji {
  margin-right: 0.5rem;
}

/* Koenig button */
.kg-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--coral-warm);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s;
  margin: 1rem 0;
}

.kg-btn:hover {
  background: var(--coral-light);
}

/* Koenig toggle */
.kg-toggle-card {
  border: 1px solid var(--teal-pale);
  border-radius: 6px;
  margin: 2rem 0;
}

.kg-toggle-heading {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--teal-tint);
  border-radius: 6px 6px 0 0;
}

.kg-toggle-heading:hover {
  background: #d4e8e8;
}

.kg-toggle-content {
  padding: 1rem;
  display: none;
}

.kg-toggle-card.kg-toggle-card-active .kg-toggle-content {
  display: block;
}

/* Koenig tab */
.kg-tab-content {
  display: none;
}

.kg-tab-content.kg-tab-content-active {
  display: block;
}


@media (max-width: 768px) {
  .gh-hero { padding: 48px 20px; }
  .gh-article { padding: 2rem 1rem; }
  .gh-article-feature-image { padding: 0 1rem; }
  .gh-feed { padding: 2rem 0 3rem; }
  .gh-feed-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gh-post-cta { padding: 2.5rem 1rem; }
}


/* ============================================================
   PHASE 1 FEATURES — Blog Navigation Enhancement
   Search, Pagination, Back-to-Top Button
   Added July 2026 — Non-intrusive, isolated styles
   ============================================================ */

/* ---- SEARCH FUNCTIONALITY ---- */
.blog-search-container {
  padding: 40px 0;
  background: transparent;
}

.blog-search-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .blog-search-form { padding: 0 2rem; }
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2.5px solid var(--teal-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 138, 138, 0.15);
}

.search-input-wrapper:focus-within {
  border-color: var(--teal-deep);
  box-shadow: 0 6px 20px rgba(42, 138, 138, 0.25);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Lato', sans-serif;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: #999999;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--teal-mid);
  cursor: pointer;
  color: var(--white);
  transition: all 0.3s ease;
  flex-shrink: 0;
  border-radius: 0 6px 6px 0;
}

.search-submit:hover {
  background: var(--teal-deep);
  transform: scale(1.05);
}

.search-submit:active {
  transform: scale(0.98);
}

.search-submit svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--white);
  border: 2.5px solid var(--teal-mid);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 50;
  display: none;
  box-shadow: 0 8px 24px rgba(42, 138, 138, 0.2);
}

.search-results.visible {
  display: block;
}

.search-result-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--teal-tint);
  border-left: 4px solid var(--teal-mid);
  padding-left: 16px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 15px;
  margin-bottom: 6px;
}

.search-result-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 768px) {
  .blog-search-container { padding: 20px 0; }
  .blog-search-form { padding: 0 1.5rem; }
  .search-input { font-size: 16px; }
}

/* ---- NUMBERED PAGINATION ---- */
.pagination-container {
  padding: 40px 0 60px;
  text-align: center;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  border: 1px solid var(--teal-deep);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 40px;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--teal-deep);
  color: var(--white);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #999999 !important;
  border-color: #999999 !important;
  background: #f5f5f5 !important;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination-number:hover {
  background: var(--teal-tint);
  border-color: var(--slate-blue);
}

.pagination-number.active {
  background: var(--slate-blue);
  color: var(--white);
  border-color: var(--slate-blue);
  font-weight: 800;
}

.pagination-ellipsis {
  color: var(--text-light);
  padding: 0 4px;
  font-weight: 700;
}

.pagination-info {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .pagination-container { padding: 30px 0 40px; }
  
  .pagination-btn {
    width: 100%;
    padding: 12px 16px;
    min-height: 44px;
    font-size: 16px;
  }
  
  .pagination-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  
  /* Stack Previous/Next vertically on small screens */
  .pagination-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .pagination-controls .pagination-btn {
    width: 100%;
  }
}

/* ---- BACK-TO-TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--teal-mid);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
}

.back-to-top.visible {
  display: flex;
  animation: fadeInBackToTop 0.3s ease-in-out forwards;
}

@keyframes fadeInBackToTop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.back-to-top:hover {
  background: var(--teal-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.back-to-top-text {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
  }
}

/* Ensure back-to-top doesn't overlap footer on very small screens */
@media (max-width: 480px) {
  .back-to-top {
    bottom: auto;
    top: calc(100vh - 72px);
  }
}


/* ============================================================
   PHASE 2 FEATURES: Filters, Breadcrumbs, Back-to-Top Button
   Added July 2026 — Non-intrusive, isolated styles
   ============================================================ */

/* ---- CATEGORY FILTERS ---- */
.blog-filters-container {
  padding: 30px 0;
  background: transparent;
}

.filters-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Left column: label stacked above hint */
.filters-label-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 0;
}

.filters-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  padding-top: 10px; /* vertically align with pill height */
}

.filters-scroll-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Right-edge fade gradient — always visible, fades when scrolled to end via JS */
.filters-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  background: linear-gradient(to right, transparent, #f7f7f5);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}

.filters-scroll-wrap.at-end::after {
  opacity: 0;
}

.filters-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Show a visible grey scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #BBBBBB transparent;
  padding-right: 48px; /* space for fade */
  padding-bottom: 6px; /* space for scrollbar track */
}

/* Webkit scrollbar — visible grey thumb, transparent track */
.filters-scroll::-webkit-scrollbar {
  display: block;
  height: 6px;
}
.filters-scroll::-webkit-scrollbar-track {
  background: #E8E8E8;
  border-radius: 3px;
}
.filters-scroll::-webkit-scrollbar-thumb {
  background: #AAAAAA;
  border-radius: 3px;
  cursor: grab;
}
.filters-scroll::-webkit-scrollbar-thumb:hover {
  background: #888888;
}
.filters-scroll::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
  background: #666666;
}

/* Swipe hint — sits under the label, arrow points right toward scrollbar */
.filters-swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Top margin: pill height (~38px) + scrollbar height (6px) + track padding (6px) + gap */
  margin-top: 14px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.4s;
}

/* Animated arrow indicator */
.filters-swipe-hint .swipe-arrow {
  display: inline-flex;
  align-items: center;
  animation: swipe-nudge 1.6s ease-in-out infinite;
}

@keyframes swipe-nudge {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.5; }
}

.filters-swipe-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.filters-pills {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.filter-pill:hover {
  border-color: var(--teal-mid);
  background: var(--teal-tint);
}

.filter-pill.active {
  background: var(--teal-mid);
  color: var(--white);
  border-color: var(--teal-mid);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin-left: 2px;
}

.filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .blog-filters-container {
    padding: 20px 0;
  }
  
  .filters-wrapper {
    gap: 12px;
  }
  
  .filters-label {
    font-size: 12px;
  }
  
  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Mobile: single row — hint on the left, pills scrolling to the right on the same line */
  /* Use display:contents to lift label and hint out of their column wrapper */
  .filters-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 12px;
  }

  /* Unwrap the label column so its children become direct grid items */
  .filters-label-col {
    display: contents;
  }

  /* Label: row 1, col 1 */
  .filters-label {
    grid-row: 1;
    grid-column: 1;
    padding-top: 0;
    align-self: center;
  }

  /* Hint: row 2, col 1 — sits directly under the label */
  .filters-swipe-hint {
    grid-row: 2;
    grid-column: 1;
    margin-top: 0;
    white-space: nowrap;
    align-self: center;
  }

  /* Pills scroll wrap: spans both rows in col 2 — pills align with hint row */
  .filters-scroll-wrap {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: end;
  }
}

/* ---- BREADCRUMB NAVIGATION ---- */
.blog-breadcrumb-container {
  padding: 16px 0 20px;
  background: transparent;
}

.breadcrumb {
  margin: 0;
  padding: 0;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--border);
  margin-left: 4px;
}

.breadcrumb-link {
  color: var(--teal-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 768px) {
  .blog-breadcrumb-container {
    padding: 12px 0 16px;
  }
  
  .breadcrumb-list {
    font-size: 12px;
  }
}

/* ---- BACK-TO-TOP BUTTON ENHANCEMENTS (Phase 2) ---- */
.back-to-top {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
