/* ── Card Carousel ── */

.gs-carousel {
  overflow: hidden;
}

.gs-carousel__header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.gs-carousel--intro-w-content .gs-carousel__header { max-width: 760px; }
.gs-carousel--intro-w-medium  .gs-carousel__header { max-width: 900px; }
.gs-carousel--intro-w-large   .gs-carousel__header { max-width: 1000px; }
.gs-carousel--intro-w-wide    .gs-carousel__header { max-width: 1200px; }
.gs-carousel--intro-w-full    .gs-carousel__header { max-width: none; }

.gs-carousel__header .gs-eyebrow   { display: inline-block; margin-bottom: 28px; }
.gs-carousel__header .gs-heading-lg { margin-bottom: 12px; }
.gs-carousel__intro p,
.gs-carousel__card-desc p { margin: 0 0 8px; }
.gs-carousel__intro p:last-child,
.gs-carousel__card-desc p:last-child { margin: 0; }

.gs-carousel__card-desc h4 { margin-bottom: 8px; }
.gs-carousel__card-desc p {
  font-size: 15px;
  font-weight: 400;
  color: var(--gs-text-dark);
  line-height: 1.5em;
}

/* Intro alignment — affects header (eyebrow / heading / intro body) */
.gs-carousel--intro-left .gs-carousel__header {
  text-align: left;
  margin-inline: 0;
}

/* Card alignment — affects content inside each card.
   Left is the default (no rule needed); center variant: */
.gs-carousel--cards-center .gs-carousel__card-body {
  text-align: center;
  align-items: center;
}
.gs-carousel--cards-center .gs-carousel__card-features {
  text-align: left;
}
.gs-carousel--cards-center .gs-carousel__card-cta {
  align-self: stretch;
}

/* Viewport + Track */
.gs-carousel__viewport {
  overflow: visible;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
}
.gs-carousel__viewport:active {
  cursor: grabbing;
}

.gs-carousel__track {
  display: flex;
  gap: var(--gs-gap);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

/* Cards — width set via JS based on cards-per-view */
.gs-carousel__card {
  flex: 0 0 calc(33.333% - var(--gs-gap) * 2 / 3);
  border-radius: var(--gs-radius-lg);
  background: var(--gs-white);
  border: 1px solid var(--gs-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--gs-shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.gs-carousel__card:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12), 0 20px 50px rgba(0, 0, 0, 0.13);
  border-color: var(--gs-muted);
}

/* Fade-in stagger — per-card --gs-fade-delay is set inline.
   Scoped to opacity/transform so hover transitions on box-shadow stay snappy. */
.gs-carousel__card[data-gs-fade-up] {
  transition:
    opacity 1s ease-out var(--gs-fade-delay, 0s),
    transform 1s ease-out var(--gs-fade-delay, 0s),
    box-shadow .25s ease,
    border-color .25s ease;
}

.gs-carousel__card-img {
  position: relative;
  overflow: hidden;
}
.gs-carousel__card-img > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .85s cubic-bezier(.45, 0, .55, 1) .12s;
}
.gs-carousel--ratio-16-9 .gs-carousel__card-img > img { aspect-ratio: 16 / 9; }
.gs-carousel--ratio-5-4  .gs-carousel__card-img > img { aspect-ratio: 5 / 4; }
.gs-carousel--ratio-7-5  .gs-carousel__card-img > img { aspect-ratio: 7 / 5; }
.gs-carousel--ratio-4-3  .gs-carousel__card-img > img { aspect-ratio: 4 / 3; }
.gs-carousel__card:hover .gs-carousel__card-img > img {
  transform: scale(1.1);
}

/* Logo tile overlay — position controlled by .gs-carousel--logo-{location} on the section */
.gs-carousel__card-logo {
  position: absolute;
  background: var(--gs-white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 60%;
  transition: transform .18s ease;
  z-index: 1;
}
.gs-carousel--logo-top-left .gs-carousel__card-logo {
  top: 16px; left: 16px;
  transform-origin: top left;
}
.gs-carousel--logo-top-right .gs-carousel__card-logo {
  top: 16px; right: 16px;
  transform-origin: top right;
}
.gs-carousel--logo-bottom-left .gs-carousel__card-logo {
  bottom: 16px; left: 16px;
  transform-origin: bottom left;
}
.gs-carousel--logo-bottom-right .gs-carousel__card-logo {
  bottom: 16px; right: 16px;
  transform-origin: bottom right;
}
.gs-carousel__card:hover .gs-carousel__card-logo {
  transform: scale(1.08);
}
.gs-carousel__card-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

/* Icon Library variant — render the SVG inside the same white tile.
   Stroke icons by default; .--filled toggles to fill. */
.gs-carousel__card-logo--svg {
  color: var(--gs-navy);
  line-height: 0;
}
.gs-carousel__card-logo--svg svg {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
}
.gs-carousel__card-logo--svg svg,
.gs-carousel__card-logo--svg svg path,
.gs-carousel__card-logo--svg svg circle,
.gs-carousel__card-logo--svg svg rect,
.gs-carousel__card-logo--svg svg polyline,
.gs-carousel__card-logo--svg svg line {
  fill: none;
  stroke: currentColor;
}
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg,
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg path,
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg circle,
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg rect,
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg polyline,
.gs-carousel__card-logo--svg.gs-carousel__card-logo--filled svg line {
  fill: currentColor;
  stroke: none;
}

.gs-carousel__card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gs-carousel__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gs-text-dark);
  margin-bottom: 8px;
}

.gs-carousel__card-desc {
  font-size: 14px;
  color: var(--gs-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gs-carousel__card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gs-carousel__card-features li {
  font-size: 15px;
  font-weight: 400;
  color: var(--gs-text-dark);
  line-height: 1.5em;
  padding-left: 18px;
  position: relative;
}

.gs-carousel__card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  background-image: url("../../../assets/images/orange-triangle-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Card CTA — full-width pill, blue with trailing chevron */
.gs-carousel__card-cta {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  background: var(--gs-blue);
  color: var(--gs-white);
  border-color: var(--gs-blue);
  text-transform: uppercase;
  padding: 16px 24px;
  gap: 12px;
}
.gs-carousel__card-cta:hover {
  background: var(--gs-blue-dark);
  color: var(--gs-white);
  border-color: var(--gs-blue-dark);
}
.gs-carousel__card-cta::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 5 16 12 9 19'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 5 16 12 9 19'/></svg>") no-repeat center / contain;
  transition: transform .2s ease;
}
.gs-carousel__card-cta:hover::after {
  transform: translateX(4px);
}

/* Controls */
.gs-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.gs-carousel__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gs-border);
  background: var(--gs-white);
  color: var(--gs-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

.gs-carousel__nav:hover {
  border-color: var(--gs-navy);
  background: var(--gs-light);
}

.gs-carousel__dots {
  display: flex;
  gap: 8px;
}

.gs-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.gs-carousel__dot.is-active {
  background: var(--gs-navy);
  transform: scale(1.3);
}

/* Dark bg variant */
.gs-bg--navy .gs-carousel__nav,
.gs-bg--dark .gs-carousel__nav {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--gs-white);
}
.gs-bg--navy .gs-carousel__nav:hover,
.gs-bg--dark .gs-carousel__nav:hover {
  background: rgba(255,255,255,.18);
}
.gs-bg--navy .gs-carousel__dot,
.gs-bg--dark .gs-carousel__dot { background: rgba(255,255,255,.3); }
.gs-bg--navy .gs-carousel__dot.is-active,
.gs-bg--dark .gs-carousel__dot.is-active { background: var(--gs-white); }

@media (max-width: 900px) {
  .gs-carousel__card { flex-basis: calc(50% - var(--gs-gap) / 2); }
}

@media (max-width: 768px) {
  .gs-carousel__card-features li::before {
    left: 2px;
    top: 0.3em;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 600px) {
  .gs-carousel__card { flex-basis: 100%; }
}

@media (min-width: 1025px) {
  .gs-carousel__card-desc p,
  .gs-carousel__card-features li { font-weight: 300; }
}
