/**
 * FAQ Page Styling
 * Location: /var/www/saafee/public/css/faq.css
 */

.faq-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 16px;
    flex: 1;
    width: 100%;
}

.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-header h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: #333;
}

.faq-header p {
    color: #7A7A7A;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Category sections */
.faq-category {
    margin-bottom: 28px;
}

.faq-category-title {
    font-size: 1.1em;
    color: #E44335;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E44335;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-category-title span {
    font-size: 1.2em;
}

/* Accordion items */
.faq-item {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    text-align: start;
    gap: 12px;
    font-family: inherit;
    line-height: 1.5;
}

.faq-question:hover {
    background: #FAFAFA;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #7A7A7A;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-item.open .faq-question {
    color: #E44335;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 16px 16px;
    color: #555;
    font-size: 0.9em;
    line-height: 1.75;
}

.faq-answer-inner a {
    color: #E44335;
    text-decoration: none;
}

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

/* Contact CTA at bottom */
.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
}

.faq-cta p {
    color: #555;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.faq-cta a {
    display: inline-block;
    padding: 10px 24px;
    background: #E44335;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: background 0.2s ease;
}

.faq-cta a:hover {
    background: #D33426;
}

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

/* Desktop */
@media (min-width: 768px) {
    .faq-container {
        margin: 40px auto;
        padding: 20px;
    }

    .faq-header h1 {
        font-size: 2.2em;
    }

    .faq-category-title {
        font-size: 1.2em;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 1em;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
        font-size: 0.95em;
    }
}
