/* Features Grid Widget Styles */
.ewg-features-grid-wrapper {
    width: 100%;
    margin: 0 auto;
}

.ewg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    align-items: start;
}

.ewg-features-grid .ewg-feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 25px 25px 40px;
    background: #ffffff;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    /* height: 180px; */
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.ewg-features-grid .ewg-feature-item:hover {
    transform: none;
    box-shadow: none;
}

.ewg-features-grid .ewg-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ewg-features-grid .ewg-feature-icon i,
.ewg-features-grid .ewg-feature-icon svg {
    font-size: 28px;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.ewg-features-grid .ewg-feature-item:hover .ewg-feature-icon {    
    transform: none;
}

.ewg-features-grid .ewg-feature-item:hover .ewg-feature-icon i,
.ewg-features-grid .ewg-feature-item:hover .ewg-feature-icon svg {
    color: #ffffff;
    fill: #ffffff;
}

.ewg-features-grid .ewg-feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.ewg-features-grid .ewg-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ewg-features-grid .ewg-feature-item:hover .ewg-feature-title {
    color: #e74c3c;
}

.ewg-features-grid .ewg-feature-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Background Numbers */
.ewg-features-grid .ewg-feature-number {
    position: absolute;
    color: #E7E9EC;
    counter-increment: count;
    content: "0" counter(count);
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    bottom: 35px;
    inset-inline-start: 35px;
    line-height: 1;
    transform: rotate(-90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ewg-features-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ewg-features-grid.columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ewg-features-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ewg-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    
    .ewg-features-grid .ewg-feature-item {
        gap: 12px;
    }
    
    .ewg-features-grid .ewg-feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .ewg-features-grid .ewg-feature-icon i,
    .ewg-features-grid .ewg-feature-icon svg {
        font-size: 24px;
    }
    
    .ewg-features-grid .ewg-feature-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .ewg-features-grid .ewg-feature-description {
        font-size: 13px;
    }
    
    .ewg-features-grid .ewg-feature-number {
        font-size: 60px;
        bottom: -8px;
        right: -3px;
    }
}

@media (max-width: 480px) {
    .ewg-features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ewg-features-grid .ewg-feature-item {
        gap: 10px;
    }
    
    .ewg-features-grid .ewg-feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .ewg-features-grid .ewg-feature-icon i,
    .ewg-features-grid .ewg-feature-icon svg {
        font-size: 22px;
    }
    
    .ewg-features-grid .ewg-feature-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .ewg-features-grid .ewg-feature-description {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .ewg-features-grid .ewg-feature-number {
        font-size: 50px;
        bottom: -5px;
        right: -2px;
    }
}

/* Grid Column Variations */
.ewg-features-grid[style*="grid-template-columns: repeat(1, 1fr)"] .ewg-feature-item {
    max-width: 500px;
    margin: 0 auto;
}

.ewg-features-grid[style*="grid-template-columns: repeat(4, 1fr)"] .ewg-feature-item {
    padding: 20px 15px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(4, 1fr)"] .ewg-feature-icon {
    width: 60px;
    height: 60px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(4, 1fr)"] .ewg-feature-icon i,
.ewg-features-grid[style*="grid-template-columns: repeat(4, 1fr)"] .ewg-feature-icon svg {
    font-size: 36px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-item,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-item {
    padding: 15px 10px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-icon,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-icon {
    width: 50px;
    height: 50px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-icon i,
.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-icon svg,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-icon i,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-icon svg {
    font-size: 30px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-title,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-title {
    font-size: 16px;
}

.ewg-features-grid[style*="grid-template-columns: repeat(5, 1fr)"] .ewg-feature-description,
.ewg-features-grid[style*="grid-template-columns: repeat(6, 1fr)"] .ewg-feature-description {
    font-size: 12px;
}

/* Animation and Transitions */
.ewg-features-grid .ewg-feature-item * {
    transition: all 0.3s ease;
}

/* Accessibility */
.ewg-features-grid .ewg-feature-item:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ewg-features-grid .ewg-feature-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ewg-features-grid .ewg-feature-item:hover {
        transform: none;
    }
}