/* Footer Base Styles */
.main-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 25px 0 15px 0; 
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    border-top: 1px solid #222;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    position: relative;
    z-index: 100;
    display: block;
}

.main-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* خط اول: لینک‌های فوتر */
.main-footer .footer-line-1 {
    display: flex;
    justify-content: center;
    gap: 25px; 
    margin-bottom: 15px; 
    font-weight: bold;
    flex-wrap: wrap;
    direction: rtl;
    width: 100%;
}

.main-footer .footer-line-1 a {
    color: #ffffff;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

@media (hover: hover) {
    .main-footer .footer-line-1 a:hover {
        color: #cccccc;
    }
}

/* خط دوم: شبکه‌های اجتماعی و کپی‌رایت */
.main-footer .footer-line-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.main-footer .footer-socials {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.main-footer .footer-socials a {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (hover: hover) {
    .main-footer .footer-socials a:hover {
        color: #cccccc;
        transform: translateY(-3px);
    }
}

.main-footer .footer-socials svg {
    width: 22px;
    height: 22px;
}

.main-footer .footer-copyright {
    color: #888888;
    font-size: 12px;
    font-family: "SFUIDisplay-Semibold", Tahoma, sans-serif;
    direction: ltr;
    letter-spacing: 0.5px;
}

/* استایل و جایگاه اینماد */
.enamad-logo {
    position: absolute;
    left: 20px;
    bottom: 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.enamad-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .main-footer .footer-line-1 {
        gap: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    
    .main-footer .footer-line-1 a {
        padding: 5px;
        border-bottom: none;
        width: auto;
    }

    .enamad-logo {
        display: none;
    }
}