.mefaq-wrapper {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.mefaq-grid-1 { grid-template-columns: 1fr; }
.mefaq-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mefaq-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mefaq-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .mefaq-grid-3,
    .mefaq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mefaq-grid-2,
    .mefaq-grid-3,
    .mefaq-grid-4 {
        grid-template-columns: 1fr;
    }
}

.mefaq-search {
    grid-column: 1 / -1;
}

.mefaq-search-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.mefaq-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mefaq-item {
    border-radius: 16px;
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 16px;
    transition: 0.3s ease;
}

.mefaq-theme-glass .mefaq-item {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
}

.mefaq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.mefaq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    padding: 4px 0;
}

.mefaq-question-text {
    flex: 1;
    padding-right: 10px;
}

.mefaq-icon::before {
    content: '›';
    display: inline-block;
    font-size: 20px;
    color: #2ecc71;
    transition: transform 0.25s ease;
}

.mefaq-item.is-open .mefaq-icon::before {
    transform: rotate(90deg);
}

.mefaq-answer {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mefaq-item.is-open .mefaq-answer {
    max-height: 500px;
    opacity: 1;
}

.mefaq-answer[hidden] {
    display: block;
}

.mefaq-empty {
    padding: 14px;
    border-radius: 8px;
    background: rgba(0,0,0,0.4);
    color: #eee;
    font-size: 14px;
}
