/* Student Life page — page-specific styles only. style.css / utility.css stay untouched. */

.student-life-hero {
    position: relative;
    height: 80vh;
    min-height: 320px;
    background-image: url('Assets/Image/Student Life bg new.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-life-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 1, 42, 0.55);
}

.student-life-hero h1 {
    position: relative;
    color: var(--white);
    margin-bottom: 0;
}

.student-life-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 3rem;
}

/* Activity list in the Events & Functions section */
.activity-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.activity-list li {
    background: var(--white);
    border: 1px solid #F3DCDC;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.1rem;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--primary-blue);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .activity-list {
        gap: 0.6rem;
    }

    /* This section leads with its image so the desktop layout alternates
       image-left / text-right. Once the columns stack, that would put its
       image directly beneath the previous section's image, so the order is
       flipped to keep every stacked section reading text-then-image. */
    .about-flex--image-lead {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767px) {
    .student-life-hero {
        height: 60vh;
    }
    .section-intro {
        margin-bottom: 2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
