/* Showcase Carousel Styles */
.showcase-carousel-wrapper {
  width: 100%;
  margin: 40px auto 60px auto;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .showcase-carousel-wrapper {
    width: 95vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1400px) {
  .showcase-carousel-wrapper {
    width: 80vw;
    max-width: 1400px;
  }
}

.showcase-carousel-card {
  background: var(--card-bg, #ffffff);
  border: 4px solid var(--border-strong, #0f172a);
  box-shadow: 2px 2px 0px var(--border-strong, #0f172a);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.carousel-viewport {
  position: relative;
  height: 800px;
  width: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .carousel-viewport {
    height: 860px;
  }
}

@media (max-width: 768px) {
  .carousel-viewport {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .carousel-viewport {
    height: 340px;
  }
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal, 0.25s ease), visibility var(--transition-normal, 0.25s ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background-color: #ffffff;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast, 0.15s ease), box-shadow var(--transition-fast, 0.15s ease);
}

.carousel-link:hover img {
  transform: scale(1.015);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  border-color: var(--accent, #cc4a0a);
}

.carousel-slide.active img {
  transform: scale(1);
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--card-bg, #ffffff);
  border: 2px solid var(--border-strong, #0f172a);
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast, 0.15s ease);
  box-shadow: 2px 2px 0px var(--border-strong, #0f172a);
}

.carousel-btn:hover {
  background: var(--accent, #cc4a0a);
  color: #ffffff;
  border-color: var(--accent, #cc4a0a);
  transform: translateY(-50%) translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--border-strong, #0f172a);
}

.carousel-btn:active {
  transform: translateY(-50%) translate(0, 0);
  box-shadow: 1px 1px 0px var(--border-strong, #0f172a);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

@media (max-width: 600px) {
  .carousel-btn {
    width: 38px;
    height: 38px;
  }
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
}

/* Info Bar & Captions */
.carousel-info-bar {
  background: var(--card-bg, #ffffff);
  border-top: 3px solid var(--border-strong, #0f172a);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 5;
}

@media (max-width: 768px) {
  .carousel-info-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 15px;
  }
}

.carousel-caption-zone {
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-counter {
  font-family: 'Mozilla Headline', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--border-strong, #0f172a);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.carousel-caption {
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted, #475569);
  margin: 0;
  line-height: 1.4;
}

.carousel-caption strong {
  color: var(--text-main, #0f172a);
  font-weight: 700;
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .carousel-dots {
    align-self: center;
  }
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-strong, #0f172a);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast, 0.15s ease);
}

.carousel-dot.active {
  background: var(--accent, #cc4a0a);
  border-color: var(--accent, #cc4a0a);
  transform: scale(1.25);
}

.carousel-dot:hover:not(.active) {
  border-color: var(--accent, #cc4a0a);
  background: var(--accent-glow, rgba(204, 74, 10, 0.08));
}
