/* ==========================================================================
   PataMaps Style System - Headway Warm Editorial Theme
   Comfortaa Font, Forest Sage, Terracotta Accent & Warm Linen Canvas
   ========================================================================== */



:root {
  /* Headway Warm Editorial Brand Tokens */
  --font-family: 'Comfortaa', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Colors Consistent with PataMaps Logo (Deep Navy #0c2340 & Vibrant Teal #1493a6) */
  --forest: #0c2340;
  --forest-dark: #071526;
  --forest-midnight: #050e1a;
  --forest-hover: #16365d;
  --forest-light: #ebf7f9;
  --forest-badge: #ccf0f5;

  /* Backwards Compatibility Mappings */
  --primary-navy: #0c2340;
  --navy-dark: #071526;
  --navy-midnight: #050e1a;
  --navy-hover: #16365d;
  --navy-light: #1a4475;
  --teal: #1493a6;
  --teal-hover: #0e7485;
  --teal-dark: #0c5d6b;
  --teal-deep: #073840;
  --teal-light: #ebf7f9;
  --teal-badge: #ccf0f5;

  /* Primary Brand Action (Aligned with Logo: Vibrant Teal #1493a6 & Emerald #1ea896 - zero orange) */
  --brand-teal: #1493a6;
  --brand-teal-hover: #0e7485;
  --brand-teal-light: #ebf7f9;
  --brand-teal-badge: #ccf0f5;
  --terracotta: #1493a6;
  --terracotta-hover: #0e7485;
  --terracotta-light: #ebf7f9;
  --terracotta-badge: #ccf0f5;
  --coral: #1493a6;

  /* Warm Amber & Stars */
  --amber: #D97706;
  --amber-light: #FEF3C7;

  /* Verified Natural Greens */
  --green: #15803D;
  --green-hover: #166534;
  --green-light: #F0FDF4;
  --green-badge: #DCFCE7;

  /* Canvas & Warm Surfaces (Headway Oat/Linen Editorial) */
  --bg-page: #FAF7F2;              /* Warm Linen Canvas */
  --bg-card: #FFFFFF;              /* Crisp White Surface */
  --bg-warm: #F6F2EB;              /* Soft Warm Tint */
  --border-light: #E8E3DA;         /* Subtle Warm Oat Border */
  --border-card: #E8E3DA;

  /* Warm Espresso & Charcoal Typography */
  --text-dark: #1C1917;            /* Deep rich charcoal for headings */
  --text-main: #3C3835;            /* Warm espresso charcoal for body */
  --text-muted: #78716C;           /* Warm stone muted */

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 6px rgba(44, 40, 37, 0.05);
  --shadow-md: 0 6px 20px -2px rgba(44, 40, 37, 0.08), 0 2px 6px rgba(44, 40, 37, 0.04);
  --shadow-card: 0 8px 28px -4px rgba(44, 40, 37, 0.08), 0 2px 8px rgba(44, 40, 37, 0.04);
  --shadow-card-hover: 0 18px 42px -6px rgba(12, 35, 64, 0.14), 0 4px 14px rgba(20, 147, 166, 0.1);
  --shadow-header: 0 4px 20px rgba(12, 35, 64, 0.06);
  --shadow-floating: 0 20px 48px -6px rgba(12, 35, 64, 0.18), 0 6px 18px rgba(12, 35, 64, 0.08);
  --shadow-terracotta: 0 8px 24px -2px rgba(20, 147, 166, 0.35), 0 2px 8px rgba(20, 147, 166, 0.18);
  --shadow-terracotta-hover: 0 14px 34px -4px rgba(20, 147, 166, 0.45), 0 4px 12px rgba(20, 147, 166, 0.22);
  --shadow-forest: 0 8px 24px -2px rgba(12, 35, 64, 0.28), 0 2px 8px rgba(12, 35, 64, 0.15);
  --shadow-forest-hover: 0 14px 34px -4px rgba(12, 35, 64, 0.38), 0 4px 12px rgba(12, 35, 64, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html, input, button, select, textarea, h1, h2, h3, h4, h5, h6, .btn, .nav-link, p, span, a, label {
  font-family: var(--font-family);
}

body {
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--terracotta);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Clean Site Header & Navigation (Headway Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 210px;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--terracotta);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -4px rgba(44, 40, 37, 0.14), 0 6px 16px -2px rgba(44, 40, 37, 0.06);
  display: none;
  z-index: 1000;
  animation: dropdownFadeIn 0.18s ease forwards;
}

/* Invisible bridge so mouse never leaves hover zone */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  display: block;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mega Menu for Find Care */
.mega-menu-care {
  min-width: 580px;
  padding: 1.25rem;
}

.dropdown-menu-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dropdown-care-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dropdown-care-item:hover {
  background-color: var(--bg-warm);
  transform: translateX(3px);
}

.care-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--terracotta-light);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.dropdown-care-item:hover .care-icon-badge {
  background: var(--terracotta);
  color: #ffffff;
  transform: scale(1.08);
}

.care-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.care-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.dropdown-footer-link {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.dropdown-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terracotta);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.dropdown-all-link:hover {
  background-color: var(--terracotta-light);
  color: var(--terracotta-hover);
}

/* Simple Dropdown for Community and Practices */
.simple-dropdown {
  min-width: 290px;
  padding: 0.65rem;
}

.dropdown-simple-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-simple-item:hover {
  background-color: var(--bg-warm);
}

.dropdown-simple-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--forest-light);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.dropdown-simple-item:hover .item-icon {
  background: var(--forest);
  color: #ffffff;
  transform: scale(1.08);
}

.dropdown-simple-item .item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.dropdown-simple-item .item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Editorial African/Kenyan Photography Stories & Highlights
   ========================================================================== */
.editorial-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .editorial-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.editorial-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -8px rgba(44, 40, 37, 0.16), 0 4px 12px rgba(44, 40, 37, 0.06);
  border: 1.5px solid var(--border-light);
}

.editorial-photo-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.editorial-photo-card:hover img {
  transform: scale(1.02);
}

.editorial-photo-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0c2340 !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.12);
}

.editorial-photo-badge span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

.editorial-photo-badge svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
  flex-shrink: 0;
}

/* Nav Actions (Right Side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-signin-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  transition: color 0.15s ease;
}

.nav-signin-link:hover {
  color: var(--terracotta);
}

.btn-warm-pill,
.btn-teal-pill,
.btn-headway-pill,
.btn-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1493A6 0%, #1EA896 100%);
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-terracotta);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn-warm-pill:hover,
.btn-teal-pill:hover,
.btn-headway-pill:hover,
.btn-brand-pill:hover {
  background: linear-gradient(135deg, #0E7485 0%, #168D7D 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-terracotta-hover);
  color: #ffffff !important;
}

.btn-warm-pill:active,
.btn-teal-pill:active,
.btn-headway-pill:active,
.btn-brand-pill:active {
  transform: translateY(0) scale(0.99);
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-outline:hover {
  border-color: var(--teal);
  background: var(--forest-light);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 147, 166, 0.12);
}

.btn-pill-outline:active {
  transform: translateY(0);
}

/* Crisp Outline Button for Dark Banners (Guarantees visible text & no white-on-white bug) */
.btn-pill-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #ffffff;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-outline-light:hover {
  background: #ffffff;
  color: #0c2340 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-pill-outline-light:active {
  transform: translateY(0);
}

/* Mobile Toggle & Drawer */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.45rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: var(--bg-warm);
  color: var(--terracotta);
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 16px 36px rgba(44, 40, 37, 0.12);
  padding: 1.25rem 1.5rem 1.75rem 1.5rem;
  margin-top: 0.5rem;
  animation: slideDownDrawer 0.2s ease forwards;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--bg-warm);
  color: var(--terracotta);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--border-light);
}

.mobile-nav-hotline {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
  text-align: center;
}

/* ==========================================================================
   Headway Warm Editorial Hero Banner
   ========================================================================== */
/* ==========================================================================
   Headway Warm Editorial Hero Banner
   ========================================================================== */
.hero-headway {
  background-color: var(--bg-page);
  padding: 4rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 8px rgba(44, 40, 37, 0.05);
  animation: badgeGlow 3s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 2px 8px rgba(44, 40, 37, 0.05); }
  100% { box-shadow: 0 4px 14px rgba(20, 147, 166, 0.2); border-color: #ccf0f5; }
}

.hero-pill-badge .pill-dot {
  width: 9px;
  height: 9px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-headline {
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--forest);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem;
  }
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

/* Hero CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #1493A6 0%, #1EA896 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 147, 166, 0.32), 0 2px 6px rgba(20, 147, 166, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #0E7485 0%, #168D7D 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(20, 147, 166, 0.42), 0 4px 10px rgba(20, 147, 166, 0.2);
  color: #ffffff !important;
}

.btn-hero-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff !important;
  color: #0c2340 !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.08);
  transition: all 0.2s ease;
}

.btn-hero-secondary span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

.btn-hero-secondary svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

.btn-hero-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #0c2340 !important;
  color: #0c2340 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.16);
}

.btn-hero-secondary:hover span {
  color: #0c2340 !important;
}

.btn-hero-secondary:hover svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

/* Trust Indicators Row in Hero */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0;
  border-top: none !important;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.trust-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest-light);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon-wrap.green {
  background: #ecfdf5;
  color: #15803d;
}

.trust-icon-wrap.amber {
  background: #fef3c7;
  color: #d97706;
}

/* Hero Right Column: Kenyan Photography with Floating Badges */
.hero-photo-column {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  overflow: visible;
}

.hero-feature-photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 28px;
  border: 2px solid #ffffff;
  box-shadow: 0 24px 60px -8px rgba(30, 58, 47, 0.22), 0 8px 24px -4px rgba(44, 40, 37, 0.1);
  display: block;
  transition: transform 0.4s ease;
}

.hero-photo-wrapper:hover .hero-feature-photo {
  transform: scale(1.015);
}

/* Floating Glass Badges */
.hero-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 227, 218, 0.9);
  border-radius: 18px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 16px 36px -4px rgba(44, 40, 37, 0.18), 0 4px 12px rgba(44, 40, 37, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.badge-top-right {
  top: 24px;
  right: -16px;
}

.badge-bottom-left {
  bottom: 24px;
  left: -16px;
  animation-delay: 2s;
}

@media (max-width: 640px) {
  .badge-top-right { right: 8px; top: 12px; }
  .badge-bottom-left { left: 8px; bottom: 12px; }
}

.badge-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.badge-icon-box.green {
  background: #ecfdf5;
  color: #15803d;
}

.badge-icon-box.amber {
  background: #fef3c7;
  color: #d97706;
}

.badge-text-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.25;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ==========================================================================
   Full-Length Search & Filter Bar Directly Below Hero
   ========================================================================== */
.search-section-full {
  background: var(--bg-card);
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 20;
}

.search-card-full {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 18px 48px -6px rgba(44, 40, 37, 0.1), 0 6px 16px -2px rgba(44, 40, 37, 0.04);
}

.search-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-title-wrap h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}

.search-live-badge {
  background: var(--forest-light);
  color: var(--forest);
  border: 1px solid var(--forest-badge);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.search-full-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 1.15rem;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .search-full-grid {
    grid-template-columns: 1fr;
  }
}

.search-field-block label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .field-icon {
  position: absolute;
  left: 1.1rem;
  color: #78716C;
  pointer-events: none;
}

.search-input-full {
  width: 100%;
  height: 3.5rem;
  padding: 0.6rem 1rem 0.6rem 3rem;
  border: 1.5px solid #d6d3d1;
  border-radius: 14px;
  font-size: 0.98rem;
  color: var(--text-dark);
  background: #ffffff;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.search-input-full:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 147, 166, 0.15);
}

.btn-search-full {
  height: 3.5rem;
  background: linear-gradient(135deg, #1493A6 0%, #1EA896 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 6px 20px rgba(20, 147, 166, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-family);
  white-space: nowrap;
}

.btn-search-full:hover {
  background: linear-gradient(135deg, #0E7485 0%, #168D7D 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 147, 166, 0.42);
}

.btn-search-full:active {
  transform: translateY(0);
}

/* Discipline Filter Pills below search input */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.filter-pills-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--forest);
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.discipline-pill svg {
  color: var(--terracotta);
  transition: transform 0.2s ease;
}

.discipline-pill:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 147, 166, 0.2);
}

.discipline-pill:hover svg {
  transform: scale(1.15);
}
/* ==========================================================================
   Partners Strip ("Trusted collaboration across Kenya" Continuous Marquee)
   ========================================================================== */
.partners-strip {
  background: var(--bg-warm);
  padding: 2.25rem 0 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-strip-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.partners-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Smooth edge gradient fade mask so badges glide in and out smoothly */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 0.5rem 0 0.75rem 0;
}

.partners-marquee-track {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
  width: max-content !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  animation: partnersMarqueeScroll 38s linear infinite;
  will-change: transform;
}

.partners-marquee-wrapper:hover .partners-marquee-track {
  animation-play-state: paused;
}

@keyframes partnersMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-pill);
  color: #0c2340 !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(12, 35, 64, 0.06);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
  cursor: default;
}

.partner-badge span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

.partner-badge svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
  transition: transform 0.22s ease, color 0.22s ease;
  flex-shrink: 0;
}

.partner-badge:hover {
  border-color: #0c2340 !important;
  color: #0c2340 !important;
  background: #f1f5f9 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.16);
}

.partner-badge:hover span {
  color: #0c2340 !important;
}

.partner-badge:hover svg {
  transform: scale(1.15);
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee-track {
    animation: none;
    overflow-x: auto;
  }
  .partners-marquee-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
}

/* ==========================================================================
   Commonly Requested Services Chips
   ========================================================================== */
.service-chips-wrapper {
  margin: 1.5rem 0;
}

.chips-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.service-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 4px rgba(44, 40, 37, 0.04);
  transition: all 0.15s ease;
  text-decoration: none;
}

.service-chip:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
  background: var(--terracotta-light);
  box-shadow: 0 4px 12px rgba(20, 147, 166, 0.2);
}

/* ==========================================================================
   Directory Search & Filtering Page
   ========================================================================== */
.directory-map-banner {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  background: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.map-overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.directory-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  align-items: start;
}

@media (min-width: 993px) {
  .directory-layout > aside {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    z-index: 40;
  }
  .directory-layout > aside .refine-card {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
  .directory-layout > aside .refine-card::-webkit-scrollbar {
    width: 5px;
  }
  .directory-layout > aside .refine-card::-webkit-scrollbar-track {
    background: transparent;
  }
  .directory-layout > aside .refine-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
  }
  .directory-layout > aside .refine-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.mobile-filter-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.refine-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.refine-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refine-search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  outline: none;
}

.refine-search-input:focus {
  border-color: var(--teal);
}

.refine-accordion-item {
  border-top: 1px solid var(--border-light);
  padding: 1rem 0;
}

.refine-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  text-align: left;
}

.refine-accordion-btn span.icon-teal {
  color: var(--teal);
  margin-right: 0.5rem;
}

/* Provider Directory Listing Cards */
.directory-results-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.directory-results-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.provider-result-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 16px -2px rgba(44, 40, 37, 0.06), 0 1px 3px rgba(44, 40, 37, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.provider-result-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 16px 36px -6px rgba(44, 40, 37, 0.12), 0 4px 14px rgba(20, 147, 166, 0.1);
  transform: translateY(-3px);
}

.provider-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.provider-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.provider-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.badge-verified-teal {
  background: var(--teal-badge);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-ndis-green {
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-badge-gold {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.provider-card-headline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.provider-card-desc {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-tag-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Floating Caregiver Support Bar (Warm Headway Editorial)
   ========================================================================== */
.floating-support-bar {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 9999;
  background: #0C2340;
  border: 1.5px solid #1493A6;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: var(--font-family);
}

.floating-support-bar:hover {
  background: linear-gradient(135deg, #0C2340 0%, #1493A6 100%);
  border-color: #1EA896;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 147, 166, 0.45);
}

.floating-support-bar .phone-icon {
  background: linear-gradient(135deg, #1493A6 0%, #1EA896 100%);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(20, 147, 166, 0.4);
}

.floating-support-bar .phone-num {
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.03em;
}

.floating-support-bar .support-sub-label {
  color: #94a3b8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-navy);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 4px solid var(--teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

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

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.country-acknowledgment {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ==========================================================================
   Standard Form Controls & Buttons
   ========================================================================== */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: var(--terracotta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 147, 166, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Button Variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.75rem 1.5rem;
  line-height: 1.25;
}

.btn-primary {
  background: var(--terracotta);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(20, 147, 166, 0.3);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 147, 166, 0.4);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background: var(--bg-warm);
  color: var(--forest) !important;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--forest-dark) !important;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.badge-ndis,
.badge-ncpwd {
  background: var(--forest-light);
  color: var(--forest);
  border: 1px solid var(--forest-badge);
}

.badge-verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-featured {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Provider Profile & Detail Styles
   ========================================================================== */
.provider-detail-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.rating-dimension-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-dimension-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-card-item {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card-item:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Comprehensive Responsive System Across All Breakpoints
   ========================================================================== */

/* Tablet & Smaller Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .nav-menu {
    display: none !important;
  }
  .nav-actions {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .header-inner {
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 18px 18px;
  }
  .brand-logo-img {
    height: 38px !important;
    max-width: 175px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-headline {
    font-size: 2.15rem;
    line-height: 1.22;
    margin-bottom: 1.5rem;
  }
  .hero-visual-wrapper {
    max-width: 100%;
    margin-top: 1rem;
  }

  /* Provider detail layout */
  .provider-main-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .directory-layout {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .mobile-filter-toggle {
    display: flex !important;
  }
  .refine-card {
    display: none;
    margin-bottom: 1.5rem;
  }
  .refine-card.show-mobile {
    display: block !important;
  }
}

/* Mobile Devices & Tablets (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero Section */
  .hero-wrapper {
    padding: 2rem 0 3.25rem 0;
    border-radius: 0 0 32px 32px;
  }
  .hero-headline {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
  }
  .hero-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .hero-tab-btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.95rem;
    border-radius: 10px 10px 0 0;
    flex: 1 1 auto;
    text-align: center;
  }
  .hero-card {
    padding: 1.25rem 1rem;
    border-radius: 0 16px 16px 16px;
  }
  .hero-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .hero-card-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-free-guarantee {
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
  }
  .btn-teal-pill {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Chat bubble and visual mockup in hero */
  .hero-visual-wrapper {
    overflow: hidden;
    max-width: 100%;
    margin-top: 1.5rem;
  }
  .hero-orbital-ring {
    display: none;
  }
  .hero-orb-dot {
    display: none;
  }
  .chat-bubble-card {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
  .match-card-stack {
    margin-left: 0;
  }
  .match-item-card {
    padding: 0.65rem 0.85rem;
    gap: 0.75rem;
  }
  .match-item-logo {
    width: 76px;
    height: 34px;
    font-size: 0.82rem;
  }

  /* Partners strip */
  .partners-strip {
    padding: 1.75rem 0;
  }
  .partners-logo-row {
    gap: 1.25rem;
  }
  .partner-badge {
    font-size: 0.95rem;
  }

  /* Directory Page */
  .directory-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1rem 0 3rem 0 !important;
  }
  .directory-map-container {
    height: 180px !important;
  }
  .provider-result-card {
    padding: 1.25rem;
  }
  .provider-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .provider-card-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  /* Portal Registration Card */
  .portal-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }
  .portal-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .portal-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Review Form Card */
  .review-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: 18px !important;
  }
  .review-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .recommend-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Provider Detail Page */
  .provider-header-box {
    flex-direction: column;
    align-items: stretch !important;
  }
  .provider-score-card {
    width: 100% !important;
    min-width: 0 !important;
  }
  .provider-detail-card {
    padding: 1.25rem !important;
  }

  /* About and How it Works */
  .about-hero-grid,
  .about-split-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Footer adjustments */
  .site-footer {
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Small Smart Phones (max-width: 576px) */
@media (max-width: 576px) {
  .hero-headline {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .hero-input {
    height: 2.85rem;
    font-size: 0.9rem;
  }
  .hero-tab-btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }

  /* Condensed Floating Support Button (Phone Pill) */
  .floating-support-bar {
    bottom: 16px !important;
    right: 16px !important;
    padding: 0.5rem 0.85rem !important;
    gap: 0.45rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  }
  .support-text-label,
  .support-sub-label {
    display: none !important;
  }
  .floating-support-bar .phone-num {
    font-size: 0.92rem !important;
  }
  .floating-support-bar .phone-icon {
    width: 24px !important;
    height: 24px !important;
  }

  /* Star pickers in review forms */
  .star-btn-overall {
    width: 28px !important;
    height: 28px !important;
  }
  #star-picker-overall {
    gap: 0.35rem !important;
  }

  /* Breadcrumbs scroll horizontally without breaking layout */
  .breadcrumb-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }
}

/* ==========================================================================
   Accessibility & Theme System (Light / Dark Mode & Text Resizing)
   ========================================================================== */

/* Typography Scaling */
html[data-text-scale="sm"] {
  font-size: 14.5px;
}
html[data-text-scale="md"], html:not([data-text-scale]) {
  font-size: 16px;
}
html[data-text-scale="lg"] {
  font-size: 18.5px;
}

/* Footer Accessibility & Display Preferences Section */
.footer-a11y-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.35rem;
  margin-bottom: 2.25rem;
}

.footer-a11y-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-a11y-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.footer-a11y-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a11y-sep {
  opacity: 0.35;
  color: #94a3b8;
  margin: 0 0.2rem;
}

.a11y-label {
  font-size: 0.76rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-family: var(--font-family);
}

.a11y-btn:hover, .a11y-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #ffffff;
}

/* Page Blue Hero Banners */
.page-blue-hero {
  background: #1c486f;
  color: #ffffff;
  padding: 4rem 0 4.5rem 0;
  border-radius: 0 0 0 100px;
  margin-bottom: 3rem;
}

/* Mobile Footer A11y Fixes */
@media (max-width: 768px) {
  .footer-a11y-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-a11y-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .page-blue-hero {
    padding: 2rem 0 2.25rem 0 !important;
    border-radius: 0 0 0 36px !important;
    margin-bottom: 1.75rem !important;
  }
  .page-blue-hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.65rem !important;
  }
  .page-blue-hero p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --primary-navy: #f8fafc;
  --navy-dark: #090d16;
  --navy-light: #1e293b;
  --forest: #ecfdf5;
  --forest-dark: #f8fafc;
  --forest-hover: #a7f3d0;
  --forest-light: #162a22;
  --forest-badge: #064e3b;
  --teal: #38bdf8;
  --teal-hover: #7dd3fc;
  --teal-dark: #0284c7;
  --brand-teal: #38bdf8;
  --text-main: #cbd5e1;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --bg-page: #0b1120;
  --bg-card: #151e32;
  --bg-warm: #131b2e;
  --bg-alt: #0f172a;
  --border-light: #223049;
  --border-card: #223049;
  background-color: #0b1120 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] body {
  background-color: #0b1120 !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .site-header {
  background-color: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .site-footer {
  background-color: #040810 !important;
  border-top: 1px solid #1e293b;
}

[data-theme="dark"] .portal-card,
[data-theme="dark"] .card,
[data-theme="dark"] .directory-card,
[data-theme="dark"] .provider-card,
[data-theme="dark"] .search-box-card,
[data-theme="dark"] .search-card-full,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .bg-white {
  background-color: #151e32 !important;
  border-color: #223049 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nav-link {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #38bdf8 !important;
}

[data-theme="dark"] .nav-dropdown-menu,
[data-theme="dark"] .simple-dropdown {
  background-color: #151e32 !important;
  border-color: #223049 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .dropdown-simple-item:hover {
  background-color: #1e293b !important;
}

[data-theme="dark"] .dropdown-simple-item .item-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .dropdown-simple-item .item-sub {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nav-signin-link {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-menu-toggle {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-nav-drawer {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
}

[data-theme="dark"] .mobile-nav-link {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .mobile-nav-link:hover {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea {
  background-color: #090f1d !important;
  border-color: #2b3952 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .category-chip,
[data-theme="dark"] .discipline-pill,
[data-theme="dark"] .service-chip {
  background-color: #151e32 !important;
  border-color: #223049 !important;
  color: #93c5fd !important;
}

[data-theme="dark"] .discipline-pill:hover,
[data-theme="dark"] .service-chip:hover {
  background-color: #1e293b !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .trust-item {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .hero-trust-tag {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .ad-spotlight-card,
[data-theme="dark"] .spotlight-card {
  background-color: #151e32 !important;
  border-color: #223049 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .spotlight-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .spotlight-sub {
  color: #94a3b8 !important;
}

[data-theme="dark"] .provider-card-headline {
  color: #38bdf8 !important;
}

[data-theme="dark"] .provider-card-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .refine-search-input {
  background-color: #090f1d !important;
  border-color: #2b3952 !important;
  color: #f8fafc !important;
}

/* Dark Mode - High-Contrast Navy Blue Words & Icons on White/Light Badges & Cards */
[data-theme="dark"] .partner-badge {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0c2340 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .partner-badge span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .partner-badge svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

[data-theme="dark"] .partner-badge:hover {
  background: #f1f5f9 !important;
  border-color: #0c2340 !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .partner-badge:hover span,
[data-theme="dark"] .partner-badge:hover svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

/* Secondary Hero Pill Buttons in Dark Mode */
[data-theme="dark"] .btn-hero-secondary {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0c2340 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .btn-hero-secondary span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .btn-hero-secondary svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

[data-theme="dark"] .btn-hero-secondary:hover {
  background: #f1f5f9 !important;
  border-color: #0c2340 !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .btn-hero-secondary:hover span,
[data-theme="dark"] .btn-hero-secondary:hover svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

/* Editorial & Photo Badges in Dark Mode */
[data-theme="dark"] .editorial-photo-badge {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0c2340 !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .editorial-photo-badge span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .editorial-photo-badge svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

[data-theme="dark"] .hero-floating-badge {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .hero-floating-badge span,
[data-theme="dark"] .hero-floating-badge strong {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .map-overlay-card {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .map-overlay-card span,
[data-theme="dark"] .map-overlay-card strong,
[data-theme="dark"] .map-overlay-card div {
  color: #0c2340 !important;
}

/* White Hero Search Card on Homepage in Dark Mode */
[data-theme="dark"] .hero-search-card label,
[data-theme="dark"] .hero-search-card .search-field-label,
[data-theme="dark"] .hero-search-card .filter-pills-label {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .hero-search-card .discipline-pill {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .hero-search-card .discipline-pill span {
  color: #0c2340 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .hero-search-card .discipline-pill svg {
  stroke: #0c2340 !important;
}

[data-theme="dark"] .hero-search-card .discipline-pill:hover {
  background: #e2e8f0 !important;
  border-color: #0c2340 !important;
  color: #0c2340 !important;
}

[data-theme="dark"] .hero-search-card .discipline-pill:hover span,
[data-theme="dark"] .hero-search-card .discipline-pill:hover svg {
  color: #0c2340 !important;
  stroke: #0c2340 !important;
}

/* Spotlight Card Headlines in Dark Mode */
[data-theme="dark"] .spotlight-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .spotlight-card h4,
[data-theme="dark"] .spotlight-card h4 a {
  color: #0c2340 !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .spotlight-card .spotlight-sub {
  color: #475569 !important;
}

[data-theme="dark"] .partners-strip .partners-strip-title,
[data-theme="dark"] .partners-title-label {
  color: #cbd5e1 !important;
}

/* ============================================================== */
/* Advanced Accessibility Modes (Dyslexia, High Contrast, Reduced Motion) */
/* ============================================================== */
.dyslexic-mode,
.dyslexic-mode body,
.dyslexic-mode h1,
.dyslexic-mode h2,
.dyslexic-mode h3,
.dyslexic-mode p,
.dyslexic-mode a,
.dyslexic-mode span,
.dyslexic-mode input,
.dyslexic-mode button {
  font-family: 'OpenDyslexic', -apple-system, sans-serif !important;
  letter-spacing: 0.03em !important;
  word-spacing: 0.08em !important;
  line-height: 1.7 !important;
}

[data-contrast="high"] body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

[data-contrast="high"] a {
  color: #0000ee !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

[data-contrast="high"] .provider-result-card,
[data-contrast="high"] .refine-card,
[data-contrast="high"] .cms-stat-card {
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

[data-motion="reduced"] *,
[data-motion="reduced"] *::before,
[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Caregiver Saved Favorites Heart & Comparison Drawer */
.btn-fav-heart {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.btn-fav-heart:hover {
  transform: scale(1.1);
  color: #ef4444;
  border-color: #fca5a5;
}
.btn-fav-heart.active {
  color: #ef4444;
  border-color: #ef4444;
  background: #fef2f2;
}

.fav-compare-floating-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--forest);
  color: #ffffff;
  border: 2px solid var(--terracotta);
  border-radius: 9999px;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}
.fav-compare-floating-pill:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Pagination Constraints & Responsive Sizing
   ========================================================================== */
nav[role="navigation"] svg,
.pagination svg,
svg.w-5,
svg.h-5 {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

nav[role="navigation"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  padding: 1.5rem 0 !important;
}






/* Wide Full-Width Search & Spotlight Bar */
.hero-search-fullwidth {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-search-fullwidth:hover {
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5) !important;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 992px) {
  .hero-search-fullwidth .search-full-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .spotlight-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .hero-headway {
    padding: 3.5rem 0 3rem 0 !important;
  }
  .hero-search-fullwidth {
    padding: 1.35rem 1.25rem !important;
    border-radius: 18px !important;
  }
  .filter-pills-row {
    gap: 0.45rem !important;
  }
  .discipline-pill {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.75rem !important;
  }
}

/* Keep content inside the viewport instead of clipping fixed-width grid tracks. */
.hero-spotlight-section, .spotlight-cards-grid, .spotlight-card { min-width: 0; max-width: 100%; }
.spotlight-cards-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)) !important; }
.spotlight-card { width: 100%; }
.spotlight-card > div:first-child { flex: 1; min-width: 0; }
.breadcrumb-nav { flex-wrap: wrap; overflow-wrap: anywhere; }
.breadcrumb-nav > span:last-child { min-width: 0; flex: 1; white-space: normal; }
@media (max-width: 768px) {
  .about-hero-grid, .about-split-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .about-hero-grid > *, .about-split-grid > * { min-width: 0; }
}
@media (max-width: 480px) {
  .spotlight-card { flex-wrap: wrap; padding: 1rem !important; }
  .spotlight-card > div:last-child { margin-left: auto; }
  #patabot-container { right: 12px !important; bottom: 80px !important; }
  #patabot-launcher { padding: 0.55rem !important; }
  #patabot-launcher-label { display: none; }
  #pwaInstallBanner { padding: 0.85rem !important; }
  #pwaInstallBanner > div { flex-wrap: wrap; gap: 0.65rem !important; }
  #pwaInstallBanner > div > div:first-child { flex: 1 1 100%; min-width: 0; }
  #pwaInstallBanner > div > div:last-child { margin-left: auto; }
  #pwaInstallBanner strong { font-size: 0.88rem !important; }
  #pwaInstallBanner p { display: none; }
  #pwaInstallBanner strong + span { display: none; }
  .billing-toggle-wrap { flex-wrap: wrap; width: 100%; }
}
