/* Wrapper for the hero carousel */
.pf-hero-carousel {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: transparent;
}

/* Container uses perspective like the original */
.carousel-container {
  width: 100%;
  max-width: 1600px;
  height: 650px;
  perspective: 1200px;
  position: relative;
  padding-top: 60px;
}

/* Inner carousel (3D) */
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

/* Each card in 3D space */
.carousel-item {
  position: absolute;
  width: 400px;
  height: 500px;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  transform-origin: center center;
}

/* Card itself */
.carousel-item .card {
  width: 100%;
  height: 100%;
  background: #2A2A2A;                     /* NOTE: requested color */
  border: 1px solid rgba(239, 239, 235, 0.6);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Optional scanline */
.carousel-item .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0%   { transform: translateY(0); }
  100% { transform: translateY(500px); }
}

/* Large faint number in corner */
.card-number {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Image block */
.card-image {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.2);
  transition: all 0.5s ease;
}

.carousel-item:hover .card-image img {
  filter: grayscale(0%) contrast(1.25);
  transform: scale(1.08);
}

/* Title + description – both white */
.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #FFFFFF;              /* title white */
}

.card-description {
  color: #FFFFFF;              /* description white */
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Carousel controls (arrows) */
.carousel-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 100;
}

.carousel-btn {
  width: 44px;                       /* smaller buttons */
  height: 44px;
  background: rgba(42, 42, 42, 0.85);/* #2A2A2A with opacity */
  border: 1px solid rgba(239, 239, 235, 0.6);
  border-radius: 50%;
  color: #FFFFFF;                    /* white icon */
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
  background: rgba(42, 42, 42, 1);
  border-color: #EFEFEB;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* No indicators / pagination – removed completely */

/* Responsive tweaks */
@media (max-width: 1024px) {
  .carousel-item {
    width: 350px;
    height: 480px;
  }

  .carousel-controls {
    bottom: -50px;
  }

  .card-image {
    height: 170px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    width: 300px;
    height: 460px;
  }

  .carousel-item .card {
    padding: 20px;
  }

  .card-image {
    height: 150px;
    margin-bottom: 15px;
  }

  .card-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .card-description {
    font-size: 13px;
  }

  .card-number {
    font-size: 50px;
    top: 15px;
    right: 20px;
  }

  .carousel-controls {
    bottom: -50px;
    gap: 12px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
