/* === FOOTER — PREMIUM REDESIGN === */
.page-footer {
    background: linear-gradient(170deg, #1e2740 0%, #151b2e 50%, #0f1320 100%);
    color: #c9d1d9;
    padding: 0;
    margin-top: calc(var(--space-unit) * 4);
    border-top: none;
    position: relative;
    overflow: hidden;
}

/* Gradient accent line at top */
.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7c3aed, #f0a040, #4361ee);
    background-size: 300% 100%;
    animation: footer-gradient-shift 6s ease infinite;
}

@keyframes footer-gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Decorative glow orbs */
.page-footer::after {
    content: '';
    position: absolute;
    top: -60px;
    right: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, hsla(230, 80%, 60%, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    display: grid;
    /* CẬP NHẬT THÀNH 4 CỘT DÀN TRẢI ĐỀU 2 BÊN */
    grid-template-columns: 1.3fr 1.15fr 1fr 1.05fr;
    gap: 4.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4rem 3rem;
    position: relative;
    z-index: 1;
}

/* UI THỐNG KÊ TRUY CẬP (MỚI) */
.visitor-stats-box {
    background: hsla(220, 30%, 20%, 0.4);
    border: 1px solid hsla(220, 60%, 60%, 0.15);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #dce4ec;
}

.stat-item i {
    font-size: 0.85rem;
    color: #6c83ee;
}

.stat-item i.text-success {
    color: #10b981;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.stat-number {
    font-weight: 800;
    font-size: 1.1rem;
    margin-left: auto;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-number.fetching {
    color: #64748b;
    font-size: 0.95rem;
}

.stat-source {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid hsla(220, 30%, 50%, 0.15);
}

/* Column base */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand column */
.footer-brand-col {
    padding-right: 1.5rem;
}

#footerLogo {
    width: 110px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: brightness(1.2) drop-shadow(0 2px 8px hsla(220, 80%, 50%, 0.2));
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0 0 0.6rem 0;
}

.footer-tagline {
    font-size: 0.88rem;
    color: #a0aec0;
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 0.7rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: hsla(220, 60%, 55%, 0.2);
    border: 1px solid hsla(220, 60%, 60%, 0.25);
    color: #a0b4d0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--color-primary, #4361ee);
    border-color: var(--color-primary, #4361ee);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px hsla(220, 80%, 50%, 0.35);
}

/* Column title */
.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin: 0 0 1.1rem 0;
    position: relative;
    padding-bottom: 0.65rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #4361ee), #7c3aed);
    border-radius: 3px;
}

/* List items */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #a0aec0;
}

.footer-list li i {
    color: #6c83ee;
    font-size: 0.82rem;
    margin-top: 0.22rem;
    flex-shrink: 0;
    width: 15px;
    text-align: center;
}

.footer-list li strong {
    color: #dce4ec;
    font-weight: 600;
}

.footer-list li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list li a:hover {
    color: #fff;
}

/* Quick links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
}

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

.footer-links li a {
    position: relative;
    padding-left: 0.9rem;
    color: #8da2be;
    font-size: 0.86rem;
}

.footer-links li a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #6c83ee;
    font-weight: bold;
    font-size: 1rem;
}

.footer-links li a:hover {
    color: #fff;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid hsla(220, 30%, 50%, 0.15);
    text-align: center;
    padding: 1.1rem 2rem;
    background: hsla(220, 30%, 10%, 0.3);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #5a6577;
    letter-spacing: 0.4px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .footer-inner {
        gap: 2.5rem;
        padding: 3.5rem 2rem 2.5rem;
        grid-template-columns: 1.3fr 1.15fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
        padding-right: 0;
    }

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

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1.25rem 1.25rem;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-list li {
        justify-content: center;
    }

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