.site-footer {
    width: min(1560px, calc(100% - 32px));
    margin: 28px auto 0;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), var(--primary), var(--warning));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.footer-section {
    min-width: 0;
}

.footer-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.footer-section h4 i {
    color: var(--primary);
}

.footer-section ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section a,
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.footer-section a {
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.footer-section a:hover {
    color: var(--primary) !important;
    transform: translateX(-5px) !important; /* Slide leftward in RTL */
}

.footer-section a i,
.contact-item i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    color: var(--primary);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 50% !important; /* Circular icons */
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-section a:hover i {
    transform: scale(1.1) rotate(12deg) !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}


.contact-item {
    margin-bottom: 7px;
}

.contact-item span,
.contact-item a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-bottom {
    padding: 11px 16px;
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
}

.footer-bottom-content p {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer {
        width: min(100% - 20px, 1560px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
