/* Ray Health — Services listing page */

body.pharmacymentor-child.page-template-services,
body.pharmacymentor-child.page-template-page-templatesservices-php {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-surface-muted);
}

/* ---------- Banner ---------- */
body.pharmacymentor-child .ray-services-banner {
  background: var(--color-cream);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}

body.pharmacymentor-child .ray-services-banner__inner {
  max-width: 720px;
  margin: 0 auto;
}

body.pharmacymentor-child .ray-services-banner__eyebrow {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--color-gold);
  margin: 0 0 0.45rem;
}

body.pharmacymentor-child .ray-services-banner__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
  text-transform: none;
}

body.pharmacymentor-child .ray-services-banner__breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-services-banner__breadcrumb a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.pharmacymentor-child .ray-services-banner__breadcrumb a:hover,
body.pharmacymentor-child .ray-services-banner__breadcrumb a:focus-visible {
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .ray-services-banner__sep {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ---------- Listing ---------- */
body.pharmacymentor-child .ray-services {
  background: var(--color-surface-muted);
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
}

body.pharmacymentor-child .ray-services__intro {
  max-width: none;
  width: 100%;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--color-dark);
  text-align: left;
}

body.pharmacymentor-child .ray-services__intro > *:first-child {
  margin-top: 0;
}

body.pharmacymentor-child .ray-services__intro > *:last-child {
  margin-bottom: 0;
}

body.pharmacymentor-child .ray-services__intro h1,
body.pharmacymentor-child .ray-services__intro h2,
body.pharmacymentor-child .ray-services__intro h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  line-height: 1.25;
  margin: 0 0 0.75em;
}

body.pharmacymentor-child .ray-services__intro h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

body.pharmacymentor-child .ray-services__intro p {
  margin: 0 0 1em;
}

body.pharmacymentor-child .ray-services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

body.pharmacymentor-child .ray-services__item {
  margin: 0;
  min-width: 0;
}

body.pharmacymentor-child .ray-services__empty {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text-muted);
}

/* ---------- Service card ---------- */
body.pharmacymentor-child .ray-service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body.pharmacymentor-child .ray-service-card:hover,
body.pharmacymentor-child .ray-service-card:focus-within {
  border-color: rgba(221, 181, 84, 0.55);
  box-shadow: 0 14px 36px rgba(26, 34, 41, 0.08);
  transform: translateY(-3px);
}

body.pharmacymentor-child .ray-service-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-cream-3);
}

body.pharmacymentor-child .ray-service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

body.pharmacymentor-child .ray-service-card:hover .ray-service-card__image,
body.pharmacymentor-child .ray-service-card:focus-within .ray-service-card__image {
  transform: scale(1.04);
}

body.pharmacymentor-child .ray-service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
  gap: 0.55rem;
}

body.pharmacymentor-child .ray-service-card__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.pharmacymentor-child .ray-service-card__title a {
  color: var(--color-dark);
  text-decoration: none;
}

body.pharmacymentor-child .ray-service-card__title a:hover,
body.pharmacymentor-child .ray-service-card__title a:focus-visible {
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .ray-service-card__excerpt {
  margin: 0;
  flex: 1;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .ray-service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.pharmacymentor-child .ray-service-card__cta:hover,
body.pharmacymentor-child .ray-service-card__cta:focus-visible {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

body.pharmacymentor-child .ray-service-card__cta-icon {
  font-size: 13px;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  body.pharmacymentor-child .ray-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  body.pharmacymentor-child .ray-services__grid {
    grid-template-columns: 1fr;
  }

  body.pharmacymentor-child .ray-services__intro {
    margin-bottom: 1.5rem;
  }
}

/* ========================================
   Single service — parent layout (photo banner,
   content + sidebar) with Ray typography/colours
======================================== */
body.pharmacymentor-child.single-service {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-white);
}

/* Banner — keep featured image + dark overlay, white text */
body.pharmacymentor-child.single-service .page-title.page-banner {
  min-height: 220px;
  padding: clamp(56px, 8vw, 96px) 0 !important;
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
  position: relative !important;
}

body.pharmacymentor-child.single-service .page-title.page-banner:before {
  display: none !important;
}

body.pharmacymentor-child.single-service .page-title.page-banner > div[style*="rgba(0,0,0"] {
  display: block !important;
  background-color: rgba(26, 34, 41, 0.55) !important;
}

body.pharmacymentor-child.single-service .page-title .banner-content {
  text-align: center !important;
  color: var(--color-white) !important;
}

body.pharmacymentor-child.single-service .page-title h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white) !important;
  margin: 0 0 0.65rem;
  text-transform: none;
}

body.pharmacymentor-child.single-service .page-title .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

body.pharmacymentor-child.single-service .page-title .breadcrumb li {
  color: rgba(255, 255, 255, 0.9);
}

body.pharmacymentor-child.single-service .page-title .breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
}

body.pharmacymentor-child.single-service .page-title .breadcrumb a:hover {
  color: var(--color-gold);
}

body.pharmacymentor-child.single-service .page-title .breadcrumb > li + li:before {
  color: rgba(255, 255, 255, 0.7);
  content: ">";
  padding: 0 0.15rem;
  opacity: 1;
}

/* Main content + sidebar */
body.pharmacymentor-child.single-service .service-single-section.about-section {
  background: var(--color-white) !important;
  padding: clamp(40px, 5vw, 72px) 0 !important;
}

body.pharmacymentor-child.single-service .service-single-section .row {
  align-items: flex-start;
}

body.pharmacymentor-child.single-service .service-single-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.pharmacymentor-child.single-service .service-single-content .icon {
  margin: 0 0 1.1rem;
}

body.pharmacymentor-child.single-service .service-single-content .icon img,
body.pharmacymentor-child.single-service .service-single-content .icon svg {
  max-width: 64px;
  height: auto;
}

body.pharmacymentor-child.single-service .service-description {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--color-dark);
  text-align: left;
}

body.pharmacymentor-child.single-service .service-description h1,
body.pharmacymentor-child.single-service .service-description h2,
body.pharmacymentor-child.single-service .service-description h3,
body.pharmacymentor-child.single-service .service-description h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 1.75em 0 0.75em;
  color: var(--color-dark) !important;
}

body.pharmacymentor-child.single-service .service-description h1:first-child,
body.pharmacymentor-child.single-service .service-description h2:first-child,
body.pharmacymentor-child.single-service .service-description > *:first-child {
  margin-top: 0;
}

body.pharmacymentor-child.single-service .service-description h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  border-top: none;
  padding-top: 0;
}

body.pharmacymentor-child.single-service .service-description p {
  margin: 0 0 1.15em;
  color: var(--color-dark);
}

body.pharmacymentor-child.single-service .service-description ul,
body.pharmacymentor-child.single-service .service-description ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

body.pharmacymentor-child.single-service .service-description li {
  margin-bottom: 0.45em;
}

body.pharmacymentor-child.single-service .service-description a {
  color: var(--color-gold-dark);
  font-weight: 600;
}

body.pharmacymentor-child.single-service .service-description a:hover {
  color: var(--color-dark);
}

/* Sidebar — list + dark contact card (parent pattern) */
body.pharmacymentor-child.single-service .service-sidebar {
  font-family: var(--font-primary);
  max-width: none;
  margin-top: 0;
}

body.pharmacymentor-child.single-service .service-sidebar > .widget + .widget {
  margin-top: 1.5rem;
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget ul li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget ul > li:last-child {
  border-bottom: none;
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget a {
  display: block;
  padding: 15px 22px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-dark);
  background: var(--color-white);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget a:hover {
  background: var(--color-cream);
  color: var(--color-dark);
}

body.pharmacymentor-child.single-service .service-sidebar .service-list-widget a.active {
  background: var(--color-dark);
  color: var(--color-white);
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget {
  background: var(--color-dark) !important;
  border: none;
  border-radius: 12px;
  padding: 36px 28px !important;
  position: relative;
  overflow: hidden;
  text-align: center;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget:before {
  content: "";
  display: block !important;
  background: var(--color-dark) !important;
  opacity: 1 !important;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget > div {
  position: relative;
  z-index: 1;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-white) !important;
  margin: 0 0 0.75rem;
  text-transform: none;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget p,
body.pharmacymentor-child.single-service .service-sidebar .contact-widget .color-w {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 auto 1.25rem;
  max-width: 16rem;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.25rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.pharmacymentor-child.single-service .service-sidebar .contact-widget a:hover {
  background: var(--color-gold) !important;
  color: var(--color-dark) !important;
}

/* Optional lower sections */
body.pharmacymentor-child.single-service .order-step-section,
body.pharmacymentor-child.single-service .popular-categories,
body.pharmacymentor-child.single-service .booking-calender,
body.pharmacymentor-child.single-service .faqs-section {
  font-family: var(--font-primary);
}

body.pharmacymentor-child.single-service .order-step-section {
  background: var(--color-cream) !important;
}

body.pharmacymentor-child.single-service .order-counter {
  border-radius: 12px;
  background: var(--color-dark) !important;
  color: var(--color-white);
}

body.pharmacymentor-child.single-service .order-counter #countdown {
  color: var(--color-gold);
  font-weight: 700;
}

body.pharmacymentor-child.single-service .faqs-section .faq-accordion .card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-white);
}

body.pharmacymentor-child.single-service .faqs-section .faq-accordion .card-header h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-dark);
}

@media (max-width: 991px) {
  body.pharmacymentor-child.single-service .service-sidebar {
    max-width: 100%;
    margin-top: 2rem;
  }
}
