/* FAQ Accordion Styles - Semantic Version */

.faq-accordion {
    margin: 0;
    padding: 0;
}

.faq-item {
    margin-bottom: 0.5em;
}

/* Heading reset */
.faq-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* Button styling */
.faq-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    color: inherit;
    border: none;
    padding: 0.6em 15px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    text-align: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.faq-button:hover,
.faq-button:focus {
    background: inherit;
}

/* .faq-button:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
} */

.faq-title {
    flex: 1;
    padding-right: 45px;
}

/* Icon styling */
.faq-icon {
    position: absolute;
    right: 15px;
    font-size: 1.5em;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-icon::before {
    content: '+';
}

.faq-button[aria-expanded="true"] .faq-icon::before {
    content: '–';
}

/* Panel styling */
.faq-panel {
    background: #f7f7f7;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.faq-panel[hidden] {
    display: block; /* Override hidden attribute to allow CSS animation */
}

.faq-panel.is-open {
    max-height: 1000px; /* Large enough for most content */
}

.faq-content {
    padding: 15px 15px 5px;
}

.faq-content p,
.faq-content ul {
    text-shadow: none;
}

.faq-content a {
    position: relative;
    z-index: 1;
}

/* No posts message */
.no-posts-to-list {
    padding: 1em;
    background: #f7f7f7;
    border: 1px solid #ddd;
    text-align: center;
}
