:root {
  --left-position: 55%;
  --transition-time: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* carousel */
.cfcarousel {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.cfcarousel .cflist .cfitem {
  width: 180px;
  height: 250px;
  position: absolute;
  bottom: 150px;
  left: calc(var(--left-position) + 3%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  background-position: center;
  background-size: cover;
  z-index: 100;
  transform: translate(0, 0px);
  transition: all var(--transition-time);
}

.cfcarousel .cflist .cfitem::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(33, 33, 33, 0.5);
  z-index: 1;
}

.cfcarousel .cflist .cfitem:nth-child(1),
.cfcarousel .cflist .cfitem:nth-child(2) {
  bottom: 0px;
  left: 0;
  border-radius: 0;
  transform: translate(0, 0px);
  width: 100%;
  height: 100%;
}

.cfcarousel .cflist .cfitem:nth-child(3) {
  left: var(--left-position);
}

.cfcarousel .cflist .cfitem:nth-child(4) {
  transition-delay: 0.1s;
  left: calc(var(--left-position) + 200px);
}

.cfcarousel .cflist .cfitem:nth-child(5) {
  transition-delay: 0.2s;
  left: calc(var(--left-position) + 400px);
}

.cfcarousel .cflist .cfitem:nth-child(6) {
  transition-delay: 0.3s;
  left: calc(var(--left-position) + 600px);
}

.cfcarousel .cflist .cfitem:nth-child(n + 7) {
  transition-delay: 0.4s;
  left: calc(var(--left-position) + 800px);
}

.cflist .cfitem .cfcontent {
  position: absolute;
  text-align: left;
  color: #fff;
  z-index: 3;
  left: 0;
  top: 100%;
  transform: translateY(-100%);
  width: 100%;
  padding: 10px;
  transition: all var(--transition-time);
}

.cfcontent .cftitle::before {
  content: "";
  display: block;
  height: 1px;
  width: 20px;
  background-color: #fff;
  margin-bottom: 10px;
}

.cfcontent .cftitle {
  font-size: 12px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  transition: all var(--transition-time);
  position: relative;
}

.cfcontent .cftitle::after {
  content: attr(data-item);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  position: absolute;
  top: -20px;
  left: 0px;
  z-index: 2;
  font-weight: 400;
}

.cfcontent .cfname {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  transition: all var(--transition-time);
  margin-bottom: 10px;
  color: #d36e10;
}

.cfcontent .cfdes {
  font-size: 16px;
  font-weight: 400;
  transition: all var(--transition-time);
  opacity: 0;
  display: none;
}

.cflist .cfitem:nth-child(1) .cfcontent,
.cflist .cfitem:nth-child(2) .cfcontent {
  transform: translateY(-50%);
  left: 100px;
  width: 600px;
  top: 50%;
  padding: 0;
}

.cflist .cfitem:nth-child(1) .cfcontent .cftitle::before,
.cflist .cfitem:nth-child(2) .cfcontent .cftitle::before {
  width: 50px;
  height: 3px;
  margin-bottom: 20px;
}

.cflist .cfitem:nth-child(1) .cfcontent .cftitle::after,
.cflist .cfitem:nth-child(2) .cfcontent .cftitle::after {
  font-size: 20px;
  top: -40px;
  left: 15px;
}

.cflist .cfitem:nth-child(1) .cfcontent .cftitle,
.cflist .cfitem:nth-child(2) .cfcontent .cftitle {
  font-size: 30px;
  margin-bottom: 20px;
}

.cflist .cfitem:nth-child(1) .cfcontent .cfname,
.cflist .cfitem:nth-child(2) .cfcontent .cfname {
  font-size: 20px;
  margin-bottom: 20px;
}

.cflist .cfitem:nth-child(1) .cfcontent .cfdes,
.cflist .cfitem:nth-child(2) .cfcontent .cfdes {
  font-size: 16px;
  opacity: 1;
  display: block;
  width: 400px;
}

@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 */

.cfarrows {
  position: absolute;
  bottom: 50px;
  left: var(--left-position);
  width: calc(100% - var(--left-position) - 2%);
  z-index: 100;
  display: flex;
  gap: 5%;
  align-items: center;
}

.cfarrows button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 2px solid rgb(255, 255, 255);
  color: rgb(255, 255, 255);
  background-color: transparent;
  outline: none;
  font-size: 25px;
  font-weight: bold;
  transition: all var(--transition-time);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.cfarrows button:hover {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.cfarrows button:active {
  transform: scale(0.95);
}

.cfslide-number {
  font-size: 25px;
  color: #ffffff;
  font-weight: 400;
  margin-left: auto;
  letter-spacing: 5px;
  opacity: 0;
  animation: animate 0.5s ease-in-out 0.3s 1 forwards;
}

.cfprogress-bar-container {
  width: 60%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
}

.cfprogress-bar {
  height: 100%;
  width: 100%;
  background-color: #d36e10;
  transition: all var(--transition-time);
}

/* time running */
.cfcarousel .cftimeRunning {
  position: absolute;
  z-index: 100;
  width: 0%;
  height: 4px;
  background-color: #ffffff;
  animation: runningTime 7s linear 1 forwards;
}

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