/* ============================================================
   SPEAKERS PAGE — KPPIKG 2026
   ============================================================ */

/* ---- Speakers Stats Bar ---- */
.speakers-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.speakers-stat {
    text-align: center;
}

.speakers-stat .num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.speakers-stat .lbl {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.6;
    margin-top: 6px;
}

/* ---- Conference Block ---- */
.conf-block {
    padding: 80px 0 100px;
}

.conf-block.kppikg-bg {
    background: var(--off-white);
}

.conf-block.agdc-bg {
    background: var(--cream);
}

.conf-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 50px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(38, 67, 94, 0.1);
    flex-wrap: wrap;
}

.conf-logo-wrap img {
    height: 44px;
    width: auto;
}

.conf-banner-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2px;
}

.conf-banner-text p {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.65;
}

.conf-banner-sep {
    width: 2px;
    height: 40px;
    background: rgba(38, 67, 94, 0.15);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---- Category Divider ---- */
.cat-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    margin-top: 56px;
}

.cat-divider:first-of-type {
    margin-top: 0;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-pill.keynote {
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: var(--white);
}

.cat-pill.main {
    background: rgba(38, 67, 94, 0.1);
    color: var(--navy);
    border: 1.5px solid rgba(38, 67, 94, 0.2);
}

.cat-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(38, 67, 94, 0.15), transparent);
}

/* ---- Keynote Featured Card ---- */
.keynote-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 52px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(38, 67, 94, 0.25);
    transition: transform var(--transition), box-shadow var(--transition);
    margin-bottom: 60px;
}

.keynote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(38, 67, 94, 0.35);
}

.keynote-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 159, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.keynote-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(192, 159, 95, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.keynote-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.keynote-photo,
.keynote-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: block;
    border: 4px solid rgba(192, 159, 95, 0.5);
}

.keynote-photo {
    object-fit: cover;
}

.keynote-placeholder {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(192, 159, 95, 0.6);
}

.keynote-star {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.keynote-info {
    position: relative;
    z-index: 1;
}

.keynote-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.keynote-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.keynote-affil {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keynote-affil i {
    color: var(--gold);
    font-size: 0.8rem;
}

.keynote-topic {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.keynote-topic-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.keynote-topic-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    font-style: italic;
}

/* ---- Speaker Grid ---- */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Speaker Card ---- */
.sp-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 18px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
    /* Flex column so all inner elements align consistently across cards */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--bronze));
    opacity: 0;
    transition: opacity var(--transition);
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 159, 95, 0.18);
}

.sp-card:hover::before {
    opacity: 1;
}

.sp-photo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(192, 159, 95, 0.25);
    transition: border-color var(--transition);
    background: var(--off-white);
    flex-shrink: 0;
}

.sp-card:hover .sp-photo-wrap {
    border-color: rgba(192, 159, 95, 0.55);
}

.sp-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(192, 159, 95, 0.1), rgba(192, 159, 95, 0.2));
}

.sp-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.sp-badge.keynote-b {
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    color: var(--white);
}

.sp-badge.main-b {
    background: rgba(38, 67, 94, 0.08);
    color: var(--navy);
    border: 1px solid rgba(38, 67, 94, 0.15);
}

.sp-badge.agdc-b {
    background: rgba(14, 42, 64, 0.09);
    color: #0E2A40;
    border: 1px solid rgba(14, 42, 64, 0.18);
}

.sp-badge.ho-b {
    background: rgba(164, 95, 53, 0.1);
    color: var(--terracotta);
    border: 1px solid rgba(164, 95, 53, 0.2);
}

.sp-badge.il-b {
    background: rgba(76, 117, 75, 0.1);
    color: #4C754B;
    border: 1px solid rgba(76, 117, 75, 0.2);
}

.sp-badge.wo-b {
    background: rgba(139, 90, 159, 0.1);
    color: #8B5A9F;
    border: 1px solid rgba(139, 90, 159, 0.2);
}

.sp-name {
    font-size:0.95rem; font-weight:700; color:var(--navy);
    margin-bottom:5px; line-height:1.3;
    /* Reserve space for up to 2 lines so cards stay aligned */
    min-height: 2.47rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sp-affil {
    font-size: 0.78rem;
    color: var(--charcoal);
    opacity: 0.65;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Credential row — always rendered, styled smaller; invisible when empty */
.sp-cred {
    font-size: 0.7rem !important;
    opacity: 0.5 !important;
    margin-bottom: 4px !important;
    min-height: 1.1rem;
}

/* Hover title overlay */
.sp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 47, 66, 0.97) 0%, rgba(38, 67, 94, 0.93) 100%);
    padding: 18px 16px;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sp-card:hover .sp-overlay,
.sp-card.expanded .sp-overlay {
    transform: translateY(0);
}

/* ---- Touch / Mobile: disable sticky hover, use only .expanded ---- */
@media (hover: none) {
    /* Cancel all hover-based transforms so only JS-driven .expanded works */
    .sp-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        border-color: transparent;
    }
    .sp-card:hover::before {
        opacity: 0;
    }
    .sp-card:hover .sp-photo-wrap {
        border-color: rgba(192, 159, 95, 0.25);
    }
    .sp-card:hover .sp-overlay {
        transform: translateY(100%);
    }
    /* Only expanded class opens the overlay on touch */
    .sp-card.expanded .sp-overlay {
        transform: translateY(0);
    }
    /* Add pointer cursor so it feels tappable */
    .sp-card {
        cursor: pointer;
    }
}

.sp-overlay-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.sp-overlay-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width:1100px) {
    .sp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:768px) {
    .keynote-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 36px 28px;
        gap: 24px;
    }

    .keynote-photo-wrap {
        margin: 0 auto;
    }

    .keynote-affil {
        justify-content: center;
    }

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

    .conf-banner {
        gap: 12px;
    }

    .conf-banner-sep {
        display: none;
    }

    .speakers-stats {
        gap: 30px;
    }
}

@media (max-width:480px) {
    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .keynote-name {
        font-size: 1.4rem;
    }

    .sp-photo-wrap {
        width: 90px;
        height: 90px;
    }
}

/* ============================================================
   CONFERENCE SWITCHER
   ============================================================ */
.conf-switcher-section {
    background: var(--white);
    padding: 28px 0 32px;
    border-bottom: 1px solid rgba(38, 67, 94, 0.08);
    box-shadow: 0 4px 24px rgba(38, 67, 94, 0.07);
}

.conf-switcher-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal);
    opacity: 0.55;
    margin-bottom: 16px;
}

.conf-switcher {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.conf-switch-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.28s ease;
    min-width: 260px;
    position: relative;
    overflow: hidden;
}

.conf-switch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
    border-radius: inherit;
}

/* KPPIKG card */
.conf-switch-card.kppikg-card {
    background: rgba(38, 67, 94, 0.05);
    border-color: rgba(38, 67, 94, 0.15);
}
.conf-switch-card.kppikg-card::before {
    background: linear-gradient(135deg, rgba(38, 67, 94, 0.08), rgba(192, 159, 95, 0.06));
}
.conf-switch-card.kppikg-card:hover {
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(38, 67, 94, 0.18);
}
.conf-switch-card.kppikg-card:hover::before { opacity: 1; }

/* AGDC card */
.conf-switch-card.agdc-card {
    background: rgba(14, 42, 64, 0.05);
    border-color: rgba(14, 42, 64, 0.15);
}
.conf-switch-card.agdc-card::before {
    background: linear-gradient(135deg, rgba(14, 42, 64, 0.08), rgba(192, 159, 95, 0.06));
}
.conf-switch-card.agdc-card:hover {
    border-color: #0E2A40;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 42, 64, 0.18);
}
.conf-switch-card.agdc-card:hover::before { opacity: 1; }

.csc-logo-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.csc-logo-wrap img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.csc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.csc-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.csc-desc {
    font-size: 0.72rem;
    color: var(--charcoal);
    opacity: 0.6;
    line-height: 1.4;
}

/* "See Speakers" CTA pill */
.csc-cta {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

.conf-switch-card:hover .csc-cta {
    opacity: 1;
    background: var(--gold);
    color: var(--white);
    transform: scale(1.04);
}

.conf-switch-card.agdc-card .csc-cta {
    background: #0E2A40;
}
.conf-switch-card.agdc-card:hover .csc-cta {
    background: var(--gold);
}

/* Responsive */
@media (max-width: 600px) {
    .conf-switch-card {
        min-width: 100%;
        padding: 12px 18px;
    }
    .conf-switcher {
        gap: 10px;
    }
    .conf-switcher-section {
        top: 60px;
        padding: 18px 0 20px;
    }
}