.video-banner {
    position: relative;
    overflow: hidden; /* Prevents overflow */
}

.video-banner video {
    width: 100%; /* Makes the video responsive */
    height: auto; /* Maintains aspect ratio */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    background: rgba(0, 0, 0, 0.6); /* Black with 50% transparency */
    z-index: 1; /* Ensures overlay is above the video */
}

.video-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2; /* Ensures caption is on top of the overlay */
}

.video-caption h1 {
    font-size: 3rem; /* Default size */
}

.video-caption p {
    font-size: 1.5rem; /* Default size */
}


.h-100 {
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.h-100:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.h-100 .card-body {
  background-color: white;
}

@media (max-width: 768px) {
    
    .video-caption {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        z-index: 2; /* Ensures caption is on top of the overlay */
    }
    .video-caption h1 {
        font-size: 24px; /* Smaller size for mobile */
    }
    .video-caption p {
        font-size: 1rem; /* Smaller size for mobile */
    }
}