﻿.accordion {
    background-color: #eee;
    color: #000;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    transition: 0.4s;
    margin: 2px;
}

    /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
    .active, .accordion:hover {
        background-color: #ccc;
    }

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
}


/* سوالات متداول */
button.accordion {
    display: flex;
    justify-content: space-between;
}

    button.accordion .arrowIcon {
        width:20px;
    }

        button.accordion .arrowIcon.Down {
            transform: rotate(90deg);
            animation-name: ChangeStatusDown;
            animation-duration: 0.5s;
        }

        button.accordion .arrowIcon.Up {
            transform: rotate(270deg);
            animation-name: ChangeStatusUp;
            animation-duration: 0.5s;
        }

@keyframes ChangeStatusUp {
    from {
        transform: rotate(90deg);
    }

    to {
        transform: rotate(270deg);
    }
}

@keyframes ChangeStatusDown {
    from {
        transform: rotate(270deg);
    }

    to {
        transform: rotate(90deg);
    }
}