.rsw-student-generation {
    --rsw-blue: #6d9bb7;
    --rsw-blue-dark: #315f7d;
    --rsw-blue-soft: #eef5f8;
    --rsw-burgundy: #681213;
    --rsw-burgundy-soft: #f8eeee;
    --rsw-ink: #1f2933;
    --rsw-text: #4b5563;
    width: 100%;
}

.rsw-student-generation__item {
    position: relative;
    display: flow-root;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(109, 155, 183, .24);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(109, 155, 183, .16), transparent 32%),
        radial-gradient(circle at 0 100%, rgba(104, 18, 19, .06), transparent 28%),
        #fff;
    box-shadow: 0 16px 42px rgba(31, 41, 51, .10);
    transform: translateY(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    animation: rswStudentCardIn .62s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: var(--rsw-card-delay, 0ms);
}

.rsw-student-generation__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--rsw-burgundy), var(--rsw-blue) 48%, rgba(109,155,183,0));
}

.rsw-student-generation__item::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -74px;
    bottom: -78px;
    border: 1px solid rgba(109, 155, 183, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(109,155,183,.035), 0 0 0 46px rgba(104,18,19,.025);
    pointer-events: none;
}

.rsw-student-generation__item:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 155, 183, .46);
    box-shadow: 0 24px 58px rgba(31, 41, 51, .15);
}

.rsw-student-generation__heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
}

.rsw-student-generation__award {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    background: linear-gradient(145deg, var(--rsw-burgundy), #8c2829);
    box-shadow: 0 9px 20px rgba(104, 18, 19, .20);
    transform: rotate(-3deg);
    transition: transform .35s ease;
}

.rsw-student-generation__item:hover .rsw-student-generation__award {
    transform: rotate(3deg) scale(1.06);
}

.rsw-student-generation__year {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--rsw-blue-dark);
}

.rsw-student-generation__body {
    position: relative;
    z-index: 1;
    display: flow-root;
    font-size: 16px;
    line-height: 1.72;
    color: var(--rsw-text);
}

.rsw-student-generation__image {
    float: left;
    width: 245px;
    max-width: 34%;
    aspect-ratio: 4 / 5;
    height: auto;
    margin: 0 36px 22px 0;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
    border: 5px solid #fff;
    outline: 1px solid rgba(109, 155, 183, .22);
    box-shadow: 0 15px 32px rgba(31, 41, 51, .18);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, filter .45s ease;
}

.rsw-student-generation__item:hover .rsw-student-generation__image {
    transform: translateY(-3px) scale(1.018);
    box-shadow: 0 20px 42px rgba(31, 41, 51, .22);
}

.rsw-student-generation__name {
    margin: 2px 0 8px;
    font-size: 26px;
    line-height: 1.22;
    color: var(--rsw-burgundy);
    font-weight: 750;
    letter-spacing: -.01em;
}

.rsw-student-generation__class {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 22px;
    padding: 6px 13px;
    border-radius: 999px;
    color: var(--rsw-blue-dark);
    background: var(--rsw-blue-soft);
    border: 1px solid rgba(109, 155, 183, .22);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
}

.rsw-student-generation__content {
    color: var(--rsw-text);
}

.rsw-student-generation__content p {
    margin: 0 0 17px;
}

.rsw-student-generation__content p:last-child {
    margin-bottom: 0;
}

.rsw-student-generation__content ul,
.rsw-student-generation__content ol {
    margin: 0 0 18px 22px;
}

.rsw-student-generation__content a {
    color: var(--rsw-burgundy);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rsw-student-generation__separator {
    position: relative;
    height: 54px;
    margin: 0;
}

.rsw-student-generation__separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(109,155,183,.36), rgba(104,18,19,.24), transparent);
}

.rsw-student-generation__separator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rsw-burgundy);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(109,155,183,.24);
    transform: translate(-50%, -50%);
}

@keyframes rswStudentCardIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsw-student-generation__item,
    .rsw-student-generation__image,
    .rsw-student-generation__award {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .rsw-student-generation__item {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .rsw-student-generation__item::before {
        left: 20px;
        right: 20px;
    }

    .rsw-student-generation__heading {
        align-items: flex-start;
        gap: 11px;
        margin-bottom: 22px;
    }

    .rsw-student-generation__award {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-top: 1px;
    }

    .rsw-student-generation__year {
        font-size: 25px;
    }

    .rsw-student-generation__image {
        float: none;
        width: min(100%, 330px);
        max-width: 100%;
        margin: 0 auto 24px;
        display: block;
        border-radius: 20px;
    }

    .rsw-student-generation__name {
        font-size: 23px;
        text-align: center;
    }

    .rsw-student-generation__class {
        display: table;
        margin: 0 auto 22px;
    }

    .rsw-student-generation__content {
        text-align: left;
    }

    .rsw-student-generation__separator {
        height: 38px;
    }
}
