footer {
    background-color: #eee;
    padding: 70px 0;
    border-top: 1px solid #e7e7e7;
    position: relative;
    direction: rtl;
    align-items: center;
    flex-direction: column;
    display: flex;
}


footer .shoar-container {
    position: absolute;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    top: -60px;
    left: auto;
    right: auto;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-lg);
    padding: 15px;
    width: var(--max-container-width);
}
footer .shoar-container li {
    display: flex;
    height: 100%;
    /* max-width: 500px; */
    align-items: center;
}
footer .shoar-container li .image-container {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
footer .shoar-container li .image-container img {
    width: 70%;
    height: auto;
    user-select: none;
    pointer-events: none;
}
footer .shoar-container li .texts-container {
    display: flex;
    flex-direction: column;
    margin: 0px 20px 0px 0px;
    max-width: 250px;
}
footer .shoar-container li .texts-container h1 {
    font-size: 18px;
    margin: 0px;
    padding: 0px;
    font-weight: 500;
    padding: 0px;
}
footer .shoar-container li .texts-container p {
    font-size: 13px;
    margin: 5px 0px 0px 0px;
    font-weight: 500;
    padding: 0px;
    color: #616161;
}

.container {
    width: var(--max-container-width);
    /* margin: 0 auto; */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* background-color: green; */
}

/* استایل ستون‌های فوتر */
.footer-column {
    position: relative;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #000;
}

.certificates {
    display: flex;
    gap: 10px; /* فاصله بین تصاویر */
    margin-top: 15px; /* فاصله از متن بالا */
}

.certificates a {
    display: inline-block;
    width: 70px; /* عرض تصویر */
    height: auto; /* ارتفاع خودکار */
}

.certificates img {
    width: 100%; /* تنظیم تصویر در عرض لینک */
    height: auto; /* حفظ نسبت تصویر */
    display: block; /* حذف فاصله‌های اضافی */
}


/* بخش وسط فوتر */
.footer-middle {
    text-align: center; /* وسط‌چین کردن محتوا */
    margin: 20px 0; /* فاصله از بخش‌های بالا و پایین */
    color: #666; /* رنگ متن */
    font-size: 14px;
}
.footer-center {
    width: var(--max-container-width);
}
.footer-divider {
    border-color: #ddd;
}
.footer-center-text h4 {
    font-size: 16px;
    font-weight: 600;
}
.footer-center-text p {
    font-size: 13px;
    font-weight: normal;
    text-align: justify;
    line-height: 2;
    color: #555;
}

.footer-middle .title {
    font-weight: bold;
    font-size: 16px; /* اندازه عنوان */
    margin-bottom: 5px; /* فاصله از توضیحات پایین */
    color: #333; /* رنگ عنوان */
}

.footer-middle .description {
    line-height: 1.6; /* فاصله خطوط */
    font-size: 14px;
}



/* استایل بخش آیکون‌های شبکه اجتماعی */
.social-icons {
    display: flex;
    justify-content: flex-start; /* آیکون‌ها سمت چپ */
    gap: 10px; /* فاصله بین آیکون‌ها */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* اندازه کوچکتر */
    height: 32px;
    border-radius: 8px;
}

.social-icon::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}


/* افکت‌ها هنگام هاور */
.social-icon:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.social-icon.instagram::before {
    background-image: url('./Assets/Icons/Footer/instagram.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.social-icon.twitter::before {
    background-image: url('./Assets/Icons/Footer//twitter.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.social-icon.linkedin::before {
    background-image: url('./Assets/Icons/Footer/linkedin.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* استایل بخش کپی‌رایت */
.footer-bottom {
    position: absolute; /* نسبت به فوتر اصلی */
    bottom: 0; /* چسبیده به انتهای فوتر اصلی */
    left: 0;
    width: 100%; /* عرض کامل */
    background-color: #E0E0E0;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-bottom .elements-container {
    display: flex;
    align-items: center;
    width: var(--max-container-width);
    justify-content: space-between;
}

.copyright {
    text-align: right; /* متن سمت راست */
}

@media screen and (max-width: 1379px) {
    footer .shoar-container {
        width: 90%;
    }
}
@media screen and (max-width: 1201px) {
    footer .shoar-container li .image-container {
        width: 50px;
        height: 50px;
    }
    footer .shoar-container li .texts-container h1 {
        font-size: 15px;
    }
    footer .shoar-container li .texts-container p {
        font-size: 10px;
    }
}

@media screen and (max-width: 927px) {
    footer .footer-center .footer-center-text h4 {
        font-size: 15px;
    }
    footer .footer-center .footer-center-text p {
        font-size: 13px;
        font-weight: 550;
    }
    footer.footer-column h3 {
        font-size: 14px;
    }
    footer.footer-column ul li a {
        font-size: 13px;
    }
    footer.footer-column ul li {
        font-size: 13px;
    }
    .footer-bottom .elements-container {
        width: 95%;
    }
    footer .copyright {
        font-size: 13px;
    }
    .social-icon {
        width: 28px;
        height: 28px;
    }
}
@media screen and (max-width: 732px) {
    footer .shoar-container {
        top: -200px;
        width: 100%;
        border: 0px;
        display: flex;
        flex-direction: column;
        align-items: start;
    }
    footer .shoar-container li:nth-child(2) {
        align-self: center;
        margin: 0px 0px 0px 50px;
    }
    footer .shoar-container li:nth-child(3) {
        align-self: flex-end;
        margin: 0px 0px 20px 50px;
    }
}
@media screen and (max-width: 425px) {
    footer .shoar-container {
        position: relative;
        border: 1px solid #ddd;
        top: -30px;
    }
    footer .shoar-container li:nth-child(2) {
        align-self: flex-start;
        margin: 0px 10px 0px 10px;
    }
    footer .shoar-container li:nth-child(3) {
        align-self: flex-start;
        margin: 0px 10px 0px 10px;
    }

    footer .shoar-container li {
        margin: 0px 10px 0px 10px;
        /* width: 100%; */
    }
    footer .shoar-container li .texts-container {
        width: calc(100% - 70px);
        max-width: none;
    }
}
@media screen and (max-width: 473px) {
    footer {
        padding: 0;
    }
    footer .footer-bottom .elements-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    footer .footer-center {
        margin: 0px 0px 40px 0px;
    }
    .footer-column {
        width: 100%;
        text-align: center;
    }
}