/* Exact design from hamraz-services-exact-design.html — scoped to #psych-services */

#psych-services {
  --green: #0a514d;
  --green-2: #0f6b63;
  --green-3: #4b9c84;
  --muted: #677a78;
  --line: #dfe6e4;
  --page: #fbfcfb;
  --card: #ffffff;
  --soft: #eef5f2;
  --shadow: 0 18px 42px rgba(31, 73, 68, 0.08);

  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  color: var(--green);
  background: transparent;
}

#psych-services::before {
  content: "";
  position: absolute;
  left: -36px;
  top: -8px;
  width: 190px;
  height: 230px;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 50% 15%, #cfd9d5 0 20%, transparent 21%),
    radial-gradient(ellipse at 30% 43%, #cfd9d5 0 18%, transparent 19%),
    radial-gradient(ellipse at 65% 52%, #cfd9d5 0 16%, transparent 17%),
    radial-gradient(ellipse at 42% 78%, #cfd9d5 0 14%, transparent 15%);
  transform: rotate(-18deg);
  pointer-events: none;
}

#psych-services .section-number {
  width: 72px;
  height: 56px;
  margin-inline-end: auto;
  margin-inline-start: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white !important;
  background: linear-gradient(145deg, #217a6d, #075049) !important;
  border: none;
  box-shadow: 0 10px 24px rgba(10, 81, 77, 0.17);
  font-size: 24px !important;
  font-weight: 700 !important;
  opacity: 1;
  min-width: 72px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

#psych-services .services-heading {
  margin: 18px 0 28px;
  text-align: right;
}

#psych-services .services-heading h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 800;
}

#psych-services .services-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.9;
}

#psych-services .services-list {
  display: grid;
  gap: 18px;
}

#psych-services .psych-card {
  direction: ltr;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: 236px;
  padding: 16px;
  margin: 0;
  border: 1px solid rgba(194, 206, 203, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  height: auto;
  position: relative;
  text-align: left;
  flex-direction: unset;
}

#psych-services .psych-card::before,
#psych-services .psych-card::after {
  content: none !important;
  display: none !important;
}

#psych-services .psych-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 133, 125, 0.36);
  box-shadow: 0 23px 54px rgba(31, 73, 68, 0.12);
}

#psych-services .service-image {
  position: relative;
  width: 250px;
  max-width: 100%;
  min-height: 204px;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  border-radius: 22px;
  background: #e8f0ed;
  flex-shrink: 0;
}

#psych-services .service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
}

#psych-services .service-copy {
  direction: rtl;
  text-align: right;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 6px 4px 4px 8px;
}

#psych-services .service-top {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
}

#psych-services .card-arrow {
  display: none;
}

#psych-services .psych-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7faf8, #edf3f0);
  border: 1px solid rgba(214, 224, 221, 0.8);
  flex-shrink: 0;
}

#psych-services .psych-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

#psych-services .title-wrap {
  position: relative;
  min-width: 0;
}

#psych-services .service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#psych-services .service-title {
  margin: 2px 0 8px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
}

#psych-services .popular {
  flex: 0 0 auto;
  padding: 8px 17px;
  border-radius: 999px;
  background: #e8f1ed;
  color: #2f7f6d;
  font-size: 0.93rem;
  font-weight: 700;
}

#psych-services .service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

#psych-services .rule {
  width: 100%;
  height: 1px;
  margin: 15px 0 13px;
  background: linear-gradient(to left, transparent, var(--line) 16%, var(--line) 84%, transparent);
}

#psych-services .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

#psych-services .features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #315754;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

#psych-services .check {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-3);
}

#psych-services .check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

#psych-services .privacy-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(195, 207, 204, 0.7);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.8);
  color: #315b57;
  font-size: 0.95rem;
}

#psych-services .privacy-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #378d78;
}

#psych-services .privacy-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

@media (max-width: 760px) {
  #psych-services {
    padding: 0;
    max-width: 100%;
  }

  #psych-services .section-number {
    width: 52px;
    height: 42px;
    border-radius: 14px;
    font-size: 17px !important;
    margin-inline-end: auto;
  }

  #psych-services .services-heading {
    margin: 12px 0 18px;
    text-align: right;
  }

  #psych-services .services-heading h2 {
    font-size: 1.55rem;
    letter-spacing: -0.03em;
  }

  #psych-services .services-heading p {
    font-size: 0.86rem;
    line-height: 1.75;
  }

  #psych-services .services-list {
    gap: 12px;
  }

  /* Keep horizontal RTL list cards — image left, content right */
  #psych-services .psych-card {
    direction: ltr;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    min-height: 0;
    padding: 10px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(31, 73, 68, 0.07);
  }

  #psych-services .service-image {
    position: relative;
    width: 112px;
    height: auto;
    min-height: 112px;
    align-self: stretch;
    border-radius: 18px;
    overflow: hidden;
  }

  #psych-services .service-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
  }

  #psych-services .service-copy {
    direction: rtl;
    text-align: right;
    justify-content: space-between;
    padding: 4px 2px 2px 4px;
    min-height: 112px;
  }

  #psych-services .service-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  #psych-services .psych-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border: 1px solid rgba(214, 224, 221, 0.9);
    background: linear-gradient(145deg, #f7faf8, #eaf2ef);
  }

  #psych-services .psych-icon svg {
    width: 18px;
    height: 18px;
  }

  #psych-services .title-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  #psych-services .service-title-row {
    display: block;
    width: 100%;
  }

  #psych-services .service-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    text-align: right;
    width: 100%;
  }

  #psych-services .popular {
    display: none;
  }

  #psych-services .service-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: right;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact mobile: hide checklist, show chevron like reference */
  #psych-services .rule,
  #psych-services .features {
    display: none;
  }

  #psych-services .card-arrow {
    display: grid;
    place-items: center;
    align-self: flex-start;
    width: 22px;
    height: 22px;
    margin-top: 10px;
    color: var(--green);
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 400;
  }

  #psych-services .privacy-note {
    margin-top: 14px;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 0.78rem;
    line-height: 1.75;
    text-align: right;
    justify-content: flex-start;
  }

  #psych-services .privacy-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  #psych-services .privacy-icon svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 400px) {
  #psych-services {
    padding: 24px 12px 28px;
  }

  #psych-services .psych-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
  }

  #psych-services .service-image {
    width: 96px;
    min-height: 96px;
    border-radius: 16px;
  }

  #psych-services .service-copy {
    min-height: 96px;
  }

  #psych-services .psych-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
  }

  #psych-services .psych-icon svg {
    width: 16px;
    height: 16px;
  }

  #psych-services .service-title {
    font-size: 0.95rem;
  }

  #psych-services .service-desc {
    font-size: 0.72rem;
    line-height: 1.65;
  }
}

/* Full-bleed soft page background behind the centered block */
.psych-services-wrap {
  background: transparent;
}
