/* --- Main Footer --- */
.main-footer {
    background-color: #0f172a;
    /* نفس خلفية قسم الجودة */
    padding: var(--space-xl) 0 var(--space-md);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-site-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: 10px;
    text-decoration: none;
    color: var(--clr-light);
}

.footer-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: 10px;
}

/* .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--clr-primary);
} */

.footer-desc {
    color: var(--clr-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--clr-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--clr-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-muted);
    font-size: var(--fs-sm);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}