/* --- RESET & VARIABLES (Footer Scope Only) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark-primary: #111827;
    --bg-dark-secondary: #0f172a;
    --text-white: #ffffff;
    --text-gray-light: #d1d5db;
    --text-gray-muted: #9ca3af;
    --brand-blue: #0d6efd;
    --border-dark: #374151;
}

/* --- MAIN FOOTER WRAPPER --- */
.footer {
    background: var(--bg-dark-primary);
    color: var(--text-white);
    margin-top: 40px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    border-top: 3px solid var(--brand-blue);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* --- FOOTER BOXES --- */
.footer-box h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-white);
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

/* Elegant bottom accent line under titles */
.footer-box h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--brand-blue);
}

.footer-box p {
    color: var(--text-gray-light);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}

/* --- LINKS LIST --- */
.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 12px;
}

.footer-box ul li a {
    color: var(--text-gray-light);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    font-size: 14px;
}

.footer-box ul li a:hover {
    color: var(--brand-blue);
    transform: translateX(6px);
}

/* --- PROFESSIONAL SOCIAL ICONS --- */
.social-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    text-decoration: none;
    color: var(--text-white);
    border-radius: 10px; /* Professional rounded square instead of basic circle */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* Brand Specific Gradients with Glows */
.social-telegram {
    background: linear-gradient(135deg, #0088cc, #2ca5e0);
}
.social-telegram:hover {
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.45);
}

.social-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-instagram:hover {
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.45);
}

.social-facebook {
    background: linear-gradient(135deg, #1877f2, #0c52b3);
}
.social-facebook:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.45);
}

.social-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.social-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    text-align: center;
    background: var(--bg-dark-secondary);
    padding: 24px 20px;
    border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-gray-light);
}

.footer-disclaimer {
    color: var(--text-gray-muted) !important;
    font-size: 13px !important;
    line-height: 1.7;
    max-width: 1000px;
    margin: 8px auto 0 auto !important;
}


/* ========================================================
   --- TABLET RESPONSIVE (Max-Width: 1024px) --- 
======================================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 20px;
    }

    .footer-box h3 {
        font-size: 18px;
    }
}


/* ========================================================
   --- MOBILE RESPONSIVE (Max-Width: 540px) --- 
======================================================== */
@media (max-width: 540px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 15px;
        text-align: center;
    }

    /* Center accent line on phones */
    .footer-box h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-box p,
    .footer-box ul li a {
        font-size: 13px;
    }

    .footer-box ul li a:hover {
        transform: none; /* Disable horizontal slide on touch screens */
        color: var(--brand-blue);
    }

    .social-links {
        justify-content: center;
        gap: 14px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding: 20px 15px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-disclaimer {
        font-size: 11px !important;
    }
}
/* --- FINAL FOOTER SOCIAL ICON FIX: scoped to prevent sidebar conflicts --- */
.footer .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.footer .social-links .social-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
}

.footer .social-links .social-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex: 0 0 24px;
    visibility: visible;
    opacity: 1;
}

.footer .social-links .social-instagram svg {
    width: 25px;
    height: 25px;
}

@media (max-width: 540px) {
    .footer .social-links .social-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        flex-basis: 42px;
    }

    .footer .social-links .social-btn svg {
        width: 21px;
        height: 21px;
        min-width: 21px;
        min-height: 21px;
    }
}
