.detailtest {
  padding-top: 232px;
}
.detailtest-title {
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.detailtest-title strong {
  display: inline-block;
  margin-left: 12px;
  padding: 0 12px;
  padding-right: 32px;
  color: #fff;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  position: relative;
}
.detailtest-title strong img {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.detailtest-desc {
  margin-top: 16px;
  margin-bottom: 40px;
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
}
.detailtest-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.detailtest-item {
  min-height: 170px;
  border-radius: 20px;
  border: 1px solid rgba(58, 42, 26, 0.16);
  background: #fff;
  padding: 20px;
  position: relative;
  transition: all 0.3s;
}
.detailtest-item:hover {
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}
.detailtest-item-title {
  color: var(--color-text, #2f1b08);
  font-family: "Baloo 2";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 8px;
}
.detailtest-item-desc {
  color: var(--color-text, #2f1b08);
  font-family: "Baloo 2";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.detailtest-item-line {
  background: rgba(58, 42, 26, 0.06);
  width: 100%;
  height: 1px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.detailtest-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detailtest-item-price {
  display: flex;
  align-items: center;
  gap: 6px;
}
.detailtest-item-price-current {
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}
.detailtest-item-price-old {
  color: #3a2a1a;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: line-through;
  opacity: 0.6;
}
.detailtest-item-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
  border-radius: 46px;
  border: 1px solid #f2a716;
  background: var(--pri, #fbae17);
  color: #fff;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 177.778% */
  transition: all 0.3s;
}
.detailtest-item-btn:hover {
  background: linear-gradient(90deg, #954d0e 0%, #fbae17 100%);
}
.detailtest-item-iconfree {
  display: none;
}
.detailtest-item.free .detailtest-item-price-old {
  color: #fff;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration-line: unset;
  border-radius: 6px;
  background: #2aa12f;
  display: inline-flex;
  height: 28px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  opacity: 1;
}
.detailtest-item.free .detailtest-item-btn {
  background: #329ddf;
  border: 1px solid #54b8f9;
}
.detailtest-item.free .detailtest-item-btn:hover {
  border: 1px solid #54b8f9;
  background: linear-gradient(90deg, #226dc3 0%, #329ddf 100%);
}
.detailtest-item.free .detailtest-item-iconfree {
  position: absolute;
  display: inline-block;
  top: 12px;
  right: 16px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;

  transform-origin: 50% 0%;
  animation: swing 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

@keyframes swing {
  0% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(-20deg);
  }
}
@media (max-width: 768px) {
  .detailtest {
    padding-top: 120px;
  }
  .detailtest-title {
    font-size: 32px;
    padding: 0 16px;
  }
  .detailtest-desc {
    padding: 0 16px;
  }
  .detailtest-list {
    padding: 0 16px;
    grid-template-columns: repeat(1, 1fr);
  }
}
