/* Circle timeline widget (replicates https://www.myhealthprac.com/ "circle-timeline") */

.icesco-circle-timeline {
  /*
   * Orbit uses em for desktop. Keep a stable base (not --icesco-fluid) so
   * tablet/phone 150vw–230vw orbits stay readable.
   */
  font-size: 14.16px;
  font-family: "BwGradual", sans-serif;
  --icesco-ct-white: rgba(241, 241, 241, 1);
  --icesco-ct-yellow: #ffb937;
  --icesco-ct-faint: rgba(241, 241, 241, 0.45);
  --icesco-ct-dot: 12px;
  --icesco-ct-line: 2.75em;
  --icesco-ct-line-gap: 0.35em;
  /* Small gap between number badge and the dot on the ring */
  --icesco-ct-date-gap: 0.4em;
  /* .circle_date uses font-size 1.1em and box 2.85em → 3.135em of parent */
  --icesco-ct-date-box: 3.135em;
  /*
   * Prefer locked px from JS, then svh (stable small viewport).
   * Avoid dvh — it tracks URL/nav bar show/hide and reflows the pin.
   */
  --icesco-ct-vh: var(--icesco-vh, 100svh);
}

/* Full-bleed section regardless of theme/container constraints */
.icesco-circle-timeline {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow-x: clip;
}

.icesco-circle-timeline .scroll_section {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: var(--icesco-ct-vh);
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  overflow: hidden;
  z-index: 2;
}

@media screen and (max-width: 1024px), (hover: none) {
  .icesco-circle-timeline .scroll_section {
    /* Allow the apex orange/white dot to paint; width clip stays on root. */
    overflow: visible;
  }
}

/* Tablet/phone: JS pins with position:fixed (see circle-timeline.js) */
@media screen and (max-width: 1024px), (hover: none) {
  .icesco-circle-timeline .scroll_section {
    position: relative;
    top: auto;
  }

  .icesco-circle-timeline .scroll_section.is-pinned {
    position: fixed;
    top: 0;
    inset-inline: 0;
    width: 100vw;
    max-width: 100vw;
  }

  .icesco-circle-timeline .scroll_section.is-pinned-end {
    position: absolute;
    inset-inline: 0;
    width: 100%;
  }
}

.icesco-circle-timeline .scroll_track {
  position: relative;
}

/* Elementor flex containers often set overflow:hidden and break position:sticky */
.elementor-widget-icesco-circle-timeline,
.elementor-widget-icesco-circle-timeline > .elementor-widget-container {
  overflow: visible !important;
}

.elementor-element:has(.icesco-circle-timeline) {
  overflow: visible !important;
}

.icesco-circle-timeline .page-wrapper,
.icesco-circle-timeline .main-wrapper,
.icesco-circle-timeline .section {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.icesco-circle-timeline .container.is-timeline {
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  height: 100svh;
  height: var(--icesco-ct-vh);
  padding: 38vh 0px 0px;
  padding-top: 38svh;
  display: flex;
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

@media screen and (max-width: 1024px), (hover: none) {
  .icesco-circle-timeline .container.is-timeline {
    overflow-x: clip;
    overflow-y: visible;
  }
}

.icesco-circle-timeline .circle_wrap {
  flex: 0 0 auto;
  width: 90em;
  height: 42em;
  margin-top: auto;
  overflow: visible;
  /* Never let Elementor page CSS force 150vw/230vw document scroll. */
  max-width: none;
}

/*
 * Mobile/tablet: center the ring-dot on the stroke (half outside). Parents
 * must stay overflow:visible so that half is not clipped.
 */
@media screen and (max-width: 1024px), (hover: none) {
  .icesco-circle-timeline .circle_wrap {
    overflow: visible !important;
  }

  .icesco-circle-timeline .circle_height,
  .icesco-circle-timeline .circle,
  .icesco-circle-timeline .circle_wrapper,
  .icesco-circle-timeline .circle_list,
  .icesco-circle-timeline .circle_item,
  .icesco-circle-timeline .circle_marker {
    overflow: visible;
  }

  .icesco-circle-timeline .scroll_section,
  .icesco-circle-timeline .container.is-timeline {
    overflow: visible;
  }

  .icesco-circle-timeline .circle_marker {
    /* Center the 12px dot on the 1px ring stroke. */
    margin-top: calc(var(--icesco-ct-dot) / -2);
  }
}

.icesco-circle-timeline .circle_height {
  width: 100%;
  padding-top: 100%;
  position: relative;
}

.icesco-circle-timeline .circle {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition:
    transform 0.6s cubic-bezier(0.445, 0.05, 0.55, 0.95),
    opacity 0.4s;
  display: flex;
  position: absolute;
  inset: 0%;
}

.icesco-circle-timeline .circle_wrapper {
  width: 100%;
  height: 100%;
}

.icesco-circle-timeline .circle_list {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.icesco-circle-timeline .circle_item {
  pointer-events: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  display: flex;
  position: absolute;
  transform: rotate(0deg);
}

.icesco-circle-timeline .circle_item.current .circle_description {
  transition-delay: 500ms;
  opacity: 1;
}

.icesco-circle-timeline .circle_item.current .circle_line {
  transition-delay: 500ms;
  opacity: 1;
}

.icesco-circle-timeline .circle_item.current .circle_dot {
  background-color: var(--icesco-ct-yellow);
}

/*
 * Marker stack.
 * Desktop active:   number (outside) → orange/white dot (on ring) → line → text.
 * Desktop inactive: number + dot (connector line fades out with the text).
 * Mobile:           dot (on ring) → line → number → content.
 * DOM order is always: .circle_dot, .circle_line, .circle_date
 */
.icesco-circle-timeline .circle_marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  margin-top: calc(var(--icesco-ct-dot) / -2);
}

@media screen and (min-width: 1025px) {
  /* Desktop stack: number → dot → line → (description) */
  .icesco-circle-timeline .circle_date {
    order: 1;
  }

  .icesco-circle-timeline .circle_dot {
    order: 2;
  }

  .icesco-circle-timeline .circle_line {
    order: 3;
  }

  /* Active + inactive: number outside the arc, dot on the ring */
  .icesco-circle-timeline .circle_item.current .circle_marker,
  .icesco-circle-timeline .circle_item:not(.current) .circle_marker {
    margin-top: calc(
      -1 * (var(--icesco-ct-date-box) + var(--icesco-ct-date-gap)) -
        (var(--icesco-ct-dot) / 2)
    );
  }
}

.icesco-circle-timeline .circle_dot {
  background-color: var(--icesco-ct-white);
  border-radius: 50%;
  width: var(--icesco-ct-dot);
  height: var(--icesco-ct-dot);
  margin-inline: auto;
  flex: 0 0 auto;
  transition: transform 0.2s, background-color 0.2s;
  display: block;
}

.icesco-circle-timeline .circle_line {
  background-color: rgba(241, 241, 241, 0.65);
  width: 1px;
  height: var(--icesco-ct-line) !important;
  margin: var(--icesco-ct-line-gap) 0 0 !important;
  flex: 0 0 auto;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  transform: none !important;
  /* Same fade motion as .circle_description (show/hide on scroll). */
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
  pointer-events: none;
}

.icesco-circle-timeline .circle_date {
  width: 2.85em;
  height: 2.85em;
  color: var(--icesco-ct-white);
  background-color: rgba(241, 241, 241, 0);
  border: 1px solid rgba(241, 241, 241, 0.45);
  border-radius: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 0 var(--icesco-ct-date-gap) !important;
  padding: 0;
  font-size: 1.1em;
  line-height: 1;
  transition: opacity 0.3s;
  display: flex;
  flex: 0 0 auto;
}

.icesco-circle-timeline .circle_description {
  opacity: 0;
  flex-flow: column;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 30em;
  height: auto;
  /* Line already drops from the active dot; keep a short gap to the copy */
  margin-top: 1.25em !important;
  transition: opacity 0.45s ease-in-out;
  display: flex;
  position: relative !important;
  z-index: 2;
}

/* Legacy selectors kept so Elementor hover/style controls still apply */
.icesco-circle-timeline .circle_link,
.icesco-circle-timeline .circle_link-2 {
  display: contents;
}

.icesco-circle-timeline .circle_p {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.03em;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1.4;
}

.icesco-circle-timeline .circle_p.headline_circle {
  width: 100%;
  color: var(--icesco-ct-white);
  margin-bottom: 0px;
  font-size: 2em;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.icesco-circle-timeline .circle_p.base_txt {
  color: rgba(241, 241, 241, 0.9);
  letter-spacing: 0.01em;
  width: 26ch;
  max-width: 100%;
  margin-bottom: 0px;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.icesco-circle-timeline .txt_circle {
  gap: 8px;
  flex-flow: column;
  /* Spacing from the arc is on .circle_description; keep text tight. */
  margin-top: 0;
  align-items: center;
  text-align: center;
  display: flex;
}

/* Ensure theme section styles don't center this widget incorrectly */
.icesco-circle-timeline .section {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--icesco-ct-vh);
  align-items: flex-start;
  justify-content: center;
}

@media screen and (max-width: 1024px) {
  /*
   * Tablet/phone orbit width/height come from Elementor widget controls
   * (Circle wrap width / height). Do not force sizes here.
   */
  .icesco-circle-timeline .circle_marker {
    margin-top: calc(var(--icesco-ct-dot) / -2);
  }

  .icesco-circle-timeline .circle_dot,
  .icesco-circle-timeline .circle_line,
  .icesco-circle-timeline .circle_date {
    order: 0;
  }

  .icesco-circle-timeline .txt_circle {
    margin-top: 0.5em;
  }
}

@media screen and (max-width: 991px) {
  .icesco-circle-timeline .container.is-timeline {
    padding-top: 28vh;
    padding-top: 28svh;
    padding-inline: 0;
    overflow: visible;
  }

  .icesco-circle-timeline .circle_marker {
    margin-top: calc(var(--icesco-ct-dot) / -2);
  }

  .icesco-circle-timeline .circle_line {
    height: 1.5em;
    margin: 0.4em 0;
  }

  .icesco-circle-timeline .circle_date {
    width: 2.85em;
    height: 2.85em;
    margin: 0;
    padding: 0;
    font-size: 1.1em;
  }

  .icesco-circle-timeline .circle_description {
    width: min(80em, 90vw);
    max-width: 90vw;
    margin-top: 1em;
    position: relative;
  }

  .icesco-circle-timeline .circle_p.headline_circle {
    width: auto;
  }

  .icesco-circle-timeline .circle_p.base_txt {
    /* Width comes from Elementor "Description text width" when set. */
    max-width: 90%;
  }
}

@media screen and (max-width: 767px) {
  .icesco-circle-timeline .container.is-timeline {
    padding-top: 22vh;
    padding-top: 22svh;
    overflow: visible;
  }

  .icesco-circle-timeline .circle_marker {
    margin-top: calc(var(--icesco-ct-dot) / -2);
  }

  .icesco-circle-timeline .circle_line {
    height: 1.35em;
    margin: 0.35em 0;
  }

  .icesco-circle-timeline .circle_dot {
    width: 12px;
    height: 12px;
  }

  .icesco-circle-timeline .circle_date {
    width: 2.85em;
    height: 2.85em;
    margin: 0;
    padding: 0;
    font-size: 1.1em;
  }

  .icesco-circle-timeline .circle_p.base_txt {
    max-width: 88%;
  }

  .icesco-circle-timeline .circle_description {
    max-width: 92vw;
    position: relative;
  }
}

@media screen and (max-width: 479px) {
  .icesco-circle-timeline .container.is-timeline {
    height: 100vh;
    height: 100svh;
    height: var(--icesco-ct-vh);
    padding-top: 18vh;
    padding-top: 18svh;
    overflow: visible;
  }

  .icesco-circle-timeline .circle_item {
    justify-content: flex-start;
    align-items: center;
  }

  .icesco-circle-timeline .circle_marker {
    margin-top: calc(var(--icesco-ct-dot) / -2);
  }

  .icesco-circle-timeline .circle_line {
    height: 1.25em;
    margin: 0.3em 0;
  }

  .icesco-circle-timeline .circle_date {
    width: 2.85em;
    height: 2.85em;
    margin: 0;
    padding: 0;
    font-size: 1.1em;
  }

  .icesco-circle-timeline .circle_description {
    max-width: 92vw;
    position: relative;
  }
}

