/* === CSS for ACF Video Blocks - Overlay UI Update === */

/* --- Force Implementation --- */
.video-overlay-content{
display: none !important;
}


/* --- General Styling for Custom Video Block Sections --- */
.acf-custom-video-block-section {
    background-color: #000000;
    color: #e0e0e0;
    padding: 60px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 0;
}

.acf-custom-video-block-section .block-inner-content,
.acf-custom-video-block-section .block-inner-content-flex-wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.acf-custom-video-block-section a {
    color: #FF6B6B;
    text-decoration: none;
}

.acf-custom-video-block-section a:hover {
    color: #FF8C8C;
    text-decoration: underline;
}

/* --- Typography --- */
.acf-custom-video-block-section .intro-text-line {
    color: #FF6B6B;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.acf-custom-video-block-section .block-main-heading {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #ffffff;
    font-size: 2.8em;
    font-weight: normal;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 25px;
}

.acf-custom-video-block-section .text-content-area p {
    color: #dcdcdc;
    font-size: 1.1em;
    margin-bottom: 1em;
}

.acf-custom-video-block-section .text-content-area p:last-child {
    margin-bottom: 0;
}

/* --- Video Section Structure & Overlay --- */
.video-embed-container-wrapper {
    margin-top: 30px;
    /* Space above video section if it follows text */
}

/* For blocks where text is below video */
.acf-block-text-bottom-video-top .text-section-below-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
}

.acf-block-text-bottom-video-top .video-embed-container-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Center video container */
    /* No top margin if video is first element */
}

/* For blocks where text is below video */
.acf-block-text-top-video-bottom .block-inner-content{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.acf-block-text-top-video-bottom .video-embed-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center
    /* Center video container */
}


.acf-block-text-top-video-bottom .video-embed-container-wrapper .video-embed-container {
    width: 100%;
}

.video-embed-container {
    position: relative;
    /* Crucial for positioning the overlay */
    width: 100%;
    max-width: 660px;
    overflow: hidden;
    /* Ensures overlay content doesn't spill if it's too wide before styling */
    background-color: #000;
    /* Fallback if video doesn't load, or for placeholder */
}

.video-embed-container iframe {
    display: block;
    /* Removes extra space below iframe */
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Maintain aspect ratio */
    border: none;
    vertical-align: middle;
    /* Helps with alignment sometimes */
}

.video-overlay-content.video-section-header {
    position: absolute;
    bottom: 60px;
    /* Position from the bottom */
    left: 20px;
    /* Position from the left */
    z-index: 10;
    /* Ensure it's on top of the video iframe */
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.0);
    /* Initially transparent, can add a slight dark tint if needed */
    border-radius: 4px;
    max-width: calc(100% - 40px);
    /* Ensure it doesn't overflow the video width */
}

.video-overlay-content .video-section-title {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    /* Match main heading style */
    color: #ffffff;
    font-size: 2.5em;
    /* Adjust size for overlay */
    font-weight: normal;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Text shadow for readability */
}

.video-overlay-content .acf-block-button {
    display: inline-block;
    background-color: #FF6B6B;
    color: #ffffff;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    margin-top: 5px;
    /* Small space above button if title is multiline */
}

.video-overlay-content .acf-block-button:hover {
    background-color: #e05252;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Placeholder styling for overlay context */
.video-placeholder-for-overlay {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9em;
    border-radius: 4px;
}

/* --- Layout Specifics (Flexbox containers) --- */
.acf-block-double-video .video-columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.acf-block-double-video .video-column {
    flex: 1;
    min-width: 280px;
}

/* Remove top margin from video-embed-container when in double-video */
.acf-block-double-video .video-embed-container-wrapper {
    margin-top: 0;
}

/* The .video-section-header within .video-overlay-content is already styled */


.acf-block-text-right-video-left .block-inner-content-flex-wrapper,
.acf-block-text-left-video-right .block-inner-content-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.acf-block-text-right-video-left .video-column-flex,
.acf-block-text-left-video-right .video-column-flex,
.acf-block-text-right-video-left .text-column-flex,
.acf-block-text-left-video-right .text-column-flex {
    flex: 1;
    min-width: 300px;
}

/* Ensure video section header within flex column's overlay doesn't take extra top margin */
.video-column-flex .video-embed-container-wrapper {
    margin-top: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .acf-custom-video-block-section {
        padding: 40px 0;
    }

    .acf-custom-video-block-section .block-main-heading {
        font-size: 2.2em;
    }

    .video-overlay-content .video-section-title {
        font-size: 1.4em;
        /* Smaller overlay title on mobile */
    }

    .video-overlay-content .acf-block-button {
        font-size: 0.85em;
        padding: 8px 18px;
    }

    .acf-block-double-video .video-columns-container,
    .acf-block-text-right-video-left .block-inner-content-flex-wrapper,
    .acf-block-text-left-video-right .block-inner-content-flex-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .acf-block-double-video .video-column,
    .acf-block-text-right-video-left .video-column-flex,
    .acf-block-text-left-video-right .video-column-flex,
    .acf-block-text-right-video-left .text-column-flex,
    .acf-block-text-left-video-right .text-column-flex {
        min-width: 100%;
    }
}

@media (max-width: 480px) {

    /* Even smaller screens */
    .acf-custom-video-block-section .block-main-heading {
        font-size: 1.8em;
    }

    .video-overlay-content .video-section-title {
        font-size: 1.2em;
    }

    .video-overlay-content {
        bottom: 10px;
        left: 10px;
        padding: 10px;
        max-width: calc(100% - 20px);
    }
}