﻿:root {
    --primary: #1e824c;
    --primary-dark: #14623a;
    --accent: #e8f5e9;
    --gray: #f9f9f9;
    --radius: 16px;
    --transition: 0.3s ease;
}

/*======= FAQ Section =======*/
.faq-section {
    background: #fff;
    padding: 80px 0 60px 0;
}

    .faq-section h2 {
        text-align: center;
        color: var(--primary);
        font-size: 2rem;
        margin-bottom: 48px;
        font-weight: bold;
    }

/*======= FAQ Item =======*/
.faq-item {
    background: var(--gray);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px #1e824c15;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

    .faq-item:hover {
        box-shadow: 0 6px 18px #1e824c22;
    }

.faq-question {
    background: none;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 18px 24px;
    width: 100%;
    text-align: right;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background var(--transition);
}

    .faq-question::after {
        content: "+";
        position: absolute;
        left: 24px;
        font-size: 1.5rem;
        transition: transform var(--transition);
    }

.faq-item.open .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.4s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    padding: 12px 24px 18px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/*======= Responsive =======*/
@media (max-width: 600px) {
    .faq-section {
        padding: 50px 0 30px;
    }

        .faq-section h2 {
            font-size: 1.5rem;
        }

    .faq-question {
        font-size: 1rem;
    }
}
/* بانر بدون خلفية */
.faq-hero {
    padding: 60px 0 30px;
    background: none;
}

    .faq-hero .hero-content {
        text-align: center;
    }

    .faq-hero h1 {
        font-size: 2.2rem;
        color: #1e824c;
        margin-bottom: 12px;
    }

    .faq-hero p {
        font-size: 1.1rem;
        color: #444;
        max-width: 600px;
        margin: auto;
    }

/* قسم الأسئلة */
.faq-page {
    padding: 40px 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.faq-question {
    background: none;
    border: none;
    color: #1e824c;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    text-align: right;
    padding: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

    .faq-question:hover {
        background-color: #f3fdf5;
    }

    .faq-question.open::after {
        content: "▲";
        float: left;
        color: #1e824c;
    }

    .faq-question::after {
        content: "▼";
        float: left;
        color: #999;
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 14px;
}

    .faq-answer p {
        margin: 0;
        padding: 12px 0;
        color: #444;
        line-height: 1.6;
    }

/* موبايل */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 1rem;
    }
}
