.benefits {
    padding: 4rem 2rem;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.benefits h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.benefits h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(46, 35, 129, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    border: 1px solid rgba(46, 35, 129, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(46, 35, 129, 0.15);
    border-color: var(--secondary-color);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.benefit-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.benefit-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.benefit-card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Animation delay for cards */
.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .benefits {
        padding: 3rem 1.5rem;
    }
    
    .benefits-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .benefits {
        padding: 2rem 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
    .benefit-card {
        border: 2px solid var(--primary-color);
    }
    
    .benefit-card h3 {
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .benefit-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .benefit-card:hover {
        transform: none;
    }
}
