/* ==========================================================================
   Hope Clinic Udaipur - Treatments Page Redesign Stylesheet
   Each section is uniquely styled to create a premium, interactive journey.
   ========================================================================== */

/* 1. TREATMENTS HERO SECTION */
.treatments-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(76, 29, 149, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 45%),
              var(--color-bg-dark);
  padding: 180px 0 100px;
  color: var(--color-text-light);
  overflow: hidden;
}

.treatments-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: none; /* Override global max-width from style.css */
}

.hero-visual-block {
  position: relative;
  width: 100%;
  padding-bottom: 40px; /* Space for floating nav */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-bg-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(124, 58, 237, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 1.45;
  z-index: 2;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) contrast(1.05) saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-block:hover .hero-image-frame img {
  transform: scale(1.05);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(15, 9, 32, 0.8) 0%, rgba(15, 9, 32, 0) 60%);
  pointer-events: none;
  z-index: 3;
}

.hero-floating-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  background: rgba(20, 13, 38, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.floating-nav-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  margin-bottom: 8px;
  text-align: center;
}

.floating-nav-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.floating-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted-dark);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.floating-nav-item:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.floating-nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s;
}

.floating-nav-item:hover .floating-nav-icon {
  background: var(--color-cyan);
  color: var(--color-bg-dark);
}

/* 2. SECTION 2: BREAST ONCOLOGY (Elegant Light Theme) */
.treatments-breast {
  background-color: #fafaf9;
  padding: 120px 0;
  position: relative;
}

.breast-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.breast-visual-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(76, 29, 149, 0.08);
  border: 8px solid #fff;
  transform: rotate(1deg);
  transition: all 0.5s ease;
}

.breast-visual-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 40px 80px rgba(76, 29, 149, 0.12);
}

.breast-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.breast-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-sapphire-dark);
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.breast-bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.breast-bullet-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.breast-bullet-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 2px solid var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.breast-bullet-content h4 {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.breast-bullet-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 3. SECTION 3: GI CANCER CARE (Glowing Dark Theme) */
.treatments-gi {
  background: linear-gradient(135deg, #020b0e 0%, #061a1e 100%);
  padding: 120px 0;
  position: relative;
  color: var(--color-text-light);
}

.treatments-gi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 30%, rgba(13, 148, 136, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.gi-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.gi-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.25);
  transition: all 0.5s ease;
}

.gi-visual-frame:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(13, 148, 136, 0.25);
}

.gi-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.gi-bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gi-bullet-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.gi-bullet-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
  border: 2px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.gi-bullet-content h4 {
  font-family: var(--font-body);
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.gi-bullet-content p {
  color: var(--color-text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 4. SECTION 4: HEAD & NECK TUMORS (Bento Cards Grid) */
.treatments-hn {
  background-color: #ffffff;
  padding: 120px 0;
  position: relative;
}

.hn-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.hn-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(225, 29, 72, 0.05);
  border: 1px solid var(--color-border-light);
}

.hn-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hn-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 30px;
}

.hn-bento-card {
  background: #fdfdfd;
  border: 1px solid rgba(225, 29, 72, 0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 20px;
}

.hn-bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.06);
  background: #fff;
}

.hn-card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.06);
  color: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.hn-bento-card:hover .hn-card-icon {
  background: var(--color-coral);
  color: #fff;
}

.hn-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.hn-card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 5. SECTION 5: DYNAMIC CHECKER WIDGET */
.treatments-checker {
  background-color: #f1f5f9;
  padding: 120px 0;
  position: relative;
}

.checker-dashboard {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  margin-top: 40px;
  align-items: start;
}

.checker-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checker-item {
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.checker-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.checker-checkbox-glow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: transparent;
}

.checker-checkbox-glow svg {
  width: 16px;
  height: 16px;
  stroke-width: 3.5;
}

/* Checked state styling classes */
.checker-item.active {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.02);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.06);
}

.checker-item.active .checker-checkbox-glow {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.checker-item-text h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.checker-item-text p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checker-panel-desk {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 100px;
  transition: all 0.4s ease;
}

.checker-desk-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.badge-low {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
}

.badge-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-amber);
}

.badge-high {
  background: rgba(225, 29, 72, 0.1);
  color: var(--color-coral);
}

.checker-desk-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.checker-desk-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* 6. SECTION 6: THREE PHASES TIMELINE */
.treatments-care-cycle {
  background: #0b0819;
  padding: 120px 0;
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.treatments-care-cycle::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  pointer-events: none;
}

.timeline-vertical {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-electric), var(--color-cyan));
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transition: height 0.5s ease;
}

.timeline-node {
  position: relative;
  display: flex;
  margin-bottom: 80px;
  z-index: 2;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-col-left, .timeline-col-right {
  width: 50%;
  padding: 0 50px;
  box-sizing: border-box;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-col-left {
  text-align: right;
}

.timeline-col-right {
  text-align: left;
}

.timeline-bullet-node {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f0920;
  border: 4px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 0px rgba(6, 182, 212, 0);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-node.active .timeline-bullet-node {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
  transform: translateX(-50%) scale(1.15);
}

.timeline-node:nth-child(1).active .timeline-bullet-node {
  border-color: var(--color-electric);
  color: var(--color-electric);
}

.timeline-node:nth-child(3).active .timeline-bullet-node {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.timeline-card-wrapper {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
}

.timeline-node.active .timeline-card-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.timeline-phase-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s;
}

.timeline-node.active .timeline-phase-icon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-cyan);
}

.timeline-node:nth-child(1).active .timeline-phase-icon {
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-electric);
}

.timeline-node:nth-child(3).active .timeline-phase-icon {
  background: rgba(13, 148, 136, 0.1);
  color: var(--color-teal);
}

.timeline-phase-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-light);
}

.timeline-phase-desc {
  color: var(--color-text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .breast-grid, .gi-grid, .hn-grid, .checker-dashboard {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }
  
  /* Hide the empty columns in alternating phases to prevent double column shifting */
  .timeline-col-left:empty,
  .timeline-col-right:empty {
    display: none !important;
  }

  .timeline-col-left, .timeline-col-right {
    width: 100% !important;
    padding: 0 0 0 75px !important; /* Left space for timeline elements */
    text-align: left !important;
  }
  
  .timeline-node {
    flex-direction: row !important;
  }
  
  .timeline-line {
    left: 32px !important; /* Shift line away from screen edge to prevent clipping */
  }
  
  .timeline-bullet-node {
    left: 32px !important; /* Shift bullet center away from screen edge */
    transform: translateX(-50%) !important;
  }
  
  .timeline-node.active .timeline-bullet-node {
    transform: translateX(-50%) scale(1.1) !important;
  }

  .timeline-card-wrapper {
    padding: 28px !important; /* Slightly reduce card padding for medium screens */
  }
}

@media (max-width: 768px) {
  .timeline-card-wrapper {
    padding: 24px !important; /* Further reduce card padding on mobile screens */
  }
  
  .timeline-phase-icon {
    margin-bottom: 18px !important; /* Reduce bottom margin of icons inside cards */
  }
}

@media (max-width: 480px) {
  .timeline-line {
    left: 24px !important; /* Shift timeline closer to left edge on very small devices */
  }
  
  .timeline-bullet-node {
    left: 24px !important;
  }
  
  .timeline-col-left, .timeline-col-right {
    padding: 0 0 0 60px !important; /* Reduce padding slightly to optimize text space */
  }
  
  .timeline-card-wrapper {
    padding: 20px !important; /* Optimal compact padding for mobile text layout */
  }
}
