/*.card-join-wrapper-1 {*/
/*  perspective: 1200px;*/
/*}*/

.card-join {
  position: relative;
  height: 380px;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
  min-width: 220px;
  box-sizing: border-box;
  margin: 2px;
}

.card-join.is-flipped {
  transform: rotateY(180deg);
  border: 1px solid #bdbdbd;
}

.card-join__front,
.card-join__back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
}

.card-join__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* темний градієнт поверх фото */
.card-join__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );
}

/* текст поверх фото */
.card-join__front div {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  z-index: 2;
}

.card-join__title {
  font-size: 20px;
  font-weight: 600;
}

.card-join__subtitle {
  font-size: 14px;
  font-weight: 500;
}

/* backside */
.card-join__back {
  background: white;
  padding: 20px;
  overflow-y: auto;
  transform: rotateY(180deg);
}

/* кнопка */
.card-join__button {
  margin-top: 10px;
  padding: 6px 14px;
  border: none;
  background: #2e7d32;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-join__button:hover {
  background: #1b5e20;
  transform: scale(1.05);
  box-shadow: 0 0px 14px rgba(0,0,0,0.25);
}

.card-join:hover {
  transform: translateY(-2px);
  box-shadow: 5px 8px 16px rgba(0, 0, 0, 0.25);
}

.card-join.is-flipped:hover {
  transform: rotateY(180deg) translateY(-2px);
}

.swiper {
  overflow: visible !important;
}

.card-join__text {
  white-space: pre-wrap; /* перенос рядків як у JS */
  word-wrap: break-word;  /* щоб довгі слова не ламали контейнер */
}

.swiper-wrapper {
    width: fit-content !important;
    padding: 5px 40px !important;
    box-sizing: border-box;
}

.swiper-button-prev,
.swiper-button-next {
  color: #92b21d !important; /* колір стрілок */
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}