/* 7 cards per row on desktop (both tabs). Flex + justify-content:center so a
   partial last row centres under the rest instead of left-packing. */
.conf-page--wide { max-width: 1480px; }
.speaker-grid {
    --cols: 7;
    --gx: 20px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px var(--gx);
}
/* Every profile is a self-contained card (photo, name, designation, organization, type label),
   the same height as its row-mates. Deliberately static: no hover/scale effect on the card or
   its photo, and the photo is never cropped (object-fit: contain). */
.speaker-card {
    flex: 0 0 calc((100% - var(--gx) * (var(--cols) - 1)) / var(--cols));
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 14px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 188, 0.14);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.speaker-photo {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(20, 83, 188, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.speaker-photo img { width: 100%; height: 100%; object-fit: contain; }
.speaker-photo svg { width: 45%; height: 45%; fill: var(--brand-blue); opacity: 0.45; }
.speaker-name { margin-top: 12px; font-size: 0.95rem; line-height: 1.3; font-weight: 600; color: var(--text-dark); }
.speaker-role { margin-top: 2px; font-size: 0.78rem; line-height: 1.35; color: var(--text-light); }
@media (max-width: 1199px) { .speaker-grid { --cols: 5; } }
@media (max-width: 991px) { .speaker-grid { --cols: 4; } }
@media (max-width: 768px) { .speaker-grid { --cols: 3; --gx: 16px; } }
@media (max-width: 560px) { .speaker-grid { --cols: 2; } }
.speaker-org { margin-top: 2px; font-size: 0.78rem; line-height: 1.35; color: var(--text-light); }
/* Speaker-type label from the organizer's sheet (Keynote / Panel / RTD). margin-top:auto
   pins it to the bottom of the card so labels line up across a row of uneven text. */
.speaker-tag-wrap { margin-top: auto; padding-top: 10px; display: flex; justify-content: center; }
.speaker-tag {
    padding: 3px 11px;
    border: 1px solid rgba(20, 83, 188, 0.18);
    border-radius: 999px;
    background: rgba(20, 83, 188, 0.08);
    color: var(--brand-blue);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* Category tabs (School Education / Higher Education) — pill-in-a-pill segmented control. */
.speaker-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 4px;
    gap: 4px;
    background: rgba(20, 83, 188, 0.06);
    border: 1px solid rgba(20, 83, 188, 0.14);
    border-radius: 999px;
}
.speaker-tab {
    padding: 8px 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.speaker-tab:hover { color: var(--brand-blue); }
.speaker-tab:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.speaker-tab.active {
    background: var(--brand-blue);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(20, 83, 188, 0.3);
}
.speaker-panel[hidden] { display: none; }

/* Load More (School Education tab) — outlined brand-blue pill under the grid. */
.speaker-card[hidden], .speaker-more[hidden] { display: none; }
.speaker-card--extra:focus { outline: none; }
.speaker-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.speaker-more-btn {
    padding: 10px 36px;
    border: 2px solid var(--brand-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--brand-blue);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.speaker-more-btn:hover { background: var(--brand-blue); color: #ffffff; transform: translateY(-2px); }
.speaker-more-btn:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

@media (max-width: 600px) {
    .speaker-tabs { width: 100%; }
    .speaker-tab { flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.85rem; line-height: 1.25; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .speaker-tab, .speaker-more-btn { transition: none; } .speaker-more-btn:hover { transform: none; } }
