/* ===============================
   ATMS Why Choose Us Section
================================ */

.atms-why-choose {
  width: 100%;
  background: #fdfff6;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  padding: 138px 20px 138px;
  overflow: hidden;
}

.atms-why-container {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
}

/* ===============================
   Heading
================================ */

.atms-why-title {
  margin: 0 0 58px;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: 0;
}

/* ===============================
   List
================================ */

.atms-why-list {
  width: 100%;
}

.atms-why-item {
  width: 100%;
  border-bottom: 1px solid #8e8e8e;
  overflow: hidden;
}

.atms-why-row {
  position: relative;
  width: 100%;
  min-height: 129px;
  padding: 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  cursor: pointer;
}

/* ===============================
   Text
================================ */

.atms-why-content {
  width: 100%;
  padding: 34px 80px 34px 0;
}

.atms-why-content h3 {
  margin: 0;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 45px;
  letter-spacing: 0;
  transition: color 0.35s ease;
}

.atms-why-content p {
  max-width: 1120px;
  margin: 0;
  color: #5e5e5e;
  font-family: "Geist", Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 0;

  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;

    transition:
    max-height 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 800ms ease,
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===============================
   Arrow
================================ */

.atms-why-arrow {
  position: absolute;
  right: 0;
  top: 45px;
  width: 22px;
  height: 22px;
  display: block;
  transform: rotate(0deg);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.atms-why-arrow::before,
.atms-why-arrow::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 14px;
  height: 2px;
  background: #5e5e5e;
  border-radius: 10px;
  transition: background 0.35s ease;
}

.atms-why-arrow::before {
  left: 0;
  transform: rotate(45deg);
}

.atms-why-arrow::after {
  right: 0;
  transform: rotate(-45deg);
}

/* closed arrow visual = right chevron */
.atms-why-item:not(:hover) .atms-why-arrow {
  transform: rotate(-90deg);
}

/* ===============================
   Hover / Open State
================================ */

.atms-why-item:hover .atms-why-content p {
  max-height: 120px;
  opacity: 1;
  margin-top: 8px;
  transform: translateY(0);
}

.atms-why-item:hover .atms-why-arrow {
  transform: rotate(0deg);
}

.atms-why-item:hover .atms-why-content h3 {
  color: #5e5e5e;
}

/* smoother close */
.atms-why-item .atms-why-content p {
  will-change: max-height, opacity, transform;
}

.atms-why-item .atms-why-arrow {
  will-change: transform;
}

/* ===============================
   Laptop
================================ */

@media (max-width: 1366px) {
  .atms-why-choose {
    padding: 96px 20px 104px;
  }

  .atms-why-container {
    max-width: 980px;
  }

  .atms-why-title {
    font-size: 34px;
    line-height: 32px;
    margin-bottom: 48px;
  }

  .atms-why-row {
    min-height: 112px;
  }

  .atms-why-content {
    padding: 28px 70px 28px 0;
  }

  .atms-why-content h3 {
    font-size: 27px;
    line-height: 38px;
  }

  .atms-why-content p {
    font-size: 17px;
    line-height: 29px;
  }

  .atms-why-arrow {
    top: 37px;
  }
}

/* ===============================
   Tablet
================================ */

@media (max-width: 991px) {
  .atms-why-choose {
    padding: 76px 24px 86px;
  }

  .atms-why-container {
    max-width: 720px;
  }

  .atms-why-title {
    font-size: 34px;
    line-height: 34px;
    margin-bottom: 40px;
  }

  .atms-why-row {
    min-height: 104px;
  }

  .atms-why-content {
    padding: 26px 56px 26px 0;
  }

  .atms-why-content h3 {
    font-size: 26px;
    line-height: 36px;
  }

  .atms-why-content p {
    font-size: 16px;
    line-height: 27px;
  }

  .atms-why-item:hover .atms-why-content p {
    max-height: 150px;
  }

  .atms-why-arrow {
    top: 34px;
  }
}

/* ===============================
   Mobile
================================ */

@media (max-width: 767px) {
  .atms-why-choose {
    padding: 64px 20px 74px;
  }

  .atms-why-title {
    font-size: 30px;
    line-height: 32px;
    margin-bottom: 34px;
  }

  .atms-why-row {
    min-height: 96px;
  }

  .atms-why-content {
    padding: 24px 42px 24px 0;
  }

  .atms-why-content h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .atms-why-content p {
    font-size: 14px;
    line-height: 24px;
  }

  .atms-why-item:hover .atms-why-content p {
    max-height: 180px;
    margin-top: 10px;
  }

  .atms-why-arrow {
    top: 30px;
    width: 18px;
    height: 18px;
  }

  .atms-why-arrow::before,
  .atms-why-arrow::after {
    width: 12px;
  }
}

/* ===============================
   Small Mobile
================================ */

@media (max-width: 480px) {
  .atms-why-choose {
    padding: 56px 18px 66px;
  }

  .atms-why-title {
    font-size: 28px;
    line-height: 30px;
  }

  .atms-why-content h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .atms-why-content p {
    font-size: 13px;
    line-height: 22px;
  }

  .atms-why-row {
    min-height: 90px;
  }
}

/* Mobile click open support */
.atms-why-item.is-open .atms-why-content p {
  max-height: 180px;
  opacity: 1;
  margin-top: 10px;
  transform: translateY(0);
}

.atms-why-item.is-open .atms-why-arrow {
  transform: rotate(0deg);
}