.benefits-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 2rem; */
}


/* Header Section */

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-title {
    margin-bottom: 1rem;
}


/* Split Heading Styles */

.benefits-title .title-part-1,
.benefits-title .title-part-2 {
    display: inline-block;
}

.benefits-title .title-part-1 {
    margin-right: 0.5rem;
}

.benefits-title .title-part-2 {
    font-weight: 700;
}

.benefits-description {
    max-width: 800px;
    margin: 0 auto;
}


/* Content Section */

.benefits-content {
    display: flex;
    align-items: stretch;
    min-height: 300px;
    gap: 3rem;
    justify-content: center;
    padding: 1rem;
}


/* Benefits Container */

.benefits-container {
    flex: 0 0 50%;
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Default 2 columns */
    gap: 1rem !important;
    /* Gap can be customized via Elementor controls */
}


/* Benefit Item Styles */

.benefit-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    /* Ensure each item takes full column width */
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 2.5rem !important;
    font-weight: 600;
}

.benefit-description {
    margin: 0;
    line-height: 1.6;
}


/* Icon Styles Section */

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-icon i,
.benefit-icon svg {
    transition: all 0.3s ease;
}


/* Icon Position Variations */

.benefit-icon-position-top .benefit-item {
    flex-direction: column;
}

.benefit-icon-position-left .benefit-item {
    flex-direction: row;
    text-align: left;
}

.benefit-icon-position-right .benefit-item {
    flex-direction: row-reverse;
    text-align: right;
}


/* Icon Spacing based on Position */

.benefit-icon-position-top .benefit-icon {
    margin-bottom: 1rem;
}

.benefit-icon-position-left .benefit-icon {
    margin-right: 1rem;
    margin-bottom: 0;
}

.benefit-icon-position-right .benefit-icon {
    margin-left: 1rem;
    margin-bottom: 0;
}


/* Media Container */

.benefits-media {
    flex: 0 0 45%;
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* Default horizontal alignment */
    justify-content: center;
    /* Default vertical alignment */
    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;
    /* Make container stretch to respect parent alignment */
    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;
    /* Ensures video is below overlay */
}

.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;
    /* Ensures controls are above the overlay */
}

.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%;
}


/* Elementor Hover Animations */

.elementor-widget-promen_benefits .elementor-widget-container {
    overflow: hidden;
}

.elementor-animation-grow {
    transition-duration: 0.3s;
    transition-property: transform;
}

.elementor-animation-grow:hover {
    transform: scale(1.1);
}

.elementor-animation-shrink {
    transition-duration: 0.3s;
    transition-property: transform;
}

.elementor-animation-shrink:hover {
    transform: scale(0.9);
}

.elementor-animation-float {
    transition-duration: 0.3s;
    transition-property: transform;
}

.elementor-animation-float:hover {
    transform: translateY(-8px);
}


/* Responsive Design */

@media (max-width: 1024px) {
    .benefits-content {
        flex-direction: column;
    }
    .benefits-media {
        max-width: 100%;
        width: 100%;
        flex: auto;
        margin-top: 2rem;
    }
    .benefits-container {
        width: 100%;
        flex: auto;
        /* Keep the 2 columns on tablet */
    }
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
        /* Maintain 2 columns on tablet */
    }
    /* Reset image/video position on tablet */
    .benefits-image-position-left .benefits-content,
    .benefits-video-position-left .benefits-content {
        flex-direction: column;
    }
    /* Adjust video container sizing for tablets */
    .benefits-video-container,
    .benefits-video-embed-container {
        width: 100%;
        max-width: 100%;
    }
    /* Adjust embedded video aspect ratio */
    .benefits-video-embed-container .play-button {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .benefits-widget {
        padding: 1rem;
    }
    .benefits-header {
        margin-bottom: 2rem;
    }
    .benefits-container {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 1rem;
    }
    .benefits-media {
        min-height: 200px;
        /* Smaller minimum height on mobile */
    }
    .benefit-item {
        padding: 1.5rem 1rem;
    }
    /* Maintain icon position on mobile */
    .benefit-icon-position-left .benefit-item,
    .benefit-icon-position-right .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    .benefit-icon-position-left .benefit-icon,
    .benefit-icon-position-right .benefit-icon {
        margin: 0 0 1rem 0;
    }
    .benefit-icon {
        font-size: 1.75rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    /* Smaller video controls for mobile */
    .benefits-video-embed-container .play-button {
        width: 50px;
        height: 50px;
    }
    .benefits-video-embed-container .play-button:before {
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 18px solid #fff;
    }
}