/*--------------------------------------------------------------
# Inpatient (IP) Management — Solutions Page
# Theme: Indigo (#4F46E5)
--------------------------------------------------------------*/

/* ── Animated gradient blobs ── */
.ip-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: ip-blob-drift 13s ease-in-out infinite alternate;
}
.ip-hero-blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(79,70,229,0.22), transparent 70%);
  top: -180px; right: -120px;
  animation-duration: 15s;
}
.ip-hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,184,169,0.16), transparent 70%);
  bottom: -120px; left: -80px;
  animation-duration: 11s;
  animation-delay: -5s;
}
.ip-hero-blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 70%);
  top: 38%; left: 30%;
  animation-duration: 17s;
  animation-delay: -9s;
}
@keyframes ip-blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.07); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Hero stat badges ── */
.ip-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.ip-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.ip-stat-badge i { font-size: 0.85rem; color: #A5B4FC; }
.ip-stat-badge:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(165,180,252,0.45);
}

/* ── Hero bottom padding ── */
.sol-hero { padding-bottom: 100px; }

/*--------------------------------------------------------------
# Hero — Workflow Timeline Panel (right side)
--------------------------------------------------------------*/
.ip-hero-timeline {
  position: relative;
  z-index: 1;
}

.ip-timeline-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.28);
}

.ip-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(79,70,229,0.38), rgba(0,184,169,0.22));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ip-timeline-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.ip-timeline-header-left i { font-size: 1.15rem; color: #A5B4FC; }
.ip-timeline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(165,180,252,0.15);
  border: 1px solid rgba(165,180,252,0.30);
  color: #C7D2FE;
}

/* Steps */
.ip-timeline-steps {
  padding: 22px 22px 10px;
  position: relative;
}
/* Vertical connector line */
.ip-timeline-steps::before {
  content: '';
  position: absolute;
  left: 42px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(79,70,229,0.50) 0%,
    rgba(0,184,169,0.40) 60%,
    rgba(0,184,169,0.10) 100%
  );
}

.ip-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}
.ip-step:last-child { margin-bottom: 0; }

.ip-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}
.ip-step:hover .ip-step-dot { transform: scale(1.12); }

.ip-step-dot-indigo {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.40);
}
.ip-step-dot-violet {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.ip-step-dot-teal {
  background: linear-gradient(135deg, #0891B2, #00B8A9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8,145,178,0.35);
}
.ip-step-dot-green {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}

.ip-step-content { flex: 1; padding-top: 4px; }
.ip-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2px;
}
.ip-step-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}

/* Footer */
.ip-timeline-footer {
  padding: 14px 22px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
}
.ip-timeline-footer i { color: #A5B4FC; font-size: 0.85rem; }

/*--------------------------------------------------------------
# Advanced Features — indigo theme
--------------------------------------------------------------*/
.ip-feat-section { background: #F8FAFC; }

.ip-feat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.ip-feat-row:last-child { margin-bottom: 0; }

.ip-feat-card {
  position: relative;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px 24px 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ip-feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4F46E5, #00B8A9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.ip-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(79,70,229,0.11);
  border-color: rgba(79,70,229,0.20);
}
.ip-feat-card:hover::before { transform: scaleX(1); }

.ip-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ip-feat-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(0,184,169,0.08));
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 1;
}
.ip-feat-card:hover .ip-feat-icon {
  background: linear-gradient(135deg, #4F46E5, #00B8A9);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.ip-feat-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(79,70,229,0.07);
  letter-spacing: -0.04em;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
}
.ip-feat-card:hover .ip-feat-num { color: rgba(79,70,229,0.13); }

.ip-feat-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 10px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.ip-feat-card p {
  font-size: 0.875rem;
  color: var(--muted-color);
  line-height: 1.72;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.ip-feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ip-feat-tags span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(79,70,229,0.06);
  color: #4F46E5;
  border: 1px solid rgba(79,70,229,0.15);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ip-feat-card:hover .ip-feat-tags span {
  background: rgba(79,70,229,0.10);
  border-color: rgba(79,70,229,0.25);
}

/*--------------------------------------------------------------
# Why Choose — indigo overrides
--------------------------------------------------------------*/
.ip-page .dnt-why-icon {
  color: #4F46E5;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(0,184,169,0.08));
}
.ip-page .dnt-why-item:hover .dnt-why-icon {
  background: linear-gradient(135deg, #4F46E5, #00B8A9);
  color: #fff;
}

/*--------------------------------------------------------------
# Section kicker & CTA — indigo overrides
--------------------------------------------------------------*/
.ip-page .tp-sol-kicker {
  background: rgba(79,70,229,0.08);
  color: #4F46E5;
}
.ip-page .sol-cta-btn {
  background: linear-gradient(135deg, #4F46E5, #00B8A9);
}
.ip-page .sol-cta-btn:hover {
  background: linear-gradient(135deg, #3730a3, #009e96);
}
.ip-page .related-card:hover { border-color: rgba(79,70,229,0.30); }
.ip-page .related-card i { color: #4F46E5; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .sol-hero { padding-bottom: 80px; }
  .ip-hero-blob-1 { width: 320px; height: 320px; }
  .ip-hero-blob-2 { width: 240px; height: 240px; }
  .ip-timeline-panel { max-width: 480px; margin: 0 auto; }
  .ip-feat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ip-hero-stats { gap: 8px; }
  .ip-stat-badge { font-size: 0.74rem; padding: 6px 11px; }
  .ip-hero-blob-3 { display: none; }
}
@media (max-width: 575px) {
  .ip-feat-row { grid-template-columns: 1fr; }
}
