
/*
 * =========================================================
 * Footer
 * =========================================================
 */

.cookie-consent[hidden] { display: none; }
.cookie-consent {
    position: fixed;
    z-index: 1100;
    bottom: 24px;
    left: 24px;
    width: min(410px, calc(100vw - 32px));
    padding: 24px;
    color: #303946;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 93, 181, 0.13), transparent 44%),
        linear-gradient(145deg, #ffffff 0%, #f7fbff 48%, #eaf5ff 100%);
    border: 1px solid rgba(0, 99, 219, 0.3);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(28, 42, 60, .14);
}
.cookie-consent h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.cookie-consent p { margin: 0 0 22px; color: #596270; font-size: .9rem; line-height: 1.55; }
.cookie-consent a { color: var(--color-primary); font-weight: 800; text-decoration: none; }
.cookie-consent a:hover { color: #0057c8; text-decoration: none; }
.cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-consent-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    color: #fff;
    background: var(--color-primary);
    border: 0;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 220ms ease, transform 220ms ease;
}
.cookie-consent-actions .cookie-consent-reject { color: #303946; background: #fff; border: 1px solid #d4d8df; }
.cookie-consent-actions .cookie-consent-reject:hover { background: #f5f7fa; transform: translateY(-2px); }
.cookie-consent-actions .cookie-consent-accept:hover {
    color: #fff;
    background: var(--color-primary-dark);
    box-shadow: 0 7px 18px rgba(0, 73, 143, 0.24);
    transform: translateY(-2px);
}
.cookie-consent-actions button:focus-visible,
.footer-cookie-settings:focus-visible { outline: 3px solid #ffcb45; outline-offset: 3px; }
.footer-cookie-settings {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
@media (max-width: 700px) {
    .cookie-consent { bottom: 16px; left: 16px; padding: 20px; }
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    color: rgba(255, 255, 255, 0.82);
    background-color: #022f65;
    background-image: radial-gradient(
            circle at 78% 12%,
            rgba(92, 173, 255, 0.3),
            transparent 30%
        ),
        linear-gradient(
            122deg,
            rgba(0, 25, 67, 0.99) 0%,
            rgba(0, 63, 130, 0.97) 48%,
            rgba(0, 104, 190, 0.9) 100%
        ),
        url("/images/bg_blue.webp");
    background-repeat: no-repeat;
    background-position:
        78% 12%,
        center,
        center;
    background-size:
        100% 100%,
        cover,
        cover;
    isolation: isolate;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-roaming-orbs {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    inset: 0;
}

.footer-roaming-orbs span {
    position: absolute;
    width: 280px;
    aspect-ratio: 1;
    background: radial-gradient(
        circle,
        rgba(142, 211, 255, 0.28),
        rgba(50, 148, 241, 0.1) 46%,
        transparent 72%
    );
    border-radius: 50%;
    filter: blur(9px);
    animation: footer-orb-roam 14s ease-in-out infinite alternate;
}

.footer-roaming-orbs span:nth-child(1) {
    top: -150px;
    right: 5%;
}

.footer-roaming-orbs span:nth-child(2) {
    bottom: -190px;
    left: 8%;
    width: 360px;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.footer-roaming-orbs span:nth-child(3) {
    top: 25%;
    left: 46%;
    width: 220px;
    opacity: 0.7;
    animation-delay: -9s;
}

@keyframes footer-orb-roam {
    0% {
        opacity: 0.42;
        transform: translate3d(-18px, 14px, 0) scale(0.9);
    }
    50% {
        opacity: 0.82;
        transform: translate3d(26px, -18px, 0) scale(1.08);
    }
    100% {
        opacity: 0.5;
        transform: translate3d(58px, 18px, 0) scale(0.96);
    }
}

/* Branding */

.footer-brand {
    display: inline-flex;
    margin-bottom: 20px;
}

.footer-brand img {
    width: auto;
    height: 31px;
}

.footer-description {
    max-width: 480px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Media sosial */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    display: grid;
    width: 40px;
    height: 40px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    place-items: center;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: #005db5;
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Judul kolom */

.footer-heading {
    margin: 4px 0 18px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Pusat bantuan */

.footer-support {
    max-width: 320px;
}

.footer-support-text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.65;
}

.footer-support-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-support-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.88);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-support-link:hover,
.footer-support-link:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.footer-support-icon {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background-color: rgba(130, 193, 255, 0.18);
    border-radius: 10px;
    place-items: center;
}

.footer-support-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.footer-support-content strong {
    color: inherit;
    font-size: 0.83rem;
    font-weight: 650;
}

.footer-support-content small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-support-arrow {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
}

/* Daftar platform */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a i {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
}

/* Alamat */

.footer-address {
    display: flex;
    max-width: 360px;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.78);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.65;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-address:hover,
.footer-address:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.footer-address-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background-color: rgba(130, 193, 255, 0.18);
    border-radius: 11px;
    place-items: center;
}

.footer-address-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-address-content strong {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 650;
}

.footer-address-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #82c1ff;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bagian bawah footer */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 46px;
    padding: 21px 0 23px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-bottom a,
.footer-cookie-settings {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible,
.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
    color: #ffffff;
}

/* Responsive footer */

@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 54px;
    }

    .footer-description {
        max-width: 620px;
    }

    .footer-support {
        max-width: none;
    }

    .footer-address {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 36px;
    }

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

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 46px;
    }

    .footer-heading {
        margin-top: 8px;
    }

    .footer-support-link {
        min-height: 60px;
    }

    .footer-bottom {
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-roaming-orbs span {
        animation: none;
    }

    .footer-social a,
    .footer-support-link,
    .footer-links a,
    .footer-address,
    .footer-bottom a {
        transition: none;
    }
}
