/* The site footer (layout/site_footer.html): an admission card standing over
   the footer's top edge, then a blue band with the students' links, contacts
   and social links. Same tokens as the site header (site-header.css) and the
   programme pages: the brand blue, Roboto Slab, 16px radius, pill buttons.
   Loaded after styles.css, so its element rules lose to these classes. */

.ft {
    --ft-blue: #0096db;
    --ft-blue-dark: #0987c2;
    --ft-blue-deep: #075e87;
    --ft-ink: #1e293b;
    --ft-muted: #64748b;
    --ft-line: #e2e8f0;
    --ft-radius: 16px;
    --ft-overlap: 56px; /* how far the card stands above the footer */
    display: flow-root; /* the card's negative margin moves the card, not the footer */
    margin-top: calc(var(--ft-overlap) + 54px);
    background: var(--ft-blue);
    color: #fff;
}

.ft a {
    color: inherit;
    text-decoration: none;
}

.ft a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Admission card ---------- */

.ft .ft-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: calc(-1 * var(--ft-overlap));
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--ft-line);
    border-radius: var(--ft-radius);
    box-shadow: 0 10px 30px -12px rgba(2, 74, 110, .22);
    color: var(--ft-ink);
    overflow: hidden;
}

.ft .ft-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--ft-blue), var(--ft-blue-deep));
}

.ft .ft-card__eyebrow {
    margin: 0;
    color: var(--ft-blue-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft .ft-card__title {
    margin: 6px 0 0;
    color: var(--ft-ink);
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
}

.ft .ft-card__sub {
    margin: 6px 0 0;
    color: var(--ft-muted);
    font-size: 15px;
    line-height: 1.5;
}

.ft .ft-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: none;
}

.ft .ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ft .ft-btn--primary {
    background: var(--ft-blue);
    color: #fff;
}

.ft .ft-btn--primary:hover {
    background: var(--ft-blue-deep);
    color: #fff;
}

.ft .ft-btn--line {
    border: 1.5px solid var(--ft-blue);
    color: var(--ft-blue-deep);
}

.ft .ft-btn--line:hover {
    background: rgba(0, 150, 219, .08);
    color: var(--ft-blue-deep);
}

.ft .ft-card .ft-btn:focus-visible {
    outline-color: var(--ft-blue);
}

/* ---------- Columns ---------- */

.ft .ft-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 40px;
    align-items: start;
    padding: 48px 0 32px;
}

.ft .ft-logo img {
    display: block;
    width: 72px;
    height: auto;
}

.ft .ft-col__title {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ft .ft-links,
.ft .ft-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft .ft-links li {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.4;
}

.ft .ft-links a:hover,
.ft .ft-contacts a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft .ft-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
}

.ft .ft-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 15px;
}

/* the header's social links (layout/site_social.html), larger here */
.ft .sh-social {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft .sh-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 17px;
}

.ft .sh-social a:hover {
    background: #fff;
    color: var(--ft-blue-dark);
}

/* ---------- Bottom line ---------- */

.ft .ft-bottom {
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.ft .ft-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 991.98px) {
    .ft .ft-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .ft .ft-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .ft .ft-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .ft .ft-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .ft .ft-card__actions,
    .ft .ft-btn {
        width: 100%;
    }

    .ft .ft-btn {
        justify-content: center;
    }
}
