.features {
    padding: 80px 0;
    background-color: #f5f5f5;
    direction: rtl;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.features h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #009688;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    margin: 0 auto;
}

.feature {
    flex: 1;
    width: calc(25% - 20px); /* Equal width for each item */
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: #009688;
    top: 0;
    left: 0;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.feature h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #009688;
    bottom: 0;
    left: 0;
    right: auto;}

.feature p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* New Feature Icon Styling */
.feature-icon {
    text-align: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 36px;
    color: #009688;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #009688;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon i {
    background-color: rgba(0, 150, 136, 0.1);
    transform: scale(1.05);
}

/* Responsive behavior for tablets */
@media (max-width: 992px) {
    .feature {
        padding: 25px 15px;
    }
  
    .feature h3 {
        font-size: 18px;
    }
    
    .feature-icon i {
        height: 60px;
        width: 60px;
        font-size: 30px;
    }
}

/* Responsive behavior for mobile */
@media (max-width: 768px) {
    .features-grid {
        flex-wrap: wrap;
    }
  
    .feature {
        flex: 1 0 100%;
        margin-bottom: 20px;
        width: 100%;
    }
}
