/* Counsellors page */

.counsellors-page {
  background-color: #f4efe6;
  background-image:
    linear-gradient(
      to bottom,
      rgba(253, 251, 247, 0.38) 0%,
      rgba(253, 251, 247, 0.52) 100%
    ),
    url("../images/counsellors-bg.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}

.counsellors-hero {
  position: relative;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.counsellors-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(27, 75, 74, 0.58) 0%,
      rgba(27, 75, 74, 0.74) 100%
    ),
    url("../images/emotional-trust-judgement.jpg") center 42% / cover no-repeat;
}

.counsellors-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.25rem;
  max-width: 720px;
}

.counsellors-hero h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
  text-shadow: var(--hero-title-shadow);
}

.counsellors-hero p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: var(--hero-sub-shadow);
}

.counsellors-profiles {
  padding: 3.75rem 0 4.5rem;
}

.counsellors-note {
  max-width: 1040px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(253, 251, 247, 0.94);
  border: 1px solid rgba(27, 75, 74, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

.counsellors-note p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.7rem;
}

.counsellors-note p:last-child {
  margin-bottom: 0;
}

.counsellors-note a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.counsellors-list {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.counsellor-card {
  display: grid;
  grid-template-columns: minmax(18rem, 48%) 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(27, 75, 74, 0.12);
  border-top: 3px solid var(--sage);
  border-radius: 4px;
  box-shadow: 0 10px 32px rgba(27, 75, 74, 0.08);
}

.counsellor-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: start;
  overflow: hidden;
  background: var(--frame-bg);
}

.counsellor-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counsellor-photo--dr img {
  object-position: 50% 18%;
}

.counsellor-photo--nz {
  aspect-ratio: 2 / 3;
}

.counsellor-photo--nz img {
  object-position: 50% 15%;
}

.counsellor-photo--rl img {
  object-position: 46% 30%;
}

.counsellor-photo--hs img {
  object-position: 48% 22%;
}

.counsellor-photo--sb img {
  object-position: 50% 18%;
}

.counsellor-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem 1.75rem 1.5rem;
}

.counsellor-identity {
  min-width: 0;
  margin-bottom: 1.05rem;
}

.counsellor-identity h2 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
}

.counsellor-role {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.counsellor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
}

.counsellor-tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 168, 136, 0.18);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.counsellor-body > p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.counsellor-qualifications {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  background: rgba(232, 228, 222, 0.7);
  border-radius: 4px;
}

.counsellor-qualifications h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 0.45rem;
}

.counsellor-qualifications p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.counsellor-certificates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: min(100%, 20rem);
  margin: 0 0 1.15rem;
}

.counsellor-certificates a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(27, 75, 74, 0.14);
  background: var(--white);
}

.counsellor-certificates img {
  display: block;
  width: 100%;
  height: auto;
}

.counsellor-request {
  margin-top: auto;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(27, 75, 74, 0.12);
}

.counsellor-request p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.counsellor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.counsellor-site {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.counsellor-site:hover {
  color: var(--gold-dark);
}

@media (max-width: 760px) {
  .counsellors-profiles {
    padding: 2.75rem 0 3.5rem;
  }

  .counsellor-card {
    grid-template-columns: 1fr;
  }

  .counsellor-photo {
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-width: none;
  }

  .counsellor-photo--nz {
    aspect-ratio: 2 / 3;
  }

  .counsellor-body {
    padding: 1.25rem 1.2rem 1.3rem;
  }

  .counsellor-identity h2 {
    font-size: 1.35rem;
  }
}

