.main-footer {
    background: var(--bg-footer);
    color: var(--text-secondary);
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid var(--accent-green);
    margin-top: 40px;
    font-family: 'Tajawal', sans-serif;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

html[data-theme="dark"] .main-footer {
    border-top-color: var(--accent-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.social-icons {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(128, 186, 65, 0.1);
    color: var(--accent-green);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, rgba(128, 186, 65, 0.25), rgba(111, 188, 50, 0.2));
    box-shadow: 0 8px 20px rgba(128, 186, 65, 0.3);
    border-color: rgba(128, 186, 65, 0.4);
}

html[data-theme="dark"] .social-link {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

html[data-theme="dark"] .social-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.18));
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.footer-info {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    text-align: center;
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-info .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-info .location,
.footer-info .copyright {
    text-align: center;
}

.copyright {
    margin: 6px 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-info {
    margin: 8px 0;
}

.contact-info p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent-green);
    font-size: 14px;
}

html[data-theme="dark"] .contact-info i {
    color: var(--accent-gold);
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-green);
    font-weight: 600;
}

html[data-theme="dark"] .contact-info a:hover {
    color: var(--accent-gold);
}

.location {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0;
}

.footer-divider {
    width: 50px;
    border: none;
    border-top: 2px solid var(--accent-green);
    margin: 12px auto;
    opacity: 0.6;
}

html[data-theme="dark"] .footer-divider {
    border-top-color: var(--accent-gold);
}

.footer-links {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.footer-links a {
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-green-light);
    text-decoration: underline;
    transform: translateY(-2px);
}

html[data-theme="dark"] .footer-links a {
    color: var(--accent-gold);
}

html[data-theme="dark"] .footer-links a:hover {
    color: #e6c25a;
}

.footer-links .divider {
    color: var(--text-muted);
    opacity: 0.6;
}

html[dir="rtl"] .social-icons,
html[dir="rtl"] .contact-info p,
html[dir="rtl"] .footer-links {
    direction: rtl;
}

html[dir="rtl"] .contact-info p {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 30px 15px;
    }

    .footer-links {
        font-size: 12px;
        gap: 8px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
