/* ==========================================================================
   Student Life section: landing, clubs directory, profiles, community
   projects, achievements and the volunteer programme.
   Built on the site palette (navy / sky / gold) and works in dark mode.
   ========================================================================== */

.slx-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 12% 10%, rgba(63, 169, 214, .38), transparent 62%),
        radial-gradient(700px 380px at 88% 90%, rgba(245, 184, 61, .18), transparent 60%),
        linear-gradient(150deg, #081a33 0%, #0b1f3a 45%, #12305c 100%);
    padding: clamp(58px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
}
.slx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%);
    pointer-events: none;
}
.slx-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -180px;
    border-radius: 50%;
    border: 1px solid rgba(135, 206, 235, .28);
    box-shadow: 0 0 0 46px rgba(135, 206, 235, .06), 0 0 0 92px rgba(135, 206, 235, .04);
    pointer-events: none;
}
.slx-hero .container { position: relative; z-index: 2; }
.slx-hero .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.slx-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    line-height: 1.06;
    margin: 20px 0 18px;
    max-width: 900px;
}
.slx-hero h1 span { color: var(--sky); }
.slx-hero .lead {
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.98rem, 1.4vw, 1.12rem);
    max-width: 660px;
    margin-bottom: 26px;
}
.slx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.slx-hero-actions .btn-navy { background: var(--gold); color: var(--navy); }
.slx-hero-actions .btn-navy:hover { background: #ffc85e; color: var(--navy); }
.slx-hero-actions .btn-outline-navy { border-color: rgba(255, 255, 255, .55); color: #fff; }
.slx-hero-actions .btn-outline-navy:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.slx-hero-msg {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.slx-hero-msg li {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .9);
}
.slx-hero-msg li i { color: var(--gold); margin-right: 6px; }

/* ---------- section rhythm ---------- */
.slx-section { padding: clamp(48px, 6vw, 82px) 0; }
.slx-section.tint { background: linear-gradient(180deg, transparent, var(--tint) 18%, var(--tint) 82%, transparent); }
.slx-section.dark {
    background: linear-gradient(150deg, var(--navy), var(--navy-2));
    color: #fff;
}
.slx-section.dark .slx-title,
.slx-section.dark .slx-lead { color: #fff; }
.slx-section.dark .slx-lead { color: rgba(255, 255, 255, .76); }
.slx-section.dark .slx-eyebrow { color: var(--gold); }
.slx-head { max-width: 760px; margin-bottom: 30px; }
.slx-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.slx-eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sky-deep);
    margin-bottom: 8px;
}
.slx-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.65rem, 3.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--ink);
}
.slx-lead { color: var(--muted); font-size: 1rem; margin: 0; }
.slx-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.slx-head-row .slx-head { margin-bottom: 0; }

/* ---------- intro panel ---------- */
.slx-intro {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
    align-items: start;
}
.slx-intro .cms-content { font-size: 1.02rem; line-height: 1.8; color: var(--muted); }
.slx-intro .cms-content p:last-child { margin-bottom: 0; }
.slx-facts { display: grid; gap: 12px; }
.slx-fact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.slx-fact i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--tint);
    color: var(--sky-deep);
}
.slx-fact b { display: block; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.slx-fact small { color: var(--muted); font-size: .8rem; }

/* ---------- category grid ---------- */
.slx-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.slx-cat {
    position: relative;
    display: block;
    padding: 22px 20px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}
.slx-cat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--cat, var(--sky-deep));
}
.slx-cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); border-color: var(--cat, var(--sky-deep)); }
.slx-cat i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: var(--cat, var(--sky-deep));
    margin-bottom: 14px;
}
.slx-cat h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.slx-cat p { font-size: .86rem; line-height: 1.55; color: var(--muted); margin: 0; }
.slx-cat .count {
    display: inline-block;
    margin-top: 12px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--cat, var(--sky-deep));
}
.cat-academic { --cat: #2f8fc4; }
.cat-arts { --cat: #c2476e; }
.cat-islamic { --cat: #2f9e6f; }
.cat-sports { --cat: #d9822b; }
.cat-leadership { --cat: #6f5bc4; }

/* ---------- club cards ---------- */
.slx-club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.slx-club {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.slx-club:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.slx-club__top {
    position: relative;
    padding: 22px 22px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.slx-club__logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--cat, var(--sky-deep)), color-mix(in srgb, var(--cat, var(--sky-deep)) 55%, #0b1f3a));
    box-shadow: 0 10px 22px rgba(11, 31, 58, .18);
    overflow: hidden;
}
.slx-club__logo img { width: 100%; height: 100%; object-fit: cover; }
.slx-club__flag {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a5b00;
    background: rgba(245, 184, 61, .22);
    border: 1px solid rgba(245, 184, 61, .45);
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.slx-club__body { padding: 16px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.slx-club__cat {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cat, var(--sky-deep));
    margin-bottom: 6px;
}
.slx-club h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.slx-club__tag { font-size: .88rem; line-height: 1.55; color: var(--muted); margin: 0 0 14px; }
.slx-club__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.slx-club__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--link);
    text-decoration: none;
}
.slx-club__link:hover { text-decoration: underline; }

/* ---------- pills ---------- */
.slx-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    background: var(--tint);
    color: var(--muted);
    white-space: nowrap;
}
.slx-pill i { font-size: .65rem; }
.slx-pill.is-active { background: rgba(47, 158, 111, .16); color: #1f7a53; }
.slx-pill.is-upcoming { background: rgba(217, 130, 43, .18); color: #9a5a12; }
.slx-pill.is-planned { background: rgba(93, 107, 130, .14); color: var(--muted); }
.slx-pill.is-completed { background: rgba(47, 143, 196, .16); color: #1f6e96; }
[data-theme="dark"] .slx-pill.is-active { color: #7fe0b4; }
[data-theme="dark"] .slx-pill.is-upcoming { color: #ffc36b; }
[data-theme="dark"] .slx-pill.is-completed { color: #8fd4f4; }

/* ---------- directory filter bar ---------- */
.slx-filter {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 28px;
}
.slx-filter form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.slx-filter label { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; display: block; }
.slx-filter .form-control, .slx-filter .form-select { width: 100%; }
.slx-filter-actions { display: flex; gap: 8px; }
.slx-filter-actions .btn-navy { padding: 11px 18px; border-radius: 12px; }
.slx-filter-actions .btn-reset {
    display: inline-grid;
    place-items: center;
    width: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}
.slx-filter-actions .btn-reset:hover { background: var(--tint); }
.slx-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: .88rem;
    color: var(--muted);
}
.slx-results b { color: var(--ink); }

/* ---------- project cards ---------- */
.slx-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}
.slx-project {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.slx-project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.slx-project__banner {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background:
        radial-gradient(260px 130px at 90% 20%, rgba(245, 184, 61, .35), transparent 65%),
        linear-gradient(135deg, var(--navy-2), var(--sky-deep));
    color: #fff;
}
.slx-project__banner i { font-size: 1.9rem; opacity: .95; }
.slx-project__banner img { width: 100%; height: 100%; object-fit: cover; }
.slx-project__banner.has-img { padding: 0; }
.slx-project__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.slx-project h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.slx-project p { font-size: .88rem; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.slx-project .slx-club__meta { margin-top: auto; }
.slx-project .slx-club__link { margin-top: 14px; }

/* ---------- volunteer ---------- */
.slx-volunteer {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: center;
}
.slx-volunteer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slx-vstat {
    text-align: center;
    padding: 22px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}
.slx-vstat b {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1;
    color: var(--gold);
}
.slx-vstat small { display: block; margin-top: 6px; font-size: .78rem; color: rgba(255, 255, 255, .72); }
.slx-steps { counter-reset: slx; display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.slx-steps li {
    counter-increment: slx;
    position: relative;
    padding-left: 46px;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    line-height: 1.6;
}
.slx-steps li::before {
    content: counter(slx);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: .85rem;
}
.slx-section:not(.dark) .slx-steps li { color: var(--muted); }
.slx-section:not(.dark) .slx-steps li::before { background: var(--tint); color: var(--sky-deep); }
/* Steps inside a light card (forms, volunteer programme) */
.slx-panel .slx-steps li { color: var(--muted); }
.slx-panel .slx-steps li::before { background: var(--tint); color: var(--sky-deep); }

/* ---------- profile page ---------- */
.slx-profile-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(40px, 5vw, 64px) 0;
    background:
        radial-gradient(700px 320px at 88% 15%, rgba(245, 184, 61, .22), transparent 62%),
        linear-gradient(145deg, #081a33, #12305c);
}
.slx-profile-hero .container { position: relative; z-index: 2; }
.slx-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.slx-profile-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--cat, var(--sky-deep)), color-mix(in srgb, var(--cat, var(--sky-deep)) 50%, #081a33));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.slx-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.slx-profile-head h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    margin: 6px 0 6px;
}
.slx-profile-head .tagline { color: rgba(255, 255, 255, .8); margin: 0 0 10px; }
.slx-profile-head .slx-pill { background: rgba(255, 255, 255, .12); color: #fff; }
.slx-profile-hero .crumbs a, .slx-profile-hero .crumbs li { color: rgba(255, 255, 255, .75); }
.slx-profile-hero .crumbs a:hover { color: #fff; }

.slx-profile { padding: clamp(40px, 5vw, 64px) 0; }
.slx-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 20px;
}
.slx-panel h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 12px;
    color: var(--ink);
}
.slx-panel h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; color: var(--ink); }
.slx-panel p { color: var(--muted); line-height: 1.75; }
.slx-panel p:last-child { margin-bottom: 0; }
.slx-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.slx-list li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.6; font-size: .93rem; }
.slx-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: .72rem;
    color: var(--sky-deep);
}
.slx-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.slx-side { position: sticky; top: 92px; }
.slx-facts-card { display: grid; gap: 12px; }
.slx-fact-row { display: flex; gap: 12px; align-items: flex-start; }
.slx-fact-row i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--sky-deep); font-size: .85rem; }
.slx-fact-row b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.slx-fact-row span { font-size: .92rem; color: var(--ink); }

.slx-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.slx-person-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
}
.slx-person-card b { display: block; color: var(--ink); font-size: .95rem; }
.slx-person-card small { color: var(--muted); }

.slx-updates { display: grid; gap: 12px; }
.slx-update {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}
.slx-update .when {
    flex: none;
    width: 58px;
    text-align: center;
    padding: 8px 6px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    line-height: 1.1;
}
[data-theme="dark"] .slx-update .when { background: var(--sky-deep); color: var(--navy); }
.slx-update .when b { display: block; font-size: 1.2rem; }
.slx-update .when small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.slx-update h4 { font-size: .98rem; margin: 0 0 4px; color: var(--ink); }
.slx-update p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- empty state ---------- */
.slx-empty {
    padding: 34px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: var(--card);
}
.slx-empty i { display: block; font-size: 1.8rem; color: var(--sky-deep); margin-bottom: 8px; }
.slx-empty p { margin: 0; }

/* ---------- closing CTA ---------- */
.slx-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 64px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(520px 240px at 90% 10%, rgba(245, 184, 61, .26), transparent 62%),
        linear-gradient(145deg, #081a33, #12305c);
    text-align: center;
}
.slx-cta h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    margin: 0 0 12px;
}
.slx-cta p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 auto 22px; }
.slx-cta .btn-navy { background: var(--gold); color: var(--navy); }
.slx-cta .btn-navy:hover { background: #ffc85e; color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .slx-intro, .slx-volunteer { grid-template-columns: 1fr; }
    .slx-filter form { grid-template-columns: 1fr 1fr; }
    .slx-side { position: static; }
    .slx-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .slx-club-grid, .slx-project-grid { grid-template-columns: 1fr; }
    .slx-filter form { grid-template-columns: 1fr; }
    .slx-filter-actions .btn-navy { flex: 1; }
    .slx-volunteer-stats { grid-template-columns: 1fr; }
    .slx-profile-head { flex-direction: column; align-items: flex-start; }
    .slx-profile-logo { width: 74px; height: 74px; border-radius: 20px; font-size: 1.4rem; }
    .slx-hero-actions .btn-navy, .slx-hero-actions .btn-outline-navy { width: 100%; text-align: center; }
}
