.carousel-container {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  
  /* CSS custom property for header height - adjust this based on your actual header */
  --header-height: 0px; /* Default for desktop (no offset needed) */
}

.carousel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* New background image styling */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 800px;
  margin-bottom: 100px;
}

.slide-label {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.slide-title {
  font-size: 40px;
  font-weight: 400;
  font-family: "EditorsNoteRegular", sans-serif;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.slide-description {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.6;
}

.slide-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 400;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: black;
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: black;
}

.btn-play {
  background: transparent;
  color: white;
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play:hover {
  background: white;
  color: black;
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.carousel-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

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

.indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-container {
    /* Set header height for mobile - adjust this value based on your banner + navbar height */
    --header-height: 130px; /* Default: ~50px banner + ~80px navbar */
    
    /* Use calc to subtract header height from viewport */
    height: calc(100vh - var(--header-height));
    min-height: 500px; /* Ensure minimum usable height */
  }

  .slide-content {
    margin-bottom: 120px; /* More space from bottom for better visibility */
    padding: 20px 15px;
  }

  .slide-label {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .slide-title {
    font-size: 32px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .slide-description {
    font-size: 15px;
    line-height: 1.5;
  }

  .carousel-controls {
    bottom: 30px;
    right: 20px;
  }

  .control-btn {
    width: 45px;
    height: 45px;
  }

  .carousel-indicators {
    bottom: 30px;
  }

  .slide-buttons {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    /* Adjust header height for very small screens if needed */
    --header-height: 180px;
    height: calc(100vh - var(--header-height));
    min-height: 450px;
  }

  .slide-content {
    margin-bottom: 100px;
  }

  .slide-label {
    font-size: 11px;
  }

  .slide-title {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .slide-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .carousel-controls {
    bottom: 20px;
    right: 15px;
  }

  .control-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-indicators {
    bottom: 20px;
  }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1023px) {
  .carousel-container {
    height: 70vh;
  }

  .slide-title {
    font-size: 56px;
  }

  .slide-description {
    font-size: 14px;
  }
}