.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.card {
  flex: 1 1 calc(15% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  background-color: #fff;
  padding: 30px 20px;
  gap: 10px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid #000;
}

.cards-section .card {
    text-decoration: none;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 25px 0 rgba(31, 114, 235, 0.05);
}

.card img {
  display: flex;
  width: 30px;
  height: 30px;
  padding: 0.001px 1.25px 0 1.25px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
}

.card h3 {
  color: var(--000000, #000);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}
.card a {
  color: var(--000000, #000);
  text-align: center;
  font-size: 16px;
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
  color: #000;
}
.card-link-label {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}
.card-chevron {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  width: 12px;
  height: 11px;
  fill: #000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.card:hover .card-link-label,
.card:focus .card-link-label {
  transform: translateX(6px);
}
.card:hover .card-chevron,
.card:focus .card-chevron {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
  .card {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .card {
    flex: 1 1 100%;
  }
}

@media (max-width: 680px) {
  .cards-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .cards-container[data-carousel] {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    justify-content: flex-start;
  }
  .cards-container[data-carousel] .card {
    flex: 0 0 80%;
    min-width: 80%;
    scroll-snap-align: center;
    min-height: 210px; 
  }

  .cards-container[data-carousel] {
    scrollbar-width: none;
  }
  .cards-container[data-carousel]::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .cards-container {
    flex-wrap: wrap;
  }
  .card {
    flex: 1 1 calc(50% - 20px);
  }
}

.cards-dots {
  display: none;
}

@media (max-width: 680px) {
  .cards-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
  }
  .cards-dot {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  .cards-dot:focus {
    outline: none;
  }
}
