
.specialties-page {
  background: radial-gradient(circle at 15% 10%, #ffffff 0%, var(--color-bg) 48%, #eaf2ff 100%);
}

.sp-hero {
  background:
    linear-gradient(135deg, #0a1e42 0%, #113a7d 45%, #1a5199 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}

.sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.sp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,0.025) 48px, rgba(255,255,255,0.025) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,0.025) 48px, rgba(255,255,255,0.025) 49px);
  pointer-events: none;
}

.sp-hero-inner {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.82s ease both;
}

.sp-hero .hero-kicker {
  color: var(--color-highlight);
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sp-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.14;
  color: #ffffff;
}

.sp-hero-sub {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.sp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.sp-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sp-hero-stat span {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.sp-hero-stat small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-filter-bar-wrap {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(17, 58, 125, 0.07);
}

.sp-filter-bar-wrap {
  top: 70px;
}

.sp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
}

.sp-filter {
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
}

.sp-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: rgba(31, 95, 191, 0.05);
  transform: translateY(-1px);
}

.sp-filter.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 95, 191, 0.3);
}

.sp-section {
  padding: 60px 0;
}

.sp-section-support {
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, #f4f8ff 100%);
}

.sp-section-header {
  margin-bottom: 40px;
}

.sp-section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #2a74df);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.sp-section-label-alt {
  background: linear-gradient(135deg, var(--color-accent), #0ea5e9);
}

.sp-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.sp-section-sub {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.65;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 6px 20px rgba(15, 45, 98, 0.07);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
  position: relative;
  overflow: visible;
}

.sp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 45, 98, 0.15);
  border-color: #b9d3f7;
}

.sp-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -1px;
  width: 4px;
  height: calc(100% - 36px);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: top;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

.sp-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.sp-card-featured {
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 100%);
  border-color: #c5d8f7;
}

.sp-card-featured::before {
  background: linear-gradient(180deg, #e63946 0%, #ff8c42 100%);
  opacity: 1;
  transform: scaleY(1);
}

.sp-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e63946, #ff6b35);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  width: fit-content;
}

.sp-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sp-card-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.sp-icon-cardio     { background: #fff0f2; color: #e63946; }
.sp-icon-ctvs       { background: #fff0f2; color: #c0392b; }
.sp-icon-pulmo      { background: #f0fbff; color: #0284c7; }
.sp-icon-critical   { background: #fff7ed; color: #ea580c; }
.sp-icon-urology    { background: #f0fdf4; color: #16a34a; }
.sp-icon-nephro     { background: #f5f3ff; color: #7c3aed; }
.sp-icon-transplant { background: #fef2fb; color: #a21caf; }
.sp-icon-neuro      { background: #fffbf0; color: #d97706; }
.sp-icon-neurosurg  { background: #fef2f2; color: #dc2626; }
.sp-icon-ortho      { background: #f0f9ff; color: #0369a1; }
.sp-icon-trauma     { background: #fff7ed; color: #c2410c; }
.sp-icon-physio     { background: #f0fdf4; color: #15803d; }
.sp-icon-gastro     { background: #f0fdfa; color: #0d9488; }
.sp-icon-surgastro  { background: #fafff0; color: #4d7c0f; }
.sp-icon-gen-surgery{ background: #f8f4ff; color: #6d28d9; }
.sp-icon-plastic    { background: #fdf4ff; color: #9333ea; }
.sp-icon-gen-med    { background: #eff6ff; color: #1d4ed8; }
.sp-icon-vascular   { background: #fff1f2; color: #be123c; }
.sp-icon-radio      { background: #f0f4ff; color: #3730a3; }
.sp-icon-path       { background: #fafafa; color: #374151; }
.sp-icon-micro      { background: #f0fff4; color: #065f46; }

.sp-icon-ophtha { background: #eff6ff; color: #1d4ed8; }
.sp-icon-dental { background: #f0fdf4; color: #15803d; }
.sp-icon-ent    { background: #fff7ed; color: #c2410c; }
.sp-icon-gynae  { background: #fdf2f8; color: #be185d; }
.sp-icon-derm   { background: #fff1f2; color: #e11d48; }

.sp-card-body {
  flex: 1;
}

.sp-card-title {
  margin: 0 0 7px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.25;
}

.sp-card-desc {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sp-card-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-card-list li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.sp-card-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}

.sp-card-cta {
  display: inline-block;
  margin-top: auto;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  width: 100%;
  padding-top: 12px;
}

.sp-card-cta:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.sp-support-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.sp-support-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 45, 98, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sp-support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 45, 98, 0.13);
  border-color: #b9d3f7;
}

.sp-support-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-support-icon svg {
  width: 24px;
  height: 24px;
}

.sp-support-body h3 {
  margin: 0 0 6px;
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.25;
}

.sp-support-body p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.sp-cta-strip {
  background: linear-gradient(135deg, #0a1e42 0%, #163d84 55%, #1a4ea8 100%);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.sp-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.sp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.sp-cta-text h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.sp-cta-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.97rem;
  max-width: 540px;
}

.sp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.sp-cta-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.sp-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.sp-card[hidden],
.sp-support-card[hidden] {
  display: none;
}

.sp-card,
.sp-support-card {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.46s ease,
    transform 0.46s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.sp-card.is-visible,
.sp-support-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sp-card:nth-child(1)  { transition-delay: 0.04s; }
.sp-card:nth-child(2)  { transition-delay: 0.08s; }
.sp-card:nth-child(3)  { transition-delay: 0.12s; }
.sp-card:nth-child(4)  { transition-delay: 0.04s; }
.sp-card:nth-child(5)  { transition-delay: 0.08s; }
.sp-card:nth-child(6)  { transition-delay: 0.12s; }
.sp-card:nth-child(7)  { transition-delay: 0.04s; }
.sp-card:nth-child(8)  { transition-delay: 0.08s; }
.sp-card:nth-child(9)  { transition-delay: 0.12s; }
.sp-card:nth-child(10) { transition-delay: 0.04s; }
.sp-card:nth-child(11) { transition-delay: 0.08s; }
.sp-card:nth-child(12) { transition-delay: 0.12s; }
.sp-card:nth-child(13) { transition-delay: 0.04s; }
.sp-card:nth-child(14) { transition-delay: 0.08s; }
.sp-card:nth-child(15) { transition-delay: 0.12s; }
.sp-card:nth-child(16) { transition-delay: 0.04s; }
.sp-card:nth-child(17) { transition-delay: 0.08s; }
.sp-card:nth-child(18) { transition-delay: 0.12s; }
.sp-card:nth-child(19) { transition-delay: 0.04s; }
.sp-card:nth-child(20) { transition-delay: 0.08s; }
.sp-card:nth-child(21) { transition-delay: 0.12s; }

.sp-support-card:nth-child(1) { transition-delay: 0.04s; }
.sp-support-card:nth-child(2) { transition-delay: 0.09s; }
.sp-support-card:nth-child(3) { transition-delay: 0.14s; }
.sp-support-card:nth-child(4) { transition-delay: 0.19s; }
.sp-support-card:nth-child(5) { transition-delay: 0.24s; }

@media (max-width: 1024px) {
  .sp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .sp-hero {
    padding: 48px 0 42px;
  }

  .sp-hero h1 {
    font-size: 2rem;
  }

  .sp-hero-stats {
    gap: 10px 24px;
  }

  .sp-grid {
    grid-template-columns: 1fr;
  }

  .sp-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-filter-bar-wrap {
    top: 0;
  }
}

@media (max-width: 480px) {
  .sp-support-grid {
    grid-template-columns: 1fr;
  }

  .sp-filter-bar {
    gap: 6px;
  }

  .sp-filter {
    padding: 7px 14px;
    font-size: 0.83rem;
  }
}
