/* Hero Slideshow Styles - Simplified */
.hero-slideshow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  max-height: 20%;
  z-index: 5;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.5),
    transparent
  );
  overflow: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px;
}

/* Fullsize slideshow that replaces the hero image */
.fullsize-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  background: none;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  opacity: 0;
  animation: fadeInRight 1s ease 0.5s forwards;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out, opacity 0.8s ease, visibility 0.8s;
  z-index: 1;
  will-change: transform, opacity, visibility;
  top: 0;
  left: 0;
}

.slideshow-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  z-index: 2;
}

.slideshow-slide.animate-in {
  animation: fadeInZoom 1.2s ease-out forwards;
}

@keyframes fadeInZoom {
  0% {
    opacity: 0.5;
    transform: scale(1.05) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  animation: zoomInOut 15s infinite alternate;
  filter: brightness(0.85);
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.5),
    transparent
  );
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Enhanced styles for fullsize slideshow content */
.fullsize-slideshow .slide-content {
  padding: 20px;
  bottom: 20px;
  left: 20px;
  width: calc(100% - 40px);
  border-radius: 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3)
  );
  text-align: left;
  align-items: flex-start;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fullsize-slideshow .slide-icon {
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.fullsize-slideshow .slide-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-icon {
  font-size: 1.5rem;
  margin-bottom: 3px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.slideshow-controls {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.slideshow-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-indicator.active {
  width: 18px;
  border-radius: 3px;
  background-color: var(--primary-color);
}

/* Enhanced indicator styles for fullsize slideshow */
.fullsize-slideshow .slideshow-controls {
  bottom: 15px;
  gap: 8px;
}

.fullsize-slideshow .slideshow-indicator {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fullsize-slideshow .slideshow-indicator.active {
  width: 24px;
  background-color: var(--accent-color);
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slideshow-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-arrow.prev {
  left: 15px;
}

.slideshow-arrow.next {
  right: 15px;
}

/* Specific styles for fullsize slideshow arrows */
.fullsize-slideshow .slideshow-arrow {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  background: rgba(var(--primary-color-rgb), 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.fullsize-slideshow .slideshow-arrow:hover {
  background: rgba(var(--primary-color-rgb), 0.6);
}

/* Enhanced arrow navigation for fullsize slideshow */
.fullsize-slideshow .slideshow-arrow {
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  transition: all 0.3s ease;
  background-color: rgba(var(--primary-color-rgb), 0.6);
  color: white;
}

.fullsize-slideshow:hover .slideshow-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.fullsize-slideshow .slideshow-arrow:hover {
  background-color: rgba(var(--accent-color-rgb), 0.8);
/* Fullsize slideshow slide styles */
.fullsize-slideshow .slideshow-slide {
  height: 500px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 1s ease-in-out, opacity 0.6s ease;
}

.fullsize-slideshow .slideshow-slide.active {
  z-index: 3;
}

.fullsize-slideshow .slideshow-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
  border-radius: 20px;
} );
  z-index: 1;
  border-radius: 20px;
}

.fullsize-slideshow .slide-image {
  border-radius: 20px;
  height: 100%;
  object-position: center;
  transition: transform 0.8s ease;
}

.fullsize-slideshow .slideshow-slide:hover .slide-image {
  transform: scale(1.05);
}

.fullsize-slideshow .slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  animation: zoomInOut 15s infinite alternate;
}

.fullsize-slideshow .slide-content {
  bottom: 30px;
  padding: 15px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.5),
    transparent
  );
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 2;
}

.fullsize-slideshow .slide-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.fullsize-slideshow .slide-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.fullsize-slideshow .slideshow-controls {
  bottom: 15px;
  z-index: 3;
}

.fullsize-slideshow .slideshow-arrow {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  z-index: 3;
}

.fullsize-slideshow .slideshow-arrow.prev {
  left: 20px;
}

.fullsize-slideshow .slideshow-arrow.next {
  right: 20px;
}

/* Animation for fullsize slideshow */
@keyframes heroSlideIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1);
  }
}

.fullsize-slideshow .slideshow-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity, transform;
}

.fullsize-slideshow .slideshow-slide.active {
  animation: heroSlideIn 1s ease forwards;
}

.fullsize-slideshow .slideshow-slide.animate-in {
  animation: heroSlideIn 1s ease forwards;
}

/* Ensure slideshow container fills the hero image container */
.hero-image-container .hero-slideshow,
.hero-image-container .slideshow-container {
  width: 100%;
  height: 500px; /* Match the height of the original hero-image */
  border-radius: 20px;
  overflow: hidden;
}

/* Hero content animation class */
.hero-content-animated {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation to match the original hero image effect */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateX(30px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateX(0);
  }
}

/* Fix potential overflow issues with the hero image container */
.hero-image-container {
  overflow: visible !important;
}

/* Fix for slideshow transitions */
.fullsize-slideshow .slideshow-container {
  overflow: hidden;
}

/* Ensure slide content stays visible */
.fullsize-slideshow .slideshow-slide.active .slide-content {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

/* Clear transition styles */
.clear-transition {
  transition: none !important;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-slideshow {
    height: 100px;
  }

  .slide-icon {
    font-size: 1.3rem;
  }

  .slide-title {
    font-size: 0.85rem;
  }

  .fullsize-slideshow .slideshow-slide {
    height: 450px;
  }

  .fullsize-slideshow .slide-icon {
    font-size: 1.8rem;
  }

  .fullsize-slideshow .slide-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-slideshow {
    height: 90px;
    padding: 8px;
  }

  .slideshow-arrow {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .slide-content {
    padding: 8px;
  }

  .fullsize-slideshow .slideshow-slide {
    height: 400px;
    transform: perspective(800px) rotateY(-3deg) rotateX(3deg);
  }

  .fullsize-slideshow .slideshow-arrow {
    width: 35px;
    height: 35px;
  }

  .fullsize-slideshow .slide-content {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-slideshow {
    height: 80px;
    padding: 6px;
  }

  .slide-icon {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .slide-title {
    font-size: 0.75rem;
  }

  .slideshow-controls {
    bottom: 2px;
    gap: 4px;
  }

  .slideshow-indicator {
    width: 5px;
    height: 5px;
  }

  .slideshow-indicator.active {
    width: 14px;
  }

  .slideshow-arrow {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

  .fullsize-slideshow .slideshow-slide {
    height: 350px;
    transform: none;
  }

  .fullsize-slideshow .slide-icon {
    font-size: 1.5rem;
  }

  .fullsize-slideshow .slide-title {
    font-size: 1rem;
  }

  .fullsize-slideshow .slideshow-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}
