

@font-face {
    font-family: 'Vazir';
    src: url('../font/Vazir.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../font/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #9b51e0;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #9b51e0 #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.8;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-container {
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem 2.2rem;
    border: none;
    border-radius: 0;
}

.faq-header {
    border-bottom: 3px solid #9b51e0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
}

.faq-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 550px;
    margin: 0 auto;
}

.faq-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    width: 100%;
    overflow: hidden;
}

.faq-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.faq-tab {
    padding: 0.6rem 1.4rem;
    font-family: 'Vazir', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.faq-tab:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.faq-tab.active {
    color: #9b51e0;
    font-weight: 700;
    background: rgba(155, 81, 224, 0.08);
}

.faq-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.55rem;
    right: 0;
    width: 100%;
    height: 3px;
    background: #9b51e0;
    border-radius: 4px 4px 0 0;
}

.faq-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.faq-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #c084fc;
    box-shadow: 0 4px 16px rgba(155, 81, 224, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: #0f172a;
    text-align: right;
    transition: all 0.25s ease;
    gap: 1rem;
}

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

.faq-question .faq-q-text {
    flex: 1;
    line-height: 1.6;
}

.faq-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.6;
}

.faq-question:hover .faq-icon {
    opacity: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        padding 0.35s ease;
    font-size: 0.93rem;
    color: #334155;
    line-height: 1.9;
    background: #fafcff;
    border-top: 1px solid transparent;
}

.faq-answer p {
    margin: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-right: 1.5rem;
    margin: 0.3rem 0;
}

.faq-answer li {
    margin-bottom: 0.2rem;
}

.faq-answer strong {
    color: #7c3aed;
    font-weight: 700;
}

.faq-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 0.6rem 2.2rem;
    font-family: 'Vazir', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #9b51e0;
    background-color: #ffffff;
    border: 2px solid #9b51e0;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: #9b51e0;
    color: #ffffff;
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem 0.75rem;
    }

    .faq-container {
        padding: 1.5rem 1rem;
    }

    .faq-header h1 {
        font-size: 1.7rem;
    }

    .faq-header p {
        font-size: 0.9rem;
    }

    .faq-tabs-wrapper {
        padding-bottom: 0.3rem;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .faq-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.3rem;
        width: auto;
        padding: 0 0.2rem;
    }

    .faq-tab {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .faq-tab.active::after {
        bottom: -0.35rem;
        height: 2.5px;
    }

    .faq-question {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-answer {
        font-size: 0.86rem;
    }
}

@media (max-width: 500px) {
    .faq-container {
        padding: 1rem 0.75rem;
    }

    .faq-header h1 {
        font-size: 1.4rem;
    }

    .faq-header p {
        font-size: 0.82rem;
    }

    .faq-tabs-wrapper {
        padding-bottom: 0.3rem;
        margin-bottom: 1.2rem;
        overflow-x: auto;
    }

    .faq-tabs {
        gap: 0.2rem;
    }

    .faq-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 0.4rem;
    }

    .faq-tab.active::after {
        bottom: -0.3rem;
        height: 2px;
    }

    .faq-question {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }

    .faq-answer {
        font-size: 0.82rem;
    }

    .faq-answer ul,
    .faq-answer ol {
        padding-right: 1rem;
    }

    .btn-back {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .faq-item {
        border-radius: 0.5rem;
    }
}