/**
 * ACF FAQ Accordion Styles
 * Version: 1.0.0
 */

/* Container Styles */
.acf-faq-accordion {
    max-width: 100%;
    margin: 2rem auto;
}

/* FAQ Item Styles */
.faq-item {
    background-color: #f5f5f5;
    border-radius: 0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-item.active {
    background-color: #1591d0;
    color: #ffffff;
}

/* Question Styles */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question {
    background-color: transparent;
}

.faq-item.active .faq-question:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.faq-question h3 {
    margin: 0;
    padding: 0;
    font-family: 'Aller', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #034e78;
    flex: 1;
    line-height: 1.4;
}

.faq-item.active .faq-question h3 {
    color: #ffffff;
}

/* Toggle Icon */
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    color: #034e78;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #ffffff;
}

.faq-toggle svg {
    width: 24px;
    height: 24px;
}

/* Answer Styles */
.faq-answer {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
    max-height: none;
}

.faq-answer-content {
    padding: 1.5rem 2rem 1.5rem 2rem;
    font-family: 'Meta Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #034e78;
}

.faq-item.active .faq-answer-content {
    color: #ffffff;
}

/* Content within WYSIWYG */
.faq-answer-content p {
    margin: 0 0 1rem 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.faq-answer-content ul:last-child,
.faq-answer-content ol:last-child {
    margin-bottom: 0;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.faq-answer-content a:hover {
    opacity: 0.8;
}

.faq-item.active .faq-answer-content a {
    color: #ffffff;
}

.faq-answer-content strong,
.faq-answer-content b {
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.125rem;
    }
    
    .faq-answer-content {
        padding: 1.25rem 1.5rem 1.25rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .faq-toggle svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 1rem 1.25rem 1rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Animation for smooth expansion */
@keyframes expandAnswer {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer-content {
    animation: expandAnswer 0.3s ease forwards;
}

