/* ===== Solution section ===== */
.solution-section {
  padding: 77px 0;
  background: #EDF3FB;
}

.solution-container {
  max-width: 1400px;
  margin: 0 auto;
}

.solution-header {
  text-align: center;
}

.solution-title {
  font-weight: 600;
  font-size: 32px;
  color: #292929;
}

.solution-underline {
  margin-top: 31px;
  position: relative;
  height: 2px;
  background: #E9ECFB;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.solution-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 63px;
  height: 2px;
  background: #0C4CD1;
  transform: translateX(-50%);
}

.solution-body {
  position: relative;
  margin-top: 62px;
}


.solution-track {
  display: flex;
  gap: 40px;
  transition: opacity 0.35s ease;
}

.solution-card {
  flex: 0 0 440px;
  width: 440px;
  height: 366px;
  display: none;
  flex-direction: column;
  padding: 40px 37px 60px 37px;
  background-color: #FFFFFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0px 11px 30px 0px rgba(185, 200, 233, 0.5);
  border-radius: 14px;
  border: 1px solid #E0EAF8;
  box-sizing: border-box;
}

.solution-card.is-visible {
  display: flex;
}

.solution-card-top {
  display: flex;
  align-items: center;
}

.solution-card-icon {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.solution-card-title {
  margin: 0;
  margin-left: 26px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #E0EAF8;
  padding-bottom: 8px;
  font-weight: bold;
  font-size: 24px;
  color: #000040;
}

.solution-card-desc {
  margin: 0;
  margin-top: 36px;
  flex: 1;
  min-height: 0;
  font-weight: 400;
  font-size: 16px;
  color: #46465C;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-card-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  background: linear-gradient(to bottom, #6DA6FC 0%, #2469EB 100%);
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
}

.solution-card-btn:focus-visible {
  outline: 2px solid #0047CC;
  outline-offset: 2px;
}

/* Navigation buttons */
.solution-nav {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.solution-nav img {
  width: 32px;
  height: 32px;
  display: block;
}

.solution-nav--prev {
  left: -46px;
}

.solution-nav--next {
  right: -46px;
}

.solution-nav:focus-visible {
  outline: 2px solid #0047CC;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .solution-section {
    padding: 56px 40px;
  }

  .solution-card {
    flex: 0 0 calc(100% - 80px);
    width: auto;
    height: auto;
    min-height: 366px;
  }

  .solution-nav--prev {
    left: -40px;
  }

  .solution-nav--next {
    right: -40px;
  }
}

@media (max-width: 720px) {
  .solution-section {
    padding: 42px 20px;
  }

  .solution-card {
    flex: 0 0 calc(100% - 40px);
    padding: 32px 20px;
  }

  .solution-nav--prev {
    left: -36px;
  }

  .solution-nav--next {
    right: -36px;
  }
}
