footer {
    background-color: var(--low-gray);
}

.gg {
    display: grid;
    place-items: center;
    grid-auto-rows: minmax();
    color: rgb(223, 60, 60);
}

footer {
    width: 100%;
    /* text-align: center; */
    /* min-height: 30vh; */
    padding: 50px 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}


.filter-bar {
    padding: 10px 0;
    padding-right: 10px;
}

.footer-logo {
    background-color: var(--main-gray);
    border-radius: var(--border-r);
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: var(--margin-b);
    gap: 10px;
    align-items: center;
    color: var(--main);

    a {
        padding-left: 10px;
        border-left: 2px solid var(--mid-black);

    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    justify-content: center;

    a {
        font-weight: 600;
    }
}

.footer-link {
    color: var(--main);
    transition: all 250ms;

    padding-bottom: 3px;
    position: relative;
    border-bottom: 2px solid var(--low-gray);

    &:hover {
        color: var(--black);
        border-color: var(--red);
    }
}

.footer-bottom-section {
    font-family: "IranYekan", "Dana";
    width: 100%;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--mid-gray);
    font-weight: 100 !important;
    color: var(--gray);
    font-size: 13px;
    padding-top: 10px;
}

.footer-sections {
    width: 100%;

    display: grid;
    grid-template-columns: 5fr 1fr;
    gap: 40px;
    background-color: var(--main-gray);
    padding: 25px;
    border-radius: var(--border-r);
}

#f-links {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: var(--main-gray);
    border-radius: var(--border-r);
}

.foot-links-head {
    display: flex;
    align-items: center;
    /* gap: 15px; */
    width: 100%;
    justify-content: space-between !important;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;

}

.foot-links-body {

    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    background-color: var(--main-gray);

    font-weight: 600;
    border-radius: var(--border-r);
    line-height: 1.9;
    height: auto;
    padding: 15px;
    margin-bottom: 16px;
    grid-template-rows: 1fr;

    transition: all 150ms;

    strong {
        transition: all 250ms;
        color: var(--main);
        border-bottom: 2px solid var(--main);

    }

    a:hover strong {
        border-bottom: 2px solid var(--dark-main);
        color: var(--dark-main);
    }

    p {
        align-items: center;

    }

    svg {
        width: 20px;
        height: 20px;
        margin-left: 5px;
    }
}

.footer-links {
    overflow: hidden;

}

.foot-links {
    margin-bottom: 6px;
    border-bottom: 2px solid var(--main-gray);
    background-color: var(--low-gray);
    border-radius: var(--border-r);
    padding: 18px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.03);
}

.social-icon {
    width: 40px;
    height: 40px;
    color: var(--main);
    fill: var(--main);
    transition: all 250ms;

    :hover {}
}

.trust-box {
    border-radius: var(--border-r);
    background-color: var(--low-gray);
    min-height: 100px;
    max-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 20px;
    gap: 20px;

    img {
        /* height: 100%; */
        /* width: 100%; */
        width: 60px;
        height: 60px;
        padding: 3px;
        /* max-height: 60px; */
        border-radius: var(--border-r) !important;
        border: 5px solid transparent;
        outline: 1px solid var(--main);
    }

    a {

        display: flex;
        justify-content: center;
        align-items: center;

    }
}


#socials {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-icons {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;

    a:hover svg {
        color: var(--black) !important;
        fill: var(--black) !important;
    }
}

.brand-foot-disc {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--margin-b);
    background-color: var(--main-gray);
    padding: 18px;
    border-radius: var(--border-r);
}

#footer-call-icon {
    fill: transparent;

}

@media (width < 1400px) {
    #f-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: space-between;

    }

    .foot-links-body {

        grid-template-rows: 0fr;
        overflow: hidden;
        opacity: 0;
        padding: 0px;
        margin-bottom: 0px;

        &.open {
            overflow: auto;
            grid-template-rows: 1fr;
            margin-top: 10px;
            opacity: 1;
            padding: 15px;
            margin-bottom: 16px;

            svg {
                transform: rotate(720deg);
            }
        }

        &>* {
            overflow: hidden;
        }
    }

    .foot-links {
        padding: 8px;
    }

    .foot-links-head {

        margin-bottom: 0px;

    }
}


@media (width < 740px) {
    .trust-box {
        flex-direction: column;
        justify-content: center !important;
    }

    footer {
        padding: 40px 20px 90px !important;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icons {

        gap: 8px;
    }
}