/* Shared footer: visually identical to the Home Page reference footer. */
#site-footer.master-footer {
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #212529, #000);
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
}

body.dark-mode #site-footer.master-footer { background: #0f172a; }

#site-footer.master-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: '';
    background: linear-gradient(135deg, #4361ee, #7209b7);
}

#site-footer.master-footer *,
#site-footer.master-footer *::before,
#site-footer.master-footer *::after { box-sizing: border-box; }

#site-footer.master-footer > .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

#site-footer.master-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

#site-footer.master-footer .footer-column h3 {
    position: relative;
    margin: 0 0 1.5rem;
    padding-bottom: 12px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

#site-footer.master-footer .footer-column h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    content: '';
    border-radius: 2px;
    background: #4361ee;
}

#site-footer.master-footer .footer-column p {
    margin: 0;
    color: #fff;
}

#site-footer.master-footer .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer.master-footer .footer-column ul li { margin-bottom: 1rem; }

#site-footer.master-footer .footer-column a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #adb5bd;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

#site-footer.master-footer .footer-column a:hover {
    padding-left: 8px;
    color: #fff;
}

#site-footer.master-footer .footer-column a i {
    width: 20px;
    text-align: center;
}

#site-footer.master-footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1.5rem;
}

#site-footer.master-footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #adb5bd;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

#site-footer.master-footer .social-icon:hover {
    padding-left: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.1);
}

#site-footer.master-footer .social-icon.facebook:hover { color: #3b5998; box-shadow: 0 10px 20px rgba(59, 89, 152, 0.3); }
#site-footer.master-footer .social-icon.instagram:hover { color: #e4405f; box-shadow: 0 10px 20px rgba(228, 64, 95, 0.3); }
#site-footer.master-footer .social-icon.linkedin:hover { color: #0e76a8; box-shadow: 0 10px 20px rgba(14, 118, 168, 0.3); }
#site-footer.master-footer .social-icon.twitter:hover { color: #1da1f2; box-shadow: 0 10px 20px rgba(29, 161, 242, 0.3); }
#site-footer.master-footer .social-icon.youtube:hover { color: #ff0000; box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3); }

#site-footer.master-footer .copyright {
    padding-top: 2.5rem;
    color: #adb5bd;
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

#site-footer.master-footer .copyright p { margin: 0; }

@media (max-width: 768px) {
    #site-footer.master-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
