/*
 * DrAlaa Clinic V23 — precise service-heading spacing and scroll motion.
 * Scope: Arabic homepage only, exact Elementor sections. 2026-11-16.
 * Restores visual proximity between heading and actual service cards.
 */
body.dc23-active .site-content .dc15-section-stack >
section.elementor-top-section.elementor-element-2ede5e2.dc15-services {
  padding-top:24px !important;
  padding-bottom:8px !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  min-height:0 !important;
}
body.dc23-active .site-content .dc15-section-stack >
section.elementor-top-section.elementor-element-6adf626.dc15-services {
  padding-top:15px !important;
  padding-bottom:clamp(28px,3.4vw,46px) !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  min-height:0 !important;
}
/* Preserve the original native Elementor widget/container. */
body.dc23-active .site-content
.elementor-element-2ede5e2 .elementor-heading-title.dc15-heading {
  position:relative;
  display:block;
  width:fit-content;
  max-width:100%;
  margin:0 auto !important;
  padding:0 0 14px !important;
  color:#174c3d !important;
  font-family:"Noto Kufi Arabic","Almarai",Tahoma,Arial,sans-serif !important;
  font-size:clamp(30px,2.85vw,40px) !important;
  font-weight:850 !important;
  line-height:1.55 !important;
  letter-spacing:0 !important;
  text-align:center !important;
  text-shadow:none !important;
  transform:translateZ(0);
}
body.dc23-active .site-content
.elementor-element-2ede5e2 .elementor-heading-title.dc15-heading::after {
  content:"";
  position:absolute;
  width:56px;
  height:3px;
  bottom:3px;
  left:50%;
  border-radius:20px;
  background:linear-gradient(90deg,#cba76a,#176e58);
  transform:translateX(-50%);
  opacity:.9;
}
/* Only add animation after observer sees the actual title. Without JS text is
 * fully readable. Repeated every 10s while visible, restarted on re-entry. */
@media(prefers-reduced-motion:no-preference) {
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .dc23-services-animate {
    animation:dc23-services-rise 850ms cubic-bezier(.16,.76,.25,1) both;
  }
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .dc23-services-animate::after {
    animation:dc23-underline-grow 820ms 280ms cubic-bezier(.2,.68,.3,1) both;
  }
}
@keyframes dc23-services-rise {
  0% {opacity:0;transform:translate3d(0,32px,0)}
  100% {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes dc23-underline-grow {
  0% {opacity:0;width:8px}
  100% {opacity:.9;width:56px}
}
@media(max-width:767px) {
  body.dc23-active .site-content .dc15-section-stack >
  section.elementor-top-section.elementor-element-2ede5e2.dc15-services {
    padding-top:19px !important;
    padding-bottom:5px !important;
  }
  body.dc23-active .site-content .dc15-section-stack >
  section.elementor-top-section.elementor-element-6adf626.dc15-services {
    padding-top:10px !important;
    padding-bottom:25px !important;
  }
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .elementor-heading-title.dc15-heading {
    font-size:clamp(27px,7.2vw,33px) !important;
    line-height:1.5 !important;
    padding-bottom:13px !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .elementor-heading-title.dc15-heading,
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .elementor-heading-title.dc15-heading::after {
    animation:none !important;
    transition:none !important;
    opacity:1 !important;
    transform:none;
  }
  body.dc23-active .site-content
  .elementor-element-2ede5e2 .elementor-heading-title.dc15-heading::after {
    transform:translateX(-50%) !important;
  }
}