/* ==========================================================================
   Spinal Cord Injury - Dedicated Service Page Stylesheet
   Dr. Dilip S. Kiyawat Neurosurgical & Spine Care
   ========================================================================== */

/* 1. Hero Breadcrumb Banner */
.sci-hero-section {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-blue) 100%);
  padding: 4.5rem 0 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.sci-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.sci-hero-content {
  position: relative;
  z-index: 2;
}

.sci-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 0.6rem;
}

.sci-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sci-hero-breadcrumbs {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sci-hero-breadcrumbs a {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.sci-hero-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.sci-hero-breadcrumbs i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 2. Main Page Layout (8 cols Content + 4 cols Sidebar) */
.sci-main-section {
  padding: 4.5rem 0;
  background-color: #f8fafc;
}

.sci-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* 3. Left Content Column */
.sci-content-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Intro Header Block */
.sci-intro-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.sci-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(94, 18, 94, 0.08);
  color: var(--primary-purple);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}

.sci-lead-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-blue);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.sci-main-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

/* Clinical Text Sections */
.sci-clinical-text {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sci-clinical-text p {
  margin: 0;
}

.sci-highlight-tag {
  color: var(--primary-purple);
  font-weight: 700;
  display: inline;
}

.sci-sub-callout {
  background: #f8fafc;
  border-left: 4px solid var(--secondary-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 0.5rem 0;
}

/* WhatsApp CTA Button */
.sci-cta-row {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25D366;
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-whatsapp-cta:hover {
  background-color: #1eb954;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-cta i {
  font-size: 1.35rem;
}

.btn-consult-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-purple);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-consult-quick:hover {
  background: var(--secondary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(35, 82, 147, 0.3);
}

/* 4. Case Highlight Banner */
.sci-case-highlight {
  background: linear-gradient(135deg, rgba(94, 18, 94, 0.05) 0%, rgba(35, 82, 147, 0.08) 100%);
  border: 1px solid rgba(94, 18, 94, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.case-icon-box {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--primary-purple);
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 15px rgba(94, 18, 94, 0.25);
}

.case-text-wrap h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-purple);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.case-text-wrap p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* 5. 4 Clinical Pillars Grid */
.sci-pillars-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sci-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.sci-pillar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sci-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sci-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.sci-pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.pillar-symptoms .pillar-icon-wrap {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pillar-causes .pillar-icon-wrap {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.pillar-treatment .pillar-icon-wrap {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.pillar-rehab .pillar-icon-wrap {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* 6. Surgical Stabilization Radiography Showcase */
.sci-stabilization-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.sci-block-header {
  margin-bottom: 2rem;
}

.sci-block-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  display: block;
}

.sci-block-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.sci-radiographs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.radiograph-card {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.radiograph-card:hover {
  transform: translateY(-4px);
}

.radiograph-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 130%; /* 3:4 aspect ratio */
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.radiograph-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.radiograph-card:hover .radiograph-img-wrap img {
  transform: scale(1.03);
}

.radiograph-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.radiograph-caption {
  padding: 1.25rem;
  background: #1e293b;
  color: #ffffff;
  text-align: center;
}

.radiograph-caption h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem;
  text-transform: capitalize;
}

.radiograph-caption p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* 7. Direct Doctor Consultation Strip */
.sci-consultation-strip {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-blue) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(94, 18, 94, 0.25);
}

.sci-strip-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.sci-strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sci-strip-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.strip-info span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.strip-info a, .strip-info strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.strip-info a:hover {
  text-decoration: underline;
  color: var(--accent-teal);
}

/* 8. Right Sidebar Column */
.sci-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sci-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-total-height, 120px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* About Doctor Card */
.sci-about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.sci-doctor-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--accent-teal);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sci-about-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.sci-about-role {
  color: var(--secondary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sci-about-desc {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sci-social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.sci-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sci-social-btn:hover {
  background: var(--primary-purple);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sidebar Treatments Navigation */
.sci-services-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-purple);
}

.sci-services-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.sci-services-menu::-webkit-scrollbar {
  width: 5px;
}

.sci-services-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sci-services-menu li {
  margin-bottom: 0.5rem;
}

.sci-services-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.sci-services-menu a:hover {
  background: rgba(94, 18, 94, 0.08);
  color: var(--primary-purple);
  padding-left: 1.2rem;
}

.sci-services-menu a.active {
  background: var(--primary-purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(94, 18, 94, 0.25);
}

.sci-services-menu a.active i {
  color: #ffffff;
}

.sci-services-menu a i {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.sci-services-menu a:hover i {
  transform: translateX(3px);
  color: var(--primary-purple);
}

/* Sidebar Emergency Banner */
.sci-emergency-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sci-emergency-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.emergency-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.emergency-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.emergency-text {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.35rem 0 1rem;
}

.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-teal);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-emergency-call:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* 9. Lightbox Modal for Radiographs */
.radiograph-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.radiograph-modal.show {
  display: flex;
}

.modal-content-wrap {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-content-wrap img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.modal-caption-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
  .sci-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sci-strip-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sci-intro-block, .sci-stabilization-block {
    padding: 1.75rem;
  }

  .sci-pillars-grid {
    grid-template-columns: 1fr;
  }

  .sci-radiographs-grid {
    grid-template-columns: 1fr;
  }

  .sci-case-highlight {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .case-icon-box {
    margin: 0 auto;
  }

  .sci-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-whatsapp-cta, .btn-consult-quick {
    justify-content: center;
  }
}
