/* =====================================================================
   FOOTER (THE MANTHAN SCHOOL) - FULL REPLACEMENT
   Dark navy, cyan headings, 5 fixed columns, white square CTA,
   pink campus link, pink thin divider, pink credit text,
   mascots top edge pe left + right.
   ===================================================================== */

.mf-footer,
.mf-footer--gnw {
    --mf-bg: #05234d;
    --mf-cyan: #2ab4e6;
    --mf-pink: #e6007e;
    --mf-text: #ffffff;

    background: var(--mf-bg) !important;
    color: var(--mf-text) !important;
    font-family: 'Plus Jakarta Sans', var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    border-top: none !important;
    padding-top: 64px;
    padding-bottom: 0;
    position: relative;
    overflow-x: clip;
    width: 100%;
}

.mf-footer *,
.mf-footer *::before,
.mf-footer *::after { box-sizing: border-box; }

.mf-footer a { color: inherit; text-decoration: none; }
.mf-footer ul { list-style: none; margin: 0; padding: 0; }
.mf-footer p { margin: 0; }
.mf-footer :focus-visible { outline: 2px solid var(--mf-cyan); outline-offset: 3px; }

/* Content width = 1264px (reference: left 88px / right 88px at 1440) */
.mf-footer .mf-container {
    width: 100%;
    max-width: 1312px;
    margin: 0 auto;
    padding-inline: clamp(16px, 2vw, 24px);
}

/* ---------------- Mascots (top edge, left + right) ---------------- */
.mf-footer .mf-mascots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1312px;
    height: 0;
    margin-inline: auto;
    padding-inline: clamp(16px, 2vw, 24px);
    pointer-events: none;
    user-select: none;
    z-index: 3;
}
.mf-footer .mf-mascot {
    position: absolute;
    bottom: 0;
    width: clamp(90px, 9vw, 130px);
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0 !important;
    transform: translateY(35%);
}

.mf-footer .mf-mascot--left  { left: clamp(16px, 2vw, 24px); }
.mf-footer .mf-mascot--right { right: clamp(16px, 2vw, 24px); }

/* ---------------- 5 columns (logo + 4 link columns) ---------------- */
.mf-footer .mf-grid {
    display: grid;
    grid-template-columns: 305fr 217fr 278fr 270fr 194fr;
    column-gap: 0;
    align-items: start;
}

/* Col 1: logo only */
.mf-col--brand { display: flex; flex-direction: column; align-items: flex-start; }
.mf-logo { display: inline-block; width: clamp(150px, 12.5vw, 180px); }
.mf-logo img { width: 100%; height: auto; display: block; }

/* Link columns start a little lower than the logo, like reference */
.mf-col:not(.mf-col--brand) { padding-top: 40px; }

/* Headings: light cyan, regular weight */
.mf-col__title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--mf-cyan) !important;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    line-height: 1.3;
}
.mf-col__title::after { display: none !important; }

/* Links */
.mf-links { display: flex; flex-direction: column; gap: 0; }
.mf-links li { margin: 0; }
.mf-links a,
.mf-contact-list a {
    display: inline-block;
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 22px;
    transition: color .18s ease, transform .18s ease;
}
.mf-links a:hover,
.mf-contact-list a:hover { color: var(--mf-cyan) !important; transform: translateX(3px); }

/* Reach Us: white square button */
.mf-visit-cta { margin-top: 48px; }
.mf-btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    min-height: 50px;
    padding: 12px 14px !important;
    background: #ffffff !important;
    color: #05234d !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mf-btn-visit:hover {
    background: var(--mf-pink) !important;
    border-color: var(--mf-pink) !important;
    color: #ffffff !important;
}

/* Campus switcher note (pink link) */
.mf-campus-switcher {
    text-align: center;
    margin: 64px auto 60px;
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
}
.mf-campus-switcher a {
    color: var(--mf-pink) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color .18s ease;
}
.mf-campus-switcher a:hover { color: #ffffff !important; }

/* ---------------- Bottom legal bar ---------------- */
.mf-bottom {
    background: transparent !important;
    border-top: 1px solid rgba(230, 0, 126, 0.35) !important;
    padding: 34px 0;
}
.mf-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
    font-size: 0.8rem;
    color: #ffffff;
}
.mf-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.mf-legal li { display: inline-flex; align-items: center; }
.mf-legal li + li::before {
    content: "|";
    margin: 0 18px;
    color: rgba(255, 255, 255, 0.55);
}
.mf-legal a { color: #ffffff !important; font-size: 0.8rem; transition: color .18s ease; }
.mf-legal a:hover { color: var(--mf-cyan) !important; }

.mf-credit { margin: 0; color: #ffffff !important; font-size: 0.8rem; }
.mf-credit .mf-credit__dev { color: var(--mf-pink); }
.mf-credit strong { font-weight: 700; color: #ffffff; }

/* ---------------- Floating chat + WhatsApp ---------------- */
.mf-float {
    position: fixed;
    right: clamp(16px, 2.5vw, 36px);
    bottom: clamp(18px, 3vh, 36px);
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    transition: opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1), visibility .3s;
    animation: mfFloatEntrance .7s cubic-bezier(.16,1,.3,1) both;
}
@keyframes mfFloatEntrance {
    0% { opacity: 0; transform: translateY(24px) scale(.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
body.mn-menu-open .mf-float,
body.modal-open .mf-float,
body.mn-modal-open .mf-float {
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transform: translateY(16px) scale(.9) !important;
}

.mf-float__btn {
    position: relative;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50% !important;
    padding: 0; cursor: pointer; text-decoration: none;
    color: #ffffff !important;
    aspect-ratio: 1 / 1; flex-shrink: 0;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
    -webkit-tap-highlight-color: transparent;
}
.mf-float__btn:hover { transform: translateY(-4px) scale(1.08); }
.mf-float__btn:active { transform: translateY(1px) scale(.95); transition-duration: .1s; }
.mf-float__btn svg { display: block; fill: currentColor; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }

/* Chat: navy fill + white outline (as in reference) */
.mf-float__chat {
    background: #05234d !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important;
}
.mf-float__chat svg { width: 22px; height: 22px; }
.mf-float__chat:hover svg { transform: rotate(-10deg) scale(1.12); }

/* WhatsApp: green */
.mf-float__wa {
    background: #25d366 !important;
    border: 2px solid #25d366 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .45) !important;
}
.mf-float__wa svg { width: 24px; height: 24px; }
.mf-float__wa:hover svg { transform: rotate(10deg) scale(1.12); }

/* Soft idle pulse */
.mf-float__pulse { position: absolute; inset: -5px; border-radius: 50% !important; pointer-events: none; z-index: -1; }
.mf-float__chat .mf-float__pulse { border: 2px solid rgba(255,255,255,.5); animation: mfPulse 3s infinite cubic-bezier(.24,0,.38,1); }
.mf-float__wa .mf-float__pulse { border: 2px solid rgba(37,211,102,.65); animation: mfPulse 3s infinite 1.5s cubic-bezier(.24,0,.38,1); }
@keyframes mfPulse {
    0% { transform: scale(.92); opacity: .9; }
    50% { transform: scale(1.38); opacity: 0; }
    100% { transform: scale(1.38); opacity: 0; }
}
.mf-float__btn:hover .mf-float__pulse { animation-play-state: paused; opacity: 0; }

/* Tooltip */
.mf-float__tooltip {
    position: absolute; right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(9, 27, 56, .94); color: #fff;
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    padding: 6px 13px; border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.mf-float__tooltip::after {
    content: ''; position: absolute; top: 50%; right: -5px; transform: translateY(-50%);
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
    border-left: 6px solid rgba(9, 27, 56, .94);
}
.mf-float__btn:hover .mf-float__tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
    .mf-footer .mf-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .mf-col:not(.mf-col--brand) { padding-top: 0; }
    .mf-col--brand { grid-column: 1 / -1; }
    .mf-visit-cta { margin-top: 28px; }
}

@media (max-width: 768px) {
    .mf-footer { padding-top: 44px; }
    .mf-campus-switcher { margin: 40px auto 36px; }
    .mf-bottom { padding: 22px 0; }
    .mf-bottom__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .mf-legal li + li::before { margin: 0 12px; }

    .mf-float { gap: 10px; right: max(14px, env(safe-area-inset-right, 14px)); bottom: max(16px, env(safe-area-inset-bottom, 16px)); }
    .mf-float__btn { width: 46px; height: 46px; }
    .mf-float__tooltip { display: none !important; }

    .mf-footer .mf-mascot { width: 84px; }
}

@media (max-width: 576px) {
    .mf-footer .mf-grid { grid-template-columns: 1fr; gap: 26px; }
    .mf-btn-visit { max-width: 100%; }

    .mf-footer .mf-mascot { width: 70px; }
}