/* Carousel for Premium Features */
.carousel-wrap {
  position: relative;
  padding: 2.5rem;
}

.carousel-inner {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

.carousel-card {
  min-width: 400px;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #0d6efd;
  opacity: 0.8;
  transition: height 0.3s ease;
  z-index: 0;
}

.carousel-card:hover::before {
  height: 70%;
}

.carousel-card .card-graphic {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.carousel-card .card-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.carousel-card h4 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  color: #202124;
  font-weight: 500;
  font-size: 20px;
  transition: color 0.3s ease;
}

.carousel-card p {
  color: #5f6368;
  line-height: 1.5;
  margin: 0;
  font-size: 16px;
  transition: color 0.3s ease;
}

.carousel-card:hover h4,
.carousel-card:hover p {
  color: #ffffff;
}

/* Blue active background block (appears at bottom in example) */
.carousel-card .card-footer {
  background: transparent;
  padding: 1rem 1rem 0 1rem;
  border-radius: 12px;
}

.carousel-card.active {
  box-shadow: 0 18px 40px rgba(26,115,232,0.12);
}

/* Blue highlighted background behind card content when hovered/active */
.carousel-card.active .card-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: #0d6efd;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 0;
  opacity: 0.06;
}

.carousel-card .card-content {
  position: relative;
  z-index: 2;
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
}

.carousel-arrow.left { left: -26px; }
.carousel-arrow.right { right: -26px; }

.carousel-arrow svg { width: 20px; height: 20px; color: #0d6efd; }

/* Responsive */
@media (max-width: 991px) {
  .carousel-card { min-width: 300px; max-width: 300px; }
}

/* Mobile scrollability */
@media (max-width: 768px) {
  .carousel-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  .carousel-track {
    flex-wrap: nowrap;
  }
}
