/* =========================================================
   STUDENT SOCIETIES (Lahore Campus)
   Index layout: sticky intro panel + filterable society rows.
========================================================= */

.soc-section {
    --soc-deep: #073b4c;
    --soc-teal: #0b858d;
    --soc-mint: #58c5ca;
    --soc-gold: #e5b83d;
    --soc-paper: #f6f9fa;
    --soc-ink: #173c4a;
    --soc-muted: #5d7078;
    --soc-line: #dde8eb;

    padding: 90px 0 100px;
    background: var(--soc-paper);
}

.soc-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 48px;
    align-items: start;
}


/* ---------- Intro panel ---------- */

.soc-intro {
    position: sticky;
    top: 110px;
    padding: 38px 34px;
    border-radius: 24px;
    background: var(--soc-deep);
    color: #ffffff;
}

    .soc-intro h2 {
        margin: 0 0 16px;
        color: #ffffff;
        font-family: "Inter Tight", "Inter", sans-serif;
        font-size: clamp(28px, 3vw, 36px);
        font-weight: 800;
        line-height: 1.12;
        letter-spacing: -.6px;
    }

    .soc-intro > p {
        margin: 0 0 28px;
        color: rgba(255,255,255,.72);
        font-size: 15px;
        line-height: 1.75;
    }

.soc-counts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
}

    .soc-counts div {
        padding: 16px 18px;
        background: var(--soc-deep);
    }

    .soc-counts dt {
        color: var(--soc-mint);
        font-family: "Inter Tight", "Inter", sans-serif;
        font-size: 30px;
        font-weight: 800;
        line-height: 1;
    }

    .soc-counts dd {
        margin: 6px 0 0;
        color: rgba(255,255,255,.7);
        font-size: 13px;
    }

.soc-guidelines {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--soc-gold);
    color: var(--soc-deep);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease;
}

    .soc-guidelines i {
        font-size: 24px;
    }

    .soc-guidelines small {
        display: block;
        margin-top: 2px;
        color: rgba(7,59,76,.7);
        font-size: 12px;
        font-weight: 600;
    }

    .soc-guidelines:hover {
        transform: translateY(-2px);
        color: var(--soc-deep);
    }


/* ---------- Filters ---------- */

.soc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.soc-filter {
    padding: 9px 18px;
    border: 1px solid var(--soc-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--soc-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

    .soc-filter:hover {
        border-color: var(--soc-teal);
    }

    .soc-filter[aria-pressed="true"] {
        border-color: var(--soc-deep);
        background: var(--soc-deep);
        color: #ffffff;
    }


/* ---------- Society rows ---------- */

.soc-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--soc-line);
    border-radius: 22px;
    background: #ffffff;
    list-style: none;
}

.soc-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    border-top: 1px solid var(--soc-line);
    transition: background .2s ease;
}

    .soc-row:first-child {
        border-top: 0;
    }

    .soc-row[hidden] {
        display: none;
    }

    /* Teal edge marks the row being looked at */
    .soc-row::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background: var(--soc-teal);
        transform: scaleY(0);
        transition: transform .2s ease;
    }

    .soc-row:hover {
        background: #f3f9fa;
    }

        .soc-row:hover::before {
            transform: scaleY(1);
        }

.soc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #e8f5f6;
    color: var(--soc-teal);
    font-size: 22px;
}

.soc-text h3 {
    margin: 0 0 4px;
    color: var(--soc-ink);
    font-family: "Inter Tight", "Inter", sans-serif;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: -.3px;
}

.soc-text p {
    margin: 0;
    color: var(--soc-muted);
    font-size: 15px;
    line-height: 1.6;
}

.soc-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--soc-paper);
    color: var(--soc-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.soc-status {
    min-height: 1em;
    margin: 12px 4px 0;
    color: var(--soc-muted);
    font-size: 13px;
}


/* ---------- Join band ---------- */

.soc-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 26px 28px;
    border: 1px dashed #b9d6da;
    border-radius: 22px;
}

    .soc-join h3 {
        margin: 0 0 4px;
        color: var(--soc-ink);
        font-family: "Inter Tight", "Inter", sans-serif;
        font-size: 20px;
        font-weight: 700;
    }

    .soc-join p {
        margin: 0;
        color: var(--soc-muted);
        font-size: 14px;
    }

.soc-join-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--soc-teal);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

    .soc-join-btn:hover {
        background: var(--soc-deep);
        color: #ffffff;
    }


/* ---------- Focus & motion ---------- */

.soc-filter:focus-visible,
.soc-guidelines:focus-visible,
.soc-join-btn:focus-visible {
    outline: 3px solid var(--soc-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .soc-row,
    .soc-row::before,
    .soc-guidelines,
    .soc-filter,
    .soc-join-btn {
        transition: none;
    }
}


/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .soc-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .soc-intro {
        position: static;
    }

    .soc-counts {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .soc-section {
        padding: 56px 0 64px;
    }

    .soc-intro {
        padding: 28px 24px;
    }

    .soc-counts {
        grid-template-columns: repeat(2, 1fr);
    }

    .soc-row {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 20px;
    }

    .soc-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .soc-tag {
        grid-column: 2;
        justify-self: start;
    }

    .soc-join {
        flex-direction: column;
        align-items: flex-start;
    }
}
