/* =============================================================================
   STATIC MEDICAL SPECIALTY ILLUSTRATIONS
   Mediraah Global — Static Decorative Corner Art
   ============================================================================= */

/* ── Parent Card Setup ─────────────────────────────────────────────────────── */
.specialty-item {
  position: relative !important;
  overflow: hidden !important;
}

/* ── Static Corner Illustration Container ─────────────────────────────────── */
.specialty-illustration {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.90;
  /* Strictly static — no animation, no transition, no transform */
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* In cards with photo thumbnails (homepage), float cleanly over top-right */
.specialty-item__photo + .specialty-illustration,
.specialty-item:has(.specialty-item__photo) .specialty-illustration {
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(12, 43, 59, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.95);
  z-index: 3;
}

.specialty-illustration svg,
.specialty-illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* Strictly static */
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Hover override — explicitly disallow any illustration movement or fade */
.specialty-item:hover .specialty-illustration,
.specialty-item:hover .specialty-illustration svg,
.specialty-item:hover .specialty-illustration img {
  transform: none !important;
  opacity: 0.90 !important;
  transition: none !important;
}

/* ── TEXT PROTECTION (Highest Priority) ──────────────────────────────────── */
/* Reserve space on the right of the header and title so text never collides */
.specialty-item__header {
  position: relative;
  z-index: 2;
  padding-right: 56px;
}

.specialty-item__num {
  position: relative;
  z-index: 2;
}

.specialty-item__name {
  position: relative;
  z-index: 2;
  padding-right: 48px;
}

.specialty-item__desc {
  position: relative;
  z-index: 2;
}

/* ── Responsive Scaling ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .specialty-illustration {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
  }
  .specialty-item__header {
    padding-right: 48px;
  }
  .specialty-item__name {
    padding-right: 42px;
  }
}

@media (max-width: 639px) {
  .specialty-illustration {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
  .specialty-item:has(.specialty-item__photo) .specialty-illustration {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
    padding: 4px;
  }
  .specialty-item__header {
    padding-right: 42px;
  }
  .specialty-item__name {
    padding-right: 36px;
  }
}
