html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

body.is-language-switching {
    cursor: wait;
}

.language-switch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.55);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.language-switch-overlay__card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.75rem 1.1rem;
    color: rgb(6 78 59);
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.language-switch-overlay__spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    border: 2px solid rgb(167 243 208);
    border-top-color: rgb(4 120 87);
    animation: language-switch-spin 0.8s linear infinite;
}

@keyframes language-switch-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-feature-card {
    display: flex;
    flex-direction: column;
}

.home-section-head {
    flex: 0 0 auto;
    min-height: 2rem;
}

.home-feature-grid {
    flex: 1 1 auto;
    min-height: 0;
}

.home-feature-grid > div {
    min-height: 0;
    overflow: hidden;
}

#honors .home-feature-grid > div {
    display: flex;
    flex-direction: column;
}

#honors .home-feature-grid > div > div:last-child {
    margin-top: auto;
}

.home-hero {
    min-height: 25rem;
}

.hero-gallery {
    isolation: isolate;
}

.hero-gallery img {
    display: block;
}

.hero-main-photo {
    position: relative;
    min-height: 16rem;
}

.hero-main-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(4, 120, 87, 0.16));
    pointer-events: none;
}

.hero-carousel {
    background: rgb(241 245 249);
}

.hero-carousel-slide {
    transition: opacity 0.7s ease, transform 5s ease;
}

.hero-carousel-slide:not(.is-active) {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
}

.hero-carousel-slide.is-active {
    position: relative;
    opacity: 1;
    transform: scale(1.025);
}

.hero-carousel-dot {
    height: 0.375rem;
    width: 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: background-color 0.2s ease, width 0.2s ease;
}

.hero-carousel-dot.is-active {
    width: 1.75rem;
    background: rgb(4 120 87);
}

@media (min-width: 768px) {
    .hero-main-photo {
        min-height: 23rem;
    }
}

.calendar-day {
    min-height: 1.35rem;
}

.calendar-day.is-outside {
    color: rgb(148 163 184);
    background: rgb(248 250 252);
}

.calendar-day.is-today {
    outline: 2px solid rgb(5 150 105);
    outline-offset: -2px;
}

.calendar-event-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex: 0 0 auto;
}

.calendar-date-badge {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-category-important {
    background: rgb(16 185 129);
}

.calendar-category-cert {
    background: rgb(14 165 233);
}

.calendar-category-career {
    background: rgb(245 158 11);
}

.calendar-category-competition {
    background: rgb(99 102 241);
}

.calendar-category-other {
    background: rgb(100 116 139);
}

@media (max-width: 767px) {
    .home-hero {
        min-height: auto;
    }
}

@media (min-width: 1024px) {
    .home-feature-card {
        height: 17.875rem;
    }

    .home-feature-grid {
        grid-auto-rows: minmax(0, 1fr);
    }

    .home-feature-grid > div {
        height: 100%;
    }
}
