/* Media Container */

.benefits-media {
    flex: 0 0 45%;
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto !important;
}

.benefits-image-position-left .benefits-content,
.benefits-video-position-left .benefits-content {
    flex-direction: row-reverse;
}

.benefits-img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}


/* Video Styling */

.benefits-video-container,
.benefits-video-embed-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.benefits-video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease;
    z-index: 0;
}

.benefits-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}


/* Video Controls Styling */

.benefits-video::-webkit-media-controls {
    z-index: 2;
}

.benefits-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
}

.benefits-video::-webkit-media-controls-play-button {
    color: #fff;
}


/* Custom Play Button for Embedded Videos */

.benefits-video-embed-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.benefits-video-embed-container .play-button:before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 5px;
}

.benefits-video-embed-container .play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}


/* Embedded Video Responsive Classes */

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive-4by3::before {
    padding-top: 75%;
}

.embed-responsive-3by2::before {
    padding-top: 66.66%;
}

.embed-responsive-1by1::before {
    padding-top: 100%;
}