.home-alumni-section::after {
    pointer-events: none;
}

.home-alumni-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

[data-alumni-grid] > .home-alumni-item {
    min-width: 0;
    align-self: start;
}

.home-alumni-card {
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #393737;
    border-radius: 18px;
    background: #151414;
    color: #fff;
}

.home-alumni-portrait {
    position: relative;
}

.home-alumni-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: auto 3 / 4;
}

.home-alumni-portrait::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 80%, #151414 100%);
    content: "";
}

.home-alumni-card-footer {
    position: relative;
    margin-top: -16px;
    padding: 0 8px 8px;
}

.home-alumni-details {
    border: 1px solid rgb(255 255 255 / 23%);
    border-top-color: rgb(255 255 255 / 39%);
    border-radius: 12px;
    background: rgb(25 24 24 / 72%);
    box-shadow: inset 0 0 18px rgb(255 255 255 / 5%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.home-alumni-details {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    overflow-wrap: anywhere;
}

.home-alumni-details h3,
.home-alumni-details p {
    margin: 0;
}

.home-alumni-details h3 {
    font-family: var(--font-heavy, sans-serif);
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.2;
}

.home-alumni-details p {
    color: #f3f0ed;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.25;
}

.home-alumni-details .home-alumni-salary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    color: #ffb027;
    font-weight: 600;
}

.home-alumni-salary strong {
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.2;
}

.home-alumni-salary span {
    font-size: clamp(11px, 0.9vw, 14px);
}

.home-alumni-company {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 6px 8px;
    border: 1px solid #716d69;
    border-radius: 8px;
    background: #3a3735;
    color: #fff;
    font: inherit;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.home-alumni-company:hover {
    background: #4a4643;
}

.home-alumni-company:focus-visible {
    outline: 2px solid #ffb027;
    outline-offset: 2px;
}

.home-alumni-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(390px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 16px clamp(16px, 4vw, 24px);
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #121212;
    font-family: var(--font-medium, sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
    overflow-wrap: anywhere;
}

.home-alumni-dialog:not([open]) {
    display: none;
}

.home-alumni-dialog p {
    margin: 0;
}

.home-alumni-dialog p:first-child {
    padding-inline-end: 28px;
}

.home-alumni-salary-hike {
    color: #ce0b32;
}

.home-alumni-dialog-close {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-end: 3px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4a4a4a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.home-alumni-dialog-close:hover {
    background: #f0f0f0;
}

.home-alumni-dialog-close:focus-visible {
    outline: 2px solid #4a4a4a;
    outline-offset: -4px;
}

.home-alumni-dialog::backdrop {
    background: rgb(0 0 0 / 68%);
}

@media (max-width: 1023px) {
    .home-alumni-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-alumni-grid > .home-alumni-spacer {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .home-alumni-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
