.home-section.home-section-strengths {
  background-color: #eee;
}

.home-section__inner.home-section__inner--strengths {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1350px;
  margin-inline: auto;
  padding: 40px 16px 48px;

  @media screen and (min-width: 769px) {
    gap: clamp(30px, calc(40 / 1350 * 100vw), 40px);
    min-height: clamp(249px, calc(585 / 1350 * 100vw), 585px);
    padding: clamp(61px, calc(80 / 1350 * 100vw), 80px) clamp(76px, calc(100 / 1350 * 100vw), 100px);

    @media screen and (max-width: 1000px) {
      gap: calc(40 / 1350 * 100vw);
      min-height: calc(585 / 1350 * 100vw);
      padding: calc(80 / 1350 * 100vw) calc(100 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    gap: clamp(20px, calc(2.31vw + 11.3px), 35px);
    padding: clamp(40px, calc(3.08vw + 28.4px), 60px) clamp(16px, calc(6.78vw - 9.4px), 60px)
      clamp(48px, calc(1.85vw + 41.1px), 60px);
  }
}

.home-section__heading.home-section__heading--strengths {
  margin: 0;
  color: #333;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.05rem;
  line-height: 1.1;
  align-items:end;



  @media screen and (min-width: 769px) {
    font-size: clamp(42.5px, calc(56 / 1350 * 100vw), 56px);
    letter-spacing: clamp(0.2rem, calc(3 / 1350 * 100vw), 0.3rem);

    @media screen and (max-width: 1000px) {
      font-size: calc(56 / 1350 * 100vw);
      letter-spacing: calc(3 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    font-size: clamp(28px, calc(48 / 768 * 100vw), 48px);
    letter-spacing: clamp(0.05rem, calc(0.39vw - 0.09rem), 0.3rem);
  }

  > span:last-child {
    min-width: 0;
    white-space: nowrap;
  }
}

.home-section__heading-emphasis {
  color: #e50012;
}

.home-strengths-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;

  @media screen and (min-width: 769px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24.3px, calc(32 / 1350 * 100vw), 32px);

    @media screen and (max-width: 1000px) {
      gap: calc(32 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    gap: clamp(20px, calc(1.85vw + 13.1px), 32px);
  }
}

.home-strengths-list__item {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 2px solid #e50012;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 3px 3px 3px rgb(0 0 0 / 10%);

  @media screen and (min-width: 769px) {
    min-height: clamp(249px, calc(328 / 1350 * 100vw), 328px);
    padding: clamp(30.3px, calc(40 / 1350 * 100vw), 40px);
    border-width: clamp(2.3px, calc(3 / 1350 * 100vw), 3px);
    border-radius: clamp(15.2px, calc(20 / 1350 * 100vw), 20px);

    @media screen and (max-width: 1000px) {
      min-height: calc(328 / 1350 * 100vw);
      padding: calc(40 / 1350 * 100vw);
      border-width: calc(3 / 1350 * 100vw);
      border-radius: calc(20 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    padding: clamp(16px, calc(4.83vw - 2.1px), 35px);
    border-width: clamp(2px, calc(0.15vw + 1.4px), 3px);
    border-radius: clamp(12px, calc(1.23vw + 7.4px), 20px);
    aspect-ratio: 419 / 196;
    min-height: auto;
  }
}

.home-strengths-list__inner {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 12px;
  align-content: start;
  align-items: flex-start;
  box-sizing: border-box;
  width: min(80%, calc(100% - 80px));

  @media screen and (min-width: 769px) {
    row-gap: clamp(18.2px, calc(24 / 1350 * 100vw), 24px);
    height: 100%;
    align-content: start;

    @media screen and (max-width: 1000px) {
      row-gap: calc(24 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    height: 100%;
    row-gap: clamp(16px, calc(4.07vw + 0.7px), 32px);
    align-content: start;
    width: min(80%, calc(100% - 80px));
  }
}

.home-strengths-list__item--national .home-strengths-list__inner {
  @media screen and (min-width: 769px) {
    width: clamp(287px, calc(378 / 1350 * 100vw), 378px);

    @media screen and (max-width: 1000px) {
      width: calc(378 / 1350 * 100vw);
    }
  }
}

.home-strengths-list__item--services .home-strengths-list__inner {
  @media screen and (min-width: 769px) {
    width: clamp(249px, calc(328 / 1350 * 100vw), 328px);

    @media screen and (max-width: 1000px) {
      width: calc(328 / 1350 * 100vw);
    }
  }
}

.home-strengths-list__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  position: relative;
  z-index: 1;
  width: 100%;

  h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.24;
    overflow-wrap: anywhere;

    @media screen and (min-width: 769px) {
      font-size: clamp(18.2px, calc(24 / 1350 * 100vw), 24px);

      @media screen and (max-width: 1000px) {
        font-size: calc(24 / 1350 * 100vw);
      }
    }

    @media screen and (min-width: 375px) and (max-width: 768px) {
      font-size: clamp(12px, calc(24 / 768 * 100vw), 24px);
    }
  }

  @media screen and (min-width: 769px) {
    column-gap: clamp(12.1px, calc(16 / 1350 * 100vw), 16px);

    @media screen and (max-width: 1000px) {
      column-gap: calc(16 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    column-gap: clamp(8px, calc(1.23vw + 3.4px), 16px);
  }
}

.home-strengths-list__number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e50012;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;

  @media screen and (min-width: 769px) {
    width: clamp(36.4px, calc(48 / 1350 * 100vw), 48px);
    height: clamp(36.4px, calc(48 / 1350 * 100vw), 48px);
    font-size: clamp(18.2px, calc(24 / 1350 * 100vw), 24px);

    @media screen and (max-width: 1000px) {
      width: calc(48 / 1350 * 100vw);
      height: calc(48 / 1350 * 100vw);
      font-size: calc(24 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    width: clamp(32px, calc(2.47vw + 22.7px), 48px);
    height: clamp(32px, calc(2.47vw + 22.7px), 48px);
    font-size: clamp(16px, calc(1.23vw + 11.4px), 24px);
  }
}

.home-strengths-list__text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-right: 16px;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-align: justify;

  @media screen and (min-width: 769px) {
    font-size: clamp(13.6px, calc(18 / 1350 * 100vw), 18px);
    padding-right: clamp(16px, calc(24 / 1350 * 100vw), 24px);

    @media screen and (max-width: 1000px) {
      font-size: calc(18 / 1350 * 100vw);
      padding-right: calc(24 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    font-size: clamp(10px, calc(3.56vw - 3.4px), 24px);
    padding-right: clamp(16px, calc(1.54vw + 10.2px), 26px);
  }
}

.home-strengths-list__note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #333;
  font-size: 10px;
  line-height: 1.4;

  @media screen and (min-width: 769px) {
    font-size: clamp(10px, calc(14 / 1350 * 100vw), 14px);
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    font-size: clamp(10px, calc(16 / 768 * 100vw), 16px);
  }
}

.home-strengths-list__more-link {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  align-self: center;
  width: min(100%, 320px);
  min-height: 64px;
  padding: 12px 24px;
  border: 2px solid #e50012;
  border-radius: 200px;
  background-color: #fff;
  color: #e50012;
  font-size: clamp(14px, calc(18 / 768 * 100vw), 18px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  @media screen and (min-width: 375px) and (max-width: 768px) {
    width: min(100%, clamp(320px, calc(400 / 768 * 100vw), 400px));
    min-height: clamp(48px, calc(80 / 768 * 100vw), 80px);
    padding: clamp(10px, calc(14 / 768 * 100vw), 14px) clamp(18px, calc(24 / 768 * 100vw), 24px);
    font-size: clamp(14px, calc(20 / 768 * 100vw), 20px);
  }
}

.home-strengths-list__more-link-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background-color: #e50012;
  -webkit-mask: url('/-/media/SolKepco/assets/img/home/strength/strength-chevron.svg') center / 6px 12px no-repeat;
  mask: url('/-/media/SolKepco/assets/img/home/strength/strength-chevron.svg') center / 6px 12px no-repeat;

  @media screen and (min-width: 769px) {
    width: clamp(18.2px, calc(24 / 1350 * 100vw), 24px);
    height: clamp(18.2px, calc(24 / 1350 * 100vw), 24px);

    @media screen and (max-width: 1000px) {
      width: calc(24 / 1350 * 100vw);
      height: calc(24 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    width: clamp(18px, calc(1.54vw + 12.2px), 28px);
    height: clamp(18px, calc(1.54vw + 12.2px), 28px);
  }
}

.home-strengths-list__image {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
}

.home-strengths-list__image--map {
  top: 55%;
  right: 0.75rem;
  width: 35%;
  height: auto;
  transform: translateY(-50%);

  @media screen and (min-width: 769px) {
    right: clamp(0.5rem, calc(14 / 1350 * 100vw), 1rem);
  }
}

.home-strengths-list__image--services {
  top: 30px;
  right: 14px;
  width: 22%;

  @media screen and (min-width: 769px) {
    top: clamp(43.5px, calc(57 / 1350 * 100vw), 57px);
    right: clamp(32.5px, calc(43 / 1350 * 100vw), 43px);
    width: 25%;

    @media screen and (max-width: 1000px) {
      top: calc(57 / 1350 * 100vw);
      right: calc(43 / 1350 * 100vw);
    }
  }

  @media screen and (min-width: 375px) and (max-width: 768px) {
    top: clamp(15px, calc(15 / 375 * 100vw), 50px);
    right: 12px;
  }
}

@supports (animation-timeline: view()) {
  .home-section__heading.home-section__heading--strengths,
  .home-strengths-list__item {
    animation: home-strengths-fade-up both ease-out;
    animation-range: entry 15% cover 40%;
    animation-timeline: view();
  }
}

@keyframes home-strengths-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-strengths-list__more-link {
  position: relative;
  overflow: hidden;
  transition: color 150ms ease;

  &::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-color: #e50012;
    content: '';
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms ease;
  }

  &:hover,
  &:focus-visible {
    color: #fff;

    &::before {
      transform: scaleX(1);
    }

    .home-strengths-list__more-link-icon {
      background-color: #fff;
    }
  }

  > span {
    position: relative;
    z-index: 1;
    transition: color 150ms ease;
  }
}

.home-strengths-list__more-link .home-strengths-list__more-link-icon {
  transition:
    background-color 150ms ease,
    transform 300ms ease;
}

.home-strengths-list__more-link:hover .home-strengths-list__more-link-icon,
.home-strengths-list__more-link:focus-visible .home-strengths-list__more-link-icon {
  transform: translateX(clamp(2px, calc(4 / 768 * 100vw), 4px));
}
