/* ==========================================================================
   Common Site Footer
   Shared across all pages: index, mobile, course detail pages, contact, login
   ========================================================================== */

footer,
.mobile-footer,
.detail-footer,
.utility-footer {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: #080b49 !important;
    color: #fff !important;
    text-align: left !important;
    box-sizing: border-box !important;
    clear: both;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.footer-resources {
    width: 100%;
    box-sizing: border-box;
    padding: 44px clamp(20px, 4vw, 68px) 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-resources-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-resources-kicker {
    margin: 0 0 20px !important;
    color: #9ab4e8 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    font-family: inherit;
}

.footer-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.footer-resource-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

.footer-resource-card:hover,
.footer-resource-card:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    outline: none;
}

.footer-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
    font-family: inherit;
    transition: color 0.2s ease;
}

.footer-resource-card:hover .footer-card-title {
    color: #ffa37b;
}

.footer-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 74, 9, 0.18);
    color: #ff5722;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-resource-card:hover .footer-card-arrow {
    background: #ff4a09;
    color: #ffffff;
    transform: translate(2px, -2px);
}

footer p.footer-card-desc,
.mobile-footer p.footer-card-desc,
.detail-footer p.footer-card-desc,
.utility-footer p.footer-card-desc {
    margin: 0 !important;
    color: #c0ccee !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    text-align: left !important;
    font-family: inherit;
}

.footer-bottom-bar {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    padding: 22px clamp(20px, 4vw, 68px);
}

.footer-bottom-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

/* Wordmark in Footer */
.footer-mark {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    font-weight: 950;
    letter-spacing: -.055em;
    text-decoration: none;
    color: #fff !important;
}

.footer-mark strong {
    font-size: 26px;
    line-height: .9;
    color: #fff !important;
    font-family: inherit;
}

.footer-mark strong span {
    color: #ff4a09 !important;
}

.footer-mark small {
    padding-left: 9px;
    border-left: 1px solid #6370aa !important;
    color: #fff !important;
    font-size: 11px;
    letter-spacing: .1em;
    line-height: 1;
    font-family: inherit;
}

footer p.footer-tagline,
.mobile-footer p.footer-tagline,
.detail-footer p.footer-tagline,
.utility-footer p.footer-tagline {
    margin: 0 !important;
    font-size: 11px !important;
    color: #bfc8ea !important;
    font-family: inherit;
}

/* Tablet & intermediate screens */
@media (max-width: 960px) {
    .footer-resources {
        padding: 34px 20px 28px;
    }

    .footer-resources-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom-inner .footer-mark {
        justify-content: center;
    }
}

/* Mobile screens */
@media (max-width: 600px) {
    .footer-resources {
        padding: 26px 14px 22px;
    }

    .footer-resources-kicker {
        font-size: 10px !important;
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .footer-resource-card {
        padding: 16px 16px;
        border-radius: 12px;
    }

    .footer-card-title {
        font-size: 14px;
    }

    footer p.footer-card-desc,
    .mobile-footer p.footer-card-desc,
    .detail-footer p.footer-card-desc,
    .utility-footer p.footer-card-desc {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
    }

    .footer-bottom-bar {
        padding: 20px 14px;
    }

    .footer-bottom-inner {
        gap: 10px;
    }

    .footer-mark strong {
        font-size: 22px;
    }

    .footer-mark small {
        font-size: 10px;
    }

    footer p.footer-tagline,
    .mobile-footer p.footer-tagline,
    .detail-footer p.footer-tagline,
    .utility-footer p.footer-tagline {
        font-size: 10.5px !important;
    }
}
