/* =============================================================================
   Bioinformatics Course – Frontend Styles
   Leiden University × CarrionLAB
   ============================================================================= */

/* ── Custom properties ──────────────────────────────────────────────────────── */
:root {
    --bio-primary:        #001158;
    --bio-primary-dark:   #000b3a;
    --bio-primary-light:  #003d9b;
    --bio-accent:         #4a90d9;
    --bio-green:          #1a7f4b;
    --bio-green-light:    #e8f5ee;
    --bio-purple:         #6b3fa0;
    --bio-purple-light:   #f0eaf9;
    --bio-orange:         #c96a00;
    --bio-orange-light:   #fff3e0;
    --bio-blue-light:     #e8f0fe;
    --bio-text:           #1a1d2e;
    --bio-text-muted:     #6b7280;
    --bio-border:         #e5e7eb;
    --bio-bg:             #f4f6fb;
    --bio-card-bg:        #ffffff;
    --bio-radius:         14px;
    --bio-radius-sm:      8px;
    --bio-shadow:         0 4px 24px rgba(0, 17, 88, 0.10);
    --bio-shadow-hover:   0 8px 40px rgba(0, 17, 88, 0.18);
    --bio-transition:     0.25s ease;
    --bio-font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Force theme containers to full width on course pages ───────────────────── */
body.bio-course-page .entry-content,
body.bio-course-page .post-content,
body.bio-course-page .page-content,
body.bio-course-page .site-content .content-area,
body.bio-course-page #main,
body.bio-course-page #content,
body.bio-course-page article {
    max-width: none !important;
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.bio-course-page .widget-area,
body.bio-course-page .sidebar {
    display: none !important;
}

/* ── Base wrapper ───────────────────────────────────────────────────────────── */
.bio-wrap {
    font-family: var(--bio-font);
    color: var(--bio-text);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    box-sizing: border-box;
    width: 100%;
}

/* ── Portal page ────────────────────────────────────────────────────────────── */
.bio-portal-wrap {
    max-width: 480px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.bio-portal-header {
    text-align: center;
    background: linear-gradient(150deg, var(--bio-primary) 0%, var(--bio-primary-light) 100%);
    border-radius: var(--bio-radius) var(--bio-radius) 0 0;
    padding: 42px 32px 36px;
    color: #fff;
}

.bio-portal-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: block;
}

.bio-portal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    color: #fff;
}

.bio-portal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    letter-spacing: 0.02em;
}

.bio-portal-box {
    background: var(--bio-card-bg);
    border-radius: 0 0 var(--bio-radius) var(--bio-radius);
    box-shadow: var(--bio-shadow);
    overflow: hidden;
}

.bio-portal-footer-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--bio-text-muted);
    margin-top: 18px;
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.bio-tabs {
    display: flex;
    border-bottom: 2px solid var(--bio-border);
    background: #fafbff;
}

.bio-tab {
    flex: 1;
    padding: 16px 0;
    font-family: var(--bio-font);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bio-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--bio-transition);
    letter-spacing: 0.01em;
}

.bio-tab:hover {
    color: var(--bio-primary);
}

.bio-tab-active {
    color: var(--bio-primary);
}

.bio-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bio-primary);
    border-radius: 3px 3px 0 0;
}

.bio-tab-panel {
    padding: 28px 32px 32px;
}

/* ── Messages ───────────────────────────────────────────────────────────────── */
.bio-msg {
    padding: 14px 20px;
    border-radius: var(--bio-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 20px 32px 0;
    line-height: 1.5;
}

.bio-msg-success {
    background: var(--bio-green-light);
    color: var(--bio-green);
    border: 1px solid #a7d7be;
}

.bio-msg-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.bio-msg-info {
    background: var(--bio-blue-light);
    color: var(--bio-primary);
    border: 1px solid #b8cff5;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.bio-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bio-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bio-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bio-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bio-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bio-field input,
.bio-field textarea,
.bio-field select {
    padding: 11px 14px;
    border: 1.5px solid var(--bio-border);
    border-radius: var(--bio-radius-sm);
    font-family: var(--bio-font);
    font-size: 0.9rem;
    color: var(--bio-text);
    background: #fff;
    transition: border-color var(--bio-transition), box-shadow var(--bio-transition);
    width: 100%;
    box-sizing: border-box;
    outline: none;
}

.bio-field input:focus,
.bio-field textarea:focus,
.bio-field select:focus {
    border-color: var(--bio-primary);
    box-shadow: 0 0 0 3px rgba(0, 17, 88, 0.09);
}

.bio-field input::placeholder,
.bio-field textarea::placeholder {
    color: #b0b7c3;
}

.bio-field-hint {
    font-size: 0.78rem;
    color: var(--bio-text-muted);
    line-height: 1.4;
}

.bio-required {
    color: #c0392b;
}

.bio-forgot-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bio-accent);
    text-decoration: none;
    margin-left: auto;
}

.bio-forgot-link:hover {
    text-decoration: underline;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.bio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--bio-radius-sm);
    font-family: var(--bio-font);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all var(--bio-transition);
    letter-spacing: 0.01em;
}

.bio-btn-primary {
    background: var(--bio-primary);
    color: #fff;
    border-color: var(--bio-primary);
}

.bio-btn-primary:hover {
    background: var(--bio-primary-dark);
    border-color: var(--bio-primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 17, 88, 0.25);
    transform: translateY(-1px);
}

.bio-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding: 8px 18px;
}

.bio-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.bio-btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.96rem;
}

.bio-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bio-spin 0.7s linear infinite;
}

.bio-btn-loading .bio-btn-text {
    display: none;
}

.bio-btn-loading .bio-btn-loader {
    display: inline-block;
}

@keyframes bio-spin {
    to { transform: rotate(360deg); }
}

/* ── Forgot / reset panels ──────────────────────────────────────────────────── */
.bio-forgot-panel,
.bio-subheading {
    color: var(--bio-text);
}

.bio-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.bio-link {
    color: var(--bio-accent);
    text-decoration: none;
    font-weight: 500;
}

.bio-link:hover {
    text-decoration: underline;
}

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.bio-dashboard-wrap {
    padding-top: 0;
}

.bio-dashboard-header {
    background: linear-gradient(150deg, var(--bio-primary) 0%, var(--bio-primary-light) 100%);
    border-radius: var(--bio-radius);
    margin-bottom: 40px;
    overflow: hidden;
}

.bio-dashboard-hero {
    padding: 44px 48px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.bio-hero-text {
    flex: 1;
    min-width: 200px;
}

.bio-dashboard-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.bio-dashboard-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.bio-hero-stats {
    display: flex;
    gap: 28px;
}

.bio-hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 14px 22px;
    border-radius: var(--bio-radius-sm);
    backdrop-filter: blur(6px);
}

.bio-hero-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.bio-hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    display: block;
}

/* ── Module cards ───────────────────────────────────────────────────────────── */
.bio-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.bio-module-card {
    display: flex;
    flex-direction: column;
    background: var(--bio-card-bg);
    border-radius: var(--bio-radius);
    padding: 32px 28px;
    box-shadow: var(--bio-shadow);
    text-decoration: none;
    color: var(--bio-text);
    transition: transform var(--bio-transition), box-shadow var(--bio-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bio-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.bio-module-blue::before   { background: linear-gradient(90deg, var(--bio-primary), var(--bio-accent)); }
.bio-module-green::before  { background: linear-gradient(90deg, var(--bio-green), #2ecc71); }
.bio-module-purple::before { background: linear-gradient(90deg, var(--bio-purple), #9b59b6); }

.bio-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bio-shadow-hover);
}

.bio-module-blue:hover   { border-color: var(--bio-accent); }
.bio-module-green:hover  { border-color: var(--bio-green); }
.bio-module-purple:hover { border-color: var(--bio-purple); }

.bio-module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bio-module-icon svg {
    width: 28px;
    height: 28px;
}

.bio-module-blue .bio-module-icon   { background: var(--bio-blue-light);   color: var(--bio-primary); }
.bio-module-green .bio-module-icon  { background: var(--bio-green-light);  color: var(--bio-green); }
.bio-module-purple .bio-module-icon { background: var(--bio-purple-light); color: var(--bio-purple); }

.bio-module-body {
    flex: 1;
}

.bio-module-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bio-text);
}

.bio-module-desc {
    font-size: 0.87rem;
    color: var(--bio-text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.bio-module-count {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.bio-module-blue .bio-module-count   { background: var(--bio-blue-light);   color: var(--bio-primary); }
.bio-module-green .bio-module-count  { background: var(--bio-green-light);  color: var(--bio-green); }
.bio-module-purple .bio-module-count { background: var(--bio-purple-light); color: var(--bio-purple); }

.bio-module-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    font-size: 1.4rem;
    color: var(--bio-border);
    transition: transform var(--bio-transition), color var(--bio-transition);
}

.bio-module-card:hover .bio-module-arrow {
    transform: translateX(5px);
}

.bio-module-blue:hover .bio-module-arrow   { color: var(--bio-accent); }
.bio-module-green:hover .bio-module-arrow  { color: var(--bio-green); }
.bio-module-purple:hover .bio-module-arrow { color: var(--bio-purple); }

/* ── Module list page ───────────────────────────────────────────────────────── */
.bio-module-wrap {
    padding-top: 0;
}

.bio-module-page-header {
    border-radius: var(--bio-radius);
    padding: 40px 48px;
    margin-bottom: 32px;
    color: #fff;
}

.bio-module-header-blue   { background: linear-gradient(150deg, var(--bio-primary) 0%, var(--bio-accent) 100%); }
.bio-module-header-green  { background: linear-gradient(150deg, #155f37 0%, var(--bio-green) 100%); }
.bio-module-header-purple { background: linear-gradient(150deg, #4a2882 0%, var(--bio-purple) 100%); }

.bio-back-nav {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color var(--bio-transition);
}

.bio-back-nav:hover {
    color: #fff;
}

.bio-module-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.03em;
}

.bio-module-page-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ── Module items list ──────────────────────────────────────────────────────── */
.bio-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-item {
    background: var(--bio-card-bg);
    border-radius: var(--bio-radius);
    box-shadow: 0 2px 12px rgba(0, 17, 88, 0.07);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--bio-transition), box-shadow var(--bio-transition);
}

.bio-item-blue:hover,   .bio-item-blue.bio-item-open   { border-color: var(--bio-accent); }
.bio-item-green:hover,  .bio-item-green.bio-item-open  { border-color: var(--bio-green); }
.bio-item-purple:hover, .bio-item-purple.bio-item-open { border-color: var(--bio-purple); }

.bio-item:hover {
    box-shadow: var(--bio-shadow);
}

.bio-item-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.bio-item-header:focus-visible {
    outline: 3px solid var(--bio-primary);
    outline-offset: -3px;
}

.bio-item-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bio-item-blue .bio-item-num   { background: var(--bio-blue-light);   color: var(--bio-primary); }
.bio-item-green .bio-item-num  { background: var(--bio-green-light);  color: var(--bio-green); }
.bio-item-purple .bio-item-num { background: var(--bio-purple-light); color: var(--bio-purple); }

.bio-item-meta {
    flex: 1;
    min-width: 0;
}

.bio-item-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--bio-text);
}

.bio-item-excerpt {
    font-size: 0.84rem;
    color: var(--bio-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-item-status-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bio-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.bio-status-done     { background: var(--bio-green-light);  color: var(--bio-green); }
.bio-status-progress { background: var(--bio-blue-light);   color: var(--bio-primary); }
.bio-status-new      { background: #f3f4f6;                 color: var(--bio-text-muted); }

.bio-item-chevron {
    font-size: 1.4rem;
    color: var(--bio-text-muted);
    transition: transform var(--bio-transition);
    line-height: 1;
}

.bio-item-open .bio-item-chevron,
.bio-item-header[aria-expanded="true"] .bio-item-chevron {
    transform: rotate(90deg);
}

.bio-item-content {
    border-top: 1px solid var(--bio-border);
    animation: bio-slide-down 0.2s ease;
}

@keyframes bio-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bio-item-content-inner {
    padding: 28px 32px 32px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--bio-text);
}

.bio-item-content-inner h1,
.bio-item-content-inner h2,
.bio-item-content-inner h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--bio-text);
}

.bio-item-content-inner p {
    margin-bottom: 16px;
}

.bio-item-content-inner img {
    max-width: 100%;
    border-radius: var(--bio-radius-sm);
}

.bio-item-content-inner pre,
.bio-item-content-inner code {
    background: #f4f6f9;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88em;
}

.bio-item-content-inner pre {
    padding: 16px 20px;
    overflow-x: auto;
}

.bio-item-content-inner code {
    padding: 2px 6px;
}

.bio-loading {
    color: var(--bio-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    min-height: 60px;
}

/* ── Logo bars ──────────────────────────────────────────────────────────────── */

/* Portal logo bar: white pill so logos render in natural colors on dark header */
.bio-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 22px 24px 14px;
    flex-wrap: wrap;
}

.bio-logo-pill {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    flex-wrap: wrap;
    justify-content: center;
}

.bio-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.bio-logo-divider {
    width: 1px;
    height: 32px;
    background: #d1d5db;
    flex-shrink: 0;
}

/* Dashboard logo bar */
.bio-dash-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px 4px;
    flex-wrap: wrap;
}

.bio-dash-logo-pill {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 10px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    flex-wrap: wrap;
    justify-content: center;
}

.bio-dash-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.bio-dash-logo:hover { opacity: 0.85; }

.bio-dash-logo-divider {
    width: 1px;
    height: 28px;
    background: #d1d5db;
    flex-shrink: 0;
}

/* ── Day badge ──────────────────────────────────────────────────────────────── */

.bio-day-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background: rgba(0,17,88,0.08);
    color: var(--bio-primary);
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Course Schedule / Timetable ────────────────────────────────────────────── */

.bio-schedule-wrap {
    margin: 40px auto;
    max-width: 860px;
}

.bio-schedule-header {
    margin-bottom: 20px;
    text-align: center;
}

.bio-schedule-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--bio-primary);
    margin: 0 0 4px;
}

.bio-schedule-dates {
    color: var(--bio-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Day tabs */
.bio-schedule-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bio-schedule-tab {
    flex: 1;
    min-width: 130px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid var(--bio-border);
    border-radius: var(--bio-radius);
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--bio-text);
}

.bio-schedule-tab:hover {
    border-color: var(--day-color, var(--bio-primary));
    background: #f5f7ff;
}

.bio-schedule-tab.bio-schedule-tab-active {
    background: var(--day-color, var(--bio-primary));
    border-color: var(--day-color, var(--bio-primary));
    color: #fff;
}

.bio-sched-tab-day {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.bio-sched-tab-date {
    font-size: 0.78rem;
    opacity: 0.82;
    display: block;
}

/* Day content */
.bio-schedule-day { display: none; }
.bio-schedule-day.bio-schedule-day-active { display: block; }

.bio-sched-day-heading {
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--bio-surface);
    border-radius: 6px;
    font-size: 0.92rem;
    color: var(--bio-text);
}

.bio-sched-theme {
    font-weight: 600;
}

/* Session block */
.bio-sched-session {
    margin-bottom: 20px;
}

.bio-sched-session-label {
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bio-text-muted);
    margin-bottom: 10px;
    padding-left: 4px;
}

.bio-sched-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bio-sched-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bio-surface);
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.bio-sched-item:hover { background: #f0f4ff; }

.bio-sched-type-lecture   { border-left-color: var(--bio-accent); }
.bio-sched-type-practical { border-left-color: var(--bio-green); }
.bio-sched-type-break     { border-left-color: #d4a017; background: #fffbef; }
.bio-sched-type-recap     { border-left-color: #8b8b8b; }
.bio-sched-type-qa        { border-left-color: var(--bio-purple); }

.bio-sched-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bio-text-muted);
    white-space: nowrap;
    font-family: monospace;
}

.bio-sched-desc {
    color: var(--bio-text);
    line-height: 1.4;
}

.bio-sched-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bio-sched-badge-lecture   { background: #deeaff; color: var(--bio-accent); }
.bio-sched-badge-practical { background: #d6f5e8; color: var(--bio-green); }
.bio-sched-badge-break     { background: #fef3cc; color: #7a5a00; }
.bio-sched-badge-recap     { background: #efefef; color: #555; }
.bio-sched-badge-qa        { background: #f0e8ff; color: var(--bio-purple); }

/* Schedule item links */
.bio-sched-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: opacity 0.15s;
}
.bio-sched-link:hover { opacity: 0.72; }

/* ── Slides / Guide download button ────────────────────────────────────────── */
.bio-download-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 8px;
    padding: 14px 16px;
    background: var(--bio-bg);
    border-radius: var(--bio-radius-sm);
    border: 1px solid var(--bio-border);
}

.bio-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s;
    cursor: pointer;
}
.bio-download-btn:hover { transform: translateY(-1px); }

.bio-download-btn-slides {
    background: var(--bio-primary);
    color: #fff;
}
.bio-download-btn-slides:hover { background: var(--bio-primary-light); color: #fff; }

.bio-download-btn-guide {
    background: var(--bio-green);
    color: #fff;
}
.bio-download-btn-guide:hover { background: #15683e; color: #fff; }

/* ── Practical content: step-by-step formatting ─────────────────────────────── */
.bio-item-content-inner pre {
    background: #1e2030;
    color: #c9d1d9;
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 12px 0;
}
.bio-item-content-inner code {
    background: #e8f0fe;
    color: var(--bio-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.bio-item-content-inner pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}
.bio-item-content-inner ol { padding-left: 22px; }
.bio-item-content-inner ol li { margin-bottom: 8px; line-height: 1.6; }
.bio-item-content-inner h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bio-primary);
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--bio-border);
}
.bio-item-content-inner h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bio-text);
    margin: 14px 0 6px;
}

/* ── Quiz system ────────────────────────────────────────────────────────────── */

.bio-quiz {
    max-width: 700px;
    margin: 0 auto;
}

.bio-quiz-question {
    background: var(--bio-surface);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border: 1px solid var(--bio-border);
    transition: box-shadow 0.2s;
}

.bio-quiz-question.answered {
    box-shadow: 0 0 0 2px var(--bio-accent);
}

.bio-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bio-primary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.bio-q-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bio-q-opt {
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    background: #f4f7ff;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--bio-text);
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.bio-q-opt:hover:not(:disabled) {
    background: #deeaff;
    border-color: var(--bio-accent);
    color: var(--bio-primary);
}

.bio-q-opt.correct {
    background: #d6f5e8;
    border-color: var(--bio-green);
    color: #0a5c30;
    font-weight: 600;
}

.bio-q-opt.incorrect {
    background: #ffe4e4;
    border-color: #e04a4a;
    color: #7a1b1b;
}

.bio-q-opt:disabled { cursor: default; }

.bio-q-feedback {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 20px;
}

.bio-q-feedback.feedback-correct { color: var(--bio-green); }
.bio-q-feedback.feedback-incorrect { color: #c0392b; }

.bio-q-timer {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--bio-primary);
    font-size: 0.82rem;
    font-weight: 700;
}
.bio-q-timer.bio-q-timer-warn {
    background: #fff1f1;
    color: #b42318;
}

/* Score panel */
.bio-quiz-score {
    background: linear-gradient(135deg, var(--bio-primary) 0%, #0a45a0 100%);
    color: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    margin-top: 24px;
    box-shadow: 0 6px 20px rgba(0,17,88,0.18);
}

.bio-quiz-score .bio-score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.bio-quiz-score .bio-score-label {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 16px;
}

.bio-quiz-score .bio-score-msg {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* ── Practical checkpoint quiz cards ───────────────────────────────────────── */

.bio-practical-quiz {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d9e3f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    box-shadow: 0 2px 10px rgba(0, 17, 88, 0.06);
}

.bio-practical-quiz h3 {
    margin: 0 0 8px;
}

.bio-practical-options {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.bio-practical-option {
    width: 100%;
    text-align: left;
    border: 1px solid #c7d5ef;
    background: #fff;
    color: var(--bio-text);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bio-practical-option:hover:not(:disabled) {
    border-color: var(--bio-accent);
    background: #eef4ff;
}

.bio-practical-option:disabled {
    cursor: default;
}

.bio-practical-option-correct {
    border-color: #1d7f4f;
    background: #e7f7ee;
}

.bio-practical-option-wrong {
    border-color: #c93c3c;
    background: #fff0f0;
}

.bio-practical-option-correct-key {
    box-shadow: inset 0 0 0 1px #1d7f4f;
}

.bio-practical-feedback {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    line-height: 1.5;
    font-size: 0.9rem;
    display: none;
}

.bio-practical-feedback.is-correct {
    display: block;
    background: #e7f7ee;
    color: #145a36;
}

.bio-practical-feedback.is-wrong {
    display: block;
    background: #fff0f0;
    color: #7a1f1f;
}

/* Responsive */
@media (max-width: 600px) {
    .bio-logo-bar, .bio-dash-logo-bar { padding: 12px 16px 6px; }
    .bio-logo-pill, .bio-dash-logo-pill { gap: 12px; padding: 8px 16px; }
    .bio-logo, .bio-dash-logo { max-height: 32px; }
    .bio-logo-divider, .bio-dash-logo-divider { height: 22px; }
    .bio-schedule-tabs { flex-direction: column; }
    .bio-sched-item { grid-template-columns: 85px 1fr; }
    .bio-sched-badge { display: none; }
}


.bio-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--bio-border);
    border-top-color: var(--bio-primary);
    border-radius: 50%;
    animation: bio-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ── Empty state ────────────────────────────────────────────────────────────── */
.bio-empty-state {
    text-align: center;
    padding: 80px 32px;
    background: var(--bio-card-bg);
    border-radius: var(--bio-radius);
    box-shadow: var(--bio-shadow);
}

.bio-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.bio-empty-state h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bio-text);
}

.bio-empty-state p {
    color: var(--bio-text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ── Login-required notice ──────────────────────────────────────────────────── */
.bio-notice-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-login-notice {
    background: var(--bio-card-bg);
    border-radius: var(--bio-radius);
    box-shadow: var(--bio-shadow);
    padding: 56px 48px;
    text-align: center;
    max-width: 420px;
}

.bio-notice-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.bio-login-notice h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.bio-login-notice p {
    color: var(--bio-text-muted);
    margin: 0 0 28px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bio-portal-wrap {
        padding: 0 12px 40px;
    }

    .bio-portal-box {
        border-radius: 0 0 12px 12px;
    }

    .bio-tab-panel {
        padding: 20px 20px 24px;
    }

    .bio-form-row {
        grid-template-columns: 1fr;
    }

    .bio-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
        gap: 20px;
    }

    .bio-dashboard-title {
        font-size: 1.5rem;
    }

    .bio-module-page-header {
        padding: 28px 24px;
        border-radius: var(--bio-radius-sm);
    }

    .bio-module-page-title {
        font-size: 1.5rem;
    }

    .bio-item-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .bio-item-excerpt {
        display: none;
    }

    .bio-modules-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Live banner ────────────────────────────────────────────────────────────── */
.bio-live-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #001158 0%, #003d9b 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--bio-radius-sm);
    margin-bottom: 18px;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(0,17,88,0.18);
}
.bio-live-banner-green {
    background: linear-gradient(135deg, #0e5c32 0%, #1a7f4b 100%);
}
.bio-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: bio-live-pulse 1.4s ease-in-out infinite;
}
@keyframes bio-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(1.35); }
}

/* ── Practical guide: info/callout boxes ─────────────────────────────────────── */
.bio-item-content-inner .bio-info-box {
    background: #e8f0fe;
    border-left: 4px solid var(--bio-accent);
    border-radius: 0 var(--bio-radius-sm) var(--bio-radius-sm) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--bio-text);
}
.bio-item-content-inner .bio-figure {
    background: var(--bio-bg);
    border: 1px solid var(--bio-border);
    border-radius: var(--bio-radius-sm);
    margin: 20px 0;
    overflow: hidden;
}
.bio-item-content-inner .bio-figure-header {
    background: #2d3748;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    letter-spacing: 0.02em;
}
.bio-item-content-inner .bio-screenshot-area {
    background: #fff;
    border: 2px dashed var(--bio-border);
    border-radius: 0 0 4px 4px;
    margin: 10px;
    padding: 16px 18px;
    font-size: 0.85rem;
    color: var(--bio-text-muted);
    min-height: 80px;
}
.bio-item-content-inner .bio-screenshot-area em {
    display: block;
    color: #8a909a;
    font-style: italic;
    margin-bottom: 8px;
}
.bio-item-content-inner .bio-callout {
    margin: 8px 10px;
    padding: 10px 14px;
    border-radius: var(--bio-radius-sm);
    font-size: 0.85rem;
    line-height: 1.65;
}
.bio-item-content-inner .bio-callout-green  { background: #e8f5ee; border-left: 3px solid #1a7f4b; color: #0e3d21; }
.bio-item-content-inner .bio-callout-blue   { background: #e8f0fe; border-left: 3px solid var(--bio-accent); color: #0a2454; }
.bio-item-content-inner .bio-callout-orange { background: #fff3e0; border-left: 3px solid var(--bio-orange); color: #4a2500; }
.bio-item-content-inner .bio-callout-red    { background: #fdecea; border-left: 3px solid #c0392b; color: #4a0a0a; }
.bio-item-content-inner .bio-callout ul { margin: 6px 0 0; padding-left: 18px; }
.bio-item-content-inner .bio-callout li { margin-bottom: 3px; }

/* QC diagram inside screenshot-area */
.bio-qc-diagram { margin-top: 10px; }
.bio-qc-legend  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.78rem; font-weight: 600; }
.bio-qc-leg-green  { color: #1a7f4b; }
.bio-qc-leg-yellow { color: #c96a00; }
.bio-qc-leg-red    { color: #c0392b; }
.bio-qc-bar-row { display: flex; align-items: center; gap: 10px; }
.bio-qc-pos-label { font-size: 0.78rem; color: var(--bio-text-muted); min-width: 80px; }

/* ── QC comparison table ─────────────────────────────────────────────────────── */
.bio-item-content-inner .bio-qc-compare { margin: 16px 0; overflow-x: auto; }
.bio-item-content-inner .bio-qc-compare table {
    width: 100%; border-collapse: collapse;
    font-size: 0.85rem; background: #fff;
    border: 1px solid var(--bio-border); border-radius: var(--bio-radius-sm);
}
.bio-item-content-inner .bio-qc-compare th {
    background: #2d3748; color: #e2e8f0;
    padding: 8px 12px; text-align: left; font-weight: 600; font-size: 0.82rem;
}
.bio-item-content-inner .bio-qc-compare td {
    padding: 7px 12px; border-top: 1px solid var(--bio-border); vertical-align: middle;
}
.bio-item-content-inner .bio-qc-compare tr:hover td { background: var(--bio-bg); }
.bio-item-content-inner .bio-qc-good { color: #1a7f4b; font-weight: 600; }
.bio-item-content-inner .bio-qc-poor { color: #c0392b; font-weight: 600; }
.bio-item-content-inner .bio-qc-warn { color: #c96a00; font-weight: 600; }

/* ── Module header: force white text over theme heading overrides ────────── */
.bio-module-page-header .bio-module-page-title,
.bio-module-page-header h1.bio-module-page-title {
    color: #fff !important;
}
.bio-module-page-header .bio-module-page-sub {
    color: rgba(255, 255, 255, 0.85) !important;
}
.bio-module-page-header .bio-back-nav,
.bio-module-page-header .bio-back-nav:visited {
    color: rgba(255, 255, 255, 0.75) !important;
}
.bio-module-page-header .bio-back-nav:hover {
    color: #fff !important;
}

/* ── Preparation section ─────────────────────────────────────────────────── */
.bio-prep-section {
    background: var(--bio-bg);
    border-radius: var(--bio-radius-sm);
    border-left: 4px solid var(--bio-accent);
    padding: 18px 22px;
    margin-bottom: 16px;
}
.bio-prep-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bio-primary);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bio-prep-intro {
    font-size: 0.9rem;
    color: var(--bio-text-muted);
    margin: 0 0 12px;
    line-height: 1.6;
}
.bio-prep-section p { margin: 0 0 8px; font-size: 0.9rem; color: var(--bio-text); }
.bio-prep-section ul { margin: 0; padding-left: 20px; line-height: 1.9; font-size: 0.9rem; }
.bio-prep-section a  { color: var(--bio-accent); }
.bio-prep-downloads  { margin-top: 14px; }
/* Richer prep content (headings, tables, code) rendered from intro HTML */
.bio-prep-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--bio-primary); margin: 18px 0 8px; }
.bio-prep-section h3 { font-size: 0.95rem; font-weight: 700; color: var(--bio-primary); margin: 14px 0 6px; }
.bio-prep-section code { background: #e8f4fd; color: #0c4a6e; padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }
.bio-prep-section pre { background: #1e2638; color: #e2e8f0; padding: 12px 16px; border-radius: 8px; overflow-x: auto; font-size: 0.82rem; margin: 8px 0; }
.bio-prep-section table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.88rem; }
.bio-prep-section th { background: #2d3748; color: #e2e8f0; padding: 7px 12px; text-align: left; font-weight: 600; }
.bio-prep-section td { padding: 6px 12px; border-top: 1px solid var(--bio-border); }
.bio-prep-section tr:hover td { background: var(--bio-bg); }

/* ── Inline tooltip ──────────────────────────────────────────────────────── */
.bio-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--bio-accent); color: #fff;
    font-size: 10px; font-weight: 700; font-style: normal;
    cursor: help; position: relative; vertical-align: middle;
    margin-left: 3px; flex-shrink: 0;
    user-select: none;
}
.bio-tip .bio-tip-text {
    display: none; position: absolute;
    left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%);
    background: #1e293b; color: #f1f5f9;
    font-size: 12px; font-weight: 400; line-height: 1.55;
    width: 260px; padding: 9px 12px; border-radius: 7px;
    pointer-events: none; z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    white-space: normal; text-align: left;
}
.bio-tip:hover .bio-tip-text { display: block; }

/* ── Practical slide content tables ─────────────────────────────────────── */
.bio-slide-body .bio-table,
.bio-item-content-inner .bio-table {
    width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.88rem;
}
.bio-slide-body .bio-table th,
.bio-item-content-inner .bio-table th {
    background: #2d3748; color: #e2e8f0; padding: 8px 12px; text-align: left; font-weight: 600; font-size: 0.82rem;
}
.bio-slide-body .bio-table td,
.bio-item-content-inner .bio-table td {
    padding: 7px 12px; border-top: 1px solid var(--bio-border); vertical-align: top;
}
.bio-slide-body .bio-table tr:hover td,
.bio-item-content-inner .bio-table tr:hover td { background: var(--bio-bg); }
.bio-slide-body .bio-qc-good,
.bio-item-content-inner .bio-qc-good { color: #1a7f4b; font-weight: 600; }
.bio-slide-body .bio-qc-poor,
.bio-item-content-inner .bio-qc-poor { color: #c0392b; font-weight: 600; }
.bio-slide-body .bio-qc-warn,
.bio-item-content-inner .bio-qc-warn { color: #c96a00; font-weight: 600; }

/* ── Start button ─────────────────────────────────────────────────────────── */
.bio-start-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0 8px;
}
.bio-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.bio-start-btn-open {
    background: linear-gradient(135deg, #1a7f4b 0%, #22a862 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 127, 75, 0.35);
    animation: bio-start-pulse 2.5s ease-in-out infinite;
}
.bio-start-btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 127, 75, 0.5);
}
@keyframes bio-start-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(26,127,75,0.35); }
    50%       { box-shadow: 0 4px 32px rgba(26,127,75,0.6); }
}
.bio-start-btn-locked {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.bio-lecture-content {
    margin-top: 10px;
}

/* ── Practical tabbed flow ─────────────────────────────────────────────────── */
.bio-practical-tabs {
    border: 1px solid var(--bio-border);
    border-radius: var(--bio-radius);
    overflow: hidden;
    background: var(--bio-card-bg);
}
.bio-practical-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bio-border);
    background: var(--bio-bg);
}
.bio-practical-tab {
    border: 1px solid var(--bio-border);
    background: #fff;
    color: var(--bio-text);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.bio-practical-tab:hover {
    border-color: var(--bio-primary);
    color: var(--bio-primary);
}
.bio-practical-tab-active,
.bio-practical-tab-active:hover {
    background: var(--bio-primary);
    border-color: var(--bio-primary);
    color: #fff;
}
.bio-practical-panel {
    padding-bottom: 8px;
}

/* ── Slideshow ────────────────────────────────────────────────────────────── */
.bio-slideshow {
    background: var(--bio-card-bg);
    border-radius: var(--bio-radius);
    border: 1px solid var(--bio-border);
    overflow: hidden;
}
.bio-slide-progress-bar {
    height: 4px;
    background: var(--bio-border);
}
.bio-slide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bio-primary), var(--bio-accent));
    transition: width 0.35s ease;
}
.bio-slide-header {
    background: var(--bio-bg);
    border-bottom: 1px solid var(--bio-border);
    padding: 14px 24px 12px;
}
.bio-slide-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bio-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
}
.bio-slide-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--bio-primary) !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}
.bio-slide-body {
    padding: 22px 24px;
    min-height: 160px;
}
.bio-slide-body h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bio-primary);
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--bio-border);
}
.bio-slide-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--bio-text); margin: 14px 0 6px; }
.bio-slide-body p, .bio-slide-body li { font-size: 0.9rem; line-height: 1.7; }
.bio-slide-body pre {
    background: #1e2030; color: #c9d1d9;
    padding: 16px 18px; border-radius: 8px;
    overflow-x: auto; font-size: 0.83rem; line-height: 1.6; margin: 12px 0;
}
.bio-slide-body code {
    background: #e8f0fe; color: var(--bio-primary);
    padding: 2px 6px; border-radius: 4px; font-size: 0.85em;
}
.bio-slide-body pre code { background: none; color: inherit; padding: 0; }
.bio-slide-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--bio-border);
    background: var(--bio-bg);
    gap: 12px;
}
.bio-slide-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    border: 2px solid var(--bio-border);
    background: var(--bio-card-bg);
    color: var(--bio-text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    min-width: 110px;
    justify-content: center;
}
.bio-slide-nav-btn:hover:not(:disabled) {
    background: var(--bio-primary);
    border-color: var(--bio-primary);
    color: #fff;
}
.bio-slide-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.bio-slide-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}
.bio-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bio-border);
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
}
.bio-slide-dot-active {
    background: var(--bio-primary);
    transform: scale(1.25);
}
.bio-slide-dot:hover { background: var(--bio-accent); }

