/* =========================================================
   Admin-panel sections (includes/panel-sections.php): speaker and committee
   cards, academic partners, welcome videos, the Technical Session room
   schedule and their dialogs. Loaded by the main website (includes/header.php)
   and the Chennai landing page, so both show the same components in the
   conference palette: navy #031333, blue #073a9d, orange #ff5b0a.
   ========================================================= */

.pnl-grid, .pnl-partners, .pnl-videos, .pnl-rooms, .pnl-room-dialog, .pnl-dialog {
    --pnl-ink: #031333;
    --pnl-ink-2: #40566B;
    --pnl-muted: #5B7085;
    --pnl-accent: #ff5b0a;
    --pnl-accent-dark: #d94a00;
    --pnl-wash: #f4f7fb;
    --pnl-line: #dfe6f0;
    --pnl-surface: #FFFFFF;
    --pnl-night: #020d27;
}

/* ---------------------------------------------------------- groups */
.pnl-group + .pnl-group { margin-top: 48px; }
.pnl-group .pnl-group-title {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 0 0 26px; font-family: "Sora", "Inter", system-ui, sans-serif; font-size: 18.4px; font-weight: 800;
    color: #031333; text-align: center; letter-spacing: .01em;
}
.pnl-group-title::before, .pnl-group-title::after {
    content: ""; width: 42px; height: 2px; border-radius: 2px; background: #ff5b0a;
}

/* ---------------------------------------------------------- speaker / committee cards */
.pnl-grid {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
}
.pnl-grid > .pnl-card { flex: 0 1 262px; min-width: 232px; }
.pnl-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    padding: 28px 22px 24px; text-align: center;
    background: var(--pnl-surface); border: 1px solid var(--pnl-line); border-radius: 18px;
    box-shadow: 0 10px 30px rgba(3, 19, 51, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pnl-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 74px; border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #031333, #073a9d);
}
.pnl-card:hover { transform: translateY(-4px); border-color: var(--pnl-accent); box-shadow: 0 16px 44px rgba(3, 19, 51, .12); }
.pnl-media { position: relative; z-index: 1; width: 128px; height: 128px; margin-bottom: 16px; }
.pnl-photo, .pnl-ph {
    width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--pnl-surface); box-shadow: 0 6px 18px rgba(3, 19, 51, .18); background: var(--pnl-wash);
}
.pnl-ph { display: grid; place-items: center; font-size: 48px; color: var(--pnl-accent); }
.pnl-flag {
    position: absolute; right: 2px; bottom: 6px; width: 34px; height: 24px; object-fit: cover;
    border-radius: 4px; border: 2px solid var(--pnl-surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.pnl-mode {
    display: inline-flex; align-items: center; gap: 5px; margin: 0 0 10px; padding: 4px 12px;
    font-size: 11.8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--pnl-accent-dark); background: var(--pnl-wash); border-radius: 999px;
}
.pnl-mode.is-virtual { color: #2f4b8f; background: #E8EDF7; }
.pnl-card .pnl-name {
    margin: 0 0 6px; font-family: "Sora", "Inter", system-ui, sans-serif; font-size: 17px; font-weight: 800;
    line-height: 1.3; color: var(--pnl-ink);
}
.pnl-role { margin: 0 0 8px; font-size: 14.1px; font-weight: 600; color: var(--pnl-accent-dark); line-height: 1.45; }
.pnl-affil { margin: 0 0 6px; font-size: 13.8px; color: var(--pnl-ink-2); line-height: 1.5; }
.pnl-country { margin: 0; font-size: 13.1px; font-weight: 600; color: var(--pnl-muted); }
.pnl-bio-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding: 9px 18px;
    font: 700 13.4px/1 "Sora", "Inter", system-ui, sans-serif; color: #fff; background: var(--pnl-accent);
    border: 0; border-radius: 999px; cursor: pointer; transition: background .2s ease;
}
.pnl-card .pnl-bio-btn { margin-top: 16px; }
.pnl-bio-btn:hover, .pnl-bio-btn:focus-visible { background: var(--pnl-accent-dark); }

/* ---------------------------------------------------------- academic partners */
.pnl-partners {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
}
.pnl-partners > .pnl-partner { flex: 0 1 240px; min-width: 200px; }
.pnl-partner-in {
    display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%;
    padding: 24px 20px; text-align: center; text-decoration: none;
    background: var(--pnl-surface); border: 1px solid var(--pnl-line); border-radius: 18px;
    box-shadow: 0 2px 10px rgba(3, 19, 51, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.pnl-partner-in:hover { transform: translateY(-4px); border-color: var(--pnl-accent); box-shadow: 0 16px 44px rgba(3, 19, 51, .1); }
.pnl-partner-logo { display: grid; place-items: center; width: 100%; height: 110px; }
.pnl-partner-logo img { max-width: 100%; max-height: 110px; object-fit: contain; }
.pnl-partner-name {
    padding-top: 12px; width: 100%; border-top: 1px solid var(--pnl-line);
    font: 700 14.7px/1.4 "Sora", "Inter", system-ui, sans-serif; color: var(--pnl-ink);
}

/* ---------------------------------------------------------- welcome videos */
.pnl-videos {
    display: grid; gap: 26px; justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 540px));
}
.pnl-video {
    margin: 0; overflow: hidden; background: var(--pnl-surface);
    border: 1px solid var(--pnl-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(3, 19, 51, .08);
}
.pnl-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pnl-video figcaption {
    padding: 14px 18px; text-align: center;
    font: 700 16px/1.4 "Sora", "Inter", system-ui, sans-serif; color: var(--pnl-ink);
}

/* ---------------------------------------------------------- room schedule buttons */
.pnl-rooms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pnl-rooms-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
    font: 700 13.6px/1.2 "Sora", "Inter", system-ui, sans-serif; color: #fff; background: var(--pnl-ink);
    border: 0; border-radius: 999px; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.pnl-rooms-btn:hover, .pnl-rooms-btn:focus-visible { background: var(--pnl-accent); transform: translateY(-2px); }

/* ---------------------------------------------------------- dialogs */
.pnl-dialog {
    width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
    color: var(--pnl-ink); background: var(--pnl-surface); border: 0; border-radius: 18px;
    box-shadow: 0 30px 80px rgba(2, 13, 39, .35);
}
.pnl-dialog[open] { display: flex; flex-direction: column; }
.pnl-dialog::backdrop { background: rgba(2, 13, 39, .62); }
.pnl-room-dialog { width: min(1040px, calc(100vw - 32px)); }
.pnl-dialog-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 20px 24px; border-bottom: 1px solid var(--pnl-line);
}
.pnl-dialog .pnl-dialog-head h2 { margin: 0 0 4px; font: 800 19.2px/1.3 "Sora", "Inter", system-ui, sans-serif; color: var(--pnl-ink); }
.pnl-dialog-head p { margin: 0; font-size: 14.1px; color: var(--pnl-muted); }
.pnl-dialog-head.is-dark { background: var(--pnl-night); border-bottom: 0; }
.pnl-dialog .pnl-dialog-head.is-dark h2 { color: #fff; }
.pnl-dialog-head.is-dark p { color: #fff; opacity: .85; }
.pnl-dialog-close {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px;
    font-size: 16px; color: var(--pnl-ink); background: var(--pnl-wash); border: 0; border-radius: 50%; cursor: pointer;
}
.pnl-dialog-head.is-dark .pnl-dialog-close { color: #fff; background: rgba(255, 255, 255, .14); }
.pnl-dialog-body { overflow-y: auto; padding: 22px 24px 26px; font-size: 15.2px; line-height: 1.7; }
.pnl-dialog-body.is-flush { padding: 0; }
.pnl-dialog-body p { margin: 0 0 12px; }
.pnl-dialog-photo { float: left; width: 120px; height: 120px; margin: 4px 18px 10px 0; border-radius: 14px; object-fit: cover; }

.pnl-room-scroll { overflow-x: auto; }
.pnl-room-table { width: 100%; border-collapse: collapse; font-size: 14.4px; }
.pnl-room-table thead th {
    position: sticky; top: 0; z-index: 1; padding: 12px 16px; text-align: left; white-space: nowrap;
    font: 700 12.8px/1.2 "Sora", "Inter", system-ui, sans-serif; color: var(--pnl-ink);
    background: var(--pnl-wash); border-bottom: 1px solid var(--pnl-line);
}
.pnl-room-table td { padding: 14px 16px; vertical-align: top; color: var(--pnl-ink-2); border-bottom: 1px solid var(--pnl-line); }
.pnl-room-table tbody tr:nth-child(even) td { background: #F7FBFD; }
.pnl-room-no { font-weight: 700; color: var(--pnl-ink); }
.pnl-room-time { white-space: nowrap; font-weight: 600; }
.pnl-room-paper { display: block; color: var(--pnl-ink); line-height: 1.5; }
.pnl-room-by { display: block; margin-top: 4px; font-size: 13.1px; color: var(--pnl-muted); }
.pnl-room-session { min-width: 170px; }

html.pnl-dialog-open:has(dialog.pnl-dialog[open]) { overflow: hidden; }

@media (max-width: 575.98px) {
    .pnl-grid > .pnl-card { flex-basis: 300px; min-width: 0; }
    .pnl-dialog-photo { float: none; display: block; margin: 0 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .pnl-card, .pnl-partner-in, .pnl-rooms-btn { transition: none; }
    .pnl-card:hover, a.pnl-partner-in:hover, .pnl-rooms-btn:hover { transform: none; }
}

/* Site stylesheets size images generically (img { height: auto } ...); the
   cards' photos, flags and logos keep their own box whatever the page sets. */
.pnl-card .pnl-media .pnl-photo, .pnl-card .pnl-media .pnl-ph { width: 128px; height: 128px; max-width: none; }
.pnl-card .pnl-media .pnl-flag { width: 34px; height: 24px; max-width: none; }
.pnl-dialog .pnl-dialog-photo { height: 120px; max-width: none; }
.pnl-partner .pnl-partner-logo img { width: auto; height: auto; }
