/**
 * 10 Steps Carousel Component
 * Shows 3 steps at a time with navigation
 */

.block-ten-steps {
  background: #000000;
  padding: 150px 0px;
  overflow: hidden;
}

.ten-steps__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 58px;
}

.ten-steps__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 40px;
  margin-bottom: 70px;
}

.ten-steps__heading {
  font-family: "Outfit", sans-serif;
  font-size: 82px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -2px;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 30px;
}

.ten-steps__heading-word {
  display: inline;
}

.ten-steps__heading-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ten-steps__heading-icon svg {
  width: 60px;
  height: 60px;
  display: block;
}

.ten-steps__heading-break {
  width: 100%;
  height: 0;
  flex-basis: 100%;
}

/* Carousel Wrapper */
.ten-steps__carousel-wrapper {
  position: relative;
}

/* Carousel Container */
.ten-steps__carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  overflow: visible;
  width: 1382px;
}

@media (max-width: 767px) {
  .ten-steps__carousel {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* Step Card */
.ten-steps__card {
  background: #000000;
  border: 1px solid #FFFFFF;
  padding: 25px;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  width: 428px;
  height: 320px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: none;
  isolation: isolate;
}

/* Hover effect - white background, black text, show description */
.ten-steps__card:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-4px);
}

.ten-steps__card:hover .ten-steps__card-heading {
  color: #000000;
}

.ten-steps__card:hover .ten-steps__card-description {
  color: #000000;
}

/* Card Inner */
.ten-steps__card-inner {
  flex: 1;
  min-height: 0;
}

/* Step Number — positioned relative to .ten-steps__card */
.ten-steps__number {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 79px;
  height: 81px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #000000;
  z-index: 2;
  transition: background 0.3s ease;
}

.ten-steps__card:hover .ten-steps__number {
  background: var(--hover-color, #E1FF04);
  color: #000000;
}

/* Card Heading — same top as number, guaranteed same line */
.ten-steps__card-heading {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 114px;
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -1.6px;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
  transition: color 0.3s ease;
  z-index: 0;
}

/* Card Description — positioned relative to .ten-steps__card */
.ten-steps__card-description {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0;
  color: #FFFFFF;
  margin: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Navigation */
.ten-steps__navigation {
  display: flex;
  gap: 26px;
  justify-content: flex-end;
  width: 230px;
  height: 102px;
  align-items: center;
  flex: none;
  order: 1;
}

.ten-steps__nav-btn {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 2.75676px solid #757472;
  background: transparent;
  color: #757472;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  box-sizing: border-box;
}

.ten-steps__nav-btn:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.ten-steps__nav-btn--next {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.ten-steps__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #757472;
  color: #757472;
}

.ten-steps__nav-btn:disabled:hover {
  background: transparent;
  border-color: #757472;
  color: #757472;
}

.ten-steps__nav-btn svg {
  width: 32px;
  height: 26px;
}

/* Responsive */
@media (max-width: 767px) {
  .block-ten-steps {
    padding: 3rem 1rem;
  }

  .ten-steps__container {
    max-width: 100%;
    padding: 0 24px;
  }

  .ten-steps__header {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .ten-steps__heading {
    font-size: 42px;
  }

  .ten-steps__heading-icon svg {
    width: 42px;
    height: 42px;
  }

  .ten-steps__carousel {
    flex-direction: column;
    gap: 1.5rem;
    /* Cards stack vertically on mobile — neutralise the carousel's
       JS translateX so the stack never shifts off-screen */
    transform: none !important;
  }

  /* Carousel becomes a simple vertical stack on mobile — the prev/next
     arrows are desktop-only navigation and are not needed here */
  .ten-steps__navigation {
    display: none !important;
  }

  .ten-steps__card {
    width: 100%;
    height: auto;
    min-height: 280px;
    padding: 20px;
  }

  /* On mobile card-inner becomes the positioning context so top/right:0 aligns with 20px padding */
  .ten-steps__card-inner {
    position: relative;
    min-height: 240px;
  }

  .ten-steps__number {
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .ten-steps__card-heading {
    top: 0;
    left: 0;
    right: 50px;
    font-size: 28px;
  }

  .ten-steps__card-description {
    bottom: 0;
    left: 0;
    right: 0;
  }

  .ten-steps__card:hover .ten-steps__card-description {
    color: #000000;
  }

  .ten-steps__navigation {
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
  }

  .ten-steps__nav-btn {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .block-ten-steps {
    padding: 2.5rem 1rem;
  }

  .ten-steps__container {
    padding: 0 20px;
  }

  .ten-steps__heading {
    font-size: 36px;
    /* row-gap halved (20→10): the full-width heading-break sits on its own flex
       line, so row-gap applies twice between the two words. Effective gap 40→20px. */
    gap: 10px 20px;
  }

  .ten-steps__card {
    min-height: 260px;
    padding: 18px;
  }

  .ten-steps__card-inner {
    min-height: 224px;
  }

  .ten-steps__number {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .ten-steps__card-heading {
    right: 45px;
    font-size: 26px;
  }

  .ten-steps__card-description {
    font-size: 16px;
  }

  .ten-steps__card:hover .ten-steps__card-description {
    color: #000000;
  }
}

@media (max-width: 375px) {
  .ten-steps__heading {
    font-size: 32px;
    gap: 8px 16px;
  }

  .ten-steps__number {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .ten-steps__card-heading {
    right: 40px;
    font-size: 22px;
  }

  .ten-steps__card-description {
    font-size: 15px;
  }

  .ten-steps__card:hover .ten-steps__card-description {
    color: #000000;
  }
}

