/* ==========================================================================
   Student life pages: community services, life coaching, societies & clubs
   ========================================================================== */

.sl-heading { margin-top: 30px; }
.sl-heading:first-of-type { margin-top: 10px; }

/* ---------- cards ---------- */
.sl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.sl-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.sl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.sl-card__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.sl-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px;
}

.sl-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--tint);
    color: var(--sky-deep);
    font-size: 1.1rem;
    flex: none;
}

.sl-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--ink);
}

.sl-card__sub {
    margin: 0;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}

.sl-card__text {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--muted);
}

.sl-card__link {
    margin-top: auto;
    padding-top: 4px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--link);
    text-decoration: none;
}
.sl-card__link:hover { text-decoration: underline; }

/* ---------- resource person ---------- */
.sl-people { margin-top: 8px; }

.sl-person {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 16px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.sl-person__photo {
    flex: none;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sky), var(--sky-deep));
    border: 4px solid var(--tint);
}
.sl-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sl-person__initials {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--navy);
}

.sl-person__text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin: 4px 0 2px;
    color: var(--ink);
}
.sl-person__role {
    margin: 0 0 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--sky-deep);
}
.sl-person__bio {
    font-size: .92rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
    .sl-grid { grid-template-columns: 1fr; }
    .sl-person {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sl-person__photo { width: 110px; height: 110px; }
    .sl-person__initials { font-size: 1.8rem; }
}
