:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    --gradient-start: rgba(58, 134, 255, 0.05);
    --gradient-end: rgba(131, 56, 236, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
}

/* Main Benefits Container */
.benefits-section {
    margin-top: 3% !important;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: relative;
    overflow: hidden;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Benefits Grid Layout */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

/* Card Header with Icon */
.card-header {
    padding: 2rem 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

.icon-container i {
    font-size: 28px;
    color: white;
}

/* Accent line */
.accent-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 1.5rem;
}

/* Card Content */
.card-content {
    padding: 0 1.5rem 0rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.benefit-card h3 {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Decorative Elements */
.card-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
    z-index: 1;
}

/* Hover Effects */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.4s ease;
}

.benefit-card:hover::before {
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .benefits-section {
        margin-top: 10% !important;
        padding: 3rem 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .benefit-card {
        margin-bottom: 1rem;
    }

    .card-header {
        padding: 1.5rem 1.25rem 0.75rem;
    }

    .icon-container {
        width: 60px;
        height: 60px;
    }

    .icon-container i {
        font-size: 24px;
    }

    .card-content {
        padding: 0 1.25rem 1.5rem;
    }

    .benefit-card h3 {
        font-size: 1.3rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }
    
    /* Adjust hover effect for touch devices */
    .benefit-card:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .benefits-section {
        margin-top: 10% !important;
        padding: 0.5rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .benefit-card {
        border-radius: 12px;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .icon-container i {
        font-size: 20px;
    }
    
    .accent-line {
        width: 40px;
        height: 2px;
        margin-bottom: 1rem;
    }
    
    .card-content {
        padding: 0 1rem 1.25rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Fixing tap functionality on mobile */
@media (hover: none) {
    .benefit-card:hover {
        transform: none;
    }
    
    .benefit-card:active {
        transform: translateY(-5px);
    }
    
    .benefit-card::before {
        display: none;
    }
}

