/* === Crossover Marketing Solutions — Testimonial Globe === */

/* Hide legacy testimonial slider immediately to prevent flash */
section.testimonial-section-2,
section.testimonial-section-2.cms-tg-replaced {
  display: none !important;
}

.cms-tg-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  color: #003566;
  font-family: Inter, sans-serif;
  padding: 28px 0 40px;
}

.cms-tg-bg-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    46% 64% at 28% 50%,
    rgba(31, 169, 176, 0.09),
    rgba(0, 53, 102, 0.03) 48%,
    transparent 74%
  );
}

.cms-tg-section[data-layout="stacked"] .cms-tg-bg-glow {
  background: radial-gradient(
    75% 42% at 50% 48%,
    rgba(31, 169, 176, 0.09),
    rgba(0, 53, 102, 0.03) 48%,
    transparent 74%
  );
}

.cms-tg-stage {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
}

.cms-tg-section[data-layout="wide"] .cms-tg-stage {
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 24px 56px;
  padding-block: 44px;
}

.cms-tg-header {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cms-tg-section[data-layout="wide"] .cms-tg-header {
  grid-column: 2;
  grid-row: 1;
  align-items: flex-start;
  align-self: end;
  text-align: left;
}

.cms-tg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "DM Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #1fa9b0;
}

.cms-tg-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1fa9b0;
  box-shadow: 0 0 0 4px rgba(31, 169, 176, 0.16);
}

.cms-tg-heading {
  margin: 10px 0 0;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #003566;
  text-wrap: balance;
  font-size: 28px;
  line-height: 1.18;
}

@media (min-width: 640px) {
  .cms-tg-heading {
    font-size: 34px;
  }
}

@media (min-width: 1024px) {
  .cms-tg-heading {
    font-size: 40px;
    line-height: 1.12;
  }
}

.cms-tg-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 16px;
}

.cms-tg-section[data-layout="wide"] .cms-tg-stats-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.cms-tg-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: #5a6b82;
}

.cms-tg-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cms-tg-stat dt {
  order: 2;
  font-weight: 400;
  color: #5a6b82;
}

.cms-tg-stat dd {
  order: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #003566;
}

.cms-tg-stat-sep {
  height: 12px;
  width: 1px;
  background: rgba(0, 53, 102, 0.16);
}

.cms-tg-star-icon {
  width: 14px;
  height: 14px;
  color: #f59e0b;
  flex-shrink: 0;
}

.cms-tg-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1fa9b0;
  color: #ffffff !important;
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31, 169, 176, 0.24);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.cms-tg-cta:hover {
  background: #003566;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 53, 102, 0.25);
}

.cms-tg-cta svg {
  width: 14px;
  height: 14px;
}

/* Globe container */
.cms-tg-globe-box {
  position: relative;
  flex-shrink: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cms-tg-section[data-layout="wide"] .cms-tg-globe-box {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.cms-tg-stars {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.cms-tg-star-dot {
  position: absolute;
  border-radius: 999px;
  background: rgba(0, 53, 102, 0.35);
  animation: cmsTgPulse 3s ease-in-out infinite;
}

@keyframes cmsTgPulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.85;
  }
}

.cms-tg-fallback {
  pointer-events: none;
  position: absolute;
  inset: 10%;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(0, 53, 102, 0.14);
  background: radial-gradient(
    circle at 36% 30%,
    rgba(31, 169, 176, 0.14),
    rgba(0, 53, 102, 0.04) 72%
  );
}

.cms-tg-fallback svg {
  width: 100%;
  height: 100%;
  color: rgba(0, 53, 102, 0.16);
}

.cms-tg-canvas-host {
  position: absolute;
  inset: 0;
  cursor: grab;
  transition: opacity 0.15s ease;
}

.cms-tg-canvas-host:active {
  cursor: grabbing;
}

.cms-tg-pins-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.cms-tg-pin {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  opacity: 0;
  outline: none;
  will-change: transform, opacity;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cms-tg-pin-ping {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #1fa9b0;
  opacity: 0.25;
  animation: cmsTgPing 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.cms-tg-pin[data-featured] .cms-tg-pin-ping,
.cms-tg-pin[data-target] .cms-tg-pin-ping {
  opacity: 0.8;
}

@keyframes cmsTgPing {
  75%,
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.cms-tg-pin-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f2f7;
  box-shadow: 0 4px 14px rgba(0, 53, 102, 0.18);
  border: 2.5px solid #1fa9b0;
  outline: 2px solid #ffffff;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cms-tg-pin[data-featured] .cms-tg-pin-face {
  transform: scale(1.32);
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(0, 53, 102, 0.28);
}

.cms-tg-pin:focus-visible .cms-tg-pin-face {
  outline: 2px solid #003566;
  outline-offset: 4px;
}

/* Tone colors strictly mapped to Crossover palette */
.cms-tg-tone-1 {
  border-color: #1fa9b0 !important;
}
.cms-tg-tone-2 {
  border-color: #003566 !important;
}
.cms-tg-tone-3 {
  border-color: #e86f52 !important;
}
.cms-tg-tone-4 {
  border-color: #f59e0b !important;
}
.cms-tg-tone-5 {
  border-color: #3cc6cc !important;
}

.cms-tg-pin-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

/* Card column */
.cms-tg-card-col {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 28rem;
}

.cms-tg-section[data-layout="wide"] .cms-tg-card-col {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: none;
}

.cms-tg-card-shadow {
  pointer-events: none;
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: -14px;
  z-index: -1;
  height: 36px;
  border-radius: 100%;
  background: rgba(0, 53, 102, 0.16);
  filter: blur(22px);
}

.cms-tg-quote-region {
  display: grid;
  touch-action: pan-y;
}

.cms-tg-card {
  position: relative;
  grid-column-start: 1;
  grid-row-start: 1;
  margin: 0;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0, 53, 102, 0.11);
  background: #ffffff;
  color: #003566;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0, 53, 102, 0.06);
}

.cms-tg-card.is-roomy {
  padding: 26px 28px;
}

.cms-tg-card.is-sizer {
  visibility: hidden;
  pointer-events: none;
}

.cms-tg-card.is-leaving {
  pointer-events: none;
}

.cms-tg-card-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  padding-right: 112px;
}

.cms-tg-card.is-roomy .cms-tg-card-top {
  height: 28px;
  padding-right: 128px;
}

.cms-tg-quote-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: rgba(31, 169, 176, 0.35);
}

.cms-tg-card.is-roomy .cms-tg-quote-mark {
  width: 28px;
  height: 28px;
}

.cms-tg-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cms-tg-blockquote {
  position: relative;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #1f2e42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-tg-card.is-roomy .cms-tg-blockquote {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
}

.cms-tg-blockquote p {
  margin: 0;
  color: inherit;
}

.cms-tg-figcaption {
  position: relative;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-tg-card.is-roomy .cms-tg-figcaption {
  padding-top: 22px;
}

.cms-tg-avatar {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f2f7;
  border: 2px solid #1fa9b0;
  outline: 2px solid #ffffff;
}

.cms-tg-card.is-roomy .cms-tg-avatar {
  width: 46px;
  height: 46px;
}

.cms-tg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cms-tg-client-meta {
  min-width: 0;
  flex: 1;
}

.cms-tg-client-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #003566;
}

.cms-tg-client-role {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: #5a6b82;
}

.cms-tg-client-loc {
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.25;
  color: #5a6b82;
}

.cms-tg-client-city {
  display: block;
  font-weight: 600;
  color: #003566;
}

.cms-tg-client-country {
  display: inline-block;
  margin-top: 2px;
  font-family: "DM Sans", monospace;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1fa9b0;
}

/* Prev / Next controls */
.cms-tg-nav {
  position: absolute;
  z-index: 10;
  right: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.cms-tg-nav.is-roomy {
  right: 18px;
  top: 22px;
}

.cms-tg-nav-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  color: #5a6b82;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cms-tg-nav-btn:hover {
  background: rgba(31, 169, 176, 0.12);
  color: #003566;
}

.cms-tg-nav-btn:focus-visible {
  outline: 2px solid #1fa9b0;
  outline-offset: 2px;
}

.cms-tg-nav-btn svg {
  width: 16px;
  height: 16px;
}

.cms-tg-counter {
  min-width: 44px;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #5a6b82;
}

/* Leader SVG line */
.cms-tg-leader {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 95;
  width: 1px;
  height: 1px;
  overflow: visible;
  color: #1fa9b0;
}

.cms-tg-leader g {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cms-tg-star-dot,
  .cms-tg-pin-ping,
  .cms-tg-pin-face,
  .cms-tg-canvas-host,
  .cms-tg-leader g {
    animation: none !important;
    transition: none !important;
  }
  .cms-tg-pin-ping {
    display: none;
  }
}
