/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child theme for Twenty Twenty-Five
Author: Antti Tuppurainen
Author URI: https://tuppurainen.fi
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* Chapter Color Border - displays at bottom of pages with chapter color set */
body[class*="chapter-"]::after {
    content: "";
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: var(--chapter-color);
    z-index: 9999;
}

.reset-margins {
    margin: 0 !important;
}

.reset-padding {
    padding: 0;
}

/* FAQ Accordion Styles */
.schema-faq-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}

.schema-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--wp--preset--color--contrast);
    transition: color 0.3s ease;
    margin: 0;
}

.schema-faq-question::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.schema-faq-section[data-expanded="true"] .schema-faq-question::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
    margin: 0.5rem;
    padding: 0 2rem 0 0;
}

.schema-faq-section[data-expanded="true"] .schema-faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 0.75rem;
}