/* Treatment detail — content only (site header/footer unchanged) */

#treatment-detail {
  --navy-1: #0b1638;
  --navy-2: #142859;
  --navy-3: #0d1c40;
  --blue: #2f6feb;
  --blue-light: #eaf1ff;
  --sky: #66c7ff;
  --border: #e6e9f0;
  --text-gray: #667085;
  --radius-lg: 22px;
  --radius-md: 16px;
  background: #fff;
  color: #1b2334;
}

#treatment-detail a:not(.ijc-fellowship-cta__button) {
  text-decoration: none;
  color: inherit;
}

#treatment-detail .wrap {
  max-width: var(--container, 1480px);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- HERO ---------- */
#treatment-detail .ijc-td-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 90px;
  background: radial-gradient(1100px 500px at 50% 12%, #1b3372 0%, var(--navy-1) 55%, var(--navy-3) 100%);
}

#treatment-detail .ijc-td-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(102, 199, 255, 0.15) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

#treatment-detail .ijc-td-hero > .wrap {
  position: relative;
  z-index: 1;
}

#treatment-detail .ijc-td-breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  color: #8fa3d1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: auto;
}

#treatment-detail .ijc-td-breadcrumb a,
#treatment-detail .ijc-td-hero .ijc-td-breadcrumb a {
  position: relative;
  z-index: 1;
  color: var(--sky, #66c7ff);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

#treatment-detail .ijc-td-breadcrumb a:hover,
#treatment-detail .ijc-td-breadcrumb a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#treatment-detail .ijc-td-breadcrumb span {
  color: #fff;
}

#treatment-detail .ijc-td-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1480px);
  margin: 0 auto;
  text-align: center;
}

#treatment-detail .ijc-td-hero h1 {
  max-width: 680px;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

#treatment-detail .ijc-td-hero__lead {
  max-width: 640px;
  margin: 0 auto;
  color: #b7c2e0;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- CONTENT ---------- */
#treatment-detail .ijc-td-content {
  position: relative;
  z-index: 2;
  max-width: var(--container, 1480px);
  margin: -50px auto 0;
  padding: 0 40px 0;
}

#treatment-detail .ijc-td-content--with-qa {
  margin-top: 0;
  padding-top: clamp(32px, 4vw, 56px);
}

#treatment-detail .ijc-td-grid {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

/* Full-height rail (matches content through Video). Card inside stays content-sized + sticky. */
#treatment-detail .ijc-td-sidebar-wrap {
  flex: 0 0 270px;
  width: 270px;
  max-width: 270px;
}

#treatment-detail .ijc-td-sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
  z-index: 2;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 40, 89, 0.06);
}

#treatment-detail .ijc-td-main {
  flex: 1 1 auto;
  min-width: 0;
}

#treatment-detail .ijc-td-sidebar h4 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#treatment-detail .ijc-td-sidebar__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 12px;
  border-radius: 10px;
  color: #3a415a;
  font-size: 15.5px;
  font-weight: 600;
}

#treatment-detail .ijc-td-sidebar__nav a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

#treatment-detail .ijc-td-sidebar__nav a.is-active {
  background: var(--navy-2);
  color: #fff;
}

#treatment-detail .ijc-td-sidebar__cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

#treatment-detail .ijc-td-sidebar__cta p {
  margin: 0 0 12px;
  color: var(--text-gray);
  font-size: 14.5px;
  line-height: 1.5;
}

#treatment-detail .ijc-td-sidebar__cta a {
  display: block;
  padding: 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}

#treatment-detail .ijc-td-sidebar__cta a:hover {
  box-shadow: 0 0 14px rgba(47, 111, 235, 0.35);
  color: #fff;
}

#treatment-detail .ijc-td-panel {
  margin-bottom: 22px;
  padding: 32px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

#treatment-detail .ijc-td-main > .ijc-td-panel:last-child {
  margin-bottom: 0;
}

#treatment-detail .ijc-td-panel h2 {
  margin: 0 0 14px;
  color: var(--navy-2);
  font-size: 23px;
  font-weight: 800;
}

#treatment-detail .ijc-td-panel h3 {
  margin: 26px 0 12px;
  color: var(--navy-2);
  font-size: 18.5px;
  font-weight: 800;
}

#treatment-detail .ijc-td-panel p {
  margin: 0 0 8px;
  color: #3a415a;
  font-size: 16.5px;
  line-height: 1.7;
}

#treatment-detail .ijc-quick-answer--inline .ijc-quick-answer__text {
  font-size: 14.8px;
  line-height: 1.7;
}

#treatment-detail .ijc-td-panel__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 16px 0 22px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    45deg,
    #e9edf5,
    #e9edf5 10px,
    #f3f5fa 10px,
    #f3f5fa 20px
  );
}

#treatment-detail .ijc-td-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#treatment-detail .ijc-td-panel__note {
  margin: 0;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

#treatment-detail .ijc-td-faq__item {
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
}

#treatment-detail .ijc-td-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  color: #12172b;
  font-size: 16px;
  font-weight: 700;
}

#treatment-detail .ijc-td-faq__item summary::-webkit-details-marker {
  display: none;
}

#treatment-detail .ijc-td-faq__item summary::after {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--blue);
  content: "+";
  font-size: 19px;
  font-weight: 400;
}

#treatment-detail .ijc-td-faq__item[open] summary::after {
  content: "–";
}

#treatment-detail .ijc-td-faq__item p {
  margin: 12px 0 0;
  color: #3a415a;
  font-size: 15px;
  line-height: 1.6;
}

#treatment-detail .ijc-td-video-intro {
  margin-bottom: 18px;
}

#treatment-detail .ijc-td-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

#treatment-detail .ijc-td-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- MORE TREATMENTS ---------- */
#treatment-detail .ijc-td-more {
  margin-top: 64px;
}

#treatment-detail .ijc-td-more__label {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

#treatment-detail .ijc-td-more__label::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: #1098e8;
}

#treatment-detail .ijc-td-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

#treatment-detail .ijc-td-mini {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#treatment-detail a.ijc-td-mini:hover {
  box-shadow: 0 14px 30px rgba(20, 40, 89, 0.08);
  transform: translateY(-3px);
}

#treatment-detail .ijc-td-mini__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    #e9edf5,
    #e9edf5 10px,
    #f3f5fa 10px,
    #f3f5fa 20px
  );
}

#treatment-detail .ijc-td-mini__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#treatment-detail .ijc-td-mini__body {
  padding: 16px 18px 18px;
}

#treatment-detail .ijc-td-mini__body h5 {
  margin: 0 0 6px;
  color: #12172b;
  font-size: 15.5px;
  font-weight: 800;
}

#treatment-detail .ijc-td-mini__body p {
  margin: 0;
  color: var(--text-gray);
  font-size: 12.8px;
  line-height: 1.45;
}

/* ---------- CTA ---------- */
#treatment-detail .ijc-td-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy-3) 100%);
  box-sizing: border-box;
}

#treatment-detail .ijc-td-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--container, 1480px) - 80px);
  margin: 0 auto;
  padding: 34px 44px;
  box-sizing: border-box;
}

#treatment-detail .ijc-td-cta h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

#treatment-detail .ijc-td-cta p {
  margin: 0;
  color: #b7c2e0;
  font-size: 14.5px;
}

#treatment-detail .ijc-td-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#treatment-detail .ijc-td-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

#treatment-detail .ijc-td-cta__btn--primary {
  border: none;
  background: var(--blue);
  color: #fff;
}

#treatment-detail .ijc-td-cta__btn--primary:hover {
  box-shadow:
    0 0 10px rgba(80, 170, 255, 0.45),
    0 0 24px rgba(47, 111, 235, 0.35);
  color: #fff;
}

#treatment-detail .ijc-td-cta__btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

#treatment-detail .ijc-td-cta__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 900px) {
  #treatment-detail .ijc-td-grid {
    flex-direction: column;
  }

  #treatment-detail .ijc-td-sidebar-wrap {
    flex: none;
    width: 100%;
    max-width: none;
  }

  #treatment-detail .ijc-td-sidebar {
    position: static;
    top: auto;
  }

  #treatment-detail .ijc-td-more__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  #treatment-detail .wrap,
  #treatment-detail .ijc-td-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  #treatment-detail .ijc-td-hero h1 {
    font-size: 28px;
  }

  #treatment-detail .ijc-td-panel {
    padding: 24px 20px;
  }

  #treatment-detail .ijc-td-more__grid {
    grid-template-columns: 1fr;
  }

  #treatment-detail .ijc-td-cta {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
  }

  #treatment-detail .ijc-td-cta__inner {
    max-width: calc(100% - 40px);
    padding: 28px 24px;
  }

  #treatment-detail .ijc-td-cta__actions {
    width: 100%;
  }

  #treatment-detail .ijc-td-cta__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #treatment-detail .ijc-td-mini,
  #treatment-detail .ijc-td-cta__btn {
    transition: none;
  }

  #treatment-detail a.ijc-td-mini:hover {
    transform: none;
  }
}
