/* ==========================================================================
   Dr. Appalanaidu - Treatments & Procedures Page Stylesheet
   Faithfully recreates the visual reference design (media_1790336588032.jpg)
   ========================================================================== */

/* --- 1. HERO SECTION --- */
.treatments-hero {
  position: relative;
  background-color: #061a33;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(12, 138, 130, 0.14) 0%, transparent 50%),
    linear-gradient(135deg, #051427 0%, #0a2342 60%, #0d2c54 100%);
  color: #ffffff;
  padding: 60px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.treatments-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.treatments-hero-content {
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.treatments-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 16px;
}

.treatments-hero-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.35rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.treatments-hero-sub {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 530px;
  margin-bottom: 32px;
}

.treatments-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #0b2546 !important;
  padding: 13px 26px;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}

.btn-hero-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 12px 26px;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.treatments-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.treatments-hero-img-wrap {
  width: 100%;
  max-width: 490px;
  height: 420px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  background: #0d2c54;
}

.treatments-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* --- 2. STICKY CATEGORY NAVIGATION --- */
.treatments-nav-sticky {
  position: sticky;
  top: 73px;
  z-index: 900;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(11, 37, 70, 0.05);
  transition: all 0.25s ease;
}

.treatments-nav-container {
  max-width: var(--max-width, 1240px);
  margin: 0 auto;
  padding: 0 24px;
}

.treatments-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.treatments-tab-item {
  display: flex;
}

.treatments-tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.treatments-tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.treatments-tab-link:hover {
  color: #0b2546;
}

.treatments-tab-link:hover .treatments-tab-icon {
  transform: scale(1.1);
}

.treatments-tab-link.active {
  color: #0284c7;
  font-weight: 700;
}

.treatments-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  background-color: #0284c7;
  border-radius: 3px 3px 0 0;
}

/* --- 3. TREATMENT SECTIONS COMMON STYLES --- */
.treatment-section {
  padding: 70px 0;
  border-bottom: 1px solid #edf2f7;
  scroll-margin-top: 135px;
}

.treatment-section.bg-subtle-blue {
  background-color: #f1f7fd;
}

.treatment-section.bg-white {
  background-color: #ffffff;
}

/* 3-Column Asymmetric Grid Layout */
.treatment-block-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.05fr;
  align-items: center;
  gap: 36px;
}

/* Reversed Layout (Visual on Left, Content in Center, List on Right) */
.treatment-block-grid.layout-reversed {
  grid-template-columns: 1fr 1.15fr 1.05fr;
}

/* Top Badges Row */
.section-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-number.teal {
  background-color: #ccfbf1;
  color: #0d9488;
}

.badge-pill-tag {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-pill-tag.teal {
  background-color: #ccfbf1;
  color: #0d9488;
}

/* Section Headings & Text */
.treatment-section-heading {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.85rem, 2.7vw, 2.35rem);
  font-weight: 600;
  line-height: 1.22;
  color: #0b2546;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.treatment-section-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Checkmark Benefit Card (White Card with Checkmark Items) */
.treatment-benefit-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(11, 37, 70, 0.04);
  margin-bottom: 24px;
}

.treatment-section.bg-white .treatment-benefit-card {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.benefit-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-check-icon.teal {
  background-color: #ccfbf1;
  color: #0d9488;
}

/* 2x2 Benefits Grid (Used in Laser Surgery) */
.benefit-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.benefit-grid-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
}

.benefit-grid-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: #ccfbf1;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Action Buttons */
.btn-treatment-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0b2546;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(11, 37, 70, 0.16);
  transition: all 0.2s ease;
}

.btn-treatment-navy:hover {
  background-color: #163d6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 37, 70, 0.24);
}

.btn-treatment-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0d9488;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
  transition: all 0.2s ease;
}

.btn-treatment-teal:hover {
  background-color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

/* Large Center / Left Surgical Images with Stylized Curves */
.treatment-large-visual {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 37, 70, 0.12);
  background-color: #061d36;
}

/* Curved corners matching reference:
   Section 1 & 3: Large curve on left side
   Section 2 & 4: Large curve on right side
*/
.curve-left {
  border-radius: 44px 16px 16px 44px;
}

.curve-right {
  border-radius: 16px 44px 44px 16px;
}

.treatment-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.treatment-large-visual:hover .treatment-main-img {
  transform: scale(1.03);
}

/* Right Column: Treatments List */
.treatment-list-panel {
  display: flex;
  flex-direction: column;
}

.treatment-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.treatment-list-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0b2546;
}

.back-to-top-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top-link:hover {
  color: #0369a1;
  transform: translateY(-2px);
}

.treatment-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.treatment-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(11, 37, 70, 0.03);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.treatment-row-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.1);
}

.treatment-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.treatment-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f1f5f9;
  border: 1px solid #edf2f7;
}

.treatment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.treatment-row-info {
  display: flex;
  flex-direction: column;
}

.treatment-row-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0b2546;
  line-height: 1.3;
}

.treatment-row-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.treatment-row-arrow {
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.treatment-row-card:hover .treatment-row-arrow {
  transform: translateX(4px);
  color: #0369a1;
}

/* About Robotic Surgery Elevated Info Card */
.robotic-info-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(11, 37, 70, 0.05);
}

.robotic-info-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 18px;
}

.robotic-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.robotic-narrative {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.6;
}

.robotic-subheading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0b2546;
  margin-bottom: 14px;
}

.robotic-advantages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.robotic-adv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
}

.robotic-adv-icon {
  width: 20px;
  height: 20px;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- 4. FINAL CTA BANNER --- */
.treatments-cta-banner {
  position: relative;
  background-color: #061527;
  background-image: 
    linear-gradient(90deg, rgba(6, 21, 39, 0.94) 0%, rgba(8, 26, 48, 0.86) 60%, rgba(6, 21, 39, 0.92) 100%),
    url('../images/Appointment CTA Background.png');
  background-size: cover;
  background-position: center;
  padding: 68px 0;
  color: #ffffff;
}

.treatments-cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.treatments-cta-left {
  max-width: 640px;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 12px;
}

.cta-heading {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.treatments-cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #0b2546 !important;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cta-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.cta-text-link:hover {
  color: #38bdf8;
}

/* --- 5. RESPONSIVE BREAKPOINTS --- */

/* Laptop / Medium Desktop */
@media (max-width: 1140px) {
  .treatment-block-grid,
  .treatment-block-grid.layout-reversed {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .treatment-list-panel {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
  .treatment-cards-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Tablet (768px – 991px) */
@media (max-width: 991px) {
  .treatments-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .treatments-hero-content {
    padding-bottom: 20px;
  }
  .treatments-hero-visual {
    justify-content: center;
  }
  .treatments-hero-img-wrap {
    height: 320px;
    max-width: 440px;
  }
  .treatments-nav-tabs {
    overflow-x: auto;
    display: flex;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
  }
  .treatments-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .treatments-tab-link {
    padding: 14px 18px;
    font-size: 0.875rem;
  }
  .treatment-block-grid,
  .treatment-block-grid.layout-reversed {
    grid-template-columns: 1fr;
  }
  .treatment-large-visual {
    height: 320px;
    border-radius: 18px !important;
  }
  .treatment-cards-stack {
    grid-template-columns: 1fr;
  }
  .treatments-cta-grid {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .cta-eyebrow {
    justify-content: center;
  }
  .treatments-cta-right {
    width: 100%;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .treatments-hero {
    padding: 40px 0 0;
  }
  .treatments-hero-title {
    font-size: 2.1rem;
  }
  .treatments-hero-sub {
    font-size: 1rem;
  }
  .treatments-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero-white,
  .btn-hero-outline {
    justify-content: center;
    width: 100%;
  }
  .treatments-hero-img-wrap {
    height: 260px;
  }
  .treatment-section {
    padding: 50px 0;
  }
  .treatment-section-heading {
    font-size: 1.65rem;
  }
  .benefit-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .treatment-large-visual {
    height: 240px;
  }
}
