/* Video Banner Section Styles */

.video-banner-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Ensuring no extra spacing from inline elements */
  line-height: 0;
  background-color: #000; /* Fallback */
}

.video-banner-container {
  position: relative;
  width: 100%;
  height: auto;
  /* The height is determined by the video aspect ratio */
}

.video-banner-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Optional Overlay Content */
.video-banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 85%;
  max-width: 900px;
  z-index: 2;
  /* Reset line-height for text content */
  line-height: 1.6;
}

.video-banner-title {
  font-family: var(--title-font, sans-serif);
  font-size: clamp(2rem, 5vw, 4.5rem); /* Responsive typography */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.video-banner-text {
  font-family: var(--body-font, sans-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: #f8f9fa;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.video-banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  background-color: var(--theme-color, #c9ab81);
  color: #fff !important;
  font-family: var(--title-font, sans-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.4s ease;
  border-radius: 5px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.1s forwards;
  border: 1px solid transparent;
}

.video-banner-btn:hover {
  background-color: #fff;
  color: var(--theme-color, #c9ab81) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-banner-btn i {
  margin-left: 10px;
  transition: margin-left 0.3s ease;
}

.video-banner-btn:hover i {
  margin-left: 15px;
}

/* Texture Overlay to make text more readable on any video */
.video-overlay-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Keyframes for animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .video-banner-title {
    margin-bottom: 1rem;
  }

  .video-banner-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}
