/* ==========================================================================
   Fracture Dislocation of Spine - Dedicated Service Page Stylesheet
   Dr. Dilip S. Kiyawat Neurosurgical & Spine Care
   ========================================================================== */

/* 1. Hero Breadcrumb Banner */
.fdos-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;
}

.fdos-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;
}

.fdos-hero-content {
  position: relative;
  z-index: 2;
}

.fdos-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;
}

.fdos-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.fdos-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;
}

.fdos-hero-breadcrumbs a {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.fdos-hero-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fdos-hero-breadcrumbs i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 2. Main Page Layout (8 cols Content + 4 cols Sidebar) */
.fdos-main-section {
  padding: 4.5rem 0;
  background-color: #f8fafc;
}

.fdos-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* 3. Left Content Column */
.fdos-content-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 3.1 Intro Block */
.fdos-intro-block {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.fdos-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-purple);
  background: rgba(94, 18, 94, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.fdos-lead-subtitle {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fdos-main-heading {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.fdos-main-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--accent-teal);
  border-radius: 2px;
}

.fdos-clinical-text {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

.fdos-clinical-text p {
  margin-bottom: 1.2rem;
}

.fdos-clinical-text p:last-child {
  margin-bottom: 0;
}

.fdos-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-consult-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--primary-purple);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-consult-quick:hover {
  background-color: #490e49;
  transform: translateY(-2px);
  color: #ffffff;
}

/* 3.2 Case Highlight Banner */
.fdos-case-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  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: 1.75rem 2rem;
}

.case-icon-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: var(--primary-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.6rem;
}

.case-text-wrap h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-purple);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.case-text-wrap p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* 3.3 4 Pillars Section */
.fdos-pillars-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.fdos-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.fdos-pillar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.fdos-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #cbd5e1;
  transition: background var(--transition-fast);
}

.fdos-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pillar-causes:hover::before { background: #ef4444; }
.pillar-symptoms:hover::before { background: #f59e0b; }
.pillar-treatment:hover::before { background: var(--secondary-blue); }
.pillar-rehab:hover::before { background: #10b981; }

.pillar-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pillar-causes .pillar-icon-wrap {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pillar-symptoms .pillar-icon-wrap {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.pillar-treatment .pillar-icon-wrap {
  background: rgba(35, 82, 147, 0.1);
  color: var(--secondary-blue);
}

.pillar-rehab .pillar-icon-wrap {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.pillar-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* 3.4 Surgical Radiography Section */
.fdos-radiographs-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.fdos-block-header {
  margin-bottom: 2rem;
}

.fdos-block-subtitle {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-blue);
  margin-bottom: 0.35rem;
}

.fdos-block-title {
  font-family: var(--font-primary);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.fdos-block-intro {
  font-size: 0.98rem;
  color: #64748b;
  margin: 0;
}

.fdos-radiographs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.radiograph-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.radiograph-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-purple);
}

.radiograph-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radiograph-img-wrap img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.radiograph-card:hover .radiograph-img-wrap img {
  transform: scale(1.03);
}

.radiograph-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.radiograph-caption {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.preop-label {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.postop-label {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.radiograph-caption h4 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.radiograph-caption p {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* 3.5 Consultation Strip */
.fdos-consultation-strip {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #3d0b3d 100%);
  color: #ffffff;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(94, 18, 94, 0.25);
}

.fdos-strip-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.fdos-strip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.fdos-strip-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.strip-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-teal);
}

.strip-info {
  display: flex;
  flex-direction: column;
}

.strip-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.strip-info a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition-fast);
}

.strip-info a:hover {
  color: var(--accent-teal);
}

/* 4. Right Sidebar */
.fdos-sidebar-col {
  position: relative;
}

.fdos-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-total-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 4.1 Doctor Bio Card */
.fdos-about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.fdos-doctor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid #f1f5f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.fdos-about-name {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.fdos-about-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary-blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
}

.fdos-about-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.fdos-social-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.fdos-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.fdos-social-btn:hover {
  background: var(--primary-purple);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 4.2 Treatments Navigation Widget */
.fdos-services-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.fdos-services-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.fdos-services-menu::-webkit-scrollbar {
  width: 4px;
}

.fdos-services-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.fdos-services-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.fdos-services-menu a i {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.fdos-services-menu a:hover {
  background: rgba(94, 18, 94, 0.04);
  color: var(--primary-purple);
  border-color: rgba(94, 18, 94, 0.15);
}

.fdos-services-menu a:hover i {
  transform: translateX(3px);
  color: var(--primary-purple);
}

.fdos-services-menu a.active {
  background: var(--primary-purple);
  color: #ffffff;
}

.fdos-services-menu a.active i {
  color: #ffffff;
}

/* 4.3 Emergency Banner Widget */
.fdos-emergency-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fdos-emergency-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.emergency-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(94, 18, 94, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.emergency-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.emergency-text {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--primary-purple);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-emergency-call:hover {
  background: var(--accent-teal);
  color: #0f172a;
  transform: translateY(-2px);
}

/* 5. Lightbox Modal */
.radiograph-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.radiograph-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content-wrap {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content-wrap img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-caption-text {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  line-height: 1.5;
  text-align: center;
}

/* 6. Responsive Breakpoints */
@media (max-width: 1024px) {
  .fdos-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .fdos-sidebar-sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .fdos-main-heading {
    font-size: 1.8rem;
  }

  .fdos-pillars-grid {
    grid-template-columns: 1fr;
  }

  .fdos-radiographs-grid {
    grid-template-columns: 1fr;
  }

  .fdos-intro-block,
  .fdos-pillars-section,
  .fdos-radiographs-block {
    padding: 1.75rem 1.25rem;
  }

  .fdos-strip-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .fdos-cta-row {
    flex-direction: column;
  }

  .btn-whatsapp-cta,
  .btn-consult-quick {
    width: 100%;
    justify-content: center;
  }
}
