/* Wrapper */
.custom-carousel-wrapper {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Title & subtitle */
.custom-carousel-title {
  margin: 10px 0 5px;
  font-size: 1.5rem;
  color: #2c2c54;
}

.custom-carousel-subtitle {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #555;
}

/* Carousel container */
.custom-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  height: 420px;
}

/* Card styling */
.custom-carousel-card {
  position: absolute;
  width: 260px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s, opacity 0.6s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  opacity: 0.6;
}

/* Center card - slightly larger */
.custom-active {
  width: 300px;
  height: 420px;
}

.custom-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Positions */
.custom-active {
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 5;
}

.custom-left-1 {
  transform: translateX(-280px) scale(0.9) rotateY(15deg);
  z-index: 4;
  opacity: 0.8;
}

.custom-left-2 {
  transform: translateX(-480px) scale(0.7) rotateY(25deg);
  z-index: 3;
  opacity: 0.4;
  filter: blur(2px);
}

.custom-right-1 {
  transform: translateX(280px) scale(0.9) rotateY(-15deg);
  z-index: 4;
  opacity: 0.8;
}

.custom-right-2 {
  transform: translateX(480px) scale(0.7) rotateY(-25deg);
  z-index: 3;
  opacity: 0.4;
  filter: blur(2px);
}

.custom-hidden-left {
  transform: translateX(-720px) scale(0.5);
  opacity: 0;
  z-index: 1;
  filter: blur(4px);
}

.custom-hidden-right {
  transform: translateX(720px) scale(0.5);
  opacity: 0;
  z-index: 1;
  filter: blur(4px);
}

/* Controls */
.custom-carousel-controls {
  margin-top: 20px;
}

.custom-carousel-btn {
  background: #f6f6f6;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin: 0 10px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.custom-carousel-btn:hover {
  background: #ff922b;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .custom-carousel-wrapper {
    max-width: 1200px;
  }
  
  .custom-left-1 {
    transform: translateX(-240px) scale(0.9) rotateY(15deg);
  }
  
  .custom-left-2 {
    transform: translateX(-400px) scale(0.7) rotateY(25deg);
  }
  
  .custom-right-1 {
    transform: translateX(240px) scale(0.9) rotateY(-15deg);
  }
  
  .custom-right-2 {
    transform: translateX(400px) scale(0.7) rotateY(-25deg);
  }
  
  .custom-hidden-left {
    transform: translateX(-600px) scale(0.5);
  }
  
  .custom-hidden-right {
    transform: translateX(600px) scale(0.5);
  }
}

@media (max-width: 992px) {
  .custom-carousel-wrapper {
    max-width: 1000px;
  }
  
  .custom-carousel {
    height: 380px;
  }
  
  .custom-carousel-card {
    width: 220px;
    height: 320px;
  }
  
  .custom-active {
    width: 260px;
    height: 360px;
  }
  
  .custom-left-1 {
    transform: translateX(-200px) scale(0.9) rotateY(15deg);
  }
  
  .custom-left-2 {
    transform: translateX(-320px) scale(0.7) rotateY(25deg);
  }
  
  .custom-right-1 {
    transform: translateX(200px) scale(0.9) rotateY(-15deg);
  }
  
  .custom-right-2 {
    transform: translateX(320px) scale(0.7) rotateY(-25deg);
  }
  
  .custom-hidden-left {
    transform: translateX(-480px) scale(0.5);
  }
  
  .custom-hidden-right {
    transform: translateX(480px) scale(0.5);
  }
}

@media (max-width: 768px) {
  .custom-carousel-wrapper {
    max-width: 90%;
  }
  
  .custom-carousel {
    height: 360px;
  }
  
  .custom-carousel-card {
    width: 200px;
    height: 280px;
  }
  
  .custom-active {
    width: 240px;
    height: 320px;
  }
  
  .custom-left-1 {
    transform: translateX(-180px) scale(0.9) rotateY(15deg);
  }
  
  .custom-left-2 {
    transform: translateX(-360px) scale(0.7) rotateY(25deg);
  }
  
  .custom-right-1 {
    transform: translateX(180px) scale(0.9) rotateY(-15deg);
  }
  
  .custom-right-2 {
    transform: translateX(360px) scale(0.7) rotateY(-25deg);
  }
  
  .custom-hidden-left {
    transform: translateX(-540px) scale(0.5);
  }
  
  .custom-hidden-right {
    transform: translateX(540px) scale(0.5);
  }
  
  .custom-carousel-title {
    font-size: 1.3rem;
  }
  
  .custom-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .custom-carousel-wrapper {
    width: 95%;
    max-width: 400px;
  }
  
  .custom-carousel {
    height: 320px;
  }
  
  .custom-carousel-card {
    width: 160px;
    height: 220px;
  }
  
  .custom-active {
    width: 200px;
    height: 260px;
  }
  
  .custom-left-1 {
    transform: translateX(-140px) scale(0.9) rotateY(15deg);
  }
  
  .custom-left-2 {
    transform: translateX(-280px) scale(0.7) rotateY(25deg);
  }
  
  .custom-right-1 {
    transform: translateX(140px) scale(0.9) rotateY(-15deg);
  }
  
  .custom-right-2 {
    transform: translateX(280px) scale(0.7) rotateY(-25deg);
  }
  
  .custom-hidden-left {
    transform: translateX(-420px) scale(0.5);
  }
  
  .custom-hidden-right {
    transform: translateX(420px) scale(0.5);
  }
  
  .custom-carousel-title {
    font-size: 1.2rem;
    margin: 8px 0 3px;
  }
  
  .custom-carousel-controls {
    margin-top: 15px;
  }
  
  .custom-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .custom-carousel-wrapper {
    width: 98%;
  }
  
  .custom-carousel {
    height: 280px;
  }
  
  .custom-carousel-card {
    width: 140px;
    height: 200px;
  }
  
  .custom-active {
    width: 180px;
    height: 240px;
  }
  
  .custom-left-1 {
    transform: translateX(-120px) scale(0.9) rotateY(15deg);
  }
  
  .custom-left-2 {
    transform: translateX(-240px) scale(0.7) rotateY(25deg);
  }
  
  .custom-right-1 {
    transform: translateX(120px) scale(0.9) rotateY(-15deg);
  }
  
  .custom-right-2 {
    transform: translateX(240px) scale(0.7) rotateY(-25deg);
  }
  
  .custom-hidden-left {
    transform: translateX(-360px) scale(0.5);
  }
  
  .custom-hidden-right {
    transform: translateX(360px) scale(0.5);
  }
}
