/* ==== Tawwos Product FAQs Styles ==== */

/* FAQ Section Container */
.tawwos-faq-section {
    margin-top: 20px;
    border-radius: 8px;
    font-family: inherit;
}

/* Each FAQ Item */
.tawwos-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Question Header */
.tawwos-faq-question {
    background-color: #bd0028;
    color: #fff;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    position: relative;
    transition: background-color 0.3s ease;
    border-radius: 8px 8px 0 0;
}

/* Hover effect */
.tawwos-faq-question:hover {
    background-color: #a00021;
}

/* Answer Content */
.tawwos-faq-answer {
    display: none;
    background-color: #fff;
    padding: 15px 20px;
    color: #333;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
}

/* ===== Arrow Icon Logic (supports RTL & LTR) ===== */

/* Default arrow: right side (LTR fallback) */
.tawwos-faq-question::after {
    content: "▼";
    position: absolute;
    right: 20px; /* fallback */
    left: auto;
    font-size: 14px;
    transition: transform 0.35s ease;
    transform-origin: center;
}

/* RTL Support (Arabic or RTL languages) */
[dir="rtl"] .tawwos-faq-question::after,
html[dir="rtl"] .tawwos-faq-question::after,
:root[dir="rtl"] .tawwos-faq-question::after {
    right: auto;
    left: 20px;
}

/* Optional :dir() logical selector */
:dir(rtl) .tawwos-faq-question::after {
    right: auto;
    left: 20px;
}

/* Arrow rotation when open */
.tawwos-faq-item.open .tawwos-faq-question::after {
    transform: rotate(180deg);
}

/* Smooth open animation */
.tawwos-faq-item.open .tawwos-faq-answer {
    display: block;
    animation: faqFade 0.35s ease;
}

@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
