/* ====================================
   Welcome Section Styles
==================================== */
.right-image {
    flex: 1;
    background: url('../media/images/multimedia-welcome-img.jpg') no-repeat top center/cover; /* Center the background image */
    border-radius: 15px; /* More rounded corners */
    height: 450px; /* Slightly increased height */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Increased shadow */
}

/* Latest Live Stream Section */
#en-vivo {
    background: linear-gradient(to bottom, #AFD7FF, #60AFFF);
    padding: 0 1rem;
    min-height: 100vh; /* Make sections full height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-live-stream-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Wrap on smaller screens */
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    max-width: 1500px;
}

.live-video {
    flex: 1;
    display: flex;
    justify-content: center; /* Center the video horizontally */
    align-items: center; /* Center the video vertically */
}

.live-stream-container {
    overflow: hidden; /* Hide overflow */
    height: 275px;
    display: flex; /* Flexbox to center the iframe */
    justify-content: center; /* Center the iframe horizontally */
    align-items: center; /* Center the iframe vertically */
    border-radius: 10px;
}

.live-stream-container iframe {
    overflow: visible;
    border: none;
    width: 500px;
    height: 100%; /* Full height of the container */
}

.live-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the description vertically */
    padding: 1rem;
    color: #fff; /* White text color */
}

.live-description .section-title {
    color: #fff; /* White text color */
    margin-bottom: 1rem;
}

.live-description p {
    font-size: 1.25rem;
    color: #fff; /* White text color */
}

/* Latest YouTube Videos Section */
#youtube {
    background: linear-gradient(to top, #778DA9, #60AFFF);
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    text-align: center; /* Center text within the section */
}

.youtube-videos-content {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

.youtube-videos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    border-radius: 10px;
}

.youtube-videos-container .video {
    flex: 1 1 300px;
    max-width: 800px;
    height: 450px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border-radius: 10px; /* Keep the rounded corners */
}

.youtube-videos-container .video iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 450px; /* Ensure minimum height for the iframe on desktop */
    border-radius: 10px; /* Keep the rounded corners */
}

/* ====================================
   Gallery Section Styles
==================================== */
#galeria {
    background: linear-gradient(to bottom, #778DA9, #8F95D3);
    color: #fff;
    padding: 40px 0;
    min-height: 100vh; /* Ensure the section takes full screen height */
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    position: relative; /* Added to ensure proper z-index handling */
}

.gallery-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally */
    max-width: 1400px;
    width: 100%; /* Ensure the content takes full width */
    background: linear-gradient(to top, #ffffff20,#00000020); /* Semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    margin: 0 auto; /* Center the content horizontally */
}

/* Gallery wrapper to center slideshow and overlay thumbnails */
.gallery-wrapper {
    position: relative;
    display: flex;
    flex-direction: row; /* Display text and slideshow side by side */
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure the wrapper takes full width */
    gap: 2rem; /* Add some space between text and slideshow */
}

.gallery-text {
    flex: 1;
    margin: 0 auto; /* Center the gallery-text container */
    padding: 0 20px; /* Add padding to prevent text from touching the edges */
}

.gallery-text p {
    font-size: 1.2rem; /* Font size for the paragraph */
    text-align: center; /* Center-align text */
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 60%; /* Set a fixed width */
    max-width: 800px; /* Set a max width */
    height: 450px; /* Set a fixed height */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Ensure the slideshow is below the buttons */
    overflow: hidden; /* Hide overflow */
}

/* General Styles */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
    border-radius: 10px;
}

/* Active slide */
.active-img {
    opacity: 1;
    z-index: 2;
}

/* Stream schedule styles */
#proxima-transmision {
    min-height: 100vh; /* Ensure the section takes full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../media/images/multimedia-images/proxima_transmision.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: 20% 60px;
    position: relative; /* Added to ensure proper z-index handling */
}

.stream-schedule {
    width: 100%;
    max-width: 600px; /* Adjust the max-width to ensure a skinny fit within the container */
    margin: 0 auto; /* Center the container */
    padding: 10px; /* Reduced padding */
    color: #fff; /* White text color for better contrast */
}

.stream-schedule p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff; /* White text color for readability */
    margin: 10px 0; /* Reduced margin for spacing */
    padding: 10px; /* Reduced padding for spacing */
    background-color: #495867c6; /* Semi-transparent background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text within the items */
}


.stream-schedule p strong {
    margin-bottom: 5px; /* Spacing between day and time */
    white-space: nowrap; /* Prevent text from wrapping */
}

#proxima-transmision {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: 20% 60px;
    color: #fff; /* White text color for better contrast */
}

#proxima-transmision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #60afffb3, #8F95D3);
    z-index: 1;
}

#proxima-transmision .section-title,
#proxima-transmision .stream-schedule-container {
    position: relative;
    z-index: 2;
}

.stream-schedule-container {
    display: flex;
    gap: 10px; /* Reduced space between the boxes */
    justify-content: center; /* Center the boxes horizontally */
    flex-wrap: wrap; /* Wrap to the next line on smaller screens */
}

.stream-schedule-item {
    background-color: #495867c6; /* Semi-transparent background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 20px;
    flex: 1 1 45%; /* Flex basis and grow/shrink properties */
    text-align: center; /* Center text within the item */
    color: #fff; /* White text color */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
}

.stream-schedule-item p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 5px 0; /* Reduced margin for spacing */
    padding: 5px; /* Reduced padding for spacing */
    border-radius: 8px; /* Rounded corners */
}

.stream-schedule-item p strong {
    white-space: nowrap; /* Prevent text from wrapping */
}

.countdown,
.stream-time,
.stream-service {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.stream-service {
    font-size: 1.2rem; /* Font size for the service description */
    font-weight: bold; /* Bold font weight */
}

.countdown {
    background-color: #8F95D3;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

.stream-time {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

/* Live now styles */
.live-now {
    background-color: #F71735; /* Red background color for live streams */
    color: #ffffff; /* White text color */
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    white-space: nowrap; /* Prevent text from wrapping */
}

/* ====================================
   Responsive Styles
==================================== */
@media (max-width: 1155px) {
    .latest-live-stream-content {
        flex-wrap: nowrap; /* Wrap on smaller screens */
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    #en-vivo {
        display: block;
    }

    .youtube-videos-container .video {
        display: flex;
        justify-content: center;
        align-items: center; /* Center the iframe vertically */
    }

    .youtube-videos-container .video iframe {
        height: 100%; /* Fill the entire container height */
        width: 100%; /* Fill the entire container width */
        border-radius: 10px; /* Keep the rounded corners */
    }

    .youtube-videos-container .video {
        height: 56.25vw; /* Maintain a 16:9 aspect ratio */
        width: 100%;
        overflow: hidden; /* Ensure the content does not overflow */
    }

    .gallery-wrapper {
        height: 100%;
        flex-direction: column; /* Stack text and slideshow vertically on small screens */
    }

    .slideshow-container {
        width: 100%; /* Full width on mobile */
    }

    .gallery-text {
        text-align: center; /* Center-align text for mobile */
    }

    #proxima-transmision {
    padding: 50px;
    }

}

@media (max-width: 660px) {
    #proxima-transmision {
        flex-direction: column;
        background-attachment: scroll; /* Changed from fixed to scroll */
        background-size: cover; /* Cover the container */
        background-position: 50%;
    }
    .youtube-videos-container .video {
        height: 440px; /* Set a specific height for small screens */
    }

    .youtube-videos-container .video iframe {
        height: 100%; /* Adjust iframe height */
        width: 100%; /* Adjust iframe width */
        border-radius: 10px; /* Keep the rounded corners */
    }
}

@media (max-width: 600px) {
    .live-stream-container {
        scale: 0.7;
    }
}    

@media (max-width: 430px) {
    /* Full width slideshow on smaller mobile devices */

    .live-stream-container {
        scale: 0.7;
    }

    #en-vivo{
        padding-bottom: 40;
    }

    .slideshow-container {
        width: 100%; /* Full width on mobile */
        height: 30vb;
    }

    .slideshow-container img {
        width: 100%; /* Ensure images take full width */
    }
}
