/* Footer Styles — 7-Column Layout (1 Brand + 6 Link Columns) */
.footer {
    background-color: #f8f9fa;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e1e4e8;
    color: #202124;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #5f6368;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 280px;
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #202124;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #1a73e8;
}

/* Social Icons — 8 icons with brand-color hover */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Brand-specific hover colors */
.social-icon[aria-label="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.social-icon[aria-label="Twitter / X"]:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.social-icon[aria-label="LinkedIn"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
}

.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
    color: #fff;
}

.social-icon[aria-label="YouTube"]:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #fff;
}

.social-icon[aria-label="GitHub"]:hover {
    background: #24292f;
    border-color: #24292f;
    color: #fff;
}

.social-icon[aria-label="Discord"]:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
}

.social-icon[aria-label="Telegram"]:hover {
    background: #26A5E4;
    border-color: #26A5E4;
    color: #fff;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Footer Bottom — UNTOUCHED STYLES (preserved exactly) */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #5f6368;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #5f6368;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #202124;
}

/* === Responsive === */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand p {
        max-width: 500px;
        margin: 1rem auto 0;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Mobile — 2 columns for link sections (FIX: was dropping to 1-col) */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand p {
        max-width: 400px;
        margin: 1rem auto 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small mobile — KEEP 2 columns (FIX: was 1-col at 576px) */
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-section {
        text-align: left;
    }

    .footer-heading {
        font-size: 0.75rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}