/* FAQ Page - Category Spacing and Title Centering */

/* Add space between FAQ categories */
.mxd-accordion {
    margin-bottom: 4rem; /* Space between categories */
}

/* FAQ Category Title Styling */
.faq-category-title {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

/* First category should not have top margin */
.faq-category-title:first-of-type {
    margin-top: 0;
}

/* Center the category title and ensure it doesn't touch the divider line */
h2.faq-category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

/* Add decorative lines on both sides of category title */
h2.faq-category-title::before,
h2.faq-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.2;
}

/* Ensure proper spacing for the first category */
.mxd-block__content > h2.faq-category-title:first-child {
    margin-top: 0;
}

/* Additional spacing between category and its accordion */
.faq-category-title + .mxd-accordion {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mxd-accordion {
        margin-bottom: 3rem;
    }
    
    h2.faq-category-title {
        margin-top: 3rem;
        margin-bottom: 2rem;
        gap: 1rem;
    }
}
