/* =====================================
   KIAPIC THEME - FOOTER
===================================== */

.site-footer {
    width: 1200px;
    max-width: 100%;
    min-height: 300px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    direction: rtl;
    box-sizing: border-box;
}

/* =====================================
   سطر اول - چهار ستون
===================================== */

.footer-top {
    width: 100%;
    min-height: 250px;
    display: grid;
    grid-template-columns: 35% 30% 17.5% 17.5%;
    direction: rtl;
    align-items: start;
    background: #292929;
    padding: 20px 10px;
    box-sizing: border-box;
}

.footer-column {
    min-width: 0;
    min-height: 180px;
    padding: 15px;
    box-sizing: border-box;
    color: #ffffff;
}

/* تیتر ستون ها */

.footer-text-box h3 {
    margin: 0 0 15px;
    padding-bottom: 8px;
    color: #ffffff;
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* دسته بندی مطالب */

.footer-categories {
    color: #ffffff;
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 2;
}

.footer-categories a {
    color: #ffffff;
    text-decoration: none;
}

.footer-categories a:hover {
    color: #cccccc;
}

/* راه های ارتباط */

.footer-contact p {
    color: #eeeeee;
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 2;
    margin: 0 0 8px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-icon {
    display: inline-block;
    width: 25px;
    text-align: center;
}

/* نشان های اعتماد */

.footer-trustseal,
.footer-enamad {
    width: 100%;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-enamad img {
    max-width: 100%;
    height: auto;
}

/* =====================================
   سطر دوم
===================================== */

.footer-bottom {
    width: 100%;
    min-height: 50px;
    display: flex;
    flex-direction: row;
    background: #00008B;
    color: #ffffff;
    box-sizing: border-box;
}

.footer-bottom-column {
    width: 50%;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-bottom-right {
    justify-content: flex-start;
}

.footer-bottom-left {
    justify-content: flex-end;
}

.footer-bottom-column p {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
}

/* =====================================
   MOBILE
===================================== */

@media screen and (max-width: 767px) {

    .site-footer {
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .footer-column {
        width: 100%;
        min-height: 0;
        padding: 16px;
        background: #444444;
        border-radius: 8px;
    }

    .footer-text-box h3 {
        font-size: 17px;
    }

    .footer-categories {
        font-size: 16px;
    }

    .footer-contact p {
        font-size: 14px;
    }

    .footer-trustseal,
    .footer-enamad {
        min-height: 100px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
        padding: 10px;
        background: #292929;
    }

    .footer-bottom-column {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        padding: 8px;
    }

    .footer-bottom-column p {
        font-size: 11px;
        text-align: center;
    }
}

/* هم‌ترازی عنوان ستون اول و دوم */

.footer-column-1,
.footer-column-2 {
    padding-top: 15px;
}

.footer-column-1 .footer-text-box h3,
.footer-column-2 .footer-text-box h3 {
    margin-top: 0;
    padding-top: 0;
    line-height: 1.5;
    min-height: 30px;
    box-sizing: border-box;
}