/* ============================================================
   Student Clubs – glassomorphic stream layout
   Prefix: .v16-sc-
   No cards, no modals — inline editorial sections
   ============================================================ */

/* ---- Hero ---- */
.v16-sc-hero {
    background: linear-gradient(
        135deg,
        rgba(10, 54, 82, 0.97) 0%,
        rgba(0, 88, 128, 0.92) 42%,
        rgba(18, 68, 102, 0.95) 68%,
        rgba(10, 54, 82, 0.98) 100%
    );
}

.v16-sc-hero::before {
    background:
        radial-gradient(circle at 14% 24%, rgba(102, 214, 231, 0.15) 0%, transparent 34%),
        radial-gradient(circle at 86% 64%, rgba(216, 180, 106, 0.10) 0%, transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(91, 163, 245, 0.08) 0%, transparent 42%),
        linear-gradient(118deg, rgba(0, 104, 142, 0.22) 0%, transparent 56%);
}

.v16-sc-hero__glass-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(160px, 22vw, 220px);
}

.v16-sc-hero__svg {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 220px;
    display: block;
    margin: 0 auto;
}

/* ---- Page atmosphere ---- */
.v16-sc-page {
    position: relative;
    padding-bottom: clamp(52px, 8vw, 96px);
    background:
        radial-gradient(ellipse 90% 54% at 8% 0%, rgba(102, 214, 231, 0.11), transparent 54%),
        radial-gradient(ellipse 70% 46% at 92% 4%, rgba(216, 180, 106, 0.07), transparent 48%),
        linear-gradient(180deg, #e6f2f8 0%, #f2f8fb 40%, #ffffff 100%);
}

.v16-sc-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 104, 142, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.48;
}

.v16-sc-page > .container {
    position: relative;
    z-index: 1;
}

.v16-sc-page .v16-inner-layout {
    padding-top: clamp(20px, 3.5vw, 36px);
    min-width: 0;
}

.v16-sc-page .v16-inner-content {
    min-width: 0;
}

.v16-sc-shell {
    display: grid;
    gap: clamp(18px, 2.5vw, 28px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ---- Stream container ---- */
.v16-sc-stream {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ---- Sticky jump nav (club picker) ---- */
.v16-sc-jump {
    position: sticky;
    top: calc(var(--v16-header-offset, 102px) + 10px);
    z-index: 40;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 clamp(4px, 0.8vw, 8px);
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: var(--tma-radius-md, 18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 32px rgba(10, 54, 82, 0.08);
}

.v16-sc-jump__bar {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
}

.v16-sc-jump__label {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tma-muted, #5a7a8f);
    white-space: nowrap;
}

.v16-sc-jump__control {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.v16-sc-jump__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    padding: 10px 40px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 104, 142, 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: var(--tma-dark, #0a3652);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.v16-sc-jump__select:hover {
    border-color: rgba(0, 104, 142, 0.28);
    background: rgba(232, 246, 252, 0.95);
}

.v16-sc-jump__select:focus-visible {
    outline: none;
    border-color: rgba(0, 104, 142, 0.42);
    box-shadow: 0 0 0 3px rgba(102, 214, 231, 0.35);
}

.v16-sc-jump__chevron {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--tma-teal, #00668e);
    opacity: 0.85;
}

/* ---- Club section (glass panel, not a card) ---- */
.v16-sc-club {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
    overflow-y: visible;
    padding: clamp(22px, 3.2vw, 34px);
    border-radius: var(--tma-radius-lg, 28px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        0 18px 48px rgba(10, 54, 82, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    scroll-margin-top: calc(var(--v16-header-offset, 102px) + var(--v16-sc-jump-height, 56px) + 20px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .v16-sc-club {
        background: rgba(255, 255, 255, 0.97);
    }
}

.v16-sc-club::before {
    content: '';
    position: absolute;
    top: 0;
    left: clamp(22px, 3.2vw, 34px);
    right: clamp(22px, 3.2vw, 34px);
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--tma-teal, #00668e), var(--tma-gold, #d8b46a));
    opacity: 0.78;
}

.v16-sc-club__glow {
    position: absolute;
    width: clamp(200px, 40vw, 320px);
    height: clamp(200px, 40vw, 320px);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.55;
    filter: blur(48px);
}

.v16-sc-club .v16-sc-club__glow {
    top: -80px;
    right: -60px;
    background: rgba(102, 214, 231, 0.22);
}

.v16-sc-club--alt .v16-sc-club__glow {
    top: auto;
    bottom: -80px;
    right: auto;
    left: -60px;
    background: rgba(216, 180, 106, 0.18);
}

.v16-sc-club__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 2vw, 18px);
    margin-bottom: clamp(20px, 2.8vw, 28px);
    padding-bottom: clamp(16px, 2.2vw, 20px);
    border-bottom: 1px solid rgba(10, 54, 82, 0.08);
}

.v16-sc-club__index {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tma-teal, #00668e), #0088b8);
    box-shadow: 0 8px 20px rgba(0, 104, 142, 0.28);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.v16-sc-club__title {
    margin: 0;
    padding-top: 6px;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--tma-dark, #0a3652);
    letter-spacing: -0.02em;
}

.v16-sc-club__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.v16-sc-club__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.v16-sc-club__orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(220px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, transparent 45%),
        linear-gradient(145deg, rgba(232, 246, 252, 0.95) 0%, rgba(210, 235, 248, 0.75) 100%);
    box-shadow:
        0 16px 40px rgba(10, 54, 82, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v16-sc-club__orb img {
    max-width: 88%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(10, 54, 82, 0.14));
}

.v16-sc-club__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.v16-sc-club__label {
    margin: 0 0 clamp(12px, 1.8vw, 16px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tma-muted, #5a7a8f);
}

.v16-sc-prose {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(0.92rem, 1.45vw, 1.02rem);
    line-height: 1.75;
    color: var(--tma-text, #163247);
}

.v16-sc-prose img,
.v16-sc-prose video,
.v16-sc-prose iframe,
.v16-sc-prose embed,
.v16-sc-prose object {
    max-width: 100% !important;
    height: auto !important;
}

.v16-sc-prose table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.v16-sc-prose pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.v16-sc-prose p {
    margin: 0 0 0.9em;
}

.v16-sc-prose p:last-child {
    margin-bottom: 0;
}

.v16-sc-prose a {
    color: var(--tma-teal, #00668e);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.v16-sc-prose a:hover {
    color: #0088b8;
}

.v16-sc-prose ul,
.v16-sc-prose ol {
    margin: 0 0 0.9em;
    padding-left: 1.25em;
}

.v16-sc-prose li {
    margin-bottom: 0.35em;
}

/* ---- Empty state ---- */
.v16-sc-empty {
    text-align: center;
    padding: clamp(28px, 4vw, 52px) 20px;
    border-radius: var(--tma-radius-lg, 28px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.76);
}

.v16-sc-empty p {
    margin: 0;
    color: var(--tma-muted, #5a7a8f);
}

/* ---- Legacy: flatten cards/modals into stream ---- */
.v16-sc-legacy-stream {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
}

.v16-sc-legacy-stream .section-title,
.v16-sc-legacy-stream h1.section-title {
    display: none;
}

.v16-sc-legacy-stream .row {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.v16-sc-legacy-stream .row > [class*='col-'] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

.v16-sc-legacy-stream .card {
    display: none !important;
}

.v16-sc-legacy-stream .modal {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    padding: 0;
    margin: 0;
}

.v16-sc-legacy-stream .modal-dialog {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    transform: none !important;
}

.v16-sc-legacy-stream .modal-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: none;
    border-radius: var(--tma-radius-lg, 28px);
    background: transparent;
    box-shadow: none;
}

.v16-sc-legacy-stream .modal-header,
.v16-sc-legacy-stream .modal-footer,
.v16-sc-legacy-stream .btn,
.v16-sc-legacy-stream .mob-btn,
.v16-sc-legacy-stream .btn-close {
    display: none !important;
}

.v16-sc-legacy-stream .modal-body {
    padding: 0;
}

.v16-sc-legacy-stream .modal-body > .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
    align-items: start;
    width: 100% !important;
    max-width: 100% !important;
}

.v16-sc-legacy-stream .academic-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 2.5vw, 24px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(145deg, rgba(232, 246, 252, 0.95), rgba(210, 235, 248, 0.75));
    box-shadow: 0 12px 32px rgba(10, 54, 82, 0.1);
    max-width: 220px;
    margin: 0 auto;
}

.v16-sc-legacy-stream .academic-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.v16-sc-legacy-stream .academic-name {
    margin: 14px 0 0;
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--tma-dark, #0a3652);
}

.v16-sc-legacy-stream .academic-bio {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(0.92rem, 1.45vw, 1.02rem);
    line-height: 1.75;
    color: var(--tma-text, #163247);
}

.v16-sc-legacy-stream .academic-bio img,
.v16-sc-legacy-stream .academic-bio table,
.v16-sc-legacy-stream .academic-bio iframe {
    max-width: 100% !important;
    height: auto !important;
}

.v16-sc-legacy-stream .modal-body h5 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tma-muted, #5a7a8f);
}

.v16-sc-legacy-stream .modal {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
    padding: clamp(22px, 3.2vw, 34px);
    border-radius: var(--tma-radius-lg, 28px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 18px 48px rgba(10, 54, 82, 0.10);
}

/* ---- Desktop two-column (only when enough space) ---- */
@media (min-width: 1024px) {
    .v16-sc-club__layout {
        grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    }

    .v16-sc-club--alt .v16-sc-club__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
    }

    .v16-sc-club--alt .v16-sc-club__visual {
        order: 2;
    }

    .v16-sc-club--alt .v16-sc-club__body {
        order: 1;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .v16-sc-club__layout,
    .v16-sc-club--alt .v16-sc-club__layout {
        grid-template-columns: 1fr;
    }

    .v16-sc-club__visual,
    .v16-sc-club--alt .v16-sc-club__visual {
        order: -1;
    }

    .v16-sc-club__body,
    .v16-sc-club--alt .v16-sc-club__body {
        order: 0;
    }

    .v16-sc-club__orb {
        max-width: min(200px, 70vw);
    }
}

@media (max-width: 640px) {
    .v16-sc-club {
        padding: clamp(18px, 4.5vw, 24px);
    }

    .v16-sc-club__header {
        flex-direction: column;
        gap: 10px;
    }

    .v16-sc-club__title {
        padding-top: 0;
    }

    .v16-sc-jump {
        top: calc(var(--v16-header-offset, 96px) + 8px);
        border-radius: 16px;
        padding: 8px 10px;
    }

    .v16-sc-jump__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .v16-sc-jump__select {
        font-size: 0.84rem;
        padding: 9px 36px 9px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v16-sc-jump__select {
        transition: none;
    }
}
