/* This is styles for directory oage*/
/* ========================================
   CSS RESET & BOX SIZING
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Colors */
  --color-primary: #447569;
  --color-primary-dark: #03494B;
  --color-accent: #1F9A73;
  --color-accent-teal: #229085;
  --color-orange-gradient: linear-gradient(180deg, #F99522 0%, #FEE478 100%);
  --color-bg-light: #EBF3F1;
  --color-bg-chat: rgba(215, 230, 227, 0.5);
  --color-text-dark: #03494B;
  --color-text-gray: #6D6F75;
  --color-text-light-gray: rgba(88, 85, 94, 0.5);
  --color-text-muted: rgba(3, 73, 75, 0.6);
  --color-border: rgba(3, 73, 75, 0.5);
  --color-border-light: #D9D9D9;
  --color-white: #FFFFFF;
  --color-black: #212121;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Comfortaa', cursive;

  /* Font Sizes - Fluid Typography */
  --fs-hero: clamp(48px, 6vw, 90px);
  --fs-section-title: clamp(40px, 4.5vw, 65px);
  --fs-card-title: clamp(22px, 2vw, 26px);
  --fs-body: clamp(18px, 1.5vw, 26px);
  --fs-small: clamp(14px, 1.2vw, 20px);
  --fs-nav: clamp(18px, 1.5vw, 24px);

  /* Spacing */
  --spacing-xs: clamp(10px, 1vw, 15px);
  --spacing-sm: clamp(15px, 1.5vw, 20px);
  --spacing-md: clamp(20px, 2vw, 30px);
  --spacing-lg: clamp(30px, 3vw, 50px);
  --spacing-xl: clamp(50px, 4vw, 80px);
  --spacing-xxl: clamp(60px, 6vw, 100px);

  /* Container Width */
  --container-max-width: 1300px;
  --container-padding: clamp(20px, 3vw, 60px);

  /* Border Radius */
  --radius-sm: 13px;
  --radius-md: 20px;
  --radius-lg: 50px;
  --radius-full: 99px;
}

/* Ensure consistent card alignment */
.therapist-grid .grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.therapist-grid .therapist-card {
  align-self: start;
}

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
  display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

body {
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  overflow-x: hidden;
}

.tmatch-homepage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.header {
  padding: var(--spacing-md) 0;
  position: relative;
}

.header .container {
  max-width: 1400px;
  padding: 0 clamp(20px, 1vw, 20px);
  margin: 0 auto;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-logo {
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-primary);
}

.header-logo a {
  text-decoration: none;
  color: inherit;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-nav a {
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--color-accent);
}

.header-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.header-nav-buttons {
  display: none;
}

.btn {
  padding: 12px 30px;
  font-size: 22px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 150px;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

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

.btn-outline {
  background: transparent;
  border: 1.6px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Legacy Navigation Bar (keeping for backward compatibility) */
.navigation-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100px;
  background: #FFFFFF;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  padding: 0 80px;
  height: 100%;
  width: 100%;
}

.logo-svg {
  width: 120px;
  height: 26px;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 60px;
}

.logo-text {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 28px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #447569;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  flex: 1;
}

.nav-link {
  color: #03494B;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}

.sign-up-btn {
  display: flex;
  width: 180px;
  height: 53px;
  flex-direction: column;
  justify-content: center;
  border-radius: 99px;
  border: 1.6px solid #03494B;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 22px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
  color: #03494B;
  cursor: pointer;
}

.login-btn {
  display: flex;
  width: 180px;
  height: 53px;
  flex-direction: column;
  justify-content: center;
  border-radius: 26.5px;
  border: none;
  background: linear-gradient(180deg, #F99522 0%, #FEE478 100%);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  font-style: normal;
  line-height: normal;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 60px;
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  text-align: center;
  padding: 190px 20px 0;
}

.hero-tagline {
  width: auto;
  height: 72px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 72px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: -0.02em;
  color: #447569;
  margin-bottom: 13px;
  white-space: nowrap;
}

.hero-subtitle {
  width: auto;
  height: 38px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 38px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: -0.02em;
  color: #7B8A91;
}

/* Search Section */
.search-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1px;
  padding: 0 20px 20px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.search-form {
  position: relative;
}

.search-input-container {
  position: relative;
  width: 601px;
  height: 86px;
}

.search-bar-background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.search-magnifier {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-input-field {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 100px);
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #03494B;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 145%;
  padding: 0;
}

.search-input-field::placeholder {
  color: #C4C4C4;
  opacity: 0.6;
}

/* State Search Dropdown */
.state-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.state-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.15s ease;
}

.state-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.state-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.state-dropdown-item:only-child {
  border-radius: 12px;
}

.state-dropdown-item:hover {
  background-color: #EBF3F1;
}

.state-dropdown-item .state-name {
  font-size: 16px;
  font-weight: 500;
  color: #03494B;
}

.state-dropdown-item .state-abbr {
  font-size: 14px;
  font-weight: 400;
  color: #6D6F75;
}

.filter-button {
  background: #FFFFFF;
  border: 1px solid rgba(3, 73, 75, 0.5);
  cursor: pointer;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 175px;
  height: 63px;
  flex-shrink: 0;
  border-radius: 50px;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: #03494B;
}

.filter-button.active {
  background: #03494B;
  color: #FFFFFF;
}

.filter-button.active svg {
  filter: brightness(0) invert(1);
}

.filter-button-wrapper {
  position: relative;
}

/* Filter Dropdown */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 570px;
  max-height: 80vh;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.filter-dropdown-content {
  padding: 24px;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section:last-of-type {
  margin-bottom: 24px;
}

.filter-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #000000;
  margin: 0 0 16px 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #FFFFFF;
  position: relative;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: #03494B;
  border-color: #03494B;
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox span {
  user-select: none;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #E5E5E5;
}

.filter-clear-btn {
  width: 175px;
  height: 50px;
  border-radius: 65px;
  border: 1.3px solid #000;
  background: #FFF;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-clear-btn:hover {
  background: #F9FAFB;
}

.filter-apply-btn {
  width: 174px;
  height: 50px;
  border-radius: 65px;
  border: 1.3px solid #000;
  background: #FFF;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-apply-btn:hover {
  background: #F9FAFB;
}

.filter-categories {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
  flex-wrap: wrap;
}

.category-filter-btn {
  width: 175px;
  height: 63px;
  border-radius: 50px;
  border: 1px solid rgba(3, 73, 75, 0.50);
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #03494B;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.4px;
  transition: all 0.2s ease;
}

.category-filter-btn:hover {
  background: rgba(3, 73, 75, 0.05);
  border-color: #03494B;
}

.category-filter-btn.active {
  border-radius: 50px;
  border: 1px solid rgba(3, 73, 75, 0.50);
  background: #03494B;
  color: #FFFFFF;
}

/* Therapist Grid */
.therapist-grid {
  width: 100%;
  padding: 60px 107px 200px 107px;
  min-height: 100vh;
}

.grid-heading {
  display: flex;
  width: 589px;
  height: 52px;
  flex-direction: column;
  justify-content: center;
  color: #03494B;
  font-family: Inter;
  font-size: 40px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.8px;
  margin-bottom: 40px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

/* Therapist Card */
.therapist-card {
  position: relative;
  width: 423px;
  height: 595px;
  background: #FFFFFF;
  border-radius: 15.76px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
}

.therapist-image {
  position: relative;
  width: 100%;
  height: 302px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="423" height="302" viewBox="0 0 423 302"><rect width="423" height="302" fill="%23f0f0f0"/></svg>');
  border-radius: 15.76px 15.76px 0px 0px;
}

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

.therapist-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.therapist-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.therapist-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.therapist-name {
  width: auto;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: #447569;
  margin: 0;
}

.therapist-title {
  width: auto;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #699187;
  margin: 0;
}

.therapist-phone {
  width: auto;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10.41px;
  line-height: 155.1%;
  color: #757575;
  margin: 0;
}

.therapist-location {
  width: auto;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 10.41px;
  line-height: 155.1%;
  color: #757575;
  margin: 0;
}

.rating {
  width: 70px;
  height: 16px;
}

.rating-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.41px;
  line-height: 155.1%;
  color: #FFB473;
}

.specialties {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  width: auto;
  height: auto;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.specialty-tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 6px;
  gap: 2px;
  background: #EEF3EB;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 9px;
  line-height: 12px;
  color: #000000;
  white-space: nowrap;
  height: 20px;
  flex-shrink: 0;
}

.therapist-description {
  width: auto;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.41px;
  line-height: 155.1%;
  color: #757575;
  margin: 0;
  flex: 1;
}

.therapist-info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.location-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: #000000;
}

.location-icon {
  width: 16px;
  height: 16px;
}

.therapist-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: #000000;
}

.chat-icon, .video-icon, .dollar-icon, .clock-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  gap: 10px;
  width: 100%;
  height: 40px;
  background: #FFB473;
  border-radius: 100px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: auto;
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--spacing-lg) 0;
}

.footer .container {
  max-width: 1400px;
  padding: 0 clamp(20px, 2vw, 40px);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(30px, 6vw, 80px);
}

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: clamp(30px, 3vw, 50px);
}

.footer-brand {
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(10px, 1vw, 15px);
  margin-right: clamp(60px, 12vw, 160px);
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon img {
  width: 100%;
  height: 100%;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

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

.footer-column li {
  margin-bottom: 20px;
}

.footer-column a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--color-accent);
}

.footer-divider-full {
  width: 100%;
  height: 1px;
  background: var(--color-border-light);
  margin: var(--spacing-lg) 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.footer-copyright {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-gray);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-disclaimer {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-black);
  text-align: left;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .therapist-grid {
    padding: 60px 50px;
  }
}

@media (max-width: 1024px) {
  .header-nav {
    gap: var(--spacing-md);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    justify-items: center;
    text-align: center;
    margin-right: 0;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Mobile Header - Compact Layout */
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    justify-items: initial;
    text-align: left;
    gap: var(--spacing-sm);
  }

  .header-logo {
    font-size: 24px;
  }

  .menu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    grid-column: 1 / -1;
  }

  .header-nav.active {
    display: flex;
  }

  .header-nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--spacing-sm);
    width: 100%;
  }

  .header-nav-buttons .btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 16px;
    min-width: auto;
    max-width: 200px;
  }

  .header-buttons {
    display: none;
  }

  /* Legacy navigation bar mobile */
  .navigation-bar {
    height: 80px;
  }

  .nav-container {
    padding: 0 24px;
    gap: 16px;
  }

  .logo-svg {
    width: 100px;
    height: 22px;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions {
    gap: 12px;
  }

  .sign-up-btn {
    width: 120px;
    height: 44px;
    font-size: 16px;
    line-height: 16px;
  }

  .login-btn {
    width: 100px;
    height: 44px;
    font-size: 16px;
  }

  .hero-section {
    margin-top: 80px;
  }

  .hero-tagline {
    font-size: 32px;
    line-height: 40px;
    width: 100%;
    max-width: 400px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 26px;
    width: 100%;
    max-width: 600px;
  }

  .search-wrapper {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .search-input-container {
    width: 100%;
    max-width: 500px;
  }

  .search-bar-background img {
    width: 100% !important;
    height: auto !important;
  }

  .filter-button {
    width: 150px;
    height: 54px;
  }

  .filter-button img {
    width: 100% !important;
    height: auto !important;
  }

  .filter-categories {
    gap: 12px;
    margin-top: 16px;
  }

  .category-filter-btn {
    width: 140px;
    height: 50px;
    font-size: 16px;
  }

  .grid-heading {
    width: 100%;
    height: auto;
    font-size: 28px;
    letter-spacing: -0.56px;
    margin-bottom: 24px;
  }

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

  .therapist-grid {
    padding: 60px 20px;
  }

  /* Footer Mobile */
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    margin-right: 0;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-disclaimer {
    text-align: center;
  }
}

/* ========================================
   ABOUT US PAGE
   ======================================== */
.about-page {
  background-color: #ffffff;
}

.about-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 100px;
  gap: 60px;
}

/* Sticky Sidebar Navigation */
.about-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  padding: 20px 0 20px 40px;
}

.about-sidebar .sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-sidebar .sidebar-nav li {
  margin-bottom: 16px;
}

.about-sidebar .sidebar-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: color 0.2s ease;
}

.about-sidebar .sidebar-nav a:hover,
.about-sidebar .sidebar-nav a.active {
  color: #229085;
  font-weight: 500;
}

/* Main Content Area */
.about-container {
  flex: 1;
  max-width: 800px;
  padding: 0 40px 100px 0;
}

.about-header {
  margin-bottom: 48px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 32px;
}

.about-title {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #03494B;
  margin-bottom: 12px;
  line-height: 1.2;
}

.about-content {
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
  color: #333;
}

.about-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #03494B;
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  scroll-margin-top: 100px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #03494B;
  margin-top: 0;
  margin-bottom: 8px;
  scroll-margin-top: 100px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #333;
}

.about-content a {
  color: #229085;
  text-decoration: none;
  border-bottom: 1px solid #229085;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-content a:hover {
  color: #FAB140;
  border-bottom-color: #FAB140;
}

.about-content strong {
  font-weight: 600;
  color: #03494B;
}

.about-highlight {
  font-weight: 600;
  color: #03494B;
  font-size: 18px;
  margin-top: 32px;
}

.about-divider {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: 56px 0;
}

/* Team Member Cards */
.team-member {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.team-member-photo {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5e5;
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.team-member-info {
  flex: 1;
}

.team-member-info h3 {
  margin-bottom: 4px;
}

.team-member-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #229085 !important;
  margin-bottom: 16px !important;
}

.team-member-info p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* About Page Responsive Design */
@media (max-width: 1024px) {
  .about-wrapper {
    padding-top: 80px;
    gap: 40px;
  }

  .about-sidebar {
    width: 220px;
    padding-left: 20px;
  }

  .about-container {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    padding: 80px 20px 60px;
    gap: 32px;
  }

  .about-sidebar {
    display: none;
  }

  .about-container {
    padding: 0;
    max-width: 100%;
  }

  .about-title {
    font-size: 36px;
  }

  .about-content h2 {
    font-size: 16px;
    margin-top: 40px;
  }

  .about-content h3 {
    font-size: 18px;
  }

  .team-member {
    flex-direction: column;
    gap: 20px;
  }

  .team-member-photo {
    width: 150px;
    height: 150px;
  }
}

/* ========================================
   THERAPIST CARD LINK
   ======================================== */
.therapist-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.therapist-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(68, 117, 105, 0.15);
}

.therapist-card-link:focus {
  outline: 3px solid var(--color-primary, #447569);
  outline-offset: 4px;
}

.therapist-card-link:active {
  transform: translateY(-2px);
}

.therapist-card-svg {
  width: 100%;
  position: relative;
}

.therapist-card-svg img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.therapist-card-link:hover .therapist-card-svg img {
  opacity: 0.95;
}

.therapist-card-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(68, 117, 105, 0) 0%, rgba(68, 117, 105, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.therapist-card-link:hover::after {
  opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Directory: empty state, loading state, default avatar fallback
 * (added when grid switched from hardcoded cards to /api/therapists fetch)
 * --------------------------------------------------------------------------- */

.directory-loading,
.directory-empty {
  padding: 48px 24px;
  text-align: center;
  color: #03494b;
}

.directory-loading[hidden],
.directory-empty[hidden] {
  display: none;
}

.directory-loading p {
  margin: 0;
  font-size: 16px;
  color: rgba(3, 73, 75, 0.6);
}

.directory-empty-text {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: #03494b;
}

.directory-empty-clear {
  display: inline-block;
  padding: 10px 24px;
  background: #03494b;
  color: white;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.directory-empty-clear:hover {
  background: #056b6e;
}

/* When a therapist row has no avatar URL we inject this inline SVG.
 * The parent `.therapist-card-image` uses the padding-bottom:100%
 * trick for a square aspect ratio (height = 0 + padding), so children
 * MUST be position:absolute to fill the box — same as the <img> rule
 * in styles.css. Without this the SVG grows to natural size and
 * overflows into the info section below the photo. */
.therapist-card-default-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------------------------------------------------------------------
 * Override the legacy fixed-size card rule that doesn't fit the grid cell.
 * (Old hardcoded cards were sized 423px×595px which overflows the 339px
 * grid cell at 1200px+ viewports, causing borders to appear clipped and
 * photos to crop incorrectly.)
 * --------------------------------------------------------------------------- */

.therapist-grid .therapist-card {
  width: 100%;
  height: 100%;             /* fill the grid cell */
  border: 1px solid rgba(3, 73, 75, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(3, 73, 75, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.therapist-grid .therapist-card-link:hover .therapist-card {
  transform: translateY(-4px);
  border-color: rgba(3, 73, 75, 0.25);
  box-shadow: 0 8px 24px rgba(3, 73, 75, 0.14);
}

.therapist-grid .therapist-card-link {
  display: block;
  height: 100%;             /* link wraps card → must also fill cell */
}

/* All cards in a row should be the same height regardless of how many
 * tags they have or whether they have a location. Without `stretch`
 * the previous `align-items: start` aligned each card to its content
 * height, producing the "Amara is twice as tall as Amelia" look. */
.therapist-grid .grid-container {
  align-items: stretch;
}

/* The legacy .therapist-card-info has 3 borders (right/bottom/left) which
 * combined with the card's own clip looked like a half-rendered ring.
 * The card itself owns the rounded corners + outer edge now. */
.therapist-grid .therapist-card-info {
  border: 0;
  border-radius: 0;
  flex: 1;                  /* fill remaining card height */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cap each tag to one line. A super-long specialty like
 * "Racism and microaggressions" used to wrap and push each tag onto
 * its own row, making the whole card 2× taller than its neighbours. */
.therapist-grid .therapist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 40px;         /* roughly one row of chips */
  overflow: hidden;
}

.therapist-grid .therapist-tags .tag {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop hides the mobile bottom-sheet header (drag handle + title +
 * close X). Only shows ≤768px where the panel becomes a real sheet. */
.filter-mobile-header { display: none; }

/* Filter dropdown — hidden by default, shown when .is-open class is
 * added by JS. Using a class (not inline style) so that mobile-only
 * `display: flex` (bottom sheet layout) can override desktop
 * `display: block` without the inline style winning. */
.filter-dropdown { display: none; }
.filter-dropdown.is-open { display: block; }

/* ---------------------------------------------------------------------------
 * Mobile / tablet responsive overrides for the directory grid.
 *
 * The legacy responsive rules at lines 1128 + 1317 target plain
 * `.grid-container` and lose specificity battles to the
 * `.therapist-grid .grid-container` base rule at line 64, so on small
 * viewports the grid stayed at 3 columns — cards got crushed and all
 * text truncated ("$150/s", "Diallo", "I..." tags).
 *
 * Mirror the breakpoints with the higher-specificity selector so they
 * actually apply.
 * --------------------------------------------------------------------------- */

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

@media (max-width: 768px) {
  .therapist-grid .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Hero: base style has `height: 400px; margin-top: 60px;` + the
   * .hero-content has `padding: 190px 20px 0` — adds up to almost a
   * full mobile screen of empty space before any content. Collapse
   * all of it on mobile. */
  .hero-section {
    height: auto;
    min-height: 0;
    margin-top: 0;
  }
  /* hero-background is `position: absolute` in base styles which takes
   * it (and its child hero-content) out of normal flow, leaving
   * hero-section with height: 0 → search-section then overlaps hero
   * text visually. Promote hero-background back into the flow on
   * mobile so it pushes hero-section to its natural height. */
  .hero-background {
    position: static;
    height: auto;
  }
  .hero-content {
    height: auto;
    min-height: 0;
    padding: 32px 20px 16px;
  }
  .hero-tagline {
    font-size: 28px;
    height: auto;
  }

  .search-section {
    padding: 0 16px 24px;
    margin-top: 0;
  }
  .search-wrapper {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .search-form {
    width: 100%;
  }

  /* Search input on desktop relies on an SVG background "frame" sized
   * for 601px width. On mobile we hide that SVG and give the container
   * a real border + inline field so the input actually shows. */
  .search-bar-background { display: none; }

  .search-input-container {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(3, 73, 75, 0.35);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
  }
  .search-magnifier {
    position: static;
    transform: none;
    padding: 0 12px;
  }
  .search-magnifier svg {
    width: 22px;
    height: 22px;
  }
  .search-input-field {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    font-size: 16px;
    padding: 0 12px 0 0;
  }

  .filter-button-wrapper {
    width: 100%;
    position: relative;
  }
  .filter-button {
    width: 100%;
    height: 52px;
    justify-content: center;
    font-size: 16px;
  }

  /* ───────────────────────────────────────────────────────────────
   * Filter panel — full-height bottom sheet with backdrop, sticky
   * header (drag-handle + title + close), scrollable body, sticky
   * footer (Clear All / Show Therapists).
   *
   * Markup (in directory.html):
   *   .filter-dropdown
   *     .filter-mobile-header   (sticky top — hidden on desktop)
   *     .filter-dropdown-content
   *       .filter-section …  (scrollable body)
   *       .filter-actions   (sticky bottom)
   *
   * JS (directory.js) adds `body.filter-open` when the panel opens →
   * locks scroll + draws backdrop.
   * ─────────────────────────────────────────────────────────────── */

  body.filter-open {
    overflow: hidden;
  }
  body.filter-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .filter-dropdown.is-open {
    position: fixed;
    top: 10vh;                          /* strip of backdrop visible at top */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 90vh;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    display: flex !important;            /* override the desktop block */
    flex-direction: column;
    overflow: hidden;
  }

  /* Sticky mobile header — visible only ≤768px (display:none in base). */
  .filter-mobile-header {
    display: block;
    flex-shrink: 0;
    position: relative;
    padding: 22px 56px 14px 24px;
    border-bottom: 1px solid rgba(3, 73, 75, 0.1);
  }
  .filter-mobile-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d9e4e1;
  }
  .filter-mobile-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #03494b;
  }
  .filter-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #03494b;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .filter-mobile-close:hover {
    background: rgba(3, 73, 75, 0.08);
  }

  /* The inner content wrapper scrolls; footer (.filter-actions) is
   * sticky inside it. `min-height: 0` is the classic flex gotcha —
   * without it the child won't shrink below its content height and
   * the scroll never engages. */
  .filter-dropdown-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .filter-section {
    padding: 16px 24px 0;
  }

  /* 3-col grids → 2-col on mobile so labels don't get squashed */
  .filter-options-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer is now a sibling flex item of .filter-dropdown-content, so
   * it naturally sits at the bottom (content above takes flex:1, this
   * keeps its content size with flex-shrink:0). */
  .filter-actions {
    background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(3, 73, 75, 0.1);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
  }
  .filter-clear-btn,
  .filter-apply-btn {
    flex: 1;
    height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Cards now own the full row, so let them grow with content */
  .therapist-grid .therapist-card {
    height: auto;
  }
  .therapist-grid .therapist-card-info {
    padding: 16px;
  }
  .therapist-grid {
    padding: 0 16px 32px;
  }

  /* Category chips: stack 2-per-row was already there, just shrink
   * vertical gap and font for tighter look. */
  .filter-categories {
    gap: 8px;
    padding: 0 16px;
  }
}
