/* ═══════════════ BANNER CAROUSEL ═══════════════ */
.Banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 72px; /* Header height offset */
}

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

/* ── Video Slides ── */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.video-container.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Overlay Gradient ── */
.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(19, 62, 135, 0.7) 0%,
    rgba(26, 26, 46, 0.5) 50%,
    rgba(19, 62, 135, 0.6) 100%
  );
  z-index: 1;
}

/* ── Text Overlay ── */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 900px;
  padding: 0 2em;
  width: 100%;
}

.text-overlay h1 {
  font-size: 4em;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3em;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.text-overlay h3 {
  font-size: 1.8em;
  font-weight: 400;
  margin-bottom: 1em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.text-overlay p {
  font-size: 1.1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ── CTA Button ── */
.cta-btn {
  display: inline-block;
  padding: 0.9em 2.5em;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: var(--accent);
  color: white;
}

/* ── Navigation Controls ── */
.controls {
  position: absolute;
  bottom: 3em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5em;
  z-index: 3;
}

.control-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-button:hover {
  background: white;
  color: var(--primary);
  border-color: white;
  transform: scale(1.1);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .text-overlay h1 {
    font-size: 3em;
  }
  
  .text-overlay h3 {
    font-size: 1.5em;
  }
  
  .text-overlay p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .Banner {
    height: 80vh;
    margin-top: 140px; /* Adjusted for stacked mobile header */
  }
  
  .text-overlay h1 {
    font-size: 2.2em;
  }
  
  .text-overlay h3 {
    font-size: 1.2em;
  }
  
  .text-overlay p {
    font-size: 0.95em;
  }
  
  .cta-btn {
    padding: 0.8em 2em;
    font-size: 0.9em;
  }
  
  .controls {
    bottom: 2em;
    gap: 1em;
  }
  
  .control-button {
    width: 45px;
    height: 45px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .text-overlay h1 {
    font-size: 1.8em;
  }
  
  .text-overlay h3 {
    font-size: 1em;
  }
  
  .text-overlay p {
    font-size: 0.9em;
  }
}
