/* ===== Video Section Styles ===== */
.video-section {
    text-align: center;
    margin: 10px 0;
}

/* Responsive 16:9 video container */
.video-frame {
    position: relative;
    width: 60%; /* Default desktop width */
    margin: 0 auto 30px auto;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    overflow: hidden;

    /* Maintain 16:9 aspect ratio */
    aspect-ratio: 16 / 9; /* Modern browsers */
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-frame {
        padding-top: 56.25%; /* 9/16 = 0.5625 */
        height: 0;
    }

    .video-frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000; /* Removes white flash behind video */
}

/* Responsive widths */
@media (max-width: 1024px) {
    .video-frame {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .video-frame {
        width: 90%;
    }
}