/* Shared site footer: used by both the Tailwind (public) and Bootstrap (campus) layouts. */
.a4u-footer {
    --a4u-footer-bg: #071A30;
    --a4u-footer-panel: rgba(255, 255, 255, 0.04);
    --a4u-footer-line: rgba(148, 163, 184, 0.16);
    --a4u-footer-text: #a3b1c6;
    --a4u-footer-strong: #ffffff;
    --a4u-footer-accent: #FF6B00;
    --a4u-footer-accent-hover: #E55F00;

    position: relative;
    margin-top: 4.5rem;
    padding: 0 0 1.5rem;
    background:
        radial-gradient(60rem 24rem at 100% 0, rgba(14, 116, 144, 0.22), transparent 60%),
        radial-gradient(40rem 20rem at 0 100%, rgba(255, 107, 0, 0.08), transparent 60%),
        var(--a4u-footer-bg);
    border-top: 4px solid var(--a4u-footer-accent);
    color: var(--a4u-footer-text);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
}

.a4u-footer *,
.a4u-footer *::before,
.a4u-footer *::after { box-sizing: border-box; }

.a4u-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.a4u-footer ul { margin: 0; padding: 0; list-style: none; }
.a4u-footer p { margin: 0; }

.a4u-footer__container {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
}

/* Counselling band, pulled up over the top border */
.a4u-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: -2.75rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(120deg, #0B2545 0%, #0e4a6b 55%, #0e7490 100%);
    box-shadow: 0 18px 40px rgba(7, 26, 48, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.a4u-footer__cta-text { display: flex; align-items: center; gap: 1rem; flex: 1 1 26rem; }

.a4u-footer__cta-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fdba74;
    font-size: 1.35rem;
}

.a4u-footer__cta-title { color: #fff; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.a4u-footer__cta-sub { margin-top: 0.25rem !important; color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }

.a4u-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.a4u-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.a4u-footer .a4u-footer__btn--primary { background: var(--a4u-footer-accent); color: #fff; }
.a4u-footer .a4u-footer__btn--primary:hover { background: var(--a4u-footer-accent-hover); color: #fff; }
.a4u-footer .a4u-footer__btn--ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.a4u-footer .a4u-footer__btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Main grid */
.a4u-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    padding: 3rem 0 2.5rem;
}

.a4u-footer__logo {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.a4u-footer__logo:hover { transform: translateY(-2px); }
.a4u-footer__logo img { display: block; width: auto; max-width: 11.5rem; height: 2.4rem; object-fit: contain; }

.a4u-footer__about { margin-top: 1rem !important; max-width: 24rem; font-size: 0.85rem; line-height: 1.7; }

.a4u-footer__contact { display: grid; gap: 0.6rem; margin-top: 1.25rem !important; }
.a4u-footer__contact li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.85rem; }
.a4u-footer__contact :is(i, svg) { width: 1rem; margin-top: 0.25rem; flex-shrink: 0; color: var(--a4u-footer-accent); text-align: center; }
.a4u-footer__contact a { color: var(--a4u-footer-strong); font-weight: 600; }
.a4u-footer__contact a:hover { color: var(--a4u-footer-accent); }

.a4u-footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.a4u-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    font-size: 0.95rem;
}
.a4u-footer__social a:hover { background: var(--a4u-footer-accent); color: #fff; transform: translateY(-3px); }

.a4u-footer__heading {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    color: var(--a4u-footer-strong);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.a4u-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: var(--a4u-footer-accent);
}

.a4u-footer__links { display: grid; gap: 0.55rem; }
.a4u-footer__links a { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.a4u-footer__links a:hover { color: var(--a4u-footer-accent); transform: translateX(3px); }
.a4u-footer__links .a4u-footer__more { color: #fdba74; font-weight: 700; font-size: 0.8rem; }
.a4u-footer__links .a4u-footer__more :is(i, svg) { font-size: 0.65rem; }

/* Trust strip */
.a4u-footer__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--a4u-footer-line);
    border-radius: 1rem;
    background: var(--a4u-footer-line);
}

.a4u-footer__trust li { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.15rem; background: #0a2038; }
.a4u-footer__trust-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: rgba(255, 107, 0, 0.12);
    color: var(--a4u-footer-accent);
}
.a4u-footer__trust-text { display: grid; font-size: 0.75rem; line-height: 1.4; }
.a4u-footer__trust strong { color: var(--a4u-footer-strong); font-size: 0.85rem; font-weight: 700; }

/* Popular links */
.a4u-footer__popular {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 2rem 1.75rem;
    border: 1px solid var(--a4u-footer-line);
    border-radius: 1.25rem;
    background: var(--a4u-footer-panel);
}

/* State / city chips */
.a4u-footer__chips { margin-top: 2rem; }
.a4u-footer__chips ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.a4u-footer__chips a {
    display: inline-flex;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--a4u-footer-line);
    border-radius: 999px;
    font-size: 0.78rem;
}
.a4u-footer__chips a:hover { border-color: var(--a4u-footer-accent); color: #fff; background: rgba(255, 107, 0, 0.12); }

/* Bottom bar */
.a4u-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--a4u-footer-line);
    font-size: 0.8rem;
}
.a4u-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-left: auto; }
.a4u-footer__bottom a:hover { color: var(--a4u-footer-accent); }

.a4u-footer .a4u-footer__top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--a4u-footer-accent);
    color: #fff;
}
.a4u-footer .a4u-footer__top:hover { background: var(--a4u-footer-accent-hover); transform: translateY(-3px); color: #fff; }

/* Room for fixed bottom bars */
.has-announce-bar .a4u-footer { padding-bottom: calc(1.5rem + 48px); }

@media (max-width: 1100px) {
    .a4u-footer__main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .a4u-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; align-items: start; }
    .a4u-footer__brand .a4u-footer__logo { justify-self: start; }
    .a4u-footer__brand .a4u-footer__about { grid-column: 1; }
    .a4u-footer__brand .a4u-footer__contact { grid-column: 2; grid-row: 1 / span 3; margin-top: 0 !important; }
    .a4u-footer__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a4u-footer__popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .a4u-footer { margin-top: 4rem; }
    .a4u-footer__container { width: min(100% - 24px, 1240px); }
    .a4u-footer__cta { padding: 1.25rem; margin-top: -2.25rem; }
    .a4u-footer__cta-text { align-items: flex-start; }
    .a4u-footer__cta-icon { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
    .a4u-footer__cta-title { font-size: 1rem; }
    .a4u-footer__cta-actions { width: 100%; }
    .a4u-footer__btn { flex: 1 1 12rem; }
    .a4u-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; padding-top: 2.25rem; }
    .a4u-footer__brand { display: block; }
    .a4u-footer__brand .a4u-footer__contact { margin-top: 1.25rem !important; }
    .a4u-footer__popular { padding: 1.5rem 1.25rem; gap: 1.75rem 1.25rem; }
    .a4u-footer__trust li { padding: 0.85rem; }
    .a4u-footer__bottom { flex-direction: column; align-items: flex-start; }
    .a4u-footer__bottom ul { margin-left: 0; }
    .a4u-footer__top { position: absolute; right: 12px; bottom: 1.25rem; }
    .a4u-footer--mobile-cta { padding-bottom: calc(1.5rem + 76px); }
    .a4u-footer--mobile-cta .a4u-footer__top { bottom: calc(1.25rem + 76px); }
    .has-announce-bar .a4u-footer__top { bottom: calc(1.25rem + 48px); }
}

@media (max-width: 420px) {
    .a4u-footer__trust { grid-template-columns: 1fr; }
}
