.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.feature-card {
    flex: 0 1 350px;
    max-width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid #3498db;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.feature-card.card-common {
    border-top-color: #3498db;
}

.feature-card.card-communication {
    border-top-color: #27ae60;
}

.feature-card.card-obex {
    border-top-color: #e67e22;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 10px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #eef1f5;
}

.feature-card-header .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.card-common .card-icon {
    background: #3498db;
}

.card-communication .card-icon {
    background: #27ae60;
}

.card-obex .card-icon {
    background: #e67e22;
}

.feature-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2c3e50;
    line-height: 1.3;
}

.feature-card-list {
    list-style: none;
    margin: 0;
    padding: 14px 20px 18px 20px;
    flex-grow: 1;
}

.feature-card-list li {
    position: relative;
    padding: 7px 0 7px 28px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.feature-card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-card-list li:first-child {
    padding-top: 0;
}

.feature-card-list li::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 7px;
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
}

.card-obex .feature-card-list li::before {
    color: #e67e22;
}

.card-common .feature-card-list li::before {
    color: #3498db;
}

.feature-card-list li:first-child::before {
    top: 0;
}

.feature-card-list li a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 1px dotted transparent;
}

.feature-card-list li a:hover {
    color: #1a6daa;
    border-bottom-color: #1a6daa;
}

.card-communication .feature-card-list li a {
    color: #27ae60;
}

.card-communication .feature-card-list li a:hover {
    color: #1e8449;
    border-bottom-color: #1e8449;
}

.card-obex .feature-card-list li a {
    color: #e67e22;
}

.card-obex .feature-card-list li a:hover {
    color: #c0651f;
    border-bottom-color: #c0651f;
}

.card-drivers {
    border-top-color: #f39c12;
}
.card-drivers .card-icon {
    background: #f39c12;
}
.card-drivers .feature-card-list li::before {
    color: #f39c12;
}

.card-bluetooth {
    border-top-color: #8e44ad;
}
.card-bluetooth .card-icon {
    background: #8e44ad;
}
.card-bluetooth .feature-card-list li::before {
    color: #8e44ad;
}

.card-ble {
    border-top-color: #16a085;
}
.card-ble .card-icon {
    background: #16a085;
}
.card-ble .feature-card-list li::before {
    color: #16a085;
}

.card-audio {
    border-top-color: #e74c3c;
}
.card-audio .card-icon {
    background: #e74c3c;
}
.card-audio .feature-card-list li::before {
    color: #e74c3c;
}

.card-drone {
    border-top-color: #7f8c8d;
}
.card-drone .card-icon {
    background: #7f8c8d;
}
.card-drone .feature-card-list li::before {
    color: #7f8c8d;
}

.card-wifi {
    border-top-color: #1abc9c;
}
.card-wifi .card-icon {
    background: #1abc9c;
}
.card-wifi .feature-card-list li::before {
    color: #1abc9c;
}

.card-wifidirect {
    border-top-color: #e67e22;
}
.card-wifidirect .card-icon {
    background: #e67e22;
}
.card-wifidirect .feature-card-list li::before {
    color: #e67e22;
}

.card-sniffer {
    border-top-color: #2c3e50;
}
.card-sniffer .card-icon {
    background: #2c3e50;
}
.card-sniffer .feature-card-list li::before {
    color: #2c3e50;
}

.card-network {
    border-top-color: #f39c12;
}
.card-network .card-icon {
    background: #f39c12;
}
.card-network .feature-card-list li::before {
    color: #f39c12;
}

#features {
    margin-bottom: 8px;
}

#features p {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2b3c;
    text-align: center;
    margin-bottom: 1.8rem;
    padding-bottom: 0.6rem;
    position: relative;
    letter-spacing: 0.02em;
}

/* Decorative underline */
#features p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

@media (max-width: 680px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card-header {
        padding: 14px 16px 8px 16px;
    }

    .feature-card-header h3 {
        font-size: 0.9rem;
    }

    .feature-card-list {
        padding: 10px 16px 14px 16px;
    }

    .feature-card-list li {
        font-size: 0.9rem;
        padding: 6px 0 6px 26px;
    }

    .feature-card-header .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (min-width: 681px) and (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features-grid .feature-card:nth-child(3):nth-last-child(1) {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }
}

.feature-card .card-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif;
    font-weight: 900;
}
