.faq-modal .btn-close {
    left: 0;
    position: absolute;
    margin: 20px;
}

.cat_question_title {
    width: 90%;
    text-align: right;
}


/* استایل دکمه ثابت */
.faq-button {
    /*    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #00ddeb);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;*/
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 110px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(45deg, #007bff, #00ddeb);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgb(0 0 0 / 30%);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.faq-button:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.faq-button svg {
    transition: transform 0.3s ease;
}

.faq-button:hover svg {
    transform: rotate(360deg);
}

/* استایل مدال */
.faq-modal .modal-dialog {
    max-width: 700px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.faq-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.faq-modal .modal-header {
    background: linear-gradient(45deg, #007bff, #00ddeb);
    color: white;
    border-radius: 15px 15px 0 0;
}

.faq-modal .modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}

@media (max-width: 576px) {
    .faq-modal .modal-dialog {
        margin: 0;
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .faq-modal .modal-content {
        border-radius: 0;
        height: 100%;
    }
}

/* استایل محتوای FAQ */
.faq-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.category-link {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: none;
}

    .category-link:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/* استایل آکاردئون */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: linear-gradient(to right, #e9ecef, #f8f9fa);
    border-radius: 10px !important;
    font-weight: 500;
    color: #333;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 15px;
}

    .accordion-button::before {
        position: absolute;
        left: 15px;
        transition: transform 0.4s ease, scale 0.4s ease !important;
    }

    .accordion-button:hover {
        background: linear-gradient(to right, #d3d6db, #e9ecef);
        transform: translateY(-2px);
    }

    .accordion-button:not(.collapsed) {
        background: linear-gradient(to right, #007bff, #00ddeb);
        color: white;
    }

    .accordion-button::after {
        transition: transform 0.4s ease, scale 0.4s ease !important;
        transform-origin: center;
    }

    .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg) scale(1.2);
    }

    .accordion-button.collapsed::after {
        transform: rotate(0deg) scale(1);
    }

.accordion-body {
    background: #fff;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    color: #444;
    line-height: 1.6;
}

/* استایل جستجو */
.search-bar {
    position: relative;
    margin-bottom: 20px;
}

    .search-bar input {
        padding-right: 40px;
        border-radius: 25px;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .search-bar input:focus {
            border-color: #007bff;
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        }

    .search-bar::before {
        content: '\1F50D';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
    }

/* استایل دکمه‌های بازگشت */
.nav-button {
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 8px 15px;
    font-size: 0.9rem;
}

    .nav-button:hover {
        transform: translateY(-2px);
    }

    .nav-button svg {
        margin-left: 5px;
    }
