.frequently-asked-questions {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    direction: rtl;
}

/* Header */

.faq-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 800;
}

/* FAQ */

.faq-item {
    width: 100%;
    margin-bottom: 15px;
}

.faq-item details {
    background: var(--faq-color);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.4s ease;
}

.faq-item details:hover {
    background: var(--faq-hover-color);
}

/* Question */

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: #1e3b2b;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
}

/* Remove default arrow */

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Firefox */

.faq-item summary {
    list-style: none;
}

/* Plus icon */

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--faq-button-color);
    color: white;
    font-size: 22px;
    line-height: 1;
    transition:
        transform 0.7s ease,
        background 0.4s ease;
}

.faq-icon:hover {
    background: var(--faq-button-hover-color);
}

/* Rotate + when opened */

.faq-item details[open] .faq-icon {
    transform: rotate(45deg);
}

/* Answer */

.faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

/* Animation */

.faq-item details[open] .faq-answer p {
    animation: faq-open 0.5s ease;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .frequently-asked-questions {
        padding: 35px 15px;
    }
    .faq-header h2 {
        font-size: 27px;
    }
    .faq-item summary {
        padding: 16px;
        font-size: 15px;
    }
    .faq-answer {
        padding: 0 16px 16px;
    }
}