/* =========================
   FEATURE-CARD.CSS – FULLY RESPONSIVE (IMAGES CENTERED)
   Purple background, green cards, left-aligned header
   Cards stack on mobile, images centered, fluid spacing
========================= */

.features {
    width: 100%;
    padding: 80px 0;
    background: #1e1029;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    box-sizing: border-box;
}

/* ----- HEADER – left aligned, responsive text ----- */
.features .section-header {
    text-align: left;
    margin-bottom: 60px;
}

.features .section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.features .section-tag hr {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #c084fc);
    border: none;
    margin: 0;
}

.features .section-tag h5 {
    color: #4ade80;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.features .section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #e2d6f0;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 12px;
}

.features .section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4ade80, #c084fc);
    border-radius: 2px;
}

.features .section-header p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #d1e0d6;
    line-height: 1.5;
    max-width: 650px;
    margin: 0;
    text-align: left;
    width: 100%;
}

/* ----- FEATURE GRID – responsive cards ----- */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.feature-card {
    flex: 1 1 280px;
    max-width: 320px;
    background: rgba(10, 31, 26, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #c084fc;
    box-shadow: 0 16px 30px rgba(192, 132, 252, 0.2);
    background: rgba(10, 31, 26, 0.9);
}

/* ----- CENTER THE IMAGE HORIZONTALLY ----- */
.feature-card figure {
    margin: 0 0 24px 0;
    text-align: center;
}

.feature-card img {
    width: clamp(55px, 12vw, 70px);
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.4));
    transition: 0.3s ease;
}

.feature-card:hover img {
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.6));
    transform: scale(1.05);
}

.feature-card h4 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #b8c4bc;
    line-height: 1.5;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet (≤ 900px): reduce padding, allow cards to be more flexible */
@media (max-width: 900px) {
    .features {
        padding: 60px 0;
    }
    .features .section-header {
        margin-bottom: 40px;
    }
    .feature-grid {
        gap: 25px;
    }
    .feature-card {
        flex-basis: 280px;
        max-width: 100%;
    }
}

/* Mobile (≤ 768px): stack cards in a single column */
@media (max-width: 768px) {
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }
    .feature-card {
        max-width: 400px;
        width: 100%;
    }
    .features .section-header h2 {
        margin-bottom: 16px;
    }
}

/* Small phones (≤ 480px): tighter card padding */
@media (max-width: 480px) {
    .feature-card {
        padding: 24px 16px;
    }
    .feature-card h4 {
        margin-bottom: 12px;
    }
    .feature-card p {
        line-height: 1.4;
    }
}

/* Very narrow (≤ 360px): reduce image size and font */
@media (max-width: 360px) {
    .feature-card img {
        width: 50px;
    }
    .feature-card h4 {
        font-size: 1.1rem;
    }
    .feature-card p {
        font-size: 0.8rem;
    }
}