/* ================================================== */
/* PROBLEM-SOLUTION / FEATURE SECTIONS                */
/* ================================================== */

.feature-block {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.feature-block-alt {
    padding: 120px 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 123, 255, 0.05);
    border-bottom: 1px solid rgba(0, 123, 255, 0.05);
}

/* Image containers - SMALLER */
.feature-img-container {
    border-radius: 12px;
    -webkit-box-shadow: -2px 2px 14px 5px rgba(0,0,0,0.52); 
    box-shadow: -2px 2px 14px 5px rgba(0,0,0,0.52);
    overflow: hidden;
    max-width: 90%;                    /* Constrain container width */
    margin: 0 auto;                     /* Center the container */
}

.feature-img-container img {
    border-radius: 10px;
    max-height: 400px;                  /* Limit image height */
    object-fit: cover;
    object-position: top;
    width: 100%;
}

/* Typography adjustments */
.feature-block h2,
.feature-block-alt h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
}

.feature-block .lead,
.feature-block-alt .lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}

/* Badge styling */
.feature-block .badge,
.feature-block-alt .badge {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Checklist items */
.feature-block h6,
.feature-block-alt h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-block .small,
.feature-block-alt .small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ================================================== */
/* TABLET (768px - 991px)                             */
/* ================================================== */
@media (max-width: 991.98px) {
    .feature-block,
    .feature-block-alt {
        padding: 80px 0;
    }
    
    .feature-block .g-5,
    .feature-block-alt .g-5 {
        gap: 2rem !important;
    }
    
    .feature-block .ps-lg-4,
    .feature-block .pe-lg-4,
    .feature-block-alt .ps-lg-4,
    .feature-block-alt .pe-lg-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Smaller images on tablet */
    .feature-img-container {
        max-width: 85%;
    }
    
    .feature-img-container img {
        max-height: 350px;
    }
}

/* ================================================== */
/* MOBILE (below 768px)                               */
/* ================================================== */
@media (max-width: 767.98px) {
    .feature-block,
    .feature-block-alt {
        padding: 60px 0;
    }
    
    .feature-block h2,
    .feature-block-alt h2 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .feature-block .lead,
    .feature-block-alt .lead {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .feature-block .badge,
    .feature-block-alt .badge {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-block h6,
    .feature-block-alt h6 {
        font-size: 0.9375rem;
    }
    
    .feature-block .small,
    .feature-block-alt .small {
        font-size: 0.8125rem;
    }
    
    .feature-block .bi-check-circle-fill,
    .feature-block-alt .bi-check-circle-fill {
        font-size: 1.25rem !important;
        margin-right: 0.75rem !important;
    }
    
    /* MUCH smaller images on mobile */
    .feature-img-container {
        max-width: 80%;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    .feature-img-container img {
        border-radius: 8px;
        max-height: 280px;              /* Significantly smaller */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    
    .feature-block .row,
    .feature-block-alt .row {
        gap: 1.5rem !important;
    }
    
    .feature-block .order-1,
    .feature-block-alt .order-1 {
        margin-bottom: 0.5rem;
    }
}

/* ================================================== */
/* SMALL MOBILE (below 576px)                         */
/* ================================================== */
@media (max-width: 575.98px) {
    .feature-block,
    .feature-block-alt {
        padding: 50px 0;
    }
    
    .feature-block h2,
    .feature-block-alt h2 {
        font-size: 1.25rem;
    }
    
    .feature-block .lead,
    .feature-block-alt .lead {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .feature-block .badge,
    .feature-block-alt .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem !important;
    }
    
    /* Even smaller images on tiny screens */
    .feature-img-container {
        max-width: 85%;
        border-radius: 8px;
    }
    
    .feature-img-container img {
        max-height: 220px;              /* Very compact */
        border-radius: 6px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    }
}

/* ================================================== */
/* REDUCED MOTION                                     */
/* ================================================== */
@media (prefers-reduced-motion: reduce) {
    .feature-img-container img {
        transition: none;
    }
    
    .feature-img-container img:hover {
        transform: none;
    }
}