/* Student reviews use their own layout, independent of the legacy carousel styles. */
.home-page .student-stories {
    padding-block: clamp(48px, 6vw, 80px);
    border-block: 1px solid #e5edf6;
    background: linear-gradient(180deg, #fff, #f6f9fd);
}
.home-page .student-stories__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    width: min(1180px, calc(100% - 48px));
}
.home-page .student-stories__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #b51d25;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.home-page .student-stories__kicker::before { width: 24px; height: 2px; background: #e31e24; content: ""; }
.home-page .student-stories__heading h2 {
    margin: 0 0 12px;
    color: #082e5b;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.045em;
}
.home-page .student-stories__heading > p { margin: 0; color: #60708a; font-size: .96rem; line-height: 1.7; }
.home-page .student-stories__nav { display: flex; align-items: center; gap: 12px; padding-bottom: 3px; }
.home-page .student-stories__nav[hidden] { display: none; }
.home-page .student-stories__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d1deed;
    border-radius: 50%;
    background: #fff;
    color: #0b3f7a;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}
.home-page .student-stories__nav button:hover { border-color: #0b3f7a; background: #0b3f7a; color: #fff; }
.home-page .student-stories__nav button:focus-visible { outline: 3px solid #1266d6; outline-offset: 3px; }
.home-page .student-stories__count { min-width: 64px; color: #60708a; font-size: .8rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.home-page .student-stories__slider { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; padding: 3px 0 18px; }
.home-page .student-stories__slider[data-review-count="1"] { max-width: 760px; margin-inline: auto; }
.home-page .student-stories__track { align-items: stretch; }
.home-page .student-stories__slide { display: flex; height: auto; min-width: 0; }
.home-page .review-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 310px;
    margin: 0;
    padding: 25px;
    border: 1px solid #dce6f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(12, 47, 88, .04);
}
.home-page .review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; margin-bottom: 18px; }
.home-page .review-card__rating { color: #b87806; font-size: 1.1rem; letter-spacing: .12em; white-space: nowrap; }
.home-page .review-card__unfilled { color: #dce4ed; }
.home-page .review-card__mark { height: 30px; color: #e8eef6; font-family: Georgia, serif; font-size: 64px; line-height: 1; }
.home-page .review-card__quote { flex: 1; min-width: 0; margin: 0 0 24px; }
.home-page .review-card__quote p { margin: 0; color: #465c76; font-size: .97rem; font-style: normal; line-height: 1.85; overflow-wrap: anywhere; }
.home-page .review-card__student { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 20px; border-top: 1px solid #e8edf4; }
.home-page .review-card__photo { flex: 0 0 56px; width: 56px; height: 56px; border: 3px solid #f2f5f9; border-radius: 50%; background: #eaf3ff url('../images/student-photo-placeholder.svg') center / cover no-repeat; object-fit: cover; object-position: center; }
.home-page .review-card__details { min-width: 0; }
.home-page .review-card__details h3 { margin: 0 0 5px; color: #17375b; font-size: 1rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.home-page .review-card__details p { margin: 0; color: #6a7b90; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.home-page .student-stories__empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #cbdcf0; border-radius: 14px; color: #60708a; text-align: center; }
/* If the external carousel script is unavailable, keep every review readable. */
.home-page .student-stories__slider:not(.swiper-initialized) .student-stories__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1099.98px) {
    .home-page .student-stories__slider:not(.swiper-initialized) .student-stories__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699.98px) {
    .home-page .student-stories__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; width: calc(100% - 36px); }
    .home-page .student-stories__nav { grid-row: 3; justify-content: center; padding: 0; }
    .home-page .student-stories__slider { grid-row: 2; padding-bottom: 4px; }
    .home-page .student-stories__track { align-items: flex-start; }
    .home-page .review-card { min-height: 0; padding: 22px 20px; }
    .home-page .review-card__quote p { font-size: 1rem; line-height: 1.8; }
    .home-page .review-card__details p { font-size: .85rem; }
    .home-page .student-stories__slider:not(.swiper-initialized) .student-stories__track { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .home-page .student-stories__nav button { transition: none; } }
