.testimonial_slider {
  --gap: 20px;
  --speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --closed: 80px;
  --open: 840px;
  --accent: #ff6b35;
}
.controls button:hover, .controls button:active, .controls button:focus{
    background: transparent;
}
.head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.controls button{
    padding: 0 10px;
}
.head h2 {
  font: 400 1.5rem/1.2 Inter, sans-serif;
  color: #fff;
}
.controls button img {
    width: 40px;
}
@media (min-width: 1024px) {
  .head h2 {
    font-size: 2.25rem;
  }
}
.nav-btn {
  border: none;
}
.slider {
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
}
.controls {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
.track {
  display: flex;
  gap: var(--gap);
  align-items: center;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 50px;
}
.track::-webkit-scrollbar {
  display: none;
}
.project-card[active] .project-card__title {
    display: none;
}
.project-card {
    position: relative;
    flex: 0 0 var(--closed);
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: flex-basis var(--speed), transform var(--speed);
    background-image: url(/wp-content/themes/hello-theme-child-master/assets/images/bg-img.png);
    background-size: cover;
    background-position: top;
}
.project-card[active] {
  flex-basis: var(--open);
  height: 500px;
}
.project-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  transition: filter 0.3s, transform var(--speed);
  display: none;
}
.project-card[active] .project-card__bg {
    display: block;
}
/*.project-card:hover .project-card__bg {
  filter: brightness(0.9) saturate(100%);
  transform: scale(1.06);
}*/
.project-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  z-index: 2;
}
.project-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* .project-card:not(.project-card[active]) {
  transform: scale(0.8);
} */
.project-card[active] +.project-card, .project-card:has(+ .project-card[active]){
    height: 400px
}
.gif-img{
  width: 80px;
  height: 80px;
}
@media (max-width: 767px) {
  :root {
    --closed: 4rem;
    --open: 22rem;
  }
  .head {
    padding: 50px 20px 30px;
  }
  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  .project-card {
    height: 20rem;
  }
  .project-card__title {
    font-size: 1.1rem;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    padding-inline: 0.3rem;
  }
  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
}
@media (max-width: 1023px) {
  :root {
    --closed: 100%;
    --open: 100%;
    --gap: 0.8rem;
  }

  .head {
    padding: 30px 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .slider {
    padding: 0 15px;
  }

  .track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    gap: 0.8rem;
    padding-bottom: 20px;
  }

  .project-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  .project-card[active] {
    min-height: 300px;
    transform: none;
  }

  .project-card__content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }

  .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    margin-right: auto;
  }
  .project-card[active] .project-card__content {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .project-card[active] .project-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }
  .controls {
    width: 100%;
    justify-content: space-between;
    padding: 0 15px 20px;
  }
  .nav-btn {
    position: static;
    transform: none;
  }
}
.smart-block{
  cursor: pointer;
}
.smart-block::before {
  content: ''!important; 
  position: absolute!important; 
  left: -10px!important; 
  top: 0!important;
  bottom: 0!important;
  width: 6px!important; 
  background-color: #FF7000!important; 
  border-radius: 6px!important;
  border: none !important;
}
.smart-block.active {
  background-color: #9AB2E4 !important;
  border-color:#FFFFFF; 
}
@media (max-width: 1023px) {
    article.project-card:not(.project-card[active]){
        display: none;
    }
	article.project-card {
		max-height: 210px !important;
		min-height: 210px !important;
	}
	.controls button img {
		width: 30px;
		height: 30px;
	}
	.controls {
		width: 100%;
		justify-content: center;
		padding: 0;
		gap: 20px;
	}
	.head {
		padding: 0;
		align-items: center;
	}
	.controls button, .project-card[active] .project-card__content, .slider{
		padding: 0;
		gap: 0;
	}	
	.project-card {
		background-image: none;
		background-color: transparent;
	}
}
@media (min-width: 767px) and (max-width: 1023px) {
	article.project-card {
        max-height: 410px !important;
        min-height: 410px !important;
    }
	.controls button img {
        width: 44px;
        height: 44px;
    }
}



@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 800px) {
	.smart-column {
		position: relative !important;
		height: 200px !important;
		overflow: hidden !important;
	}
	.smart-block {
		position: absolute !important;
		max-width: 95%;
		z-index: 0;
		opacity: 0;
		transition: opacity 1s ease;
	}
	.smart-block.active {
		z-index: 1;
		opacity: 1;
		animation: slideInUp 1.2s ease forwards;
		animation-iteration-count: 1;
	}
} 
@media (max-width: 600px) {
	.smart-block {
		max-width: 350px;
	}
}

.smart-section > .e-con-inner, .smart-section .pin-spacer > .e-con-inner{
    background-image: url(https://media.lendingkart.com/wp-content/uploads/2025/10/Frame-1618874771.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;  
}
.smart-block.active {
    z-index: 9;
  }
.smart-section.animating{
    z-index: 99;
}