.sec-card {
  overflow-x: clip;
}
.sec-card::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: -12rem;
  width: 73.6rem;
  height: 73.6rem;
  background-image: url(../images/card-gradient.png);
  background-size: cover;
  background-position: center;
}
.sec-card .title:has(.btn-title) {
  margin-bottom: 2rem;
}
.card-slider {
  position: relative;
  z-index: 1;
  /* cursor: -webkit-grab;
  cursor: grab; */
}
.card-slider .owl-stage-outer {
  overflow: initial;
}
.card-slider .owl-stage,
.card-slider .owl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.card-item {
  width: 44rem;
  display: block;
  /* cursor: -webkit-grab;
  cursor: grab; */
}
.card-item-link {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  /* z-index: 1;
  cursor: -webkit-grab; */
}
.card-img {
  height: 29.3rem;
  display: flex;
  align-items: flex-end;
}
.card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-text .h4,
.card-text p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3; 
  -webkit-box-orient: vertical;
}
.card-item:has(.card-item-link):hover .h4 {
  text-decoration: underline;
}
.sec-card-longer-text .card-text .h4 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.sec-card-longer-text .card-text p {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.card-text p {
  margin: 0;
  font-weight: 300;
}
.card-link {
  margin-top: 2.4rem;
}
.drag-indicator {
  width: 8rem;
  height: 8rem;
  /* display: flex; */
  display: none !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.color-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-black);
  border-radius: 50%;
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}
.drag-indicator.visible .color-circle {
  -webkit-transform: scale(1);
  transform: scale(1);
}
.drag-indicator.is-point-down .color-circle {
  transform: scale(0.2);
}
.inner-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: all 0.4s;
}
.drag-indicator.is-point-down .inner-layer {
  gap: 4rem;
}
.drag-indicator.is-point-down .inner-layer img{
  -webkit-filter: brightness(0) invert(8%) sepia(67%) saturate(1949%) hue-rotate(235deg) brightness(95%) contrast(97%);
  filter: brightness(0) invert(8%) sepia(67%) saturate(1949%) hue-rotate(235deg) brightness(95%) contrast(97%);
}
.card-slider .owl-nav .btn-owl {
  position: absolute;
  top: 20%;
  left: -2.4rem;
  background: var(--white);
  z-index: 2;
}
.card-slider .owl-nav .btn-owl.btn-next {
  left: auto !important;
  right: -2.4rem;
}
.card-slider .owl-nav .btn-owl.disabled {
  /* Keep the control over the card so repeated clicks cannot open its link. */
  pointer-events: auto;
  cursor: default;
  opacity: 0.4;
  background: var(--white);
}
.card-slider .owl-nav .btn-owl:hover {
  background: var(--dark-blue);
}
@media(min-width:1360px) and (max-width:1459.98px){
  .sec-card::after {
    bottom: -10rem;
    width: 52.1rem;
    height: 52.1rem;
  }
  .card-img {
    height: 25.4rem;
  }
  .card-item {
    width: 38rem;
  }
  .card-link {
    margin-top: 2rem;
  }
  .card-slider .owl-nav .btn-owl {
    top: 20%;
    left: -2rem;
  }
}
@media(min-width:1200px) and (max-width:1359.98px){
  .sec-card::after {
    bottom: -10rem;
    width: 46rem;
    height: 46rem;
  }
  .card-item {
    width: 38rem;
  }
  .card-img {
    height: 25.4rem;
  }
  .card-link {
    margin-top: 2rem;
  }
  .card-slider .owl-nav .btn-owl {
    top: 20%;
    left: -2rem;
  }
}
@media(min-width:992px) and (max-width:1199.98px){
  .sec-card::after {
    bottom: -8rem;
    width: 38rem;
    height: 38rem;
  }
  .card-item {
    width: 36rem;
  }
  .card-img {
    height: 24rem;
  }
  .card-link {
    margin-top: 2rem;
  }
  .card-slider .owl-nav .btn-owl {
    top: 19%;
    left: -2rem;
  }
}
@media(min-width:768px) and (max-width:991.98px){
  .sec-card::after {
    bottom: -6rem;
    width: 25.6rem;
    height: 25.6rem;
  }
  .card-item {
    width: 32rem;
  }
  .card-img {
    height: 21.4rem;
  }
  .card-text .h4 br {
    display: none;
  }
  .card-link {
    margin-top: 2rem;
  }
  .card-slider .owl-nav .btn-owl {
    top: 18%;
  }
}
@media(max-width:767.98px){
  .sec-card::after {
    content: none;
  }
  .sec-card .title {
    text-align: center;
  }
  .card-slider {
    margin-top: 2.4rem;
  }
  .card-item {
    width: 30rem;
  }
  .card-img {
    height: initial;
  }
  .card-img img {
    max-height: initial;
    height: 19.3rem;
  }
  .card-text .h4 br {
    display: none;
  }
  .card-link {
    margin-top: 1.6rem;
  }
  .drag-indicator,
  .card-slider .owl-nav {
    display: none !important;
  }
}
