/* Yoast FAQ Accordion - SEO-friendly styling */
/* All content remains visible in HTML for SEO purposes */

.wp-block-yoast-faq-block {
    max-width: 100%;
}

.schema-faq-section {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.schema-faq-section:last-child {
    border-bottom: none;
}

/* Question styling - make it look clickable */
.schema-faq-question {
    display: block;
    width: 100%;
    padding: 20px 40px 20px 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: none;
    text-align: left;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
}

.schema-faq-question:hover {
    color: var(--accentColor);
}

/* Add icon indicator */
.schema-faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--accentColor);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.schema-faq-section.active .schema-faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* Answer container - SEO-friendly hiding with smooth animation */
.schema-faq-answer {
    overflow: hidden;
    margin: 0;
    height: 0;
    opacity: 1;
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: height;
}

.schema-faq-section.active .schema-faq-answer {
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Inner wrapper so padding doesn't affect height math */
.schema-faq-answer .schema-faq-answer-inner {
    padding: 0 0 20px 0;
}


/* Screen reader only text for accessibility */
.schema-faq-question .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schema-faq-question {
        padding: 16px 35px 16px 0;
        font-size: 16px;
    }
    
    .schema-faq-question::after {
        font-size: 20px;
        right: 5px;
    }
    
    .schema-faq-answer .schema-faq-answer-inner {
        padding: 0 0 16px 0;
    }
}


