/* Shared footer styles (source: index page) */

#body > footer {
    margin-top: auto;
}

.first-row {
    font-family: farsi;
    width: 70%;
    margin: 12vh auto 4vh;
    display: flex;
    justify-content: space-evenly;
}

.first-row a {
    color: #000000;
    text-decoration: none !important;
}

.second-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 20%;
    margin-left: 2%;
    margin-bottom: 2%;
}

.footer-logo img {
    width: 30%;
}

.social-box-footer {
    width: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-box-footer a {
    transition: 0.3s;
}

.social-box-footer a:hover {
    cursor: pointer;
    transform: scale(1.3);
}

.social-box-footer .social-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.copy-right {
    font-family: farsi;
    text-align: right;
    width: 25%;
    margin-right: 2%;
    font-size: 14px;
}

.res-second-row {
    display: none;
}

@media screen and (max-width: 576px) {
    footer {
        padding: 2vh;
    }

    .first-row {
        width: 100%;
        margin: 10vh 0 5vh 0;
    }

    .second-row {
        display: none;
    }

    .res-second-row {
        display: flex;
        flex-wrap: wrap;
    }

    .social-box-footer {
        width: 50%;
        margin-left: 25%;
    }

    .social-box-footer a:hover {
        transform: unset;
    }

    .social-box-footer .social-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .footer-logo {
        width: 30%;
        margin: 4vh 0 0 0;
    }

    .footer-logo img {
        width: 50%;
    }

    .copy-right {
        width: 70%;
        margin: 4vh 0 0 0;
        align-content: end;
    }

    .copy-right p {
        font-size: 14px;
        margin: 0;
    }

    .copy-right span {
        color: #8f9197;
    }
}
