/* Per-category Top Clinics + slider (landing & category pages) */

.featured-section { padding: 36px 0 8px; }
.featured-empty { color: var(--muted); text-align: center; padding: 24px 0; }
.featured-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.featured-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 35, 60, .1);
}
.featured-rank {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--mint);
  color: var(--blue);
  flex-shrink: 0;
}
.featured-row:nth-child(1) .featured-rank { background: #fef3c7; color: #b45309; }
.featured-row:nth-child(2) .featured-rank { background: #e5e7eb; color: #374151; }
.featured-row:nth-child(3) .featured-rank { background: #fde4cf; color: #9a3412; }
.featured-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--mint);
}
.featured-info { flex: 1; min-width: 0; }
.featured-name {
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}
.featured-tagline {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-cta { flex-shrink: 0; }
.featured-cta .btn { font-size: .85rem; padding: 9px 18px; }


/* Premium full-width stack (category monetization slots) */
.premium-clinic-stack {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.premium-clinic-item {
  width: 100%;
  margin: 0;
  padding: 0;
}
.premium-clinic-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .28s ease, border-color .28s ease, transform .28s ease;
  min-height: 168px;
}
.premium-clinic-row:hover {
  border-color: #9ec9e8;
  box-shadow: 0 14px 36px rgba(14, 53, 113, .12);
  transform: translateY(-2px);
}
.premium-clinic-media {
  position: relative;
  flex: 0 0 42%;
  max-width: 420px;
  min-height: 168px;
  background: #dbe7f3;
}
.premium-clinic-image {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  display: block;
}
.premium-clinic-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(19, 35, 60, .14);
}
.premium-clinic-item:nth-child(1) .premium-clinic-rank {
  background: #fef3c7;
  color: #b45309;
}
.premium-clinic-item:nth-child(2) .premium-clinic-rank {
  background: #e5e7eb;
  color: #374151;
}
.premium-clinic-item:nth-child(3) .premium-clinic-rank {
  background: #fde4cf;
  color: #9a3412;
}
.premium-clinic-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 26px;
}
.premium-clinic-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.premium-clinic-name {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.premium-clinic-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.premium-clinic-stars {
  color: #d4a017;
  letter-spacing: 1px;
  font-size: .95rem;
  line-height: 1;
}
.premium-clinic-rating-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
}
.premium-clinic-tagline {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.premium-clinic-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.premium-clinic-services li {
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  background: #f1f7fc;
  border: 1px solid #d7e8f5;
  border-radius: 999px;
  padding: 5px 12px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.premium-clinic-actions {
  margin-top: 4px;
}
.premium-clinic-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  pointer-events: none;
}


.title {
  text-align: center;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.5;
  font-weight: 800;
}
.subtitle {
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
  font-size: .98rem;
}

.category-slider {
  margin-top: 8px;
  position: relative;
  padding: 0 48px 34px;
  overflow: hidden;
}
.category-slider .swiper-slide img {
  width: 100%;
  height: clamp(180px, 32vw, 320px);
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #dbe7f3;
}

/* Clinic-card slides (catalog fallback / mixed mode) */
.category-slider .doctor-card {
  background: #0e3571;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  height: 100%;
}
.category-slider .doctor-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #dbe7f3;
}
.category-slider .doctor-body {
  padding: 12px 10px;
}
.category-slider .doctor-body b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.2em;
  line-height: 1.6;
  font-size: 1rem;
}
.category-slider .doctor-body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
  font-size: .82rem;
  color: #bfdbff;
}
.category-slider .doctor-body .btn-main {
  margin-top: 10px;
  width: 100%;
  font-size: .85rem;
  padding: 9px 12px;
}
.category-slider .swiper-wrapper {
  align-items: stretch;
}
.category-slider .swiper-slide {
  height: auto;
}
.category-slider .swiper-button-next,
.category-slider .swiper-button-prev {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #b8d9ef;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(18, 148, 224, .18);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  cursor: pointer;
}
.category-slider .swiper-button-next { right: 6px; left: auto; }
.category-slider .swiper-button-prev { left: 6px; right: auto; }
.category-slider .swiper-pagination { bottom: 0; }
.category-slider .swiper-pagination-bullet-active { background: var(--blue); }

@media (max-width: 900px) {
  .premium-clinic-media {
    flex-basis: 38%;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .featured-row { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .featured-thumb { width: 56px; height: 56px; border-radius: 10px; }
  .featured-cta { width: 100%; }
  .featured-cta .btn { width: 100%; text-align: center; }
  .category-slider { padding: 0 6px 30px; }
  .category-slider .swiper-button-next,
  .category-slider .swiper-button-prev { display: none; }

  .premium-clinic-row {
    flex-direction: column;
    min-height: 0;
  }
  .premium-clinic-media {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 180px;
  }
  .premium-clinic-image {
    min-height: 180px;
    aspect-ratio: 16 / 9;
  }
  .premium-clinic-body {
    padding: 18px 16px 20px;
  }
  .premium-clinic-book {
    width: 100%;
  }
}
