/*
 * Ported from the Unlimited Elements widget `whitepaper_stat_card`. Class names unchanged, every rule is scoped to the widget.
 * Colour: the stat bar background is --oc-ew-stat-color (original default #ffffff). The original's `!important` rules are kept as they were.
 * Deliberate change: the stat bar class lost its widget serial number (`ost-stat-bar-<n>`); it is `ost-stat-bar` now.
 */
.elementor-widget-oc_ew_whitepaper_stat_card .ost-labor-banner {
    display: flex;
    align-items: stretch; /* Forces equal height columns */
    
    /* WIDTH & ALIGNMENT */
    max-width: 800px !important; /* Reduced by 50px */
    margin: 0px 0 !important; /* Strictly left-aligned */
    width: 100% !important;
    
    /* Card Styling */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden; /* Clips the image and header at the corners */
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-visual {
    position: relative;
    flex: 0 0 300px;
    min-width: 250px;
    background: #f1f5f9;
    display: flex; /* Ensures the image container is a flex container */
    flex-direction: column;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Spans exactly 100% of the visual panel height */
    object-fit: cover; /* Prevents distortion while filling the box */
    display: block; /* Removes the bottom whitespace gap found in inline elements */
    z-index: 1;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-stat-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 15px;
    background: var(--oc-ew-stat-color, #ffffff);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2; /* Sits on top of the image */
    box-sizing: border-box;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px; /* Set your specific height */
    width: auto;   /* Allow width to scale naturally with the SVG ratio */
    line-height: 0;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-svg-icon {
    max-height: 22px;  /* Match the parent height */
    width: auto;   /* Prevent horizontal distortion */
    display: block;
    object-fit: contain;
    /* Optional: Turns a black SVG white to match the 500K text */
    filter: brightness(0) invert(1); 
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-content {
    flex: 1 1 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to the bottom */
    min-width: 0;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-number {;
    font-weight: 700;
    color: #ffffff;
    font-size: 22px;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-description {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    font-weight: 600;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action a.ost-button-new {
    background-color: #009CDE !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    transition: all 0.2s ease;
}

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action a.ost-button-new:hover {
    background-color: #007bb1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.elementor-widget-oc_ew_whitepaper_stat_card @media (max-width: 833px) {
.elementor-widget-oc_ew_whitepaper_stat_card .ost-labor-banner {
        flex-direction: column;
        max-width: 100% !important;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-visual {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        /* Height driven by the stat bar content, not a fixed value */
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-img {
        display: none;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-visual > div {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-content {
        padding: 20px 22px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-title {
        font-size: 16px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-description {
        font-size: 15px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action {
        margin-top: 16px;
        justify-content: flex-start;
    }
}

.elementor-widget-oc_ew_whitepaper_stat_card @media (max-width: 480px) {
.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-content {
        padding: 16px 18px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-description {
        font-size: 14px;
        line-height: 1.55;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-number {
        font-size: 19px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action {
        margin-top: 14px;
    }

.elementor-widget-oc_ew_whitepaper_stat_card .ost-banner-action a.ost-button-new {
        font-size: 14px;
        padding: 9px 22px;
    }
}
