/* Banner styles */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    padding: 120px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Add animation to the carousel */
.carousel-item {
    transition: transform 1.2s ease-in-out;
}

/* YouTube video banner styles */
.hero-section.video-banner {
    padding: 0;
    height: 600px;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.youtube-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh; /* 16:9 aspect ratio */
    height: 100vh;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

/* Video file banner styles */
.video-file-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Video controls */
.video-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.video-controls .btn {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.video-controls .btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Ensure video banners don't have text overlays */
.hero-section.video-banner .hero-content {
    display: none;
}

/* Make sure carousel controls are visible over videos */
.carousel-control-prev,
.carousel-control-next {
    z-index: 15;
}

/* Responsive video styles */
@media (max-width: 768px) {
    .hero-section.video-banner {
        height: 400px;
    }
    
    .youtube-player {
        width: 177.77777778vh;
        height: 56.25vw;
    }
}

@media (max-width: 576px) {
    .hero-section.video-banner {
        height: 300px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
