.student-stories {
    min-height: 70vh;
    padding-top: 0;
    background: #fff;
    color: #211f1f;
}

@media screen and (max-width: 1300px) and (min-width: 981px) {
    .page-cases {
        overflow-x: clip;
    }

    .page-cases .z_footer_top,
    .page-cases .z_footer_btm {
        width: calc(100% - 48px) !important;
        max-width: none !important;
    }
}

.student-stories__media-nav {
    padding-top: 80px;
    z-index: 30;
    overflow: visible;
}

.student-stories__media-nav .w00 {
    position: sticky;
    top: 80px;
    z-index: 30;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.student-stories__media-nav .media_menu {
    min-height: 78px;
}

.student-stories__media-nav .media_item {
    padding: 6px 30px;
    font-size: 16px;
}

.student-stories__content {
    padding: 36px 0 90px;
}

.student-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
}

.student-stories__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e2dd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(65, 42, 32, .06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    cursor: pointer;
}

.student-stories__item:hover {
    border-color: #d6cac2;
    box-shadow: 0 14px 32px rgba(65, 42, 32, .1);
    transform: translateY(-3px);
}

.student-stories__item--article {
    display: block;
    color: inherit;
    text-decoration: none;
}

.student-stories__item--article:hover .student-stories__cover .imgbg,
.student-stories__item--article:focus-visible .student-stories__cover .imgbg {
    transform: scale(1.025);
}

.student-stories__article-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #f6e9e5, #ead4cf);
    color: #9a4a4d;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .12em;
}

.student-stories__article-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(var(--brand-deep-rgb), .92);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.student-stories__media {
    padding: 16px 16px 0;
}

.student-stories__cover {
    border-radius: 14px;
}

.student-stories__preview {
    display: block;
    width: 100%;
    height: 100%;
    background: #111;
    object-fit: cover;
}

.student-stories__cover .z_play img {
    display: none;
}

/* Keep the video affordance visible without covering the story image's focal
   content. It remains the existing .z_play target, so the modal interaction
   and keyboard focus path are unchanged. */
.student-stories__cover .student-stories__video-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 11px;
    background: rgba(var(--brand-conversion-rgb, 181,64,76), .94);
    box-shadow: 0 6px 16px rgba(93, 29, 37, .24);
    transform: none;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
    pointer-events: none;
}

.student-stories__cover .student-stories__video-badge:hover,
.student-stories__cover .student-stories__video-badge:focus-visible {
    background: var(--brand-conversion-deep, #8f2f3b);
    box-shadow: 0 8px 20px rgba(93, 29, 37, .32);
    transform: translateY(-2px);
}

.student-stories__video-icon {
    display: block;
    width: 0;
    height: 0;
    transform: translateX(1px);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #fff;
}

.student-stories__item:focus-visible {
    outline: 3px solid rgba(var(--brand-primary-rgb), .34);
    outline-offset: 4px;
}

.student-stories__item:hover .student-stories__video-badge,
.student-stories__item:focus-visible .student-stories__video-badge {
    background: var(--brand-conversion-deep, #8f2f3b);
    transform: translateY(-2px);
}

.student-stories__meta {
    padding: 18px 20px 22px;
    text-align: center;
}

.student-stories__meta h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.student-stories__meta p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #827873;
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.student-stories__pagination {
    margin-top: 54px;
    text-align: center;
}

.student-stories__pagination p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.student-stories__pagination a {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #ddd5d0;
    border-radius: 8px;
    background: #fff;
    color: #4f4949;
    font-size: 14px;
}

.student-stories__pagination a.cut,
.student-stories__pagination a:hover,
.student-stories__pagination a:focus-visible {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
}

.student-stories__pagination a.next,
.student-stories__pagination a.prev {
    padding: 0 16px;
}

.student-stories__empty {
    padding: 100px 20px;
    color: #8d8585;
    text-align: center;
}

.page-story-article .story-article-summary {
    margin: 18px 0 0;
    color: #756f80;
    font-size: 15px;
    line-height: 1.8;
}

.activity-category-nav {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 0;
    left: auto;
    top: auto;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0 0 34px;
    padding: 0 0 12px;
    overflow-x: auto;
    background: transparent;
    border-bottom: 1px solid #eee4df;
    box-shadow: none;
    line-height: normal;
    scrollbar-width: none;
}
.activity-category-nav::-webkit-scrollbar { display: none; }
.activity-category-nav__item {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 8px 0 10px;
    color: #6f6662;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}
.activity-category-nav__item::after {
    position: absolute;
    right: 0;
    bottom: -13px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-primary, #7657d9);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}
.activity-category-nav__item:hover,
.activity-category-nav__item.is-active {
    color: var(--brand-primary, #7657d9);
}
.activity-category-nav__item:hover::after,
.activity-category-nav__item.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}
.activity-category-nav__item:focus-visible {
    outline: 2px solid rgba(201, 54, 47, .28);
    outline-offset: 5px;
}
.activity-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.activity-material-card { overflow: hidden; border: 1px solid #eee5e0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(65,42,32,.06); transition: transform .25s ease, box-shadow .25s ease; }
.activity-material-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(65,42,32,.12); }
.activity-material-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #f4efec; }
.activity-material-card__media img, .activity-material-card__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.activity-material-card__body { padding: 17px 18px 20px; }
.activity-material-card__body h2 { margin: 0 0 7px; color: #292322; font-size: 17px; line-height: 1.45; }
.activity-material-card__body p { display: -webkit-box; overflow: hidden; margin: 0; color: #867a75; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.activity-empty { border: 1px dashed #e4d7d0; border-radius: 10px; background: #fffaf8; }
@media screen and (max-width: 980px) { .activity-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 620px) { .activity-category-nav { gap: 24px; margin-bottom: 24px; padding-bottom: 10px; } .activity-category-nav__item { font-size: 15px; } .activity-category-nav__item::after { bottom: -11px; } .activity-material-grid { grid-template-columns: 1fr; gap: 18px; } }

@media screen and (max-width: 1240px) {
    .page-cases .student-stories .w1200 {
        width: calc(100% - 48px) !important;
        max-width: none !important;
    }
}

@media screen and (max-width: 980px) {
    .student-stories__media-nav {
        padding-top: 55px;
    }

    .student-stories__media-nav .w00 {
        top: 55px;
    }

    .student-stories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {
    .student-stories__media-nav .media_menu {
        width: 100% !important;
        min-height: 64px;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
        overflow-x: auto;
        box-sizing: border-box;
        scrollbar-width: none;
    }

    .student-stories__media-nav .media_menu::-webkit-scrollbar {
        display: none;
    }

    .student-stories__media-nav .media_item {
        flex: 0 0 auto;
        padding: 7px 14px;
        font-size: 14px;
    }

    .student-stories__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .student-stories__content {
        padding: 28px 0 60px;
    }
}
