/* ==========================================================
   Site footer (components/Footer.tsx)
   Same palette as the home page: navy and blue with yellow accents.
   ========================================================== */

.ft {
    --ft-navy: #0a2463;
    --ft-navy-2: #123a8c;
    --ft-navy-deep: #050f33;
    --ft-yellow: #ffc21a;
    --ft-yellow-2: #ffb52e;
    --ft-text: rgba(255, 255, 255, 0.74);
    --ft-line: rgba(255, 255, 255, 0.12);
    position: relative;
    margin: 0;
    padding-top: 64px;
    background: linear-gradient(115deg, #071b4d 0%, var(--ft-navy) 45%, var(--ft-navy-2) 100%);
    color: #ffffff;
    font-family: "AR One Sans", "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
}

/* Yellow line along the very top */
.ft::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ft-yellow), var(--ft-yellow-2), var(--ft-yellow));
}

.ft a {
    text-decoration: none;
}

.ft a:focus-visible,
.ft button:focus-visible {
    outline: 3px solid var(--ft-yellow);
    outline-offset: 3px;
}

/* Dot block in the top-left corner (same as the page banners) */
.ft-dots {
    position: absolute;
    top: 26px;
    left: 18px;
    width: 64px;
    height: 84px;
    background-image: radial-gradient(rgba(126, 170, 255, 0.75) 2px, transparent 2.5px);
    background-size: 12px 12px;
    opacity: 0.8;
    pointer-events: none;
}

/* Yellow triangle in the top-right corner */
.ft-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 210px;
    height: 54px;
    background: var(--ft-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    pointer-events: none;
}

.ft-inner {
    position: relative;
    z-index: 1;
}

/* ================= Columns ================= */
.ft-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 1.25fr 1fr;
    gap: 44px;
    padding: 0 0 52px;
}

.ft-col {
    min-width: 0;
}

.ft-title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
}

.ft-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--ft-yellow);
}

/* Brand */
.ft-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.ft-logo:hover {
    color: #ffffff;
}

.ft-logo-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ft-logo-mark img {
    width: 40px;
    height: auto;
}

.ft-logo-name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.ft-about {
    margin: 20px 0 0;
    color: var(--ft-text);
    font-size: 0.93rem;
    line-height: 1.75;
}

.ft-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ft-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1.05rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ft-social a:hover {
    border-color: var(--ft-yellow);
    background: var(--ft-yellow);
    color: var(--ft-navy-deep);
    transform: translateY(-3px);
}

.ft-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Quick links */
.ft-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-links li + li {
    margin-top: 12px;
}

.ft-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ft-text);
    font-size: 0.95rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.ft-links a i {
    color: var(--ft-yellow);
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.ft-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Contact */
.ft-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft-contact li {
    display: flex;
    gap: 14px;
}

.ft-contact li + li {
    margin-top: 20px;
}

.ft-contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 194, 26, 0.14);
    color: var(--ft-yellow);
}

.ft-contact-label {
    display: block;
    margin-bottom: 3px;
    color: var(--ft-yellow);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ft-contact a {
    display: block;
    color: var(--ft-text);
    font-size: 0.93rem;
    line-height: 1.6;
    word-break: break-word;
    transition: color 0.25s ease;
}

.ft-contact a:hover {
    color: #ffffff;
}

/* Campus photos */
.ft-photos {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
}

.ft-photos img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.ft-photos img:hover {
    border-color: var(--ft-yellow);
    transform: translateY(-3px);
}

.ft-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ft-yellow);
    font-size: 0.92rem;
    font-weight: 700;
}

.ft-more:hover {
    color: #ffffff;
}

.ft-more i {
    transition: transform 0.25s ease;
}

.ft-more:hover i {
    transform: translateX(4px);
}

/* ================= Bottom bar ================= */
.ft-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--ft-line);
    background: rgba(0, 0, 0, 0.18);
}

.ft-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.ft-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.ft-bottom p a {
    color: #ffffff;
    font-weight: 600;
}

.ft-bottom p a:hover {
    color: var(--ft-yellow);
}

.ft-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ft-top:hover {
    border-color: var(--ft-yellow);
    background: var(--ft-yellow);
    color: var(--ft-navy-deep);
}

.ft-top i {
    transition: transform 0.25s ease;
}

.ft-top:hover i {
    transform: translateY(-3px);
}

/* ================= Responsive ================= */
@media (max-width: 1199.98px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 48px;
    }
}

@media (max-width: 767.98px) {
    .ft {
        padding-top: 44px;
    }

    .ft-corner {
        width: 130px;
        height: 36px;
    }

    .ft-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 0 40px;
    }

    .ft-photos img {
        height: 140px;
    }

    .ft-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft *,
    .ft *::before,
    .ft *::after {
        transition: none !important;
    }
}
