:root {
  --fade-speed: 0.6s; /* Easily change image cross-fade duration here */
  --text-speed: 0.4s; /* Easily change text slide up speed here */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: ; /* Dark layout complements glass panels */
}

/* Banner Wrapper */
.carousel-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  background: #1c1c1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Left Side: Images */
.carousel-left {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
  background-size: 200% 100%;
  animation: shimmerPulse 1.5s infinite linear;
}

@keyframes shimmerPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto%;
  opacity: 0;
  transition: opacity var(--fade-speed) ease-in-out;
  pointer-events: none;
}

.slide-img.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Right Side: Glassmorphism Card Style */
.carousel-right {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  /* Glass design features */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.text-container {
  position: relative;
  min-height: 180px; /* Accommodates newly added action buttons safely */
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--text-speed) ease, transform var(--text-speed) ease;
  pointer-events: none;
}

.text-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.text-slide h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.text-slide h4 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 300;
  line-height: 1.2;
}
.text-slide ul {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 100;
  line-height: 1.2;
}

.text-slide p {
  font-size: 0.95rem;
  color: #d1d1d6;
  line-height: 1.4;
  margin-bottom: 16px;
  text-align:justify;
}

/* Action CTA Buttons */
.carousel-cta-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-cta-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Controls Alignment */
.carousel-controls {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

.carousel-btn-next {
  background: #ffffff;
  color: #1c1c1e;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-btn-next:hover {
  transform: translateX(2px);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
}

/* Desktop Glass Layer Override Media Queries */
@media (min-width: 768px) {
  .carousel-container {
    flex-direction: row;
    height: 500px;
  }
  
  .carousel-left {
    width: 100%; /* Image panel occupies base container bounds completely */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }

  /* Frosted Glass overlays exactly on the top right edge */
  .carousel-right {
    width: 25%; /* Expanded slightly from 20% to prevent text wrapping on CTA buttons */
    margin-left: auto; /* Pins card layout to the absolute right side */
    height: 100%;
    padding: 40px 24px;
    justify-content: space-between;
    background: rgba(20, 20, 25, 0.5); /* Deep translucent layout blend */
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }

  .text-container {
    min-height: auto;
  }

  .text-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .text-slide p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .carousel-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 0;
  }
  
  .dot {
    width: 9px;
    height: 9px;
  }
}
