/* Floating public WhatsApp enquiry button. */

.floating-whatsapp {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 8px 22px rgba(6, 61, 35, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.floating-whatsapp:hover {
    color: #ffffff;
    background: #128c45;
    transform: translateY(-3px) scale(1.04);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.floating-whatsapp svg {
    width: 26px;
    height: 30px;
    fill: currentColor;
}

.contacts .campus-city-links {
    display: block;
    margin-top: 5px;
}

.contacts .campus-city-links a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contacts .campus-city-links a:hover,
.contacts .campus-city-links a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts .header-whatsapp-link {
    display: block;
    color: #718795;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contacts .header-whatsapp-link b {
    display: block;
    margin-top: 5px;
    color: var(--navy);
}

.contacts .header-whatsapp-link:hover,
.contacts .header-whatsapp-link:focus-visible {
    color: var(--blue);
}

.contacts .header-whatsapp-link:hover b,
.contacts .header-whatsapp-link:focus-visible b {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Homepage campus section: compact desktop heading and description. */

.campus-carousel-heading .center {
    max-width: 980px;
}

.campus-carousel-heading .center .title {
    font-size: clamp(34px, 3.25vw, 46px);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.campus-carousel-heading .center .intro {
    max-width: none;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .campus-carousel-heading .center .title,
    .campus-carousel-heading .center .intro {
        white-space: normal;
    }

    .campus-carousel-heading .center .intro {
        max-width: 630px;
    }
}

@media (max-width: 650px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .floating-whatsapp svg {
        width: 23px;
        height: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp {
        transition: none;
    }
}
