/* === MG FAQ Layout === */
:root {
    --mg-primary: #752b03;
    --mg-dark: #1a1a2e;
    --mg-text: #333333;
    --mg-text-light: #888888;
    --mg-bg: #ffffff;
    --mg-border: #e5e5e5;
}

/* Scoped reset */
.mg-faq-container,
.mg-faq-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
}

.mg-faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mg-faq-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mg-dark);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Search */
.mg-faq-search {
    margin-bottom: 32px;
}
.mg-faq-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--mg-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}
.mg-faq-search-input:focus {
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 3px rgba(117, 43, 3, 0.1);
}

/* No results */
.mg-faq-no-results {
    text-align: center;
    padding: 32px 20px;
    color: var(--mg-text-light);
    font-size: 15px;
}

/* Category */
.mg-faq-category {
    margin-bottom: 32px;
}
.mg-faq-category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mg-dark);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mg-border);
}

/* FAQ Item */
.mg-faq-item {
    border-bottom: 1px solid var(--mg-border);
}

.mg-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--mg-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    transition: color 0.15s ease;
}
.mg-faq-question:hover {
    color: var(--mg-primary);
}

/* Chevron */
.mg-faq-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-left: 16px;
    border-right: 2px solid var(--mg-text-light);
    border-bottom: 2px solid var(--mg-text-light);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.mg-faq-item[data-expanded="true"] .mg-faq-chevron {
    transform: rotate(-135deg);
}

/* Answer */
.mg-faq-answer {
    padding: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--mg-text);
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.mg-faq-answer[hidden] {
    display: block;
    max-height: 0;
    padding: 0;
    overflow: hidden;
}
.mg-faq-answer p {
    margin: 0 0 10px 0;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .mg-faq-container {
        padding: 12px;
    }
    .mg-faq-title {
        font-size: 22px;
    }
    .mg-faq-question {
        font-size: 14px;
        padding: 12px 0;
    }
}
