/**
 * الصفحة الرئيسية — Clinicly
 */

.cl-home {
  background: linear-gradient(180deg, var(--cl-bg) 0%, var(--cl-accent) 28%, var(--cl-bg) 55%);
}

.cl-home-hero {
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.14), rgba(224, 242, 241, 0.65), rgba(212, 175, 55, 0.1));
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--cl-border);
}

.cl-home-hero__inner {
  max-width: 42rem;
}

.cl-home-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.2;
  color: var(--cl-fg);
}

.cl-home-hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--cl-muted);
  line-height: 1.65;
}

.cl-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cl-home-features {
  padding: 2.5rem 0;
}

.cl-home-features__head {
  text-align: center;
  margin-bottom: 2rem;
}

.cl-home-features__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--cl-fg);
}

.cl-home-features__lead {
  margin: 0;
  color: var(--cl-muted);
  font-size: 0.95rem;
}

.cl-home-features__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cl-home-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cl-home-feature {
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 18px rgba(26, 46, 46, 0.05);
}

.cl-home-feature__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(212, 175, 55, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cl-primary);
}

.cl-home-feature__icon svg {
  flex-shrink: 0;
}

.cl-home-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--cl-fg);
}

.cl-home-feature__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cl-muted);
  line-height: 1.55;
}

.cl-home-services {
  padding: 0 0 2.75rem;
}

.cl-home-services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.cl-home-services__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--cl-fg);
}

.cl-home-services__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cl-primary);
  text-decoration: none;
  white-space: nowrap;
}

.cl-home-services__link:hover {
  text-decoration: underline;
}

.cl-home-services .cl-svc-grid {
  margin-top: 0;
}

.cl-home-cta {
  margin: 0 0 2.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, var(--cl-primary) 0%, #0f766e 45%, #115e59 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.28);
}

.cl-home-cta__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.cl-home-cta__lead {
  margin: 0 auto 1.25rem;
  opacity: 0.92;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 32rem;
}

.cl-home-cta .cl-btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cl-home-cta .cl-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.cl-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cl-home-body {
  padding-bottom: 3rem;
}

.cl-home-body .cl-page-body {
  padding-top: 0;
}

/* ——— الصفحة الرئيسية — تخطيط Clinicly (Downloads/Clinicly: theme.css + HomePage.tsx) ——— */

.cl-home-design {
  background: var(--cl-bg);
}

/* بطل: ألوان ومؤثرات من theme.css — شبكة 6 صور كـ HomePage.tsx */
.cl-home-design-hero--mosaic {
  --cl-hero-primary: #0d9488;
  --cl-hero-secondary: #d4af37;
  --cl-hero-fg: #1a2e2e;
  --cl-hero-muted: #64748b;
  --cl-hero-accent: #e0f2f1;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* py-12 sm:py-16 lg:py-20 — مطابق HomePage.tsx */
  padding-top: 3rem;
  padding-bottom: 3rem;
  box-sizing: border-box;
  background: linear-gradient(
    to bottom right,
    rgba(13, 148, 136, 0.05),
    rgba(224, 242, 241, 0.35),
    rgba(212, 175, 55, 0.05)
  );
}

@media (min-width: 640px) {
  .cl-home-design-hero--mosaic {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .cl-home-design-hero--mosaic {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* container mx-auto px-4 sm:px-6 lg:px-8 — يحاكي Tailwind container: max-width متجاوب + حشوة داخلية.
   نستخدم !important لأن .cl-home-design-hero__split يضبط max-width:100% ويتغلب على .cl-container. */
.cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
  width: 100%;
  margin-inline: auto;
  max-width: 100% !important;
  padding-inline: 1rem !important;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
}

@media (min-width: 640px) {
  .cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
    max-width: 640px !important;
    padding-inline: 1.5rem !important;
    padding-inline: max(1.5rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
  }
}

@media (min-width: 768px) {
  .cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
    max-width: 768px !important;
  }
}

@media (min-width: 1024px) {
  .cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
    max-width: 1024px !important;
    padding-inline: 2rem !important;
    padding-inline: max(2rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) !important;
  }
}

@media (min-width: 1280px) {
  .cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
    max-width: 1280px !important;
  }
}

@media (min-width: 1536px) {
  .cl-home-design-hero--mosaic > .cl-container.cl-home-design-hero__split {
    max-width: 1536px !important;
  }
}

.cl-home-design-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(234, 179, 8, 0.06), transparent 50%);
  pointer-events: none;
}

.cl-home-design-hero__split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .cl-home-design-hero__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.cl-home-design-hero__intro {
  min-width: 0;
  text-align: right;
  padding: 0.25rem 0 0.5rem;
}

.cl-home-design-hero__headline {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--cl-hero-fg);
}

.cl-home-design-hero__headline-line1 {
  display: block;
}

.cl-home-design-hero__headline-line2 {
  display: block;
  margin-top: 0.35rem;
  color: var(--cl-hero-primary);
}

.cl-home-design-hero__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--cl-hero-muted);
  max-width: 36rem;
}

.cl-home-design-hero__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cl-home-design-hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.cl-home-design-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding-inline: 2rem;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 1rem;
  width: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

@media (min-width: 640px) {
  .cl-home-design-hero__cta {
    width: auto;
  }
}

.cl-home-design-hero__cta-ic {
  display: inline-flex;
  flex-shrink: 0;
}

.cl-home-design-hero--mosaic .cl-home-design-hero__cta--brand.cl-btn--primary {
  background: linear-gradient(to right, var(--cl-hero-primary), #0f9e92, var(--cl-hero-secondary));
  border: 2px solid transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.22);
}

.cl-home-design-hero--mosaic .cl-home-design-hero__cta--brand.cl-btn--primary:hover {
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
  filter: brightness(1.03);
  color: #fff;
}

[dir="rtl"] .cl-home-design-hero__cta-ic--arrow svg {
  transform: scaleX(-1);
}

.cl-home-design-hero__cta--contact {
  border: 2px solid rgba(13, 148, 136, 0.2);
  color: var(--cl-hero-primary);
  background: #fff;
}

.cl-home-design-hero__cta--contact:hover {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--cl-hero-primary);
}

.cl-home-design-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 0.75rem; /* gap-3 */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .cl-home-design-hero__mosaic {
    gap: 1rem; /* sm:gap-4 */
  }
}

.cl-home-design-hero__mosaic-cell {
  position: relative;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(224, 242, 241, 0.45);
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.1);
}

.cl-home-design-hero__mosaic-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 55%);
}

.cl-home-design-hero__mosaic-cell--1 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.cl-home-design-hero__mosaic-cell--2 {
  grid-column: 3;
  grid-row: 1;
}

.cl-home-design-hero__mosaic-cell--3 {
  grid-column: 3;
  grid-row: 2;
}

.cl-home-design-hero__mosaic-cell--4 {
  grid-column: 1;
  grid-row: 3;
}

.cl-home-design-hero__mosaic-cell--5 {
  grid-column: 2;
  grid-row: 3;
}

.cl-home-design-hero__mosaic-cell--6 {
  grid-column: 3;
  grid-row: 3;
}

.cl-home-design-hero__mosaic-img {
  display: block;
  width: 100%;
  height: 7rem; /* h-28 */
  object-fit: cover;
  object-position: center 22%;
}

.cl-home-design-hero__mosaic-ph {
  display: block;
  width: 100%;
  height: 7rem; /* h-28 */
  background: linear-gradient(145deg, rgba(224, 242, 241, 0.9), rgba(13, 148, 136, 0.18));
}

.cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-img,
.cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-ph {
  height: 16rem; /* h-64 */
}

@media (min-width: 640px) {
  .cl-home-design-hero__mosaic-img,
  .cl-home-design-hero__mosaic-ph {
    height: 9rem; /* sm:h-36 */
  }

  .cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-img,
  .cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-ph {
    height: 20rem; /* sm:h-80 */
  }
}

@media (min-width: 1024px) {
  .cl-home-design-hero__mosaic-img,
  .cl-home-design-hero__mosaic-ph {
    height: 11rem; /* lg:h-44 */
  }

  .cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-img,
  .cl-home-design-hero__mosaic-cell--1 .cl-home-design-hero__mosaic-ph {
    height: 24rem; /* lg:h-96 */
  }
}

.cl-home-design-hero__stats {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 28rem;
}

.cl-home-design-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.cl-home-design-hero__stat-value {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.cl-home-design-hero__stat--primary .cl-home-design-hero__stat-value {
  color: var(--cl-hero-primary);
}

.cl-home-design-hero__stat--secondary .cl-home-design-hero__stat-value {
  color: var(--cl-hero-secondary);
}

.cl-home-design-hero__stat--split .cl-home-design-hero__stat-num {
  color: var(--cl-hero-primary);
}

.cl-home-design-hero__stat--split .cl-home-design-hero__stat-plus {
  color: var(--cl-hero-secondary);
}

.cl-home-design-hero__stat-label {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  color: var(--cl-hero-muted);
  line-height: 1.35;
}

/* كيف تحجز موعدك؟ — خط زمني (HomePage.tsx) */
.cl-home-steps {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(
    to bottom right,
    rgba(224, 242, 241, 0.45),
    rgba(13, 148, 136, 0.06),
    rgba(212, 175, 55, 0.12)
  );
}

.cl-home-steps__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.08), transparent 50%);
  pointer-events: none;
}

.cl-home-steps__inner {
  position: relative;
  z-index: 1;
}

.cl-home-steps__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.cl-home-steps__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cl-fg);
}

.cl-home-steps__sub {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--cl-muted);
  line-height: 1.65;
}

.cl-home-steps__track-wrap {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
}

.cl-home-steps__vline {
  display: none;
}

@media (min-width: 768px) {
  .cl-home-steps__vline {
    display: block;
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(to bottom, #0d9488, #d4af37, #e0f2f1);
    z-index: 0;
  }

  [dir="rtl"] .cl-home-steps__vline {
    transform: translateX(50%);
  }
}

.cl-home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ترتيب flex مطابق HomePage.tsx: flex-col على الجوال، flex-row-reverse للزوجي و flex-row للفردي على ≥768 */
.cl-home-steps__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cl-home-steps__item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cl-home-steps__item {
    flex-direction: row;
    align-items: center;
  }

  .cl-home-steps__item--even {
    flex-direction: row-reverse;
  }
}

.cl-home-steps__spacer {
  display: none;
  flex: 1 1 0;
  min-width: 0;
}

@media (min-width: 768px) {
  .cl-home-steps__spacer {
    display: block;
    align-self: stretch;
  }
}

.cl-home-steps__card {
  width: 100%;
  background: #fff;
  border: 2px solid rgba(13, 148, 136, 0.12);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.08);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  will-change: transform;
}

@media (min-width: 768px) {
  .cl-home-steps__card {
    flex: 1 1 0;
    min-width: 0;
    align-self: center;
  }
}

.cl-home-steps__card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.cl-home-steps__item.is-active .cl-home-steps__card {
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.18);
  transform: translateY(-3px);
}

.cl-home-steps__card-inner {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: right;
}

@media (min-width: 768px) {
  .cl-home-steps__item--even .cl-home-steps__card-inner {
    text-align: left;
  }

  .cl-home-steps__item--odd .cl-home-steps__card-inner {
    text-align: right;
  }
}

.cl-home-steps__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.cl-home-steps__scheme-grad--teal {
  background: linear-gradient(to bottom right, #2dd4bf, #0d9488);
}

.cl-home-steps__scheme-grad--sky {
  background: linear-gradient(to bottom right, #38bdf8, #0284c7);
}

.cl-home-steps__scheme-grad--violet {
  background: linear-gradient(to bottom right, #c084fc, #7c3aed);
}

.cl-home-steps__scheme-grad--amber {
  background: linear-gradient(to bottom right, #fbbf24, #d97706);
}

.cl-home-steps__card-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: var(--cl-fg);
  line-height: 1.3;
}

.cl-home-steps__card-desc {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  color: var(--cl-muted);
  line-height: 1.65;
}

.cl-home-steps__icon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.12);
  transition: box-shadow 0.35s ease, outline 0.35s ease, transform 0.35s ease;
  will-change: transform;
}

.cl-home-steps__item.is-active .cl-home-steps__icon {
  box-shadow: 0 14px 40px rgba(13, 148, 136, 0.28);
  outline: 4px solid #fff;
  transform: scale(1.08);
}

.cl-home-steps__item:hover .cl-home-steps__icon {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .cl-home-steps__icon {
    margin-inline: 0;
    align-self: center;
  }
}

/* تخصصات */
.cl-home-cats {
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}

.cl-home-cats__title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--cl-primary);
}

/* شريط تمرير أفقي مشترك */
.cl-home-scroller-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(var(--cl-max) + 120px);
  margin-inline: auto;
  padding-inline: max(0.5rem, env(safe-area-inset-left, 0px));
}

.cl-home-scroller-wrap--muted {
  background: #f4f6f6;
  padding-block: 1.25rem;
  border-block: 1px solid var(--cl-border);
}

.cl-home-scroller-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cl-border);
  background: var(--cl-card);
  color: var(--cl-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(26, 46, 46, 0.06);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cl-home-scroller-btn:hover {
  background: var(--cl-primary);
  color: #fff;
  border-color: var(--cl-primary);
}

.cl-home-scroller-btn--prev {
  transform: rotate(270deg);
}

.cl-home-scroller-btn--next {
  transform: rotate(90deg);
}

.cl-home-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cl-home-scroller::-webkit-scrollbar {
  display: none;
}

.cl-home-scroller__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  padding: 0.35rem 0.15rem;
  margin: 0;
  list-style: none;
}

.cl-home-cats__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 122px;
  text-decoration: none;
  color: inherit;
}

.cl-home-cats__img-wrap {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cl-card);
  border: 1px solid var(--cl-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-home-cats__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-home-cats__img-wrap .cl-home-cats__svg {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.cl-home-cats__ph {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cl-primary);
}

.cl-home-cats__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cl-fg);
  text-align: center;
  line-height: 1.35;
}

/* خدماتنا الطبية — HomePage.tsx (بعد خطوات الحجز) */
.cl-home-services--medical {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(to bottom, var(--cl-bg) 0%, rgba(224, 242, 241, 0.28) 48%, var(--cl-bg) 100%);
}

.cl-home-services__intro {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cl-home-services__title--medical {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cl-fg);
}

.cl-home-services__lead {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--cl-muted);
  line-height: 1.65;
}

.cl-home-services--medical .cl-svc-grid--medical {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cl-home-services--medical .cl-svc-grid--medical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .cl-home-services--medical .cl-svc-grid--medical {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.cl-home-services__cta-wrap {
  margin: clamp(2.5rem, 5vw, 3rem) 0 0;
  text-align: center;
}

.cl-home-services__cta-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--cl-primary), #0f766e, var(--cl-secondary));
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.22);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.cl-home-services__cta-all:hover {
  box-shadow: 0 14px 40px rgba(13, 148, 136, 0.32);
  transform: translateY(-2px);
  color: #fff;
}

[dir="rtl"] .cl-home-services__cta-all-ic {
  transform: scaleX(-1);
}

.cl-home-services--medical .cl-svc-card--medical {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.08);
}

.cl-home-services--medical .cl-svc-card--medical:hover {
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 20px 48px rgba(13, 148, 136, 0.12);
  transform: translateY(-8px);
}

.cl-home-services--medical .cl-svc-card__media--medical {
  position: relative;
  height: clamp(12rem, 28vw, 14rem);
  overflow: hidden;
  aspect-ratio: auto;
}

.cl-home-services--medical .cl-svc-card__media--medical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cl-home-services--medical .cl-svc-card--medical:hover .cl-svc-card__media--medical img {
  transform: scale(1.1);
}

.cl-home-services--medical .cl-svc-card__media--medical .cl-svc-card__ph {
  width: 100%;
  height: 100%;
}

.cl-svc-card__media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 50%, transparent 100%);
  pointer-events: none;
}

.cl-svc-card__duration {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cl-svc-card__duration-ic {
  flex-shrink: 0;
  opacity: 0.95;
}

.cl-svc-card__body--medical {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.cl-svc-card__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 0.75rem;
}

.cl-svc-card__star {
  font-size: 1rem;
  line-height: 1;
  color: rgba(100, 116, 139, 0.32);
}

.cl-svc-card__star--on {
  color: var(--cl-secondary);
}

.cl-svc-card__review-count {
  margin-inline-start: 0.35rem;
  font-size: 0.875rem;
  color: var(--cl-muted);
}

.cl-svc-card__title--medical {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.cl-home-services--medical .cl-svc-card--medical:hover .cl-svc-card__title--medical {
  color: var(--cl-primary);
}

.cl-svc-card__excerpt--medical {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-svc-card__foot--medical {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(13, 148, 136, 0.12);
}

.cl-svc-card__from--medical {
  display: block;
  font-size: 0.75rem;
  color: var(--cl-muted);
}

.cl-svc-card__price--medical {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cl-primary);
  line-height: 1.1;
}

.cl-svc-card__cta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cl-primary);
  transition: gap 0.25s ease;
}

.cl-svc-card--medical:hover .cl-svc-card__cta-row {
  gap: 0.55rem;
}

.cl-svc-card__cta-ic {
  flex-shrink: 0;
}

[dir="rtl"] .cl-svc-card__cta-ic {
  transform: scaleX(-1);
}

/* لماذا تختارنا؟ — HomePage.tsx (بعد خدماتنا الطبية) */
.cl-home-why {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(
    to bottom right,
    rgba(13, 148, 136, 0.05),
    rgba(224, 242, 241, 0.35),
    rgba(212, 175, 55, 0.12)
  );
}

.cl-home-why__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cl-home-why__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cl-fg);
}

.cl-home-why__sub {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--cl-muted);
  line-height: 1.65;
}

.cl-home-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cl-home-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .cl-home-why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.cl-home-why__card {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.1);
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cl-home-why__card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 20px 48px rgba(13, 148, 136, 0.12);
}

.cl-home-why__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 46, 46, 0.12);
}

.cl-home-why__icon--teal {
  background: linear-gradient(to bottom right, #2dd4bf, #0d9488);
}

.cl-home-why__icon--sky {
  background: linear-gradient(to bottom right, #38bdf8, #0284c7);
}

.cl-home-why__icon--violet {
  background: linear-gradient(to bottom right, #c084fc, #7c3aed);
}

.cl-home-why__icon--amber {
  background: linear-gradient(to bottom right, #fbbf24, #d97706);
}

.cl-home-why__card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cl-fg);
  line-height: 1.35;
}

.cl-home-why__card-desc {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--cl-muted);
}

/* جاهز لبدء رحلتك الصحية؟ — CTA (HomePage.tsx) */
.cl-home-health-cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.cl-home-health-cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 50px -12px rgba(13, 148, 136, 0.38);
  background: linear-gradient(
    to bottom right,
    var(--cl-primary),
    rgba(13, 148, 136, 0.95),
    var(--cl-secondary)
  );
}

.cl-home-health-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12), transparent 52%);
  pointer-events: none;
}

.cl-home-health-cta__inner {
  position: relative;
  z-index: 1;
}

.cl-home-health-cta--with-image .cl-home-health-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .cl-home-health-cta--with-image .cl-home-health-cta__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    text-align: start;
  }

  .cl-home-health-cta--with-image .cl-home-health-cta__lead {
    margin-inline: 0;
  }
}

.cl-home-health-cta__content {
  min-width: 0;
}

.cl-home-health-cta__media {
  margin: 0;
  position: relative;
  min-width: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.cl-home-health-cta__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 22rem;
  object-fit: cover;
}

.cl-home-health-cta__title {
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.cl-home-health-cta__lead {
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.cl-home-health-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cl-primary);
  background: #fff;
  text-decoration: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.cl-home-health-cta__btn:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
  color: var(--cl-primary);
}

.cl-home-health-cta__btn-ic {
  display: inline-flex;
}

[dir="rtl"] .cl-home-health-cta__btn-ic svg {
  transform: scaleX(-1);
}

.cl-home-body {
  padding: 2rem 0 3rem;
}

@media (max-width: 900px) {
  .cl-home-design-hero__split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cl-home-design-hero__mosaic {
    order: 1;
    margin-inline: auto;
    max-width: min(100%, 520px);
    min-height: clamp(240px, 88vw, 400px);
    grid-template-rows:
      minmax(100px, 22vw)
      minmax(100px, 22vw)
      minmax(85px, 18vw);
  }

  .cl-home-design-hero__intro {
    order: 2;
    text-align: center;
    padding-inline: 0.25rem;
  }

  .cl-home-design-hero__lead {
    margin-inline: auto;
  }

  .cl-home-design-hero__actions {
    justify-content: center;
  }

  .cl-home-design-hero__stats {
    margin-inline: auto;
    max-width: 22rem;
  }

  .cl-home-design-hero__stat {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cl-home-scroller-wrap {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 0.35rem;
  }

  .cl-home-scroller-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================
   التخصصات — شبكة الستة كما في HomePage.tsx
   ========================= */
.cl-home-cats--grid {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.cl-home-cats--grid .cl-home-cats__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(20, 184, 166, 0.045) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.cl-home-cats__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.cl-home-cats--grid .cl-home-cats__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--cl-fg);
  text-align: center;
}

.cl-home-cats__sub {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--cl-muted);
}

.cl-home-cats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .cl-home-cats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cl-home-cats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.cl-home-cats__cell {
  position: relative;
}

.cl-home-cats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 2px solid transparent;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
}

.cl-home-cats__glow {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.cl-home-cats__icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
  transition: transform 0.6s ease, box-shadow 0.35s ease;
  color: #fff;
}

.cl-home-cats__icon-wrap .cl-home-cats__svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.cl-home-cats__icon-wrap .cl-home-cats__svg circle,
.cl-home-cats__icon-wrap .cl-home-cats__svg ellipse,
.cl-home-cats__icon-wrap .cl-home-cats__svg path,
.cl-home-cats__icon-wrap .cl-home-cats__svg rect,
.cl-home-cats__icon-wrap .cl-home-cats__svg polyline,
.cl-home-cats__icon-wrap .cl-home-cats__svg polygon {
  stroke: #fff !important;
}
.cl-home-cats__icon-wrap .cl-home-cats__svg circle[fill]:not([fill="none"]),
.cl-home-cats__icon-wrap .cl-home-cats__svg path[fill]:not([fill="none"]),
.cl-home-cats__icon-wrap .cl-home-cats__svg ellipse[fill]:not([fill="none"]) {
  fill: rgba(255, 255, 255, 0.9) !important;
}

.cl-home-cats--grid .cl-home-cats__name {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  text-align: center;
}

.cl-home-cats__count {
  font-size: 0.78rem;
  color: var(--cl-muted);
  font-weight: 600;
}

.cl-home-cats__desc {
  font-size: 0.78rem;
  color: var(--cl-muted);
  line-height: 1.45;
  text-align: center;
}

.cl-home-cats__chev {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: inherit;
}

.cl-home-cats__card:hover .cl-home-cats__chev,
.cl-home-cats__card:focus-visible .cl-home-cats__chev {
  opacity: 1;
  transform: translateX(0);
}

.cl-home-cats__card:hover,
.cl-home-cats__card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  outline: none;
}

/* Schemes — ألوان مطابقة للتصميم */
.cl-home-cats__cell--teal .cl-home-cats__card    { background: #f0fdfa; }
.cl-home-cats__cell--sky .cl-home-cats__card     { background: #f0f9ff; }
.cl-home-cats__cell--rose .cl-home-cats__card    { background: #fff1f2; }
.cl-home-cats__cell--amber .cl-home-cats__card   { background: #fffbeb; }
.cl-home-cats__cell--violet .cl-home-cats__card  { background: #f5f3ff; }
.cl-home-cats__cell--emerald .cl-home-cats__card { background: #ecfdf5; }

.cl-home-cats__cell--teal .cl-home-cats__card    { color: #0f766e; }
.cl-home-cats__cell--sky .cl-home-cats__card     { color: #0284c7; }
.cl-home-cats__cell--rose .cl-home-cats__card    { color: #e11d48; }
.cl-home-cats__cell--amber .cl-home-cats__card   { color: #b45309; }
.cl-home-cats__cell--violet .cl-home-cats__card  { color: #6d28d9; }
.cl-home-cats__cell--emerald .cl-home-cats__card { color: #047857; }

.cl-home-cats__cell--teal .cl-home-cats__icon-wrap    { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.cl-home-cats__cell--sky .cl-home-cats__icon-wrap     { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.cl-home-cats__cell--rose .cl-home-cats__icon-wrap    { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.cl-home-cats__cell--amber .cl-home-cats__icon-wrap   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cl-home-cats__cell--violet .cl-home-cats__icon-wrap  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.cl-home-cats__cell--emerald .cl-home-cats__icon-wrap { background: linear-gradient(135deg, #10b981, #059669); }

.cl-home-cats__cell--teal .cl-home-cats__glow    { background: linear-gradient(135deg, rgba(20,184,166,0.12), transparent); }
.cl-home-cats__cell--sky .cl-home-cats__glow     { background: linear-gradient(135deg, rgba(14,165,233,0.12), transparent); }
.cl-home-cats__cell--rose .cl-home-cats__glow    { background: linear-gradient(135deg, rgba(244,63,94,0.12), transparent); }
.cl-home-cats__cell--amber .cl-home-cats__glow   { background: linear-gradient(135deg, rgba(245,158,11,0.12), transparent); }
.cl-home-cats__cell--violet .cl-home-cats__glow  { background: linear-gradient(135deg, rgba(139,92,246,0.12), transparent); }
.cl-home-cats__cell--emerald .cl-home-cats__glow { background: linear-gradient(135deg, rgba(16,185,129,0.12), transparent); }

/* is-active cycling state (mirrors activeSpec in HomePage.tsx) */
.cl-home-cats__cell.is-active .cl-home-cats__card {
  transform: translateY(-6px);
  border-color: currentColor;
  box-shadow: 0 20px 60px var(--cl-cat-glow, rgba(20, 184, 166, 0.35));
}

.cl-home-cats__cell--teal.is-active    { --cl-cat-glow: rgba(20, 184, 166, 0.35); }
.cl-home-cats__cell--sky.is-active     { --cl-cat-glow: rgba(14, 165, 233, 0.35); }
.cl-home-cats__cell--rose.is-active    { --cl-cat-glow: rgba(244, 63, 94, 0.35); }
.cl-home-cats__cell--amber.is-active   { --cl-cat-glow: rgba(245, 158, 11, 0.35); }
.cl-home-cats__cell--violet.is-active  { --cl-cat-glow: rgba(139, 92, 246, 0.35); }
.cl-home-cats__cell--emerald.is-active { --cl-cat-glow: rgba(16, 185, 129, 0.35); }

.cl-home-cats__cell.is-active .cl-home-cats__glow {
  opacity: 1;
}

.cl-home-cats__cell.is-active .cl-home-cats__icon-wrap {
  animation: cl-cat-wobble 0.6s ease;
}

@keyframes cl-cat-wobble {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(-10deg) scale(1.1); }
  50%  { transform: rotate(10deg) scale(1.1); }
  75%  { transform: rotate(-10deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* =========================
   Reveal on scroll (IntersectionObserver)
   ========================= */
[data-cl-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-cl-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-cl-reveal],
  [data-cl-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cl-home-cats__cell.is-active .cl-home-cats__icon-wrap {
    animation: none;
  }
}
