.geo-portal {
    width: min(1020px, 92vw);
    margin: clamp(24px, 5vh, 64px) auto;
    padding-bottom: 48px;
}

.geo-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 18px;
    font-weight: 800;
}

.geo-heading {
    display: block;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.geo-eyebrow,
.geo-login-class {
    margin: 0 0 6px;
    color: #9d4b35;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.geo-heading h1 {
    margin: 0;
    font: clamp(2.6rem, 7vw, 5.3rem)/.95 Georgia, serif;
    letter-spacing: -.055em;
}

.geo-instruction {
    max-width: 560px;
    margin: 16px 0 0;
    color: #365b4d;
    font-size: 1.05rem;
}

.geo-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(15px, 2.8vw, 30px);
}

.geo-class-card {
    --class-accent: #e4ae2d;
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 28px;
    border: 3px solid #073c2d;
    border-radius: 34px;
    background:
        radial-gradient(circle at 76% 22%, #fff7cf 0 9%, transparent 10%),
        linear-gradient(145deg, #fbf3d8 0 54%, var(--class-accent) 54%);
    box-shadow: 0 17px 0 #073c2d, 0 28px 38px #073c2d29;
    color: #073c2d;
    transition: transform .2s ease, box-shadow .2s ease;
}

.geo-class-1 {
    --class-accent: #ee8064;
}

.geo-class-t {
    --class-accent: #58b6ad;
}

.geo-class-card:hover,
.geo-class-card:focus-visible {
    transform: translateY(-7px) rotate(-.5deg);
    box-shadow: 0 20px 0 #073c2d, 0 34px 42px #073c2d32;
}

.geo-class-level {
    position: absolute;
    z-index: -1;
    top: 10px;
    right: 20px;
    color: #073c2d;
    font: 900 9rem/1 Georgia, serif;
    opacity: .11;
}

.geo-topography {
    position: absolute;
    z-index: -1;
    top: 34px;
    left: 30px;
    width: 130px;
    height: 130px;
    border: 3px solid #073c2d;
    border-radius: 47% 53% 40% 60%;
    opacity: .38;
}

.geo-topography::before,
.geo-topography::after {
    position: absolute;
    content: "";
    border: 2px solid #073c2d;
    border-radius: inherit;
}

.geo-topography::before {
    inset: 16px;
}

.geo-topography::after {
    inset: 34px;
}

.geo-class-code {
    font: 900 clamp(2.1rem, 4vw, 3.5rem)/1 Georgia, serif;
    letter-spacing: -.05em;
}

.geo-class-label {
    margin-top: 7px;
    font-weight: 800;
}

.geo-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.geo-student-grid a {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 2px solid #0c4c38;
    border-radius: 18px;
    background: #fffaf0;
    box-shadow: 0 6px 0 #0c4c38;
    color: #073c2d;
    font-size: 1.08rem;
    font-weight: 900;
    transition: transform .16s ease, background .16s ease;
}

.geo-student-grid a:hover,
.geo-student-grid a:focus-visible {
    transform: translateY(-3px);
    background: #fff1bd;
}

.geo-student-number {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #e8ac23;
    color: #052f24;
    font-size: .82rem;
}

.geo-empty {
    max-width: 560px;
    padding: 24px;
    border-radius: 18px;
    background: #fffaf0;
}

@media (max-width: 760px) {
    .geo-class-grid {
        grid-template-columns: 1fr;
    }

    .geo-class-card {
        min-height: 210px;
    }

    .geo-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .geo-student-grid {
        grid-template-columns: 1fr;
    }
}
