/* Footer styles — extracted from layouts/partials/footer.blade.php
   Static CSS, browser-cacheable. Linked in layouts/app.blade.php with ?v=filemtime. */
.site-footer {
    position: relative;
    color: #0f172b;
    /* Trắng ở mép trên (liền mạch với trang -> không có đường kẻ),
       mờ dần sang tím nhạt xuống tận đáy trang. */
    background: linear-gradient(180deg, #ffffff 0%, #f2f5fd 45%, #e7ebfa 100%);
}
/* Hoa văn chấm bi: ẩn ở top (giữ top trắng sạch), hiện dần xuống dưới */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #c3cdf0 1.4px, transparent 1.4px);
    background-size: 18px 18px;
    opacity: .4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
/* Lớp mờ/blur: phủ TRẮNG ở đỉnh (blend với trang phía trên, không tạo line),
   nhạt dần và blur lũy tiến chạy từ top xuống tận đáy footer. */
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 50%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.5) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.5) 100%);
}
.site-footer__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 80rem;            /* = max-w-7xl (1280px), đồng bộ layout chung */
    margin: 0 auto;
    padding: 48px 16px 56px;     /* px-4 */
}
@media (min-width: 640px) { .site-footer__inner { padding-left: 24px; padding-right: 24px; } }  /* sm:px-6 */
@media (min-width: 1024px) { .site-footer__inner { padding-left: 32px; padding-right: 32px; } } /* lg:px-8 */
.footer-glass {
    position: relative;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.95),   /* mép sáng trên */
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),    /* viền sáng mờ chạy quanh box */
        0 0 0 1px rgba(148, 163, 184, 0.10),          /* hairline mảnh để thấy viền trên nền sáng */
        0 22px 50px rgba(15, 23, 43, 0.10),           /* bóng nhẹ tách khỏi nền */
        0 3px 8px rgba(15, 23, 43, 0.04);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    backdrop-filter: blur(20px) saturate(155%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .footer-glass { background: rgba(255, 255, 255, 0.92); }
}
.footer-panel { padding: 28px 22px; }
@media (min-width: 640px) { .footer-panel { padding: 36px 30px; } }
@media (min-width: 1024px) { .footer-panel { padding: 42px 34px; } }

/* ----- Panel 1: lưới link ----- */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .footer-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; } }
.footer-col { min-width: 0; }
.footer-col-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0f172b;
    margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-link {
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-link:hover { color: var(--site-primary, #3B4FE8); }
/* Trang đang xem: link footer sáng lên theo tông site */
.footer-link.is-active { color: var(--site-primary, #3B4FE8); font-weight: 600; }
@media (min-width: 1280px) { .footer-cols .footer-link { white-space: nowrap; } }

/* ----- Panel 2: brand / liên hệ / social ----- */
.footer-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-connect { text-align: right; }
.footer-connect p { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #0f172b; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.footer-social {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #0f172b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background .2s ease, transform .2s ease;
}
.footer-social:hover { background: var(--site-primary, #3B4FE8); transform: translateY(-2px); }
.footer-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.footer-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(15, 23, 43, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    transition: transform .2s ease, color .2s ease;
}
.footer-chip:hover { color: var(--site-primary, #3B4FE8); transform: translateY(-1px); }
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 26px;
    font-size: 14px;
    color: #475569;
}
.footer-contact > span { display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-contact svg { flex: 0 0 auto; margin-top: 2px; color: #64748b; }
.footer-divider { height: 1px; background: rgba(15, 23, 43, 0.08); margin: 30px 0; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
}
.footer-copy { margin: 0; font-size: 14px; color: #475569; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
