/* Relationship Orbit Widget — concurrent_relationship_orbit */

/* Stage container: fills the Elementor column */
.elementor-widget-concurrent_relationship_orbit,
.elementor-widget-concurrent_relationship_orbit > .elementor-widget-container {
  height: 100%;
}

.rel-orbit-stage {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 400px;
  isolation: isolate;
  overflow: hidden;
}
.rel-orbit-stage button.rel-bubble, .rel-orbit-stage .rel-pagination button.rel-dot {
    background-color: transparent;
    color: transparent;
    border-radius: 0;
    padding: unset;
}
/* Orbit: 720×671 coordinate space, scaled by JS via --orbit-scale */
.rel-orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 671px;
  transform: scale(var(--orbit-scale, 1));
  transform-origin: top left;
}

/* Gradient ring */
.rel-orbit-ring {
  position: absolute;
  left: 173px;
  top: 138px;
  width: 404px;
  height: 404px;
  pointer-events: none;
}

/* Bubble button */
.rel-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 318px;
  height: 318px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  text-align: center;
  transform-origin: center;
  will-change: transform;
  isolation: isolate;
  outline-offset: 10px !important;
  cursor: pointer;
}

.rel-bubble:focus-visible {
  outline: 3px solid #075184;
}

/* Inner gradient overlay (shows when featured) */
.rel-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent 28%, #001a3510 43%, #001a355c 79%, #00172c59);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* Circular disc */
.rel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 0 #fff0;
  transition: box-shadow .25s ease;
}

.rel-bubble:hover .rel-disc {
  box-shadow: 0 0 0 4px #fff8;
}

/* Photo — sized and positioned per-role below */
.rel-photo {
  position: absolute;
  max-width: none !important;
  pointer-events: none;
  user-select: none;
  transition: opacity .4s ease;
}

/* Color tint overlay */
.rel-tint {
  position: absolute;
  inset: 0;
  transition: opacity .45s ease;
}

/* Dark shade gradient */
.rel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, #001f350b 35%, #001a3561 78%, #00172c4d);
  opacity: 0;
  transition: opacity .45s ease;
}

/* Cutout image that breaks out of the circle */
.rel-cutout {
  position: absolute;
  left: 0;
  top: -60px;
  width: 318px;
  height: 378px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1;
}

.rel-cutout img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Role label (visible when not featured) */
.rel-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 3;
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 1px 10px #00374a1a;
  transition: opacity .22s ease;
  font-family: inherit;
}

/* Feature panel (visible when featured) */
.rel-feature {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 122px;
  z-index: 4;
  color: #fff;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .35s ease, transform .5s ease;
  text-shadow: 0 1px 8px #00132580;
  pointer-events: none;
  font-family: inherit;
  overflow: hidden;
}

.rel-feature strong {
  display: block;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.rel-feature > span {
  display: block;
  margin: 15px auto 0;
  max-width: 260px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.025em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
	 white-space: normal;
}

/* Featured state transitions */
.rel-bubble[data-featured="true"]::after   { opacity: 1; }
.rel-bubble[data-featured="true"] .rel-tint  { opacity: 0 !important; }
.rel-bubble[data-featured="true"] .rel-shade  { opacity: 1; }
.rel-bubble[data-featured="true"] .rel-cutout { opacity: 1; }
.rel-bubble[data-featured="true"] .rel-label  { opacity: 0; }
.rel-bubble[data-featured="true"] .rel-feature {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination dots */
.rel-pagination {
  position: absolute;
  left: 125px;
  top: 498px;
  display: flex;
  gap: 1px;
  align-items: center;
}

.rel-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}

.rel-dot::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid #919191;
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease, transform .2s ease;
}

.rel-dot[aria-pressed="true"]::before {
  background: #eaca46;
}

.rel-dot:hover::before {
  transform: scale(1.14);
}

/* Hint text */
.rel-hint {
  position: absolute;
  left: 99px;
  top: 542px;
  width: 215px;
  margin: 0;
  color: #075184;
  font-size: 13px;
  text-align: center;
  letter-spacing: .02em;
  font-family: inherit;
}

/* Hidden SVG for clip-path defs */
.rel-motion-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Per-role styles (index 0=advisor, 1=concurrent, 2=custodian) */
.rel-bubble[data-role-index="0"] .rel-disc {
  background: linear-gradient(145deg, #96bfd1, #4a7a92) !important;
}
.rel-bubble[data-role-index="2"] .rel-disc {
  background: linear-gradient(145deg, #b8d3e0, #5a99ba) !important;
}

/* Photo size/position per role */
.rel-bubble[data-role-index="0"] .rel-photo { width: 477px; height: 318px; left: -79.5px; top: 0; object-fit: cover; }
.rel-bubble[data-role-index="1"] .rel-photo { width: 492px; height: 738px; left: -111px; top: -113px; }
.rel-bubble[data-role-index="2"] .rel-photo { width: 428px; height: 318px; left: -55px; top: 0; object-fit: cover; }

/* Advisor/custodian: hide photo when featured (cutout takes over) */
.rel-bubble[data-role-index="0"][data-featured="true"] .rel-photo,
.rel-bubble[data-role-index="2"][data-featured="true"] .rel-photo { opacity: 0; }

/* Cutout image position per role */
.rel-bubble[data-role-index="0"] .rel-cutout img { left: -127.5px; top: 24px; width: 573px; height: 382px; object-fit: contain; }
.rel-bubble[data-role-index="1"] .rel-cutout img { left: 27px; top: 28px; width: 212px; height: 614px; }
.rel-bubble[data-role-index="2"] .rel-cutout img { left: -97.9px; top: 20px; width: 514px; height: 382px; object-fit: contain; }

/* Feature panel: advisor/custodian position adjustment */
.rel-bubble[data-role-index="0"] .rel-feature,
.rel-bubble[data-role-index="2"] .rel-feature { top: 153px; }
.rel-bubble[data-role-index="0"] .rel-feature > span,
.rel-bubble[data-role-index="2"] .rel-feature > span { font-size: 15px; line-height: 1.45; }

/* Mobile: orbit stage uses aspect-ratio, height is auto */
@media (max-width: 768px) {
  .rel-orbit-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 671;
    min-height: 0;
    overflow: hidden;
  }
  .elementor-widget-concurrent_relationship_orbit,
  .elementor-widget-concurrent_relationship_orbit > .elementor-widget-container {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rel-orbit-stage * {
    transition: none !important;
  }
}
