#students { --ivory: #F3F1EA; --beige: #E6E4D5; --ink: #2F2F2F; --grey: #5F5F5F; }
/* Homepage student cards, presented one at a time with native swipe. */
.student-carousel { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; max-width: 680px; margin: 36px auto 0; }
.student-carousel::-webkit-scrollbar { display: none; }
.home-student-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 28px; background: var(--ivory); border: 1px solid var(--beige); border-radius: 14px; align-self: flex-start; }
.home-student-identity { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--beige); }
.home-student-identity h3 { margin: 0 0 5px; font-size: 30px; }
.home-student-identity p { margin: 0; font-size: 14px; color: var(--grey); }
.home-student-photos { display: grid; grid-template-columns: minmax(0,22fr) minmax(0,74fr); gap: 4%; align-items: start; }
.home-student-photos figure { margin: 0; min-width: 0; }
.home-student-photos .small-before { margin-top: 24px; }
.home-student-photos img { display: block; width: 100%; height: auto; border-radius: 2px; }
.home-student-photos figcaption { margin-top: 8px; font: 500 12px/1.5 Montserrat,sans-serif; color: var(--ink); text-align: left; }
.before-missing { padding: 14px 8px; font-size: 11px; color: var(--grey); background: white; border: 1px solid var(--beige); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.carousel-controls button { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; background: transparent; font-size: 20px; color: var(--ink); }
.carousel-controls span { font-size: 13px; color: var(--grey); min-width: 48px; text-align: center; }
@media(max-width:680px) {
 .home-student-card { padding: 24px 18px; }
 .home-student-identity h3 { font-size: 28px; }
 .home-student-photos figcaption { font-size: 11px; }
 .btn { text-align: center; justify-content: center; }
 .rwm-call .cta-row { justify-content: center; text-align: center; }
 .rwm-call .btn { display: flex; width: 100%; margin-inline: auto; text-align: center; }
}
.student-carousel { max-width: 1200px; align-items: stretch; }
.home-student-card { flex-basis: calc((100% - 56px)/3); padding: 26px 20px 22px; align-self: stretch; }
.home-student-identity h3 { font-size: 27px; }
.after-only { grid-template-columns: 1fr; }
.after-only .large-after { width: 74%; justify-self: end; }
#carousel-pause { font-size: 15px; }
@media(max-width:980px) and (min-width:681px) { .home-student-card { flex-basis: calc((100% - 28px)/2); } }
@media(max-width:680px) {
 .home-student-card { flex-basis: 100%; padding: 24px 18px; }
 .home-student-identity h3 { font-size: 28px; }
 .mobile-menu { top: 13px; }
 .carousel-controls { gap: 18px; }
}


.home-student-card { border-top: 3px solid var(--gold); }
.home-student-identity { border-bottom-color: var(--gold); }
.carousel-controls button { border-color: var(--orange); transition: background-color .15s ease, color .15s ease; }
.carousel-controls button:hover, .carousel-controls button:focus-visible { background: var(--orange); color: #FFFFFF; border-color: var(--orange); }
.carousel-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Shared final hover treatment for every carousel control. */
.carousel-controls button:hover, .carousel-controls button:focus-visible {
 background-color: #EC6903;
 color: #FFFFFF;
 border-color: #EC6903;
}
