/**
 * Parish FAQ Styles
 */

.parish-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.parish-faq-accordion {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.parish-faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.parish-faq-item:last-child {
    border-bottom: none;
}

.parish-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s ease;
}

.parish-faq-question:hover {
    background-color: #f8f9fa;
}

.parish-faq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.parish-faq-question[aria-expanded="true"] {
    background-color: #f0f6fc;
}

.parish-faq-question-text {
    flex: 1;
    padding-right: 16px;
}

.parish-faq-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.parish-faq-toggle::before,
.parish-faq-toggle::after {
    content: '';
    position: absolute;
    background-color: #666;
    transition: transform 0.2s ease;
}

.parish-faq-toggle::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.parish-faq-toggle::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.parish-faq-question[aria-expanded="true"] .parish-faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.parish-faq-answer {
    padding: 0 20px 20px 20px;
    background: #fff;
    color: #555;
    line-height: 1.6;
}

.parish-faq-answer[hidden] {
    display: none;
}

.parish-faq-answer p:first-child {
    margin-top: 0;
}

.parish-faq-answer p:last-child {
    margin-bottom: 0;
}

.parish-faq-answer a {
    color: #0073aa;
}

.parish-faq-answer a:hover {
    text-decoration: underline;
}

.parish-faq-no-results {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .parish-faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .parish-faq-answer {
        padding: 0 16px 16px 16px;
    }
}
