/* ─── CAROUSEL ───────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2.5rem auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  box-sizing: border-box;
  flex: 0 0 50%;
  padding: 0 0.5rem;
}

.carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 62%);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.2s ease;
}

.carousel-button:hover {
  background: rgb(0 0 0 / 80%);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-indicators .dash {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel-indicators .dash.active {
  background: #333;
}

.carousel-button:focus-visible,
.carousel-indicators .dash:focus-visible {
  outline: 3px solid #1f6f78;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .carousel-slide {
    flex-basis: 100%;
    padding: 0;
  }

  .carousel-button.prev {
    left: 0.75rem;
  }

  .carousel-button.next {
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-button,
  .carousel-indicators .dash {
    transition: none;
  }
}

/* ─── FLIP-CARDS ───────────────────────────────────────────────────────── */
.card-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0;
  background: #f5f5f5;
}

.card {
  width: 220px;
  height: 60px;
  perspective: 800px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 1rem;
  color: #000000;
  text-align: center;
}

.card-front {
  background: #ffffff;
}

.card-back {
  background: lightgray;
  transform: rotateY(180deg);
}

/* Flip-cards: wrap two per row on tablets, one per row on phones */
@media (max-width: 768px) {
  .card {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%;
  }
}

.carousel-indicators .dash {
  border: 0;
  padding: 0;
}

.carousel-button:focus-visible,
.carousel-indicators .dash:focus-visible {
  outline: 3px solid #1f6f78;
  outline-offset: 3px;
}