/* Product Features Section */
.product-features-section {
    --primary-color: #374151; /* Updated primary color */
    --success-color: #28a745; /* Updated success color */
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --bg-hover: #F9FAFB;
    --border-color: #E5E7EB;
    --icon-size: 18px; /* Increased icon size */
    --title-size: 16px; /* Increased title size */
}

/* Feature Groups Grid */
.feature-groups-grid {
    display: grid;
    gap: 2rem; /* Increased gap */
    margin-top: 2rem; /* Increased margin-top */
}

/* Feature Group Card */
.feature-group {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem; /* Increased padding */
    transition: all 0.2s ease;
}

.feature-group:hover {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1); /* Increased box-shadow */
}

/* Feature Group Header */
.feature-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.feature-group-header .header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Increased gap */
}

.feature-group-header i {
    font-size: var(--icon-size);
    color: var(--primary-color);
    width: 32px; /* Increased width */
    height: 32px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: 0.375rem;
}

.feature-group-header .toggle-icon {
    font-size: var(--icon-size);
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.feature-group-header.active .toggle-icon {
    transform: rotate(180deg);
}

.feature-group-title {
    font-size: var(--title-size);
    font-weight: 600; /* Increased font-weight */
    color: var(--text-primary);
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1rem;
}

/* Feature Item */
.feature-item {
    background: var(--bg-hover);
    border-radius: 0.375rem;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Increased box-shadow */
}

.feature-name {
    font-size: var(--title-size);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-name i {
    font-size: 16px;
    color: var(--success-color);
}

.feature-value {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6; /* Increased line-height */
    margin: 0;
}

/* --- START OF SOLUTION --- */
/* Desktop View */
.product-features-section .hidden.md\:block {
    display: none;
}

@media (min-width: 768px) { /* Assuming 'md' breakpoint is at 768px */
    .product-features-section .hidden.md\:block {
        display: block;
    }

    .product-features-section .md\:hidden {
        display: none;
    }

    /* Two Column Grid for Desktop */
    .feature-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile View */
.product-features-section .md\:hidden {
    display: block;
}

@media (min-width: 768px) { /* Assuming 'md' breakpoint is at 768px */
    .product-features-section .md\:hidden {
        display: none;
    }
}
/* --- END OF SOLUTION --- */

/* Mobile Optimizations */
@media (max-width: 767px) { /* Changed to 767px for mobile */
    .feature-groups-grid {
        grid-template-columns: 1fr;
        gap: 1rem; /* Reduced gap */
    }

    .features-grid {
        gap: 0.75rem; /* Reduced gap */
    }

    .feature-group {
        margin-bottom: 1rem; /* Reduced margin-bottom */
    }

    .feature-item {
        padding: 0.75rem;
    }

    .feature-name i {
        font-size: 14px;
    }

    .feature-value {
        font-size: 13px; /* Reduced font-size */
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    animation: slideIn 0.2s ease-out forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-group,
    .feature-item {
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feature-group {
        border: 2px solid var(--text-primary); /* Increased border width */
    }
    
    .feature-item {
        border: 2px solid currentColor; /* Increased border width */
    }
}

/* RTL Support */
[dir="rtl"] .feature-group-header i {
    margin-right: 0;
    margin-left: 0.75rem; /* Increased margin-left */
}

[dir="rtl"] .feature-name i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .feature-value {
    padding-right: 0;
    padding-left: 1.5rem;
}