/* FAQ Section Styling - Shared Component */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ Title */
.faq-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 8px;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 10px;
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
    position: relative;
}

/* Add + Icon */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* Active (open) Question */
.faq-question.active {
    background: #eaffea;
}

/* Change + to - when active */
.faq-question.active::after {
    content: '–';
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: white;
    padding: 0 15px;
    border-left: 4px solid #4CAF50;
    border-radius: 0 0 8px 8px;
}

/* Open Answer */
.faq-answer.active {
    padding: 15px;
    max-height: 200px;
}

/* FAQ Answer Text */
.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Answer Links */
.faq-answer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    .faq-section {
        padding: 15px;
        margin: 20px auto;
    }

    .faq-section h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 12px;
    }

    .faq-question::after {
        right: 15px;
        font-size: 1.3rem;
    }
}

/* RTL Support */
[dir="rtl"] .faq-question {
    text-align: center;
}

[dir="rtl"] .faq-question::after {
    right: auto;
    left: 20px;
}

[dir="rtl"] .faq-answer {
    border-left: none;
    border-right: 4px solid #4CAF50;
}

@media (max-width: 600px) {
    [dir="rtl"] .faq-question::after {
        left: 15px;
    }
}
