.carousel3dSection {
  width: 100%;

  background: linear-gradient(
    90deg,
    rgba(17, 19, 20, 0) 0%,
    #112c5d 54.33%,
    rgba(17, 19, 20, 0) 100%
  );
  margin-top: 30px;
}
.carousel3dSection_inner {
  padding: 20px;
  width: 100%;
  height: 100%;
}
.carousel3dWrapper {
  max-width: 1200px;
  margin: auto;
}

.carousel3dHeader {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel3dTitle {
  font-family: "AdjaraBold";
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  margin-bottom: 4px;
  color: #fff;
  font-feature-settings: "case" on;
  text-transform: uppercase;
  position: relative;
}

.carousel3dInfo {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c0c5c8;
  font-size: 12px;
  font-family: "AdjaraRegular";
}

.carousel3dInfoBtn {
  width: 28px;
  height: 28px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: -7px;
  right: -109px;
  background-image: url("../img/welcomebonus/tooltip.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
}

/* @media (max-width: 940px) { */

.collection_carousel {
  position: relative;
  /* width: 320px; */
  /* height: 420px; */
  perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
}

.collection_card {
  position: absolute;
  width: 164px;
  flex: 0 0 164px;
  height: 174px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b52b2b, #5b0e0e);

  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 1px;
}

.collection_card:not(:last-child) {
  margin-right: 12px;
}

.collection_active {
  transform: translateX(124px) scale(1);
  z-index: 3;
}

.collection_prev {
  transform: translateX(48px) scale(0.85) rotateY(0deg);
  opacity: 0.7;
  z-index: 2;
}

.collection_next {
  transform: translateX(201px) scale(0.85) rotateY(0deg);
  opacity: 0.7;
  z-index: 2;
}

/* Pagination */
.collection_pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.collection_pagination-dot {
  position: relative;
  width: 40px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.collection_pagination-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0%;
  background: #fff;
}

.collection_pagination-dot.collection_active::after {
  animation: collection_fill 3s linear forwards;
}

@keyframes collection_fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Controls */
.collection_controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* } */
@media (min-width: 768px) {
  .collection_carousel {
    perspective: none;
    display: flex;
    justify-content: center;
  }

  .collection_card {
    position: static;
    transform: none !important;
    opacity: 1;
    box-shadow: none;
  }
}

.border-box {
  width: 220px;
  height: 140px;
}

.border-box rect {
  fill: none;
  stroke: #ff3b3b;
  stroke-width: 4;
  stroke-linecap: round;

  /* total perimeter ≈ 688 */
  stroke-dasharray: 120 568;
  stroke-dashoffset: 0;

  animation: borderMove 2.5s linear infinite;
}

@keyframes borderMove {
  to {
    stroke-dashoffset: -688;
  }
}

.collection_card1 {
  background: #ce0e2d4d;
}

.collection_card2 {
  background: #fe73734d;
}

.collection_card3 {
  background: #73fef34d;
}

.collection_card_inner {
  width: 100%;

  height: 100%;

  border-radius: 12px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;
}

.collection_card_inner a {
  text-decoration: none;
}

.collection_card:nth-child(1) .collection_card_inner {
  background: linear-gradient(180deg, #232527 0%, #0c0d0e 100%);
}
.collection_card:nth-child(2) .collection_card_inner {
  background: linear-gradient(180deg, #7c0103 0%, #0a0b0d 100%);
}
.collection_card:nth-child(3) .collection_card_inner {
  background: linear-gradient(180deg, #64e0c1 0%, #0a0b0d 100%);
}

.collection_card:nth-child(3) {
  background: #73fef34d;
}
.cl_img {
  width: 100px;
  height: 60px;
  border-radius: 12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.collection_card:nth-child(1) .cl_img {
  background-image: url("../img/welcomebonus/carimg3.webp");
}
.collection_card:nth-child(2) .cl_img {
  background-image: url("../img/geo.webp");
  background-size: cover;
  border: 4px solid #050608;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
html:lang(ka) .collection_card:nth-child(2) .cl_img {
  background-image: url("../img/geo-welcome.webp");
}
html:lang(en) .collection_card:nth-child(2) .cl_img {
  background-image: url("../img/eng-welcome.webp");
}
html:lang(ru) .collection_card:nth-child(2) .cl_img {
  background-image: url("../img/rus-welcome.webp");
}
html:lang(ka) .collection_card:nth-child(2) .cl_img.night-image {
  /* background-image: url("../img/geo-off.webp"); */
  background-image: url("../img/geo-welcome.webp");
}
html:lang(en) .collection_card:nth-child(2) .cl_img.night-image {
  /* background-image: url("../img/eng-off.webp"); */
  background-image: url("../img/eng-welcome.webp");
}
html:lang(ru) .collection_card:nth-child(2) .cl_img.night-image {
  /* background-image: url("../img/rus-off.webp"); */
  background-image: url("../img/rus-welcome.webp");
}

.collection_card:nth-child(3) .cl_img {
  background-image: url("../img/welcomebonus/carimg1.webp");
}

.cl_title {
  font-size: 15px;
  font-family: "AdjaraBold";
  color: #fff;
  font-feature-settings: "case" on;
  text-transform: uppercase;
  margin: 10px 7px 2px;
  text-align: center;
}

.cl_info {
  color: #8f9297;
  font-family: "AdjaraSemiBold";
  font-size: 12px;
  margin-bottom: 12px;
}

.cl_info.cl_info--hidden {
  visibility: hidden;
}

.cl_button {
  width: 77px;
  height: 33px;
  background: linear-gradient(270deg, #039855 0%, rgba(29, 33, 41, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-family: "AdjaraSemiBold";
  border-radius: 20px;
  /* margin-left: auto; */
  cursor: pointer;
}

.collection_card:nth-child(1) .cl_button {
  background: linear-gradient(
    270deg,
    rgba(118, 118, 118, 0.4) 0%,
    rgba(29, 33, 41, 0) 100%
  );
}
.collection_card:nth-child(2) .cl_button {
  background: linear-gradient(
    270deg,
    rgba(118, 118, 118, 0.4) 0%,
    rgba(29, 33, 41, 0) 100%
  );
}
.collection_card:nth-child(3) .cl_button {
  background: linear-gradient(
    270deg,
    rgba(118, 118, 118, 0.4) 0%,
    rgba(29, 33, 41, 0) 100%
  );
}

.tooltip {
  width: 283px;
  position: absolute;
  top: 42px;
  right: -9px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px 10px 10px;
  z-index: 11;
  display: none;
}

.tooltip::after {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid rgba(255, 255, 255, 0.9);
  position: absolute;
  top: -11px;
  right: 17px;
  content: "";
}
.tooltip div {
  margin-bottom: 10px;
  font-size: 12px;
  color: #000;
  font-family: "AdjaraBold";
  text-align: left;
}

.carousel3dInfoBtn:hover .tooltip {
  display: block;
}

.collection_pagination {
  display: none;
}

@media screen and (max-width: 940px) and (min-width: 320px) {
  .carousel3dSection {
    height: auto;
    margin-top: 4vw;
  }

  .collection_card {
    width: 37vw;
    height: 39vw;
  }

  .collection_carousel {
    height: 44vw;
  }

  .cl_img {
    width: 23vw;
    height: 14vw;
  }
  .cl_title {
    font-size: 3.5vw;
    margin: 2vw 0 0.5vw;
  }

  .cl_info {
    font-size: 2.5vw;
    margin-bottom: 2.5vw;
  }

  .cl_button {
    width: 18.4vw;
    height: 7.5vw;
    font-size: 2.93vw;
    padding-left: 1vw;
  }

  .carousel3dTitle {
    font-size: 3.3vw;
  }

  .carousel3dInfoBtn {
    width: 6.5vw;
    height: 6.5vw;
    top: -2vw;
    right: -22vw;
  }

  .carousel3dSection {
    background: linear-gradient(
      180deg,
      #0ec7f9 0%,
      rgba(92, 92, 92, 0.2) 51.57%
    );
    padding: 1px;
    border-radius: 12px;
    width: 85vw;
    margin: 5vw auto;
  }

  .carousel3dSection_inner {
    padding: 15px 10px;
    border-radius: 12px;
    background-image: linear-gradient(to bottom, #071a43, #0a0b0d);
  }

  .collection_prev {
    transform: translateX(1vw) scale(0.85) rotateY(0deg);
  }

  .collection_active {
    transform: translateX(19vw) scale(1);
  }

  .collection_next {
    transform: translateX(38vw) scale(0.85) rotateY(0deg);
  }
}
