.student-hero {
    align-items: center;
    background: linear-gradient(135deg, #131313 0%, #42221b 100%);
    color: #fff;
    display: flex;
    min-height: 430px;
    padding: 150px 0 85px;
}

.student-hero .lead {
    max-width: 760px;
}

.student-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-card:hover {
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.13);
    transform: translateY(-6px);
}

.student-card-image {
    display: block;
    height: 300px;
    overflow: hidden;
}

.student-card-image img,
.student-gallery-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.student-card:hover .student-card-image img,
.student-gallery-image:hover img {
    transform: scale(1.04);
}

.student-card-body {
    padding: 1.6rem;
}

.student-meta {
    color: #a94732;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-gallery-image {
    border: 0;
    border-radius: 15px;
    cursor: zoom-in;
    display: block;
    height: 280px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.student-gallery-image::after {
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.8));
    bottom: 0;
    content: "";
    inset: 0;
    position: absolute;
}

.student-gallery-caption {
    bottom: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    left: 20px;
    position: absolute;
    right: 20px;
    text-align: left;
    z-index: 1;
}

.demo-notice {
    background: #fff8e9;
    border-left: 4px solid #d39b32;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

#studentLightbox {
    z-index: 99999;
}

.modal-backdrop {
    z-index: 99998;
}

#studentLightbox .modal-content {
    background: rgba(10, 10, 10, 0.98);
}

#studentLightboxImage {
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: #fff;
    height: 46px;
    width: 46px;
}

@media (max-width: 575.98px) {
    .student-hero {
        min-height: 360px;
        padding: 125px 0 65px;
    }

    .student-card-image,
    .student-gallery-image {
        height: 235px;
    }
}
