/* 
   -------------------------------------------------------------------------
   Features Section Redesign
   -------------------------------------------------------------------------
*/

#features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    position: relative;
}

/* Background Decorations */
.feature-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.feature-bg-decor.decor-1 {
    top: 5%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 89, 76, 0.08) 0%, transparent 70%);
}

.feature-bg-decor.decor-2 {
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

/* Feature Row Layout */
.feature-row {
    margin-bottom: 8rem;
    position: relative;
}

.feature-row:last-of-type {
    margin-bottom: 5rem;
}

/* Image Wrapper Styling */
.img-wrapper-modern {
    position: relative;
    border-radius: 24px;
    background: transparent;
    transition: transform 0.4s ease;
    padding: 0; /* Removed padding to let image fill */
}

/* Removed the ::before pseudo-element that caused the offset border issue */

.img-wrapper-modern:hover {
    transform: translateY(-5px);
}

.img-spring-zoom {
    border-radius: 24px !important; /* Match container border radius */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; /* Enhanced shadow */
}

/* Feature Content Styling */
.feature-content-box {
    position: relative;
}

.feature-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(0, 89, 76, 0.08);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.feature-title-modern {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.feature-title-modern::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 8px;
    border-radius: 2px;
}

.feature-desc-modern {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* List Styling */
.feature-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-modern li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

.feature-list-modern li i {
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(20, 141, 89, 0.1); /* Light Green bg */
    color: #148D59; /* Custom Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.feature-list-modern li:hover i {
    background-color: #148D59;
    color: #ffffff;
    transform: scale(1.1);
}

/* Workshop Process Section */
.workshop-process-wrapper {
    background: #ffffff;
    border-radius: 30px;
    padding: 4rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.workshop-process-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #198754, #0dcaf0, #6f42c1, #6c757d, #0d6efd, #dc3545);
}

.progress-modern {
    height: 50px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.progress-modern .progress-bar {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 50px;
}

.progress-modern .progress-bar:hover {
    filter: brightness(1.1);
}

/* Carousel Container */
.carousel-container-modern {
    margin-bottom: 40px;
    border: none !important;
    padding: 15px;
    border-radius: 24px !important;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.carousel-magic-zoom {
    border-radius: 16px !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .feature-row {
        margin-bottom: 5rem;
        text-align: center;
    }
    
    .feature-row.flex-md-row-reverse {
        flex-direction: column !important; /* Reset reverse on mobile for consistent image top */
    }

    .feature-content-col {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 2rem;
    }

    .feature-title-modern::after {
        margin: 8px auto 0; /* Center the underline */
    }

    .feature-list-modern li {
        justify-content: flex-start;
        text-align: left;
        display: inline-block; /* Or keep block but text-align left */
        width: 100%;
    }
    
    .feature-list-modern {
        text-align: left;
        display: inline-block;
    }
}
