/* Home Hero Carousel */
.carousel {
  width: 100vw;
  /* height: 100vh; */
  height: auto;
  aspect-ratio: 1440/750;
  /* margin-top: -50px; */
  overflow: hidden;
  position: relative;
}

.carousel .list .item {
  /* width: 180px;
      height: 250px; */
  width: 304px;
  height: 428px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 70%;
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); */
  background-position: 50% 50%;
  background-size: cover;
  z-index: 100;
  transition: all 400ms ease;
}

.carousel .list .item .location {
  position: absolute;
  inset: 25px;
  top: unset;

  color: var(--White, #fff);
  leading-trim: both;
  text-edge: cap;

  /* Heading 4 */
  font-family: Satoshi;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 120% */
}

.carousel .list .item:nth-child(1) .location,
.carousel .list .item:nth-child(2) .location {
  display: none !important;
}

.carousel .list .item::before {
  content: "";
  position: absolute;
  aspect-ratio: 304.052/187;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: linear-gradient(0deg, #000 -18.45%, rgba(0, 0, 0, 0) 96.79%);
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.carousel .list .item:nth-child(1)::before,
.carousel .list .item:nth-child(2)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  aspect-ratio: 1440/564.085;
  background: linear-gradient(0deg, #000 -18.45%, rgba(0, 0, 0, 0) 96.79%);
  width: 100%;
  height: auto;
}

.carousel .list .item:nth-child(3) {
  left: 67%;
}

.carousel .list .item:nth-child(4) {
  left: calc(67% + 324px);
}

.carousel .list .item:nth-child(5) {
  left: calc(67% + 648px);
}

.carousel .list .item:nth-child(6) {
  left: calc(67% + 972px);
}

.carousel .list .item:nth-child(n + 7) {
  left: calc(67% + 1296px);
  opacity: 0;
}

.list .item .content {
  position: absolute;
  /* top: 50%; */
  /* left: 100px; */
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin: 0 auto;
  max-width: 1520px;
  text-align: left;
  color: #fff;
  display: none;

  padding: 0 40px;
}

.list .item:nth-child(2) .content {
  display: block;
}

.content .title {
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;

  max-width: 670px;
  color: #fff;
  font-family: Satoshi;
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 73px;
}

.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  /* font-size: 18px; */
  /* margin-left: 5px; */

  max-width: 444px;
  color: #d1d1d1;
  font-family: Satoshi;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;

  opacity: 0;
  animation: animate 1s ease-in-out 0.9s 1 forwards;
}

.content .btn {
  margin-left: 5px;

  opacity: 0;
  animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button {
  /* padding: 10px 20px; */
  border: none;
  cursor: pointer;
  /* font-size: 16px; */
  /* border: 2px solid #fff; */

  color: #fff;

  background-color: #00000000;
  font-family: "Satoshi", Sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 18px;
  border-radius: 50px 50px 50px 50px;
  padding: 25px 50px;

  background: linear-gradient(
    91deg,
    rgba(255, 255, 255, 0.1) -0.12%,
    rgba(255, 255, 255, 0.1) 32.65%,
    rgba(255, 255, 255, 0.1) 68.76%,
    rgba(255, 255, 255, 0.1) 106.53%
  );

  /* from sufaid's design */
  border-radius: 50px;
  background: linear-gradient(
    91deg,
    rgba(255, 255, 255, 0.1) -0.12%,
    rgba(255, 255, 255, 0.1) 32.65%,
    rgba(255, 255, 255, 0.1) 68.76%,
    rgba(255, 255, 255, 0.1) 106.53%
  );
  backdrop-filter: blur(15px);
}

.content .btn button:nth-child(1) {
  margin-right: 15px;
}

.content .btn button:nth-child(2) {
  /* background: transparent;
      color: #14ff72cb; */
  border: 2px solid #fff;
  transition: 0.3s;
}

.content .btn button:hover {
  background-color: #ffffff;
  color: #000;
  border-color: #fff;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }

  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

/* Carousel */

/* next prev arrows */

.arrows {
  position: absolute;
  top: 50%;
  translate: translateY(-50%);
  /* right: 52%; */
  left: calc(67% - 20px);
  z-index: 100;
  width: 344px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: #222;
  border: none;
  outline: none;
  font-size: 20px;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: all 400ms ease;
}

.arrows button:focus,
.arrows button:active,
.arrows button:hover {
  background: #000 !important;
  color: #fff !important;
}

.arrows button:hover {
  background: #fff;
  color: #000;
}

/* time running */
.carousel .timeRunning {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background-color: #14ff72cb;
  left: 0;
  top: 0;
  animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.carousel-mobile {
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .carousel {
    display: none;
  }

  .carousel-mobile {
    display: block;
    width: 100vw;
    height: auto;
    overflow: hidden;
    position: relative;
    aspect-ratio: 375/389;
    max-height: 389px;
  }
}

/* css for mobile slider */
.swiper-slide.mobile-carousel-item {
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 67px 16px;
  gap: 32px;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    aspect-ratio: 375/307;
    width: 100%;
    height: auto;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, #000 -18.45%, rgba(0, 0, 0, 0) 96.79%);
    z-index: 1;
  }

  .title {
    color: #fff;
    font-family: Satoshi;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    width: 339px;
    z-index: 2;
  }

  .btn {
    z-index: 2;
  }

  .btn button {
    /* padding: 10px 20px; */
    border: none;
    cursor: pointer;
    /* font-size: 16px; */
    /* border: 2px solid #fff; */

    color: #fff;
    leading-trim: both;
    text-edge: cap;
    font-family: Satoshi;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    padding: 14px 25px;
    border-radius: 50px;
    z-index: 2;

    border-radius: 50px;
    background: linear-gradient(
      91deg,
      rgba(255, 255, 255, 0.1) -0.12%,
      rgba(255, 255, 255, 0.1) 32.65%,
      rgba(255, 255, 255, 0.1) 68.76%,
      rgba(255, 255, 255, 0.1) 106.53%
    );
    backdrop-filter: blur(15px);
  }

  .btn button:nth-child(1) {
    margin-right: 10px;
  }

  .btn button:nth-child(2) {
    /* background: transparent;
        color: #14ff72cb; */
    border: 1px solid #fff;
    transition: 0.3s;
  }

  .btn button:hover {
    background-color: #ffffff;
    color: #000;
    border-color: #fff;
  }
}

.mobile-carousel-pagination {
  position: absolute;
  bottom: 20px !important;
  left: 50% !important;
  z-index: 3 !important;
  transform: translateX(-50%) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: #d9d9d9 !important;
    border-radius: 50% !important;
    margin: 0 !important;
    z-index: 3 !important;
    opacity: 1 !important;
  }

  .swiper-pagination-bullet-active {
    width: 24px !important;
    height: 8px !important;
    border-radius: 8px !important;
    background: #104ba0 !important;
  }
}

.carousel .list .item:nth-child(n + 3) {
  cursor: pointer;
  /*   transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.carousel .list .item:nth-child(n + 3):hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
