.cards {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.card_new {
  flex: 0 0 4rem;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  transition: flex 0.5s ease-in-out;
  background-color: #eee;
}
.card__name {
  overflow-y: scroll !important;
}

.card__name img {
  max-width: 60%;
}

.card__name .conttext2 {
  font-size: 16px;
}
.card__name-1 {
  position: absolute;
  bottom: 30px;
  transform: rotate(-90deg);
  left: 0;
  right: 0;
  color: #fff;
}

.card__name1,
.card__name2,
.card__name3,
.card__name4 {
  width: 700px;
  left: -320px;
  bottom: 350px;
  font-size: 20px;
}

.card__name .conttext1 {
  font-size: 30px;
  margin-top: 50px;
}

.card__name {
  display: none;
}

.card_new[active] {
  flex: 1;
  background: none !important;
   overflow-y: scroll !important;
}

.card__image {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  filter: brightness(0.675) saturate(75%);
  transition: filter 0.3s ease-in-out;
}

.card_new[active] .card__image {
  display: block;
}
.card_new[active] .card__name {
  display: block;
}

.card_new:not([active]) .card__image {
  display: none;
}

.card_new:hover .card__image {
  filter: brightness(0.875) saturate(100%);
}

.card__infos {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card__name {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left bottom;
  transition: transform 0.5s ease-in-out;
}
.card_new[active] .card__name {
  transform: rotate(0deg) translateX(0);
  overflow-y: scroll !important;
}

.card__author {
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.3s ease,
    transform 0.5s ease-in-out;
}

.card_new[active] .card__author {
  opacity: 1;
  transform: translateY(0);
  overflow-y: scroll !important;
}

/* Different background colors for each card */
.card_new:nth-child(1) {
  background-color: #ff6b6b;
  border-radius: 0px !important;
  margin-right: 20px;
   
}

.card_new:nth-child(2) {
  background-color: #6bc5ff;
  border-radius: 0px !important;
  margin-right: 20px;
    ;
}

.card_new:nth-child(3) {
  background-color: #6bff95;
  border-radius: 0px !important;
  margin-right: 20px;
    
}

.card_new:nth-child(4) {
  background-color: #f3c623;
  border-radius: 0px !important;
}

.conttext1_1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swiper-notification {
  display: none !important;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
}
.swiper-button-prev,
.swiper-button-next {
  color: #333; /* button color */
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cards {
    flex-direction: column;
  }

  .card_new {
    width: 100%;
    height: 4rem;
  }

  .card_new[active] {
    height: 100vh;
  }
}

.item {
  width: 100%;
  height: 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
  }
}
.owl-nav {
  position: absolute;
  top: -100px;
  right: 0;

  button {
    background: #fff !important;
    width: 45px;
    height: 45px;
    font-size: 25px !important;
    box-shadow: 0px 0px 17px #00000005;
    border-radius: 50%;

    &:nth-of-type(1) {
      margin-right: 13px;
    }
  }
}

@media screen and (min-width: 993px) and (max-width: 1399.9px) {
  .cards {
    height: 690px;
  }

  .card__name1,
  .card__name2,
  .card__name3,
  .card__name4 {
    width: 690px;
    left: -315px;
    bottom: 350px;
    font-size: 20px;
  }
}

@media screen and (max-width: 1099.9px) and (min-width: 993px) {
  .conttext1 {
    font-size: 16px;
  }

  .conttext3 {
    font-size: 19px;
    font-weight: 600;
    width: 100%;
  }

  .conttext2 {
    font-size: 14px;
  }

  .conttext4 {
    font-size: 12px;
  }
}

@media screen and (max-width: 992.9px) and (min-width: 768px) {
  .cards {
    height: 70vh;
  }

  .card__name-1 {
    position: absolute;
    bottom: 30px;
    transform: rotate(0deg);
    left: 0;
    right: 0;
    color: #fff;
  }

  .card__name1,
  .card__name2,
  .card__name3,
  .card__name4 {
    width: 100%;
    left: 10px;
    bottom: 10px;
    font-size: 20px;
  }
  .conttext {
    margin-top: 20px;
    font-size: 21px;
  }

  .conttext1 {
    font-size: 16px;
  }

  .conttext3 {
    font-size: 19px;
    font-weight: 600;
    width: 100%;
  }

  .conttext2 {
    font-size: 14px;
  }

  .conttext4 {
    font-size: 12px;
  }
}

@media screen and (max-width: 767.9px) {
  .card__name-1 {
    position: absolute;
    bottom: 30px;
    transform: rotate(0deg);
    left: 0;
    right: 0;
    color: #fff;
  }

  .card__name1,
  .card__name2,
  .card__name3,
  .card__name4 {
    width: 100%;
    left: 10px;
    bottom: 10px;
    font-size: 18px;
  }
  #col {
    margin-bottom: 50px;
  }

  #tab,
  #tab1,
  #tab2,
  #tab3,
  #tab4 {
    display: none;
  }

  #mbl1,
  #mbl2,
  #mbl3,
  #mbl4 {
    display: block;
  }

  .conttext {
    font-size: 18px;
  }

  .conttext2,
  .conttext4 {
    font-size: 14px !important;
  }

  .conttext3 {
    font-size: 18px !important;
  }
}
