


.box-list__item {
  aspect-ratio: 1/1;
  background-color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color-grey);
  max-width: 300px;
}
@media screen and (min-width: 1200px) {
  .box-list__item {
    aspect-ratio: unset;
    min-height: 284px;
    max-width: none;
  }
}

.box-list__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.box-list__item-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
  width: 56px;
  height: 56px;
}

.box-list__item-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.box-list__item-title {
  color: #333;
  margin: 0;
  margin-bottom: 8px;
  text-align: left;
}

.box-list__item-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  flex-grow: 0;
}

.box-list__item-action {
  margin-top: auto;
  max-width: 100%;
}
@media screen and (min-width: 990px) {
  .box-list__item-action {
    /* margin-top: 44px; */
  }
}

.box-list__item-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  width: 100%;
  background-color: transparent;
  text-decoration: none;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}


.box-list__item-button:hover .box-list__item-button-text {
  color: var(--color-primary);
}
.box-list__item-button:hover > img {
  animation: slideInUp 0.3s ease forwards;
} 

.box-list__item-button-text{
  color: var(--color-dark);
  transition: color 0.3s ease;
}

.box-list__item-button > img{
  display: block;
  margin-left: auto;
  width: 24px;
  height: 24px;
}

.box-list__extra {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.box-list__extra-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-primary);
}

.box-list__extra-link:hover .box-list__extra-link-text::after {
  content: "";
  display: block;
  position: absolute;
  animation: withIn 0.3s ease forwards;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  z-index: -1;
}

.box-list__extra-link:hover > img {
  animation: slideInUp 0.3s ease forwards;
}

.box-list__extra-link-text {
  margin: 0;
  position: relative;
}

.box-list__extra-link > img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}


@media (max-width: 768px) {
  .contact-box-list {
    padding: 30px 16px;
  }

  .box-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .box-list__header-title {
    font-size: 24px;
  }

  .box-list__header-description {
    font-size: 14px;
  }

  .box-list__item {
    padding: 20px;
  }

  .box-list__item-title {
    font-size: 18px;
  }

  .box-list__item-description {
    font-size: 13px;
  }

  .box-list__item-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}


@keyframes slideInUp {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes withIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    transform: translateX(0);
    width: 100%;
  }
}