/**
 * Feature Section Styles
 */

/* Feature list items */
.feature .xb-feature .xb-item--inner {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.feature .xb-feature .xb-item--icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature .xb-feature .xb-item--icon img {
    max-width: 100%;
    height: auto;
}

.feature .xb-feature .xb-item--holder {
    flex: 1;
}

.feature .xb-feature .xb-item--title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222;
}

.feature .xb-feature .xb-item--description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.feature .xb-feature {
    margin-bottom: 30px;
}

.feature .xb-feature:last-child {
    margin-bottom: 0;
}

.feature .btns.mt-45 {
    margin-top: 60px !important;
}

.feature .feature__img {
    position: relative;
}

/* Feature image text box */
.feature .feature__img-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 160px;
}

.feature .feature__img-text h3 {
    font-size: 48px;
    font-weight: 700;
    color: #ff5e14;
    margin-bottom: 5px;
    line-height: 1;
}

.feature .feature__img-text span {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    /* Make position relative on mobile to prevent overflow */
    .feature .feature__img {
        position: relative;
    }
    
    .feature .feature__img-text {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -30px;
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px 25px;
        min-width: 140px;
        z-index: 10;
    }
    
    .feature .feature__img-text h3 {
        font-size: 36px;
    }
    
    .feature .feature__img-text span {
        font-size: 14px;
    }
    
    /* Ensure image doesn't overflow */
    .feature__img img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991px) {
    .feature .feature__img-text {
        bottom: 30px;
        right: 30px;
        padding: 25px 30px;
    }
    
    .feature .feature__img-text h3 {
        font-size: 42px;
    }
}

/* Container overflow prevention */
.feature {
    overflow: hidden;
}

.feature .container {
    position: relative;
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .feature .feature__img-text {
        min-height: 44px;
        min-width: 44px;
    }
}