/* =======================
   FOOTER
======================= */
.footer {
    position: relative;
    background-color: #182f52;
    color: #F2F6FF;
    padding: 0 20px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    width: 1px;
    height: 1px;
    pointer-events: none;
    box-shadow:
        20px 30px #ffffff1f, 60px 90px #ffffff1f, 100px 20px #ffffff1f,
        140px 230px #ffffff1f, 200px 280px #ffffff1f, 260px 130px #ffffff1f,
        300px 70px #ffffff1f, 360px 240px #ffffff1f, 420px 110px #ffffff1f,
        480px 50px #ffffff1f, 520px 180px #ffffff1f, 580px 260px #ffffff1f,
        630px 150px #ffffff1f, 690px 25px #ffffff1f, 750px 210px #ffffff1f,
        820px 265px #ffffff1f, 880px 95px #ffffff1f, 940px 160px #ffffff1f,
        1000px 210px #ffffff1f, 1080px 55px #ffffff1f, 1120px 300px #ffffff1f,
        120px 420px #ffffff1f, 260px 360px #ffffff1f, 410px 360px #ffffff1f,
        560px 360px #ffffff1f, 700px 360px #ffffff1f, 860px 360px #ffffff1f,
        980px 360px #ffffff1f, 1100px 360px #ffffff1f, 1240px 360px #ffffff1f;
    animation: starsFloat 22s infinite linear;
    opacity: 0.95;
    z-index: 0;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 2px;
    height: 2px;
    pointer-events: none;
    box-shadow:
        40px 110px #ffffff55, 120px 210px #ffffff66,
        220px 60px #ffffff55, 320px 190px #ffffff66,
        420px 120px #ffffff55, 520px 250px #ffffff66,
        640px 90px #ffffff55, 760px 210px #ffffff66,
        860px 50px #ffffff55, 980px 190px #ffffff66,
        1080px 130px #ffffff55, 1180px 270px #ffffff66,
        200px 320px #ffffff44, 560px 320px #ffffff44, 920px 320px #ffffff44;
    filter: blur(0.9px);
    animation: glowTwinkle 9s infinite ease-in-out alternate;
    z-index: 0;
    opacity: 0.95;
}

.footer .sparkle-layer {
    position: absolute;
    inset: 0;
    width: 4px;
    height: 4px;
    pointer-events: none;
    box-shadow:
        180px 90px #ffffffaa, 180px 90px 6px #ffffff33,
        540px 190px #ffffffcc, 540px 190px 10px #ffffff44,
        900px 130px #ffffff99, 900px 130px 8px #ffffff33,
        300px 50px #ffffff88, 300px 50px 6px #ffffff22,
        1100px 240px #ffffff88, 1100px 240px 6px #ffffff22;
    filter: blur(1.2px);
    animation: sparklePulse 5.5s infinite ease-in-out alternate;
    z-index: 0;
    opacity: 0.98;
}

.footer > * {
    position: relative;
    z-index: 5;
}

/* =======================
   FOOTER CONTAINER & GRID
======================= */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 72px 0 56px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
}

/* =======================
   BRAND COLUMN
======================= */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    display: none;
    width: 150px;
    height: auto;
}

/* Footer is always dark — always show the white logo */
.footer-logo img.logo-dark {
    display: block;
}

.footer-tagline {
    color: #F2F6FF;
    font-size: 14px;
    line-height: 1.75;
    max-width: 300px;
}

/* =======================
   SOCIAL LINKS
======================= */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.25);
    background: rgba(74, 144, 226, 0.07);
    color: #F2F6FF;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
    background: rgba(74, 144, 226, 0.18);
    border-color: rgba(74, 144, 226, 0.5);
    color: #fff;
}

/* =======================
   LINK COLUMNS
======================= */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    color: #F2F6FF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col-list li {
    font-size: 14px;
    color: #F2F6FF;
}

.footer-col-list a {
    font-size: 14px;
    color: #F2F6FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col-list a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cta-item {
    margin-top: 6px;
}

.footer-cta-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--var-blue-primary);
    border: 1.5px solid var(--var-blue-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-cta-btn:hover {
    background: #193e80;
    border-color: #193e80;
    transform: translateY(-1px);
}

/* =======================
   NEWSLETTER STRIP
======================= */
.footer-newsletter-wrap {
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    padding: 28px 0;
}

.footer-newsletter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-newsletter-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 220px;
}

.footer-newsletter-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #F2F6FF;
}

.footer-newsletter-text span {
    font-size: 13px;
    color: rgba(242, 246, 255, 0.7);
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 2 1 400px;
}

.footer-newsletter-form input {
    flex: 1 1 160px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.08);
    color: #F2F6FF;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease;
}

.footer-newsletter-form input::placeholder {
    color: rgba(242, 246, 255, 0.45);
}

.footer-newsletter-form input:focus {
    border-color: rgba(59, 124, 203, 0.7);
}

.footer-newsletter-form button {
    padding: 9px 20px;
    border-radius: 8px;
    background: var(--var-blue-primary);
    border: 1.5px solid var(--var-blue-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.footer-newsletter-form button:hover {
    background: #193e80;
    border-color: #193e80;
}

.footer-newsletter-msg {
    font-size: 13px;
    color: rgba(242, 246, 255, 0.8);
    margin: 0;
    width: 100%;
}

@media (max-width: 640px) {
    .footer-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-newsletter-text {
        flex: none;
    }

    .footer-newsletter-form {
        flex: none;
        width: 100%;
        flex-direction: column;
    }

    .footer-newsletter-form input,
    .footer-newsletter-form button {
        width: 100%;
        flex: none;
    }
}

/* =======================
   FOOTER BOTTOM BAR
======================= */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    color: #F2F6FF;
    font-size: 13px;
    line-height: 1.8;
}

.footer-bottom a {
    color: #F2F6FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* =======================
   FOOTER RESPONSIVE
======================= */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding: 56px 0 44px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 480px;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 48px 0 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
