/*
 * ===================================================================
 * Custom Content Card Widget Styles
 * ===================================================================
 */

/* --- 1. CSS Variables & Root Styles --- */
.elementor-widget-custom-content-widget {
    --widget-gap-desktop: 30px;
    --widget-gap-mobile: 20px;
    --widget-stats-gap: 20px;
    --widget-image-border-radius: 8px;
}

/* --- 2. Main Layout --- */
.custom-content-widget-wrapper {
    display: flex;
    align-items: center;
    gap: var(--widget-gap-desktop);
    overflow: hidden;
    position: relative;
}

/* --- 3. Content & Image Columns --- */
.custom-widget-image,
.custom-widget-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.custom-widget-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--widget-image-border-radius);
    transition: transform 0.4s ease-out;
}

.custom-widget-image.zoom-on-scroll-container {
    overflow: hidden;
    border-radius: var(--widget-image-border-radius);
}

/* --- 4. Specific Features --- */

/* Counter */
.custom-widget-counter {
    position: absolute;
    z-index: 1;
    line-height: 0.8;
    font-weight: bold;
    transition: all 0.3s ease;
}
.counter-pos-top_left .custom-widget-counter { top: 15px; left: 20px; }
.counter-pos-top_right .custom-widget-counter { top: 15px; right: 20px; }

/* Title with Image */
.custom-widget-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.custom-widget-title-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Featured List */
.custom-widget-featured-list {
    list-style: none;
    /* Padding is controlled from the Elementor panel */
    margin: 20px 0;
}
.featured-list-item {
    display: flex;
    align-items: center;
}
.featured-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.featured-list-icon svg {
    height: 1em;
    width: 1em;
}

/* Stats Section */
.custom-widget-stats-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--widget-stats-gap);
    margin-top: 30px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}
.stat-number { font-weight: 500; }
.stat-label { margin-top: 5px; }

/* --- 5. Layout Modifiers --- */
.elementor-widget-custom-content-widget.elementor-image-position-right .custom-content-widget-wrapper {
    flex-direction: row-reverse;
}

/* --- 6. Responsive Styles --- */
@media (max-width: 767px) {
    /* Main Layout */
    .custom-content-widget-wrapper,
    .elementor-widget-custom-content-widget.elementor-image-position-right .custom-content-widget-wrapper {
        flex-direction: column;
        gap: var(--widget-gap-mobile);
    }
    .custom-widget-content {
        order: -1;
    }

    /* Counter */
    .custom-widget-counter {
        position: static;
        z-index: auto;
        margin-bottom: 15px;
        text-align: left;
    }

    /* Stats Section */
    .custom-widget-stats-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .stat-divider {
        display: none;
    }
}