@import url(all.min.css);
@import url(colors.css);

@font-face {
    font-family: Estedad;
    src: url(../fonts/Estedad-Medium.ttf);
}
@font-face {
    font-family: Vazirmatn;
    src: url(../fonts/Vazirmatn-FD-Medium.ttf);
}

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

body{
    background-color: var(--primary-bg) !important;
}

h1, h2, h3, h4, h5, h6, p{
    direction: rtl;
}

a{
    text-decoration: none !important;
    color: var(--primary-color) !important;
}

ul{
    list-style: none;
}



footer{
    margin-top: 30px;
    background-color: var(--footer-bg) !important;
    padding: 60px 60px 10px 60px;
    font-family: Vazirmatn !important;
    direction: rtl;
}
footer .first-row{
    display: flex;
    justify-content: space-between;
    align-items:start;
    margin-bottom: 20px;
}
footer .first-row div:first-child ul{
    direction: ltr;
}
footer .first-row ul{
    margin: 0 10px;
}
footer .first-row p{
    color: var(--text-footer) !important;
    margin: 0 10px 10px 15px;
}
footer .first-row ul li{
    line-height: 30px;
    font-weight: lighter;
    font-size: 16px;
}
footer .first-row ul li a{
    color: var(--link-text-footer) !important;
}
footer .first-row ul li:hover{
    text-shadow: 0 0 15px var(--card-bg);
    transition: all 0.3s ease-in-out;
}
footer .first-row img{
    width: 150px;
}
footer .footer-brand{
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: min(2vw, 100px);
}
footer .footer-brand p{
    color: var(--text-secondary) !important;
    font-size: 14px;
    line-height: 25px;
    text-align: justify;
    margin: 15px 0;
}
footer .footer-brand .social-icons{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--primary-icon);
}
footer .footer-brand .social-icons a:hover{
    color: var(--hover-icon);
    transition: all 0.3s ease-in-out;
}
footer .footer-brand .social-icons a{
    width: 50px;
    height: 50px;
    border: 1px solid var(--secondary-icon);
    border-radius: 55px;
    margin: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}
footer .footer-brand .social-icons a:hover{
    color: var(--hover-icon) !important;
    box-shadow: 0 0 15px var(--card-bg);
    transition: all 0.2s ease-in-out;
}

footer .second-row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--secondary-icon);
    padding-top: 20px;
    color: var(--text-primary);
    direction: rtl;
}
footer .second-row i{
    vertical-align: middle;
    font-size: 14px;
}



/* ==================================
   Tablet (<=992px)
================================== */

@media screen and (max-width:992px){
    footer{
        padding: 50px 30px 15px;
    }
    footer .first-row{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 35px;
        align-items: start;
    }
    footer .footer-brand{
        width: 100%;
        margin: 0;
        order: -1;
        grid-column: span 2;
        text-align: center;
    }
    footer .footer-brand p{
        text-align: center;
        max-width: 500px;
    }
    footer .first-row div{
        text-align: center;
    }
    footer .first-row ul{
        padding: 0;
    }
    footer .second-row{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==================================
   Mobile (<=768px)
================================== */
@media screen and (max-width:768px){
    footer{
        padding: 40px 20px 20px;
    }
    footer .first-row{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    footer .first-row>div{
        width: 100%;
        text-align: center;
    }
    footer .first-row p{
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: bold;
    }
    footer .first-row ul{
        padding: 0;
        margin: 0;
    }
    footer .first-row ul li{
        line-height: 36px;
    }
    footer .footer-brand{
        order: -1;
        width: 100%;
    }
    footer .footer-brand img{
        width: 120px;
    }
    footer .footer-brand p{
        width: 100%;
        font-size: 15px;
        line-height: 2;
        text-align: center;
    }
    footer .footer-brand .social-icons{
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }
    footer .footer-brand .social-icons a{
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    footer .second-row{
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 14px;
    }
}

/* ==================================
   Small Phones (<=480px)
================================== */
@media screen and (max-width:480px){
    footer{
        padding: 30px 15px 15px;
    }
    footer .footer-brand img{
        width: 100px;
    }
    footer .footer-brand p{
        font-size: 14px;
    }
    footer .footer-brand .social-icons a{
        width: 42px;
        height: 42px;
        font-size: 20px;
        margin: 5px;
    }
    footer .first-row p{
        font-size: 16px;
    }
    footer .first-row ul li{
        font-size: 14px;
    }
    footer .second-row{
        font-size: 13px;
    }
}


footer .first-row ul li a{
    position: relative;
    transition: .25s;
}
footer .first-row ul li a::after{
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--primary-button);
    transition: .3s;
}
footer .first-row ul li a:hover::after{
    width: 100%;
}
footer .footer-brand .social-icons a{
    transition: .3s ease;
}
footer .footer-brand .social-icons a:hover{
    transform: translateY(-5px) scale(1.08);
}