/* ═══════════════════════════════════════════════════
   surgery-techniques.css
   BestDoctorsIn — Surgery Techniques Section
   <link rel="stylesheet" href="surgery-techniques.css"/>
═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --st-green:       #1a6b4a;
  --st-green-light: #eaf5f0;
  --st-blue:        #2d4a7a;
  --st-blue-light:  #e8eef8;
  --st-red:         #e63946;
  --st-text:        #1a1a2e;
  --st-muted:       #6b7280;
  --st-border:      #e5e9f0;
  --st-radius:      14px;
}

/* ── Section ── */
.st-section {
  padding: 72px 0 88px;
  background: #f8faf9;
  position: relative;
}

.st-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 10%, rgba(26,107,74,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Header ── */
.st-header {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.st-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-green);
  background: var(--st-green-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.st-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--st-text);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.st-intro {
  font-size: 15px;
  color: var(--st-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Each technique block ── */
.st-technique {
  background: #fff;
  border-radius: var(--st-radius);
  border: 1px solid var(--st-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  margin-bottom: 28px;
  overflow: hidden;
  /* Entrance animation */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.st-technique.st-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Technique header bar ── */
.st-technique-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--st-green-light);
  border-bottom: 1px solid var(--st-border);
}

.st-technique--alt .st-technique-header {
  background: var(--st-blue-light);
}

.st-technique-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--st-green);
  line-height: 1;
  min-width: 40px;
}

.st-technique--alt .st-technique-num {
  color: var(--st-blue);
}

.st-technique-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--st-text);
  margin: 0;
  flex: 1;
}

.st-technique-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--st-green);
  background: rgba(26,107,74,0.12);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-technique--alt .st-technique-tag {
  color: var(--st-blue);
  background: rgba(45,74,122,0.12);
}

/* ── Steps row ── */
.st-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 24px 32px;
  flex-wrap: wrap;
}

/* ── Arrow between steps ── */
.st-arrow {
  font-size: 20px;
  color: #c0c8d8;
  flex-shrink: 0;
  padding: 0 8px;
  line-height: 1;
  margin-top: -20px; /* align with SVG center, above label */
}

/* ── Single step ── */
.st-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 130px;
  max-width: 170px;
  position: relative;
  /* Entry animation */
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.st-technique.st-visible .st-step {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.st-technique.st-visible .st-step:nth-child(1) { transition-delay: 0.1s; }
.st-technique.st-visible .st-step:nth-child(3) { transition-delay: 0.22s; }
.st-technique.st-visible .st-step:nth-child(5) { transition-delay: 0.34s; }
.st-technique.st-visible .st-step:nth-child(7) { transition-delay: 0.46s; }

/* Step number badge */
.st-step-num {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--st-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(26,107,74,0.35);
}

.st-technique--alt .st-step-num {
  background: var(--st-blue);
  box-shadow: 0 2px 8px rgba(45,74,122,0.35);
}

/* SVG illustration wrapper */
.st-svg-wrap {
  width: 120px;
  height: 130px;
  margin: 12px 0 14px;
  transition: filter 0.28s ease, transform 0.28s ease;
}

.st-step:hover .st-svg-wrap {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.14));
  transform: translateY(-4px);
}

.st-svg-wrap svg {
  width: 100%;
  height: 100%;
}

/* Step label */
.st-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--st-text);
  line-height: 1.5;
  margin: 0;
  max-width: 130px;
}

/* ── Combined note ── */
.st-combined-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 40px;
  max-width: 820px;
  margin-inline: auto;
}

.st-combined-note i {
  color: #f59e0b;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.st-combined-note p {
  font-size: 14px;
  color: #5a4000;
  margin: 0;
  line-height: 1.6;
}

/* ── CTA ── */
.st-cta-row {
  text-align: center;
}

.st-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--st-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(26,107,74,0.30);
}

.st-cta-btn:hover {
  background: #124d36;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,107,74,0.40);
  color: #fff;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .st-steps {
    gap: 4px;
    padding: 28px 12px 24px;
  }

  .st-arrow {
    font-size: 16px;
    padding: 0 4px;
  }

  .st-step {
    min-width: 100px;
    max-width: 130px;
  }

  .st-svg-wrap {
    width: 90px;
    height: 100px;
  }

  .st-step-label {
    font-size: 11px;
  }

  .st-technique-header {
    padding: 16px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .st-section {
    padding: 48px 0 60px;
  }
}

@media (max-width: 520px) {
  .st-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
  }

  .st-arrow {
    display: none;
  }

  .st-step {
    max-width: 100%;
    width: 100%;
  }

  .st-svg-wrap {
    width: 100px;
    height: 110px;
  }
}
