/**
 * Feature Section Image Fix
 * Prevents image from overlapping with text content
 */

/* Feature image container fix */
.feature__img {
    position: relative !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.feature__img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Fix the experience badge positioning */
.feature__img-text {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #fff !important;
    padding: 20px 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    z-index: 2 !important;
    max-width: 150px !important;
}

.feature__img-text h3 {
    color: var(--color-primary, #FFC107) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    line-height: 1 !important;
}

.feature__img-text span {
    color: #333 !important;
    font-size: 14px !important;
    display: block !important;
}

/* Content area fix */
.feature__content {
    padding-left: 30px !important;
}

/* Ensure proper column spacing */
.feature .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.feature .col-lg-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .feature__img {
        margin-bottom: 40px !important;
    }
    
    .feature__content {
        padding-left: 0 !important;
    }
    
    .feature__img-text {
        bottom: 20px !important;
        right: 20px !important;
        padding: 15px 20px !important;
    }
    
    .feature__img-text h3 {
        font-size: 28px !important;
    }
}

@media (max-width: 767px) {
    .feature__img-text {
        bottom: 15px !important;
        right: 15px !important;
        padding: 12px 18px !important;
        max-width: 120px !important;
    }
    
    .feature__img-text h3 {
        font-size: 24px !important;
    }
    
    .feature__img-text span {
        font-size: 12px !important;
    }
}

/* Prevent any absolute positioned elements from escaping */
.feature {
    overflow: hidden !important;
}

.feature .container {
    position: relative !important;
    z-index: 1 !important;
}

/* Fix for any overlapping issues */
.feature__img::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Ensure feature list items don't overflow */
.feature__list {
    width: 100% !important;
    max-width: 100% !important;
}

.xb-feature {
    margin-bottom: 20px !important;
}

.xb-feature .xb-item--inner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.xb-feature .xb-item--icon {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
}

.xb-feature .xb-item--icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.xb-feature .xb-item--holder {
    flex: 1 !important;
    min-width: 0 !important;
}

.xb-feature .xb-item--title {
    margin-bottom: 10px !important;
    word-wrap: break-word !important;
}

.xb-feature .xb-item--description {
    word-wrap: break-word !important;
    line-height: 1.6 !important;
}