/* ============================================================
   EthosMedi — Treatment Detail Page CSS  (Light Theme)
   ============================================================ */

/* ============================================================
   HERO — Clean Light Theme
   ============================================================ */
.tr-hero {
  background-color: #ffffff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, #009688 30%, #00bca4 70%, transparent 100%) 1;
  padding: 28px 0 0;
  position: relative;
  overflow: hidden;
}

/* Top-left corner dot cluster */
.tr-hero::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 220px;
  height: 220px;
  background-image:
    radial-gradient(circle, #009688 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.12;
  pointer-events: none;
  border-radius: 50%;
}

/* Bottom-right corner dot cluster */
.tr-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  height: 200px;
  background-image:
    radial-gradient(circle, #009688 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.10;
  pointer-events: none;
}

.tr-hero > * { position: relative; z-index: 1; }

/* Breadcrumb */
.tr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tr-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tr-breadcrumb a:hover { color: var(--cp-primary, #009688); }
.tr-breadcrumb .sep { color: #d1d5db; font-size: 10px; }
.tr-breadcrumb .current { color: #374151; font-weight: 600; }

/* Specialty pill */
.tr-specialty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5f4;
  border: 1.5px solid #b2dfdb;
  color: #00695c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* Hero Title */
.tr-hero-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

/* Hero short overview */
.tr-hero-overview {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 560px;
}

/* Hero action buttons */
.tr-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-primary, #009688);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  padding: 12px 26px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,150,136,0.30);
  border: none;
  cursor: pointer;
}
.tr-btn-primary:hover { background: #00796b; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,150,136,0.35); }

.tr-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  padding: 11px 24px;
  text-decoration: none;
  transition: all 0.25s;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
}
.tr-btn-outline:hover { border-color: #009688; color: #009688; background: #f0faf9; }

/* Hero Image — no background, just the image */
.tr-hero-image-col { padding-left: 32px; }
.tr-hero-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
}
.tr-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   STATS STRIP — below hero, light bg
   ============================================================ */
.tr-stats-strip {
  background: #ffffff;
  border-top: 1px solid #e8ecf4;
  border-bottom: 1px solid #e8ecf4;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,150,136,0.06);
}
.tr-stats-inner {
  display: flex;
  flex-wrap: wrap;
}
.tr-stat-item {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid #f0f4fb;
}
.tr-stat-item:last-child { border-right: none; }
.tr-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0faf9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--cp-primary, #009688);
  flex-shrink: 0;
}
.tr-stat-info { min-width: 0; }
.tr-stat-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.tr-stat-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============================================================
   MAIN PAGE BODY
   ============================================================ */
.tr-page-body {
  background: #f8f9fb;
  padding: 36px 0 64px;
}

/* ============================================================
   CARDS
   ============================================================ */
.tr-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 2px 8px rgba(17,24,39,0.05);
  padding: 28px;
  margin-bottom: 20px;
}
.tr-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f0f4fb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tr-card-title .tr-title-icon {
  width: 32px;
  height: 32px;
  background: #e8f5f4;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--cp-primary, #009688);
  flex-shrink: 0;
}

/* ============================================================
   COST CARD
   ============================================================ */
.tr-cost-card {
  background: linear-gradient(135deg, #f0faf9 0%, #e8f5f4 100%);
  border: 1.5px solid #b2dfdb;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.tr-cost-label {
  font-size: 11px;
  font-weight: 700;
  color: #00695c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tr-cost-value {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.tr-cost-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}
.tr-cost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-primary, #009688);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  padding: 10px 22px;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,150,136,0.25);
}
.tr-cost-cta:hover { background: #00796b; color: #fff; transform: translateY(-1px); }

/* ============================================================
   QUICK INFO CHIPS
   ============================================================ */
.tr-quick-info { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tr-qi-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid #e8ecf4;
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 1px 3px rgba(17,24,39,0.05);
}
.tr-qi-chip i { color: var(--cp-primary, #009688); font-size: 14px; }
.tr-qi-chip strong { color: #111827; font-weight: 700; }

/* ============================================================
   CONTENT TYPOGRAPHY
   ============================================================ */
.tr-content-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-top: 28px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--cp-primary, #009688);
  line-height: 1.3;
}
.tr-content-body h2:first-child { margin-top: 0; }
.tr-content-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 20px;
  margin-bottom: 8px;
}
.tr-content-body p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.85;
  margin-bottom: 12px;
}
.tr-content-body ul, .tr-content-body ol { padding-left: 20px; margin-bottom: 14px; }
.tr-content-body li {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 5px;
}
.tr-content-body strong { color: #1f2937; font-weight: 700; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.tr-toc-wrap {
  background: #f0faf9;
  border: 1.5px solid #b2dfdb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.tr-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tr-toc-heading {
  font-size: 12px;
  font-weight: 700;
  color: #00695c;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.tr-toc-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.tr-toc-toggle:hover { background: #e0f5f3; color: #00695c; }
.tr-toc-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #374151;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px dashed #b2dfdb;
  transition: color 0.2s;
  line-height: 1.4;
}
.tr-toc-nav a:last-child { border-bottom: none; }
.tr-toc-nav a:hover { color: var(--cp-primary, #009688); }
.tr-toc-nav a i { color: var(--cp-primary, #009688); font-size: 15px; flex-shrink: 0; }

/* ============================================================
   SLIDER SECTIONS
   ============================================================ */
.tr-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.tr-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tr-slider-track::-webkit-scrollbar { display: none; }

/* Hospital Card */
.tr-hosp-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1.5px solid #e8ecf4;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 1px 6px rgba(17,24,39,0.05);
}
.tr-hosp-card:hover { box-shadow: 0 6px 20px rgba(17,24,39,0.10); transform: translateY(-3px); }
.tr-hosp-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.tr-hosp-body { padding: 14px 16px; }
.tr-hosp-name { font-size: 13.5px; font-weight: 700; color: #111827; margin-bottom: 4px; line-height: 1.3; }
.tr-hosp-loc { font-size: 11.5px; color: #6b7280; display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.tr-hosp-loc i { color: var(--cp-primary, #009688); }

/* Doctor Card */
.tr-doc-card {
  flex: 0 0 205px;
  background: #fff;
  border: 1.5px solid #e8ecf4;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 1px 6px rgba(17,24,39,0.05);
}
.tr-doc-card:hover { box-shadow: 0 6px 20px rgba(17,24,39,0.10); transform: translateY(-3px); }
.tr-doc-img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; }
.tr-doc-body { padding: 14px 15px; }
.tr-doc-name { font-size: 13.5px; font-weight: 700; color: #111827; margin-bottom: 4px; line-height: 1.3; }
.tr-doc-bio { font-size: 12px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }

/* View Button */
.tr-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #009688;
  border: 1.5px solid #b2dfdb;
  border-radius: 100px;
  padding: 5px 14px;
  text-decoration: none;
  transition: all 0.2s;
  background: #f0faf9;
  width: 100%;
}
.tr-view-btn:hover { background: #009688; color: #fff; border-color: #009688; }

/* Slider arrows */
.tr-slider-arrows { display: flex; gap: 8px; }
.tr-arrow-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid #b2dfdb;
  background: #fff;
  color: #009688;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}
.tr-arrow-btn:hover { background: var(--cp-primary, #009688); color: #fff; border-color: var(--cp-primary, #009688); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.tr-sidebar-sticky { position: sticky; top: 90px; }

.tr-sidebar-card {
  background: #ffffff;
  border: 1.5px solid #e8ecf4;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(17,24,39,0.06);
}
.tr-sidebar-header {
  background: linear-gradient(135deg, #00695c, #009688);
  padding: 16px 20px;
}
.tr-sidebar-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}
.tr-sidebar-header p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.tr-sidebar-body { padding: 20px; }

/* Why box */
.tr-why-box {
  background: #fff;
  border: 1.5px solid #e8ecf4;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(17,24,39,0.05);
}
.tr-why-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tr-why-title i { color: var(--cp-primary, #009688); }
.tr-why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4fb;
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
.tr-why-item:last-child { border-bottom: none; padding-bottom: 0; }
.tr-why-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #e8f5f4;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--cp-primary, #009688);
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .tr-sidebar-sticky { position: static; }
  .tr-stat-item { min-width: 140px; }
}
@media (max-width: 767.98px) {
  .tr-hero-title { font-size: 24px; }
  .tr-hero-overview { font-size: 14px; }
  .tr-card { padding: 18px 16px; }
  .tr-stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid #e8ecf4; }
  .tr-stat-item:last-child { border-bottom: none; }
  .tr-cost-card { flex-direction: column; }
}
