/* Temporary for development stage, recommend to copy these CSS code to frontend.css when production */

/* Temporary for development stage, recommend to copy these CSS code to frontend.css when production */

section[data-module="customer-story"] * {
  box-sizing: border-box;
}

section[data-module="customer-story"] {
  padding: 15px 40px;
}

section[data-module="customer-story"] .news-slider-container {
  position: relative;
  max-width: 1700px;
  margin: 0 auto;
}

section[data-module="customer-story"] .news-slider-wrapper {
  overflow: hidden;
}

section[data-module="customer-story"] .news-slider-track {
  display: flex;
  gap: 34px;
  transition: transform 0.45s ease;
  will-change: transform;
  align-items: stretch;
}

section[data-module="customer-story"] .news-card {
  min-width: calc((100% - 68px) / 3);
  background: transparent;
  border: 1px solid #d8d8d8;
  padding: 30px 30px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

section[data-module="customer-story"] .news-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  color: #000;
  min-height: 68px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

section[data-module="customer-story"] .news-date {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 16px;
  min-height: 24px;
  line-height: 1.2;
}

section[data-module="customer-story"] .news-desc {
  font-size: 18px;
  line-height: 1.25;
  color: #444;
  margin: 0;
  min-height: 68px;
  text-align: justify;
}

section[data-module="customer-story"] .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 74px;
  height: 74px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

section[data-module="customer-story"] .slider-nav.prev {
  left: -55px;
}

section[data-module="customer-story"] .slider-nav.next {
  right: -55px;
}

section[data-module="customer-story"] .nav-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70px auto;
  transition: background-image 0.35s ease, opacity 0.35s ease;
}

section[data-module="customer-story"] .slider-nav.prev .nav-icon {
  background-image: url('https://www.spritvest.com/wp-content/uploads/2025/05/arrowlefthover.png');
}

section[data-module="customer-story"] .slider-nav.prev:hover .nav-icon {
  background-image: url('https://www.spritvest.com/wp-content/uploads/2025/05/leftarrow-2.png');
}

section[data-module="customer-story"] .slider-nav.next .nav-icon {
  background-image: url('https://www.spritvest.com/wp-content/uploads/2025/05/arrowrighthover.png');
}

section[data-module="customer-story"] .slider-nav.next:hover .nav-icon {
  background-image: url('https://www.spritvest.com/wp-content/uploads/2025/05/rightarrow-2.png');
}

section[data-module="customer-story"] .slider-nav.disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1400px) {
section[data-module="customer-story"] .news-title {
  font-size: 22px;
}
section[data-module="customer-story"] .news-desc {
  font-size: 16px;
}
}

@media (max-width: 1200px) {
  section[data-module="customer-story"] .news-card {
    min-width: calc((100% - 34px) / 2);
    min-height: 245px;
  }

  section[data-module="customer-story"] .news-title {
    min-height: 68px;
  }

  section[data-module="customer-story"] .news-desc {
    min-height: 68px;
  }
}

@media (max-width: 767px) {
  section[data-module="customer-story"] {
    padding: 30px 20px 40px;
  }

  section[data-module="customer-story"] .news-card {
    min-width: 100%;
    padding: 22px 22px 26px;
    min-height: auto;
  }

  section[data-module="customer-story"] .news-title {
    font-size: 24px;
    min-height: auto;
    -webkit-line-clamp: unset;
  }

  section[data-module="customer-story"] .news-date {
    font-size: 18px;
    min-height: auto;
  }

  section[data-module="customer-story"] .news-desc {
    font-size: 16px;
    min-height: auto;
    -webkit-line-clamp: unset;
  }

  section[data-module="customer-story"] .slider-nav.prev {
    left: 0;
    top: auto;
    bottom: -60px;
    transform: none;
  }

  section[data-module="customer-story"] .slider-nav.next {
    right: 0;
    top: auto;
    bottom: -60px;
    transform: none;
  }
}