/********** Features Section CSS **********/
.features-section {
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,250,251,0) 100%);
    z-index: 0;
}

.features-section .row {
    position: relative;
    z-index: 1;
}

.features-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-item {
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    border-left: 3px solid transparent;
}

.feature-item:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
    border-left: 3px solid var(--primary);
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(185, 46, 65, 0.15);
}

.feature-item:hover .feature-icon {
    transform: rotate(10deg);
}

.feature-center {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-center:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-image {
    overflow: hidden;
}

.feature-image img {
    transition: all 0.5s ease;
}

.feature-center:hover .feature-image img {
    transform: scale(1.05);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(185, 46, 65, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.feature-center:hover .feature-overlay {
    opacity: 1;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.feature-center:hover .feature-icon-large {
    opacity: 1;
    transform: scale(1);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: var(--primary);
}

.feature-content {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,250,251,0.5) 100%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .feature-center {
        margin-bottom: 40px;
        margin-top: 20px;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .features-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    .feature-icon {
        min-width: 50px;
        height: 50px;
    }
    
    .feature-content {
        padding: 25px !important;
    }
}

@media (max-width: 575.98px) {
    .feature-item {
        padding: 15px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
}