/**
 * Module ED Features - Styles Front-end
 * @author    Energiedin
 * @copyright 2024 Energiedin
 */

.ed-features-container {
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
}

.ed-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ed-feature-item {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 280px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ed-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ed-feature-stripe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.12) 100%);
    pointer-events: none;
}

.ed-feature-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.ed-feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
}

.ed-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ed-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ed-feature-subtitle {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.ed-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .ed-feature-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 250px;
    }
    .ed-feature-icon { width: 50px; height: 50px; }
    .ed-feature-title { font-size: 16px; }
    .ed-feature-subtitle { font-size: 13px; }
}

@media (max-width: 575px) {
    .ed-features-wrapper { flex-direction: column; gap: 10px; }
    .ed-feature-item { flex: 1 1 100%; min-width: 100%; padding: 20px 15px; }
    .ed-feature-icon { width: 45px; height: 45px; padding: 8px; }
    .ed-feature-title { font-size: 15px; }
    .ed-feature-subtitle { font-size: 12px; }
}
