/* Fix vertical cropping of carousel section */
.carousel-section {
  /* Increased vertical space to prevent cards from being clipped vertically on desktop */
  min-height: 640px;
  padding-top: 80px;
  padding-bottom: 120px;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  overflow: visible;
}
.carousel-track {
  /* Provide more vertical room for positioned cards */
  min-height: 680px;
  padding-top: 32px;
  padding-bottom: 32px;
}
/* Carousel 3D for IA Solutions Cards */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 40px auto;
  /* Prevent visual overflow of 3D positioned cards */
  overflow: hidden;
  display: flex;
  align-items: center;
}
.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1200px;
}
.carousel-card {
  width: 320px;
  min-width: 260px;
  margin: 0 18px;
  background: #181c24;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(.4,2,.3,1), opacity 0.4s, z-index 0.4s;
  opacity: 0.5;
  transform: scale(0.85) translateX(0) rotateY(0deg);
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 32px 24px 24px 24px;
  position: absolute;
  left: 50%;
  /* lower base so the active card can lift without clipping */
  top: 56px;
  transform: translateX(-50%) scale(0.85) rotateY(0deg);
  pointer-events: auto;
 }

.carousel-card-img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  object-fit: contain;
}
.carousel-card.active {
  opacity: 1;
  transform: translateX(-50%) scale(1.08) translateY(-10px) rotateY(0deg);
  z-index: 4;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.carousel-card.left {
  transform: translateX(-120%) scale(0.92) rotateY(16deg);
  opacity: 0.85;
  z-index: 3;
}
.carousel-card.right {
  transform: translateX(20%) scale(0.92) rotateY(-16deg);
  opacity: 0.85;
  z-index: 3;
}
.carousel-card.behind-left {
  transform: translateX(-220%) scale(0.78) rotateY(24deg);
  opacity: 0.45;
  z-index: 2;
}
.carousel-card.behind-right {
  transform: translateX(120%) scale(0.78) rotateY(-24deg);
  opacity: 0.45;
  z-index: 2;
}
.carousel-nav {
  /* Restored orange/gold navigation controls and placed inside carousel bounds */
  background: linear-gradient(135deg,var(--gold),var(--gold2));
  color: #000;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display:grid;
  place-items:center;
  box-shadow:0 8px 20px rgba(212,175,55,0.25);
}
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }
@media (max-width: 700px) {
  .carousel-card {
    width: 300px;
    min-width: 240px;
    margin: 0 16px;
  }
  .carousel-section {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .carousel {
    margin: 24px auto 24px auto;
  }
  .carousel-nav.prev { left: 0; }
  .carousel-nav.next { right: 0; }
}
.carousel-section .mini.text-center.mb-40 {
  margin-bottom: 48px;
}
.carousel-card h3,
.carousel-card h2,
.carousel-card h1,
.carousel-card p,
.carousel-card ul,
.carousel-card li,
.carousel-card .btn {
  color: #fff !important;
}
.carousel-card .btn {
  background: #d4af37;
  color: #222 !important;
}
