/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Description: Child theme for Hello Elementor
Version: 1.0
*/

/* Your custom styles will go here */

body {
    direction: rtl;
    text-align: right;
}


/* =========================================
   Yoast FAQ Accordion Styles
   ========================================= */

/* Container styling */
.wp-block-yoast-faq-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* The Question (Header) */
.schema-faq-section .schema-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    margin: 0;
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 16px;
    color: #1a202c;
    transition: background-color 0.2s ease;
    direction: rtl;
    text-align: right;
}

.schema-faq-section .schema-faq-question:hover {
    background-color: #f8fafc;
}

/* Remove border from the last question if closed */
.schema-faq-section:last-child .schema-faq-question {
    border-bottom: none;
}

/* The Icon (Chevron/Plus) */
.schema-faq-section .schema-faq-question::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 15px; 
    font-size: 20px;
    font-weight: 300;
    color: #718096;
    transition: transform 0.3s ease;
}

/* The Answer (Hidden by default) */
.schema-faq-section .schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    margin: 0;
    opacity: 0;
    background-color: #fff;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease-out;
    direction: rtl;
    text-align: right;
}

/* --- ACTIVE STATE --- */

/* Rotate icon */
.schema-faq-section.active .schema-faq-question::after {
    transform: rotate(45deg);
    color: #000;
}

/* Show answer */
.schema-faq-section.active .schema-faq-answer {
    max-height: 1000px; /* Allows expansion */
    opacity: 1;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #f1f5f9;
}