/* ==========================================================================
   Design System - 齐奥 AI 课程网站版 PPT
   Strictly aligned with ZenoGate light blue style guidelines in DESIGN.md
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-blue: #1e62ec;
    --primary-hover: #154cbd;
    --primary-light: #eff6ff;
    --bg-base: #f4f6fa;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-hover: #cbd5e1;
    
    /* Typography Colors */
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    
    /* Semantic Colors */
    --color-info-bg: #eff6ff;
    --color-info-border: #bfdbfe;
    --color-info-text: #1e40af;
    
    --color-warning-bg: #fffbeb;
    --color-warning-border: #fde68a;
    --color-warning-text: #b45309;
    
    --color-danger-bg: #fef2f2;
    --color-danger-border: #fecaca;
    --color-danger-text: #991b1b;
    
    --color-success-bg: #ecfdf5;
    --color-success-border: #a7f3d0;
    --color-success-text: #065f46;

    /* Fonts */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 12px rgba(30, 98, 236, 0.2);
    --shadow-terminal: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-main);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Header Navbar Layout
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    height: 100%;
    display: flex;
    justify-content: center;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    width: 100%;
    height: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: max-width 0.3s ease;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--primary-blue);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.logo-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Switch styling */
.switch-btn {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    background-color: #cbd5e1;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch-slider {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch-btn.active {
    background-color: var(--primary-blue);
}

.switch-btn.active .switch-slider {
    transform: translateX(22px);
}

/* ==========================================================================
   Main Sidebar Layout
   ========================================================================== */

.app-container {
    display: flex;
    padding-top: 70px;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
}

.sidebar-header {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.menu-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    opacity: 0.5;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: #f9fafb;
    color: var(--text-main);
    border-color: var(--border-color);
}

.menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary-blue);
    font-weight: 600;
    border-color: rgba(30, 98, 236, 0.15);
}

.menu-item.active .menu-num {
    background: var(--primary-blue);
    color: #ffffff;
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   Content Area & Flex Grid layout
   ========================================================================== */

.main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    justify-content: center;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.content-area {
    margin-left: 0;
    flex-grow: 1;
    padding: 40px 50px 80px 50px;
    max-width: 1600px;
    width: 100%;
    transition: max-width 0.3s ease;
}

/* Widescreen self-adaptation */
@media (min-width: 1700px) {
    .content-area,
    .nav-container {
        max-width: 1780px;
    }
}

.page-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-section:nth-child(2) { animation-delay: 0.15s; }
.page-section:nth-child(3) { animation-delay: 0.3s; }
.page-section:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.content-column {
    flex: 2.3;
    min-width: 0; /* Prevents flex items from overflowing */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pedagogy sidebar panel */
.pedagogy-column {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    position: sticky;
    top: 110px;
    opacity: 0;
    transform: translateX(30px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 0;
}

/* When active, show the pedagogy column beside content */
body.show-pedagogy .pedagogy-column {
    opacity: 1;
    transform: translateX(0);
    max-height: 1000px;
    pointer-events: auto;
    margin-left: 10px;
}

/* ==========================================================================
   Visual Cards
   ========================================================================== */

.hero-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-blue);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.section-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary-blue);
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 800px;
}

/* ==========================================================================
   Pain Points Section
   ========================================================================== */

.pain-points-intro {
    margin-bottom: 20px;
}

.pain-points-intro h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}

.pain-card {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.pain-icon {
    font-size: 1.5rem;
    color: #ef4444; /* Alert color for pain points */
    background: rgba(239, 68, 68, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.solution-callout {
    background: var(--primary-light);
    border: 1px solid rgba(30, 98, 236, 0.12);
    border-radius: 12px;
    padding: 22px 26px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-info-text);
}

.solution-callout strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ==========================================================================
   AI Application Pyramid Layout
   ========================================================================== */

.pyramid-interactive-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.pyramid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pyramid-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.06));
}

.pyramid-layer {
    fill: #ffffff;
    stroke: var(--border-color);
    stroke-width: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover highlights */
.pyramid-layer:hover {
    fill: #f0f7ff;
    stroke: var(--primary-blue);
    filter: drop-shadow(0 0 4px rgba(30, 98, 236, 0.3));
}

/* Active tier styles */
.pyramid-layer.active {
    fill: var(--primary-blue);
    stroke: var(--primary-hover);
    filter: drop-shadow(0 4px 12px rgba(30, 98, 236, 0.35));
}

.pyramid-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    fill: var(--text-main);
    text-anchor: middle;
    letter-spacing: -0.01em;
}

/* Active text becomes white */
.pyramid-layer.active + .pyramid-text,
.pyramid-layer.active ~ .pyramid-text {
    /* SVG text elements selector hack, handled cleanly in JS by toggling a CSS variable or direct styles.
       But we also declare inline SVG styles. We can target active layers text in JS to make it perfect. */
}

/* Detail Card for Pyramid */
.pyramid-detail-card {
    background: var(--bg-base);
    border: 1px dashed var(--border-hover);
    border-radius: 14px;
    padding: 30px;
    min-height: 290px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pyramid-detail-card.highlight-pulse {
    animation: pulseBorder 0.4s ease;
}

@keyframes pulseBorder {
    0% { border-color: var(--border-hover); }
    50% { border-color: var(--primary-blue); transform: scale(1.01); }
    100% { border-color: var(--border-hover); }
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.detail-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #e2e8f0;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.detail-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    font-size: 0.85rem;
    line-height: 1.4;
}

.detail-label {
    width: 85px;
    font-weight: 600;
    color: var(--text-light);
    flex-shrink: 0;
}

.detail-val {
    color: var(--text-main);
    font-weight: 500;
}

.detail-val.highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

.detail-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-top: 5px;
    line-height: 1.5;
}

/* ==========================================================================
   Three Questions Showcase
   ========================================================================== */

.tabs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-light);
    background: #f3f4f6;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.tab-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    background: #f9fafb;
}

.tab-btn.active {
    border-color: var(--primary-blue);
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active .tab-num {
    background: var(--primary-blue);
    color: #ffffff;
}

.tab-btn.active .tab-title {
    color: var(--primary-blue);
}

.tab-btn.active .tab-role {
    color: #4b6ebd;
}

/* Showcase layout */
.questions-showcase {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 25px;
}

.prompt-side {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prompt-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.prompt-body {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-blue);
    margin-bottom: 20px;
    min-height: 80px;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.prompt-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
}

.prompt-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   Terminal / Console Simulator
   ========================================================================== */

.terminal-container {
    background: #0f172a; /* Slate 900 */
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: var(--shadow-terminal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 380px;
    transition: all 0.3s ease;
}

@media (min-width: 1400px) {
    .terminal-container {
        height: 480px; /* Taller on wide screens to show more data */
    }
}

@media (min-width: 1700px) {
    .terminal-container {
        height: 560px; /* Even taller on ultra-wide screens to showcase the custom table */
    }
}

.terminal-bar {
    background: #1e293b; /* Slate 800 */
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.terminal-model {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.terminal-screen {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Scrollbar customization for terminal */
.terminal-screen::-webkit-scrollbar {
    width: 6px;
}
.terminal-screen::-webkit-scrollbar-track {
    background: #0f172a;
}
.terminal-screen::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

/* Typing cursor animation */
.terminal-screen::after {
    content: "█";
    animation: blinkCursor 0.8s infinite;
    color: #38bdf8;
    margin-left: 2px;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

/* Styling internal structures loaded inside terminal */
.term-line {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.term-cmd {
    color: #38bdf8;
    font-weight: 600;
}

.term-success {
    color: #10b981;
    font-weight: 500;
}

.term-warning {
    color: #f59e0b;
}

.term-info-header {
    color: #60a5fa;
    font-weight: 600;
    border-bottom: 1px dashed #334155;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

/* Custom mini tables rendered in the terminal */
.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.75rem;
}

.terminal-table th {
    text-align: left;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    padding: 4px;
    font-weight: 600;
}

.terminal-table td {
    padding: 4px;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
}

.terminal-table tr:hover td {
    background-color: rgba(56, 189, 248, 0.05);
}

.terminal-table .badge-ok {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.term-block {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 6px 0;
}

.term-block-title {
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ==========================================================================
   Fact / Callout Banner
   ========================================================================== */

.case-additional-fact {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 15px;
}

.fact-icon {
    font-size: 1.25rem;
    color: var(--primary-blue);
    background: var(--primary-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fact-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.fact-content strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.fact-content span {
    color: var(--text-muted);
}

/* ==========================================================================
   Pedagogy Cards Styling
   ========================================================================== */

.pedagogy-card {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pedagogy-header {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-info-text);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    padding-bottom: 12px;
}

.pedagogy-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pedagogy-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pedagogy-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.pedagogy-tag.method {
    background: rgba(30, 98, 236, 0.12);
    color: var(--primary-blue);
}

.pedagogy-tag.design {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.pedagogy-item p {
    font-size: 0.82rem;
    color: #374151; /* Dark grey */
    line-height: 1.45;
}

.pedagogy-item strong {
    color: var(--primary-blue);
}

/* Inline pedagogy blocks shown in scroll mode when sidebar is disabled but notes are enabled */
/* On smaller screens, or if grid is single-column, pedagogy notes flow below the content naturally */
@media (max-width: 1100px) {
    .section-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .pedagogy-column {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   Curriculum Sections Styling (Sections 3 to 8)
   ========================================================================== */

/* concept cards */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.concept-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.concept-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.concept-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.concept-card h4 i {
    color: var(--primary-blue);
}

.concept-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* config blocks */
.config-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.config-block-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.config-block-body {
    padding: 20px;
}

.config-block-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.config-block-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* code box container & copy button */
.code-container {
    margin-top: 15px;
}

.code-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.05em;
}

.code-box {
    background: #0f172a; /* Slate 900 */
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #cbd5e1;
    border: 1px solid #1e293b;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-box code {
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
    margin-right: 15px;
}

/* Copy buttons */
.copy-btn, .copy-btn-inline {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    padding: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.copy-btn:hover, .copy-btn-inline:hover {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.05);
}

.copy-btn:active, .copy-btn-inline:active {
    transform: scale(0.92);
}

.copy-btn-inline {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 5px;
    padding: 2px;
    color: var(--text-light);
}

.copy-btn-inline:hover {
    color: var(--primary-blue);
    background: rgba(30, 98, 236, 0.05);
}

/* Alerts styling */
.alert-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 15px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-box.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning-border);
    color: var(--color-warning-text);
}

.alert-box.alert-warning i {
    color: #d97706;
    font-size: 1rem;
    margin-top: 2px;
}

.alert-box.alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success-text);
}

.alert-box.alert-success i {
    color: #059669;
    font-size: 1rem;
    margin-top: 2px;
}

.config-tip {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -5px;
    margin-bottom: 15px;
}

/* Manual configuration table */
.manual-config-container {
    margin-top: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.manual-config-container h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.manual-config-container .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.82rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.config-table th, .config-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.config-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
}

.config-table tr:last-child td {
    border-bottom: none;
}

.config-table td code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #0f172a;
}

.manual-check-callout {
    background: #eff6ff;
    border-left: 4px solid var(--primary-blue);
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-info-text);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

/* WorkBuddy Tab items */
.wb-tools-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
}

.wb-tools-container h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.wb-tools-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.wb-tab {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wb-tab:hover {
    border-color: var(--border-hover);
    background: #f9fafb;
}

.wb-tab.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(30, 98, 236, 0.15);
}

.wb-tab i {
    font-size: 0.9rem;
}

.wb-tool-detail {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    min-height: 120px;
    box-shadow: var(--shadow-sm);
}

.wb-tool-detail h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
}

.wb-tool-detail p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Excel Simulator styling */
.simulator-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 35px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.sim-header {
    background: #107c41; /* Microsoft Excel Green */
    color: #ffffff;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
    justify-content: center;
}

.sim-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    animation: fadeIn 0.4s ease;
}

.sim-upload-area i {
    font-size: 3rem;
    color: #107c41;
}

.sim-filename {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.sim-filesize {
    font-size: 0.8rem;
    color: var(--text-light);
}

.sim-result-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeIn 0.5s ease-out;
}

.sim-chart-wrapper {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.chart-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.sim-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
}

.bar-label {
    width: 65px;
    font-weight: 700;
    color: var(--text-muted);
}

.bar-track {
    flex-grow: 1;
    height: 16px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.bar-fill.audio { background-color: var(--primary-blue); }
.bar-fill.charger { background-color: #10b981; }
.bar-fill.home { background-color: #f59e0b; }

.bar-val {
    width: 140px;
    font-weight: 600;
    text-align: right;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.sim-text-summary {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.sim-text-summary h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
}

.sim-text-summary p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Codex Info block */
.codex-info-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 35px;
    box-shadow: var(--shadow-sm);
}

.codex-info-header {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1e293b;
}

.codex-info-header i {
    color: #38bdf8;
}

.codex-info-body {
    padding: 25px;
}

.codex-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 30px 0;
}

.cf-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    position: relative;
    transition: border-color 0.2s ease;
}

.cf-item:hover {
    border-color: #38bdf8;
}

.cf-num {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #e2e8f0;
    font-family: var(--font-display);
    line-height: 1;
}

.cf-item h5 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.cf-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.compare-table th, .compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.compare-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--text-muted);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table td:nth-child(1) {
    font-weight: 700;
    width: 15%;
    color: var(--text-main);
}

.compare-table td:nth-child(2) {
    color: var(--text-muted);
    width: 42.5%;
}

.compare-table td:nth-child(3) {
    color: var(--text-main);
    font-weight: 600;
    background: rgba(56, 189, 248, 0.03);
    width: 42.5%;
}

/* Mindsets (Section 5) styling */
.mindset-block {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 35px;
    margin-bottom: 35px;
}

.mindset-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mindset-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.82rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.prompt-compare-table th, .prompt-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.prompt-compare-table tr:last-child td {
    border-bottom: none;
}

.prompt-compare-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
}

.prompt-compare-table td:first-child {
    color: #b91c1c;
    background: #fffbfa;
    width: 45%;
    line-height: 1.45;
}

.prompt-compare-table td:last-child {
    color: #15803d;
    background: #fcfdfd;
    font-weight: 600;
    width: 55%;
    line-height: 1.45;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 25px 0;
    overflow-x: auto;
    padding: 10px 0;
}

.flow-step {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 14px;
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.flow-step.active .step-circle {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 98, 236, 0.15);
}

.step-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-text {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.35;
}

.flow-arrow {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.interview-callout {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.interview-callout p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

.interview-tip {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Department selector styling */
.universal-scenarios-section {
    margin-bottom: 40px;
}

.universal-scenarios-section h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 18px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 10px;
}

.universal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.u-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.u-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.u-icon {
    font-size: 1.3rem;
    color: var(--primary-blue);
    background: var(--primary-light);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.u-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.u-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.dept-filter-container {
    border-top: 1px solid var(--border-color);
    padding-top: 35px;
    margin-top: 35px;
}

.dept-filter-container h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.dept-filter-container .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dept-tabs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.dept-tab {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dept-tab:hover {
    border-color: var(--border-hover);
    background: #f9fafb;
}

.dept-tab.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(30, 98, 236, 0.12);
}

.dept-content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
    min-height: 220px;
}

.dept-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dept-card-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info-text);
    border: 1px solid var(--color-info-border);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-blue);
    border: 1px solid rgba(30, 98, 236, 0.15);
}

.dept-scenarios-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dept-scenarios-list li {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
}

.dept-scenarios-list li::before {
    content: "\f05b"; /* FontAwesome Target crosshair */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.85rem;
    color: var(--primary-blue);
}

.dept-scenarios-list li strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Checklist and Appendix Ref */
.checklists-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0 40px 0;
}

.check-column-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.check-column-box h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.check-column-box h4 i {
    color: var(--primary-blue);
}

.interactive-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interactive-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.interactive-checklist input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.interactive-checklist label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.interactive-checklist input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: var(--text-light);
}

.appendix-ref-container {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 30px;
}

.appendix-ref-container h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.ref-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.ref-table tr:last-child td {
    border-bottom: none;
}

.ref-label {
    font-weight: 700;
    width: 180px;
    color: var(--text-muted);
}

.ref-desc {
    color: var(--text-light);
    text-align: right;
}

.ref-link {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ref-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.placeholder-text {
    background: #fffbeb;
    color: #b45309;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px dashed #fde68a;
    font-family: var(--font-mono);
}

.redline-alert-card {
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.redline-alert-card h4 {
    font-size: 1.05rem;
    color: var(--color-danger-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.redline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.redline-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.redline-item strong {
    font-size: 0.88rem;
    color: var(--color-danger-text);
}

.redline-item p {
    font-size: 0.78rem;
    color: #7f1d1d;
    line-height: 1.45;
}

/* Appendix C (results-section) visual styles */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 25px;
}

.result-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.result-block-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-block-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.result-block-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 95%;
}

.chat-bubble.user-bubble {
    align-self: flex-start;
    width: 100%;
}

.chat-bubble.ai-bubble {
    align-self: flex-start;
    width: calc(100% - 20px);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-left: 20px;
}

.chat-bubble i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.chat-bubble.user-bubble i {
    color: var(--text-light);
}

.chat-bubble.ai-bubble i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.bubble-content {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.chat-bubble.user-bubble .bubble-content {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--primary-light);
    padding: 10px 18px;
    border-radius: 8px 18px 18px 18px;
    border: 1px solid rgba(30, 98, 236, 0.1);
    align-self: flex-start;
    display: inline-block;
    width: auto;
}

.table-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--text-muted);
}

.data-table td code {
    background: #f1f5f9;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #0f172a;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr.success-row {
    background: #f0fdf4;
}

.data-table tr.warning-row {
    background: #fffbeb;
}

.tip-p {
    background: var(--color-info-bg);
    border: 1px solid var(--color-info-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--color-info-text);
    margin: 8px 0;
    line-height: 1.45;
}

.tip-p i {
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-right: 4px;
}

.warning-p {
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--color-danger-text);
    margin: 8px 0;
    line-height: 1.45;
}

.warning-p i {
    font-size: 0.9rem;
    color: #dc2626;
    margin-right: 4px;
}

.sub-block-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 15px;
    border-left: 3px solid var(--primary-blue);
    padding-left: 8px;
    text-transform: uppercase;
}

.data-list {
    padding-left: 20px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-list li {
    line-height: 1.45;
    color: var(--text-muted);
}

.data-list li strong {
    color: var(--text-main);
}

.text-success {
    color: var(--color-success-text) !important;
}

.text-important {
    color: var(--color-warning-text) !important;
}

.mt-2 { margin-top: 10px; }

/* Timeline scan style */
.scan-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    margin-top: 15px;
    padding-left: 20px;
}

.scan-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
}

.scan-timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-display);
    z-index: 1;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 4px #ffffff;
}

.timeline-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.timeline-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.timeline-info p strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.timeline-meta-files {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 5px;
}

.xls-link {
    color: #107c41;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.xls-link::after {
    content: "\f56e"; /* Excel icon / file-excel */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}

.xls-link:hover {
    text-decoration: underline;
    color: #0b592e;
}

.btn-primary {
    background-color: #107c41;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0b592e;
    box-shadow: 0 4px 10px rgba(16, 124, 65, 0.15);
}

/* ==========================================================================
   Responsive & Accessibility adjustments
   ========================================================================== */

@media (max-width: 900px) {
    .sidebar {
        display: none; /* Hide TOC sidebar on small screens */
    }
    
    .nav-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .content-area {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-card {
        padding: 30px 20px;
    }
    
    .pyramid-interactive-container {
        grid-template-columns: 1fr;
    }
    
    .tabs-container {
        grid-template-columns: 1fr;
    }
    
    .questions-showcase {
        grid-template-columns: 1fr;
    }
}
