
/* ==========================================================
   ISDL-2026 | COMPLETE SPEAKERS PAGE STYLESHEET
   Central Library, IIT Kharagpur
   Theme: Navy Blue + Gold + Purple
   Desktop: 4 speakers per row
   Tablet: 2 speakers per row
   Mobile: 1 speaker per row
   ========================================================== */

/* 1. THEME VARIABLES */

:root {
    --isdl-navy: #003366;
    --isdl-navy-dark: #00264d;
    --isdl-blue: #06477f;
    --isdl-gold: #f5c400;
    --isdl-gold-light: #f5d96b;
    --isdl-purple: #49327d;
    --isdl-light: #f5f7fb;
    --isdl-text: #263445;
    --isdl-muted: #697586;
    --isdl-white: #ffffff;
}


/* 2. GLOBAL STYLES */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--isdl-light);
    color: var(--isdl-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
}


/* 3. HERO / BANNER SECTION */

.speakers-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image:
        linear-gradient(
            120deg,
            rgba(0, 35, 74, 0.91),
            rgba(57, 39, 102, 0.82)
        ),
        url("https://libevent.iitkgp.ac.in/assets/images/conf.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--isdl-white);
    padding: 30px 20px 32px;
    min-height: 0;
    text-align: center;
    border-bottom: 4px solid var(--isdl-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speakers-hero-content {
    max-width: 1100px;
}

.speakers-hero .eyebrow {
    margin: 0 0 4px;
    color: var(--isdl-gold);
    font-size: clamp(0.78rem, 1.5vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.speakers-hero h1 {
    margin: 4px 0 8px;
    color: var(--isdl-white);
    font-size: clamp(1.65rem, 3.8vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.speakers-hero .speakers-hero-subtitle {
    margin: 0 0 8px;
    color: var(--isdl-gold-light);
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.speakers-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #f1f4ff;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}


/* 4. SPEAKERS SECTION */

.speakers-section {
    padding-top: 48px;
    padding-bottom: 55px;
}

.section-heading {
    margin-bottom: 12px;
    color: var(--isdl-navy);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 32px;
    color: #5b6573;
    font-size: 1rem;
    text-align: center;
}


/* 5. SPEAKER GRID
   Add class "speaker-grid" to the Bootstrap row.
   Four columns on desktop, two on tablet, one on mobile. */

.speaker-grid {
    align-items: stretch;
}

/* Desktop: four speakers per row */
@media (min-width: 992px) {
    .speaker-grid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet: two speakers per row */
@media (min-width: 576px) and (max-width: 991.98px) {
    .speaker-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile: one speaker per row */
@media (max-width: 575.98px) {
    .speaker-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* 6. SPEAKER CARD */

.speaker-card {
    height: 100%;
    overflow: hidden;

    background: linear-gradient(
        150deg,
        var(--isdl-navy),
        var(--isdl-blue)
    );

    border: 1px solid rgba(245, 196, 0, 0.65);
    border-radius: 12px;

    box-shadow: 0 4px 14px rgba(0, 32, 75, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.speaker-card:hover {
    transform: translateY(-4px);
    border-color: var(--isdl-gold);
    box-shadow: 0 10px 24px rgba(0, 32, 75, 0.2);
}


/* 7. SPEAKER CARD TOP AREA */

.speaker-top {
    height: 100%;
    min-height: 0;
    padding: 17px 12px 16px;
    text-align: center;

    background: linear-gradient(
        150deg,
        #003366 0%,
        #06477f 100%
    );

    border-top: 4px solid var(--isdl-gold);
}


/* 8. SPEAKER PHOTOGRAPH */

.speaker-photo {
    width: 200px;
    height: 200px;
    max-width: 100%;
    margin: 0 auto 14px;

    border: 3px solid var(--isdl-gold);
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7eef7;
    color: var(--isdl-navy);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Placeholder icon */
.speaker-photo-placeholder {
    font-size: 2.2rem;
}

/* Actual portrait image */
.speaker-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}
.speaker-photo:focus-visible {
    outline: 3px solid var(--isdl-gold);
    outline-offset: 4px;
}


/* 9. SPEAKER CATEGORY TAG */

.speaker-tag {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 4px 9px;

    background: var(--isdl-gold);
    color: var(--isdl-navy-dark);

    border-radius: 20px;

    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}


/* 10. SPEAKER NAME */

.speaker-name {
    margin: 2px 0 6px;
    padding: 0;

    color: var(--isdl-white);

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;

    overflow-wrap: anywhere;
    word-wrap: break-word;
}


/* 11. SPEAKER DESIGNATION */

.speaker-designation {
    margin: 0 0 5px;
    padding: 0;

    color: #e3edf8;

    font-size: 0.77rem;
    font-weight: 500;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* 12. SPEAKER INSTITUTION */

.speaker-institution {
    margin: 0;
    padding: 0;

    color: var(--isdl-gold-light);

    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.45;

    overflow-wrap: anywhere;
    word-wrap: break-word;
}


/* 13. OPTIONAL SPEAKER DETAILS */

.speaker-details {
    padding: 16px 18px 20px;

    background: #ffffff;
    border-top: 1px solid #e3e8ef;
}

.speaker-details h3 {
    margin-bottom: 8px;
    color: var(--isdl-navy);
    font-size: 1rem;
    font-weight: 800;
}

.speaker-bio {
    margin-bottom: 14px;
    color: #596575;
    font-size: 0.88rem;
    line-height: 1.6;
}

.talk-title {
    padding: 12px 14px;

    background: #f7f8fc;
    border-left: 4px solid var(--isdl-gold);
    border-radius: 0 8px 8px 0;

    font-size: 0.88rem;
    line-height: 1.5;
}

.talk-title strong {
    display: block;
    margin-bottom: 4px;
    color: var(--isdl-navy);
}

.speaker-social {
    color: var(--isdl-navy);
    font-size: 0.88rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.speaker-social:hover {
    color: #725600;
    text-decoration: underline;
}


/* 14. CALL-TO-ACTION SECTION */

.speaker-cta {
    padding: 42px 20px;

    background: linear-gradient(
        120deg,
        var(--isdl-navy),
        var(--isdl-purple)
    );

    color: var(--isdl-white);
    text-align: center;
    border-top: 4px solid var(--isdl-gold);
}

.speaker-cta h2 {
    margin-bottom: 12px;
    color: var(--isdl-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.speaker-cta p {
    max-width: 720px;
    margin: 0 auto 20px;
    color: #eef2ff;
}


/* 15. ISDL BUTTON */

.btn-isdl {
    display: inline-block;
    padding: 11px 25px;

    background: var(--isdl-gold);
    border: 2px solid var(--isdl-gold);
    border-radius: 7px;

    color: #17243a;

    font-weight: 800;
    text-align: center;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn-isdl:hover {
    background: var(--isdl-white);
    border-color: var(--isdl-white);
    color: var(--isdl-navy);
}

.btn-isdl:focus-visible {
    outline: 3px solid var(--isdl-gold);
    outline-offset: 3px;
}


/* 16. FOOTER */

.speaker-footer {
    padding: 24px 15px;

    background: var(--isdl-navy-dark);
    color: #e7edf6;

    text-align: center;
    font-size: 0.88rem;
    line-height: 1.6;
}

.speaker-footer p {
    margin: 0;
}

.speaker-footer a {
    color: var(--isdl-gold);
    text-decoration: none;
}

.speaker-footer a:hover {
    color: var(--isdl-white);
    text-decoration: underline;
}


/* 17. TABLET ADJUSTMENTS */

@media (min-width: 576px) and (max-width: 991.98px) {

    .speakers-hero {
        padding: 26px 18px 28px;
    }

    .speakers-section {
        padding-top: 38px;
        padding-bottom: 42px;
    }

    .speaker-top {
        padding: 18px 12px 16px;
    }

    .speaker-photo {
        width: 78px;
        height: 78px;
    }

    .speaker-name {
        font-size: 1rem;
    }

}


/* 18. MOBILE ADJUSTMENTS */

@media (max-width: 575.98px) {

    .speakers-hero {
        padding: 22px 16px 24px;
        background-position: center;
    }

    .speakers-hero .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 1.3px;
    }

    .speakers-hero h1 {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
    }

    .speakers-hero .speakers-hero-subtitle {
        font-size: 1.2rem;
    }

    .speakers-hero p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .speakers-section {
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .section-intro {
        margin-bottom: 24px;
        padding: 0 8px;
        font-size: 0.93rem;
    }

    .speaker-top {
        padding: 20px 16px 18px;
    }

    .speaker-photo {
        width: 82px;
        height: 82px;
        margin-bottom: 12px;
    }

    .speaker-photo-placeholder {
        font-size: 2.3rem;
    }

    .speaker-tag {
        font-size: 0.65rem;
    }

    .speaker-name {
        font-size: 1.08rem;
    }

    .speaker-designation {
        font-size: 0.82rem;
    }

    .speaker-institution {
        font-size: 0.78rem;
    }

    .speaker-details {
        padding: 16px;
    }

    .speaker-cta {
        padding: 34px 18px;
    }

}


/* 19. REDUCED-MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .speaker-card,
    .btn-isdl {
        transition: none;
    }

    .speaker-card:hover {
        transform: none;
    }

}
:root {
            --isdl-navy: #003366;
            --isdl-gold: #f5c400;
            --isdl-purple: #49327d;
            --isdl-light: #f5f7fb;
            --isdl-text: #263445;
        }

        body {
            background: var(--isdl-light);
            color: var(--isdl-text);
            font-family: Arial, Helvetica, sans-serif;
            line-height: 1.65;
        }




/* Speaker photo viewer: 300 x 300 image beside an introduction placeholder */
body.speaker-viewer-open { overflow: hidden; }
.speaker-viewer {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.speaker-viewer.is-open { display: flex; }
.speaker-viewer-backdrop { position: absolute; inset: 0; background: rgba(0, 17, 38, .78); }
.speaker-viewer-panel {
    position: relative; z-index: 1; width: min(760px, 100%);
    background: #fff; color: var(--isdl-text); border-radius: 14px;
    padding: 28px; box-shadow: 0 18px 60px rgba(0,0,0,.35);
    border-top: 5px solid var(--isdl-gold); max-height: calc(100vh - 48px); overflow: auto;
}
.speaker-viewer-close {
    position: absolute; top: 8px; right: 14px; border: 0; background: transparent;
    color: var(--isdl-navy); font-size: 34px; line-height: 1; cursor: pointer; z-index: 2;
}
.speaker-viewer-layout { display: flex; align-items: flex-start; gap: 26px; padding-top: 10px; }
.speaker-viewer-image-wrap { flex: 0 0 300px; width: 300px; height: 300px; }
.speaker-viewer-image-wrap img {
    display: block; width: 300px; height: 300px; max-width: none;
    object-fit: contain; background: #f2f5f9; border: 2px solid var(--isdl-gold); border-radius: 8px;
}
.speaker-viewer-intro { flex: 1 1 auto; min-width: 0; padding: 8px 4px 0 0; }
.speaker-viewer-label { color: #6b4c00; font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; }
.speaker-viewer-intro h2 { color: var(--isdl-navy); font-size: 1.45rem; line-height: 1.3; margin: 0 0 8px; }
.speaker-viewer-designation { color: var(--isdl-muted); font-weight: 600; margin-bottom: 18px; }
.speaker-intro-placeholder {
    min-height: 125px; padding: 16px; border: 1px dashed #9aa8ba; border-radius: 8px;
    background: #f7f9fc; color: #526174; font-size: .95rem;
}
@media (max-width: 640px) {
    .speaker-viewer { padding: 12px; }
    .speaker-viewer-panel { padding: 24px 16px 18px; }
    .speaker-viewer-layout { flex-direction: column; align-items: center; gap: 18px; }
    .speaker-viewer-image-wrap, .speaker-viewer-image-wrap img { width: 300px; height: 300px; max-width: 100%; }
    .speaker-viewer-image-wrap { flex-basis: auto; }
    .speaker-viewer-intro { width: 100%; }
}
@media (max-width: 350px) {
    .speaker-viewer-image-wrap, .speaker-viewer-image-wrap img { width: 260px; height: 260px; }
}


/* Reliable popup visibility: overrides conflicting theme styles. */
.speaker-viewer[aria-hidden="false"],
.speaker-viewer.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.speaker-photo { cursor: pointer; }
.speaker-photo:focus-visible { outline: 3px solid #f5c400; outline-offset: 4px; }
