/* therapist.css */

/* ======= Global Reset ======= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* ======= Hero Section ======= */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: 36px;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ======= Therapist Cards Wrapper ======= */
.therapist-cards.container {
  max-width: 1400px; /* Wider layout for grid */
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* ======= Therapist Cards Grid ======= */
.therapist-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-top: 40px;
  box-sizing: border-box;
}

/* ======= Therapist Card ======= */
.therapist-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

/* ======= Therapist Image ======= */
.therapist-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;        /* Keeps aspect ratio */
  object-fit: cover;          /* Fills card without distortion */
  border-bottom: 1px solid var(--border);
  display: block;
  max-width: 100%;
}

/* ======= Card Body ======= */
.therapist-card .body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.therapist-card h3 {
  margin-top: 0;
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 8px;
}

.therapist-card h3 a {
  color: inherit;
  text-decoration: none;
}
.therapist-card h3 a:hover {
  text-decoration: underline;
}

.therapist-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ======= Card Button ======= */
.therapist-card .actions {
  padding: 0 20px 20px;
  margin-top: auto;
  box-sizing: border-box;
}

.therapist-card .btn {
  width: 100%;
  text-align: center;
  display: inline-block;
  background: var(--accent, #0e819b);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
.therapist-card .btn:hover {
  background: #0b6a81;
}

/* ======= Hover Effect ======= */
.therapist-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ======= Responsive Breakpoints ======= */

/* ≤1200px — 3 columns */
@media (max-width: 1200px) {
  .therapist-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
  }

  .hero h2 {
    font-size: 32px;
  }
}

/* ≤900px — 2 columns */
@media (max-width: 900px) {
  .therapist-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .therapist-card h3 {
    font-size: 20px;
  }

  .therapist-card p {
    font-size: 14px;
  }
}

/* ≤600px — 1 column */
@media (max-width: 600px) {
  .therapist-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .therapist-card img {
    aspect-ratio: 16 / 10; /* Slightly wider for mobile */
    border-radius: 6px 6px 0 0;
  }

  .therapist-card h3 {
    font-size: 18px;
  }

  .therapist-card p {
    font-size: 13px;
  }
}
/* === Footer Social Icons Fix (prevents vertical stacking) === */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a img {
  display: inline-block !important; /* override global display:block */
  width: 30px;
  height: auto;
  margin: 0 6px;
  transition: transform 0.2s ease-in-out;
}

.footer-social a img:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .footer-social {
    gap: 8px;
  }
}

