/* ============================================
   BuildingWithAI.Academy - Main Stylesheet
   ============================================ */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-navy: #1e3a5f;
    --secondary-blue: #2980b9;
    --accent-blue: #3498db;
    --light-blue: #e8f4fc;
    --lighter-blue: #f0f7fc;
    
    /* Orange Accents */
    --orange-accent: #f39c12;
    --warm-orange: #e67e22;
    
    /* Sand/Warm Neutrals */
    --sand-light: #faf6f1;
    --sand-medium: #f5ebe0;
    --sand-accent: #d4a574;
    
    /* Grays */
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    
    /* Status Colors */
    --success-green: #27ae60;
    --light-green: #e8f5e9;
    --warning-orange: #fff3e0;
    --danger-red: #e74c3c;
    --light-red: #ffebee;
    
    /* Layout */
    --sidebar-width: 300px;
    --content-max-width: 900px;
    --header-height: 50px;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Borders & Shadows */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-blue);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Layout: Page Structure
   ============================================ */

.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Top Progress Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.progress-container {
    flex: 1;
    max-width: 400px;
    margin-right: 30px;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--orange-accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.progress-bar-track {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green) 0%, var(--accent-blue) 100%);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

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

.top-nav a {
    font-size: 0.9rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-nav a:hover {
    color: var(--primary-navy);
}

.top-nav .nav-next {
    color: var(--orange-accent);
    font-weight: 600;
}

.top-nav .nav-next:hover {
    color: var(--warm-orange);
}

/* ============================================
   Sidebar Navigation
   ============================================ */

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--white);
    border-right: 1px solid var(--light-gray);
    overflow-y: auto;
    z-index: 90;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.sidebar-course-link {
    color: var(--white);
    text-decoration: none;
    flex: 1;
}

.sidebar-course-link:hover {
    color: var(--light-blue);
}

.sidebar-course-link:hover h2 {
    text-decoration: underline;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Module Index Pages
   ============================================ */

.module-index-content {
    margin-left: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.module-index-content .breadcrumb {
    padding: 20px 0;
}

.module-index-content .progress-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 10px 0;
}

.module-item {
    border-bottom: 1px solid var(--light-gray);
}

.module-header {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.module-header:hover {
    background: var(--light-gray);
}

.module-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.module-indicator.complete {
    background: var(--success-green);
    border-color: var(--success-green);
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 2px;
}

.module-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.module-title a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.module-meta {
    font-size: 0.8rem;
    color: var(--accent-blue);
    cursor: pointer;
}

.module-meta:hover {
    text-decoration: underline;
}

.module-expand {
    color: var(--medium-gray);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color var(--transition-fast);
}

.module-expand svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.module-item.expanded .module-expand svg {
    transform: rotate(180deg);
}

/* Topic List */
.topic-list {
    display: none;
    padding: 0 0 10px 0;
    background: var(--light-gray);
}

.module-item.expanded .topic-list {
    display: block;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 50px;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}

.topic-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.topic-item.current {
    font-weight: 600;
    color: var(--primary-navy);
    background: var(--white);
    border-left: 3px solid var(--orange-accent);
    padding-left: 47px;
}

.topic-indicator {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-indicator.complete {
    background: var(--accent-blue);
}

/* ============================================
   Main Content Area
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.content-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--accent-blue);
}

.breadcrumb span {
    color: var(--medium-gray);
}

.breadcrumb .separator {
    color: var(--medium-gray);
}

.status-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.in-progress {
    background: var(--light-blue);
    color: var(--secondary-blue);
    border: 1px solid var(--accent-blue);
}

.status-badge.complete {
    background: var(--light-green);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

/* Topic Header */
.topic-header {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--white) 50%, var(--light-blue) 100%);
    padding: 50px 40px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    border-bottom: 3px solid var(--accent-blue);
}

.topic-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.topic-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-navy);
    margin-bottom: 15px;
    line-height: 1.3;
}

.topic-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 25px;
}

.topic-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-navy);
    border: 1px solid var(--sand-accent);
}

/* ============================================
   Content Styles
   ============================================ */

.topic-content {
    padding-bottom: 60px;
}

.topic-content h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary-navy);
    margin: 40px 0 20px 0;
}

.topic-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-navy);
    margin: 30px 0 15px 0;
}

.topic-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.topic-content ul, .topic-content ol {
    margin: 0 0 20px 25px;
    color: var(--dark-gray);
}

.topic-content li {
    margin-bottom: 8px;
}

/* Story Context Box */
.story-context {
    background: var(--sand-medium);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 4px solid var(--sand-accent);
}

.story-context p {
    font-style: italic;
    margin-bottom: 0;
}

/* Dialogue Boxes */
.dialogue-box {
    background: var(--white);
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-sm);
}

.dialogue-box.highlight {
    border-left-color: var(--orange-accent);
}

.dialogue-box .speaker {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.dialogue-box .dialogue-text {
    font-style: italic;
    color: var(--dark-gray);
    margin: 0;
}

/* Key Insight Box */
.key-insight {
    background: var(--light-green);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 30px 0;
    border: 1px solid var(--success-green);
}

.key-insight h4 {
    color: var(--success-green);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.key-insight p {
    margin-bottom: 0;
}

/* Warning/Tip Box */
.tip-box {
    background: var(--warning-orange);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 4px solid var(--orange-accent);
}

.tip-box h4 {
    color: var(--warm-orange);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-box p {
    margin-bottom: 0;
}

/* Code Blocks */
.code-block {
    background: var(--dark-gray);
    color: #f8f8f2;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.inline-code {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

/* ============================================
   Progress Section (Bottom of Topic)
   ============================================ */

.progress-section {
    background: var(--sand-medium);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid var(--sand-accent);
}

.progress-section h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.progress-section > p {
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.progress-section .progress-bar-track {
    height: 10px;
    max-width: 500px;
    margin: 0 auto 15px auto;
    background: var(--white);
    border: 1px solid var(--sand-accent);
}

.progress-section .progress-bar-fill {
    background: linear-gradient(90deg, var(--orange-accent) 0%, var(--warm-orange) 100%);
}

.progress-section .progress-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ============================================
   Bottom Navigation
   ============================================ */

.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 50px 0;
    border-top: 1px solid var(--light-gray);
    margin-top: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-button.prev {
    background: var(--primary-navy);
    color: var(--white);
}

.nav-button.prev:hover {
    background: var(--secondary-blue);
    transform: translateX(-3px);
}

.nav-button.next {
    background: var(--orange-accent);
    color: var(--white);
}

.nav-button.next:hover {
    background: var(--warm-orange);
    transform: translateX(3px);
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.back-link {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-decoration: underline;
}

.back-link:hover {
    color: var(--primary-navy);
}

/* ============================================
   Mobile Menu Button
   ============================================ */

.mobile-menu-btn {
    display: none;
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .content-wrapper {
        padding: 0 25px;
    }
    
    .topic-header {
        padding: 40px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 15px;
    }
    
    .progress-container {
        max-width: 200px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 85%;
        max-width: 320px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 85;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .status-badge {
        display: none;
    }
    
    .topic-header {
        padding: 30px 20px;
        border-radius: var(--border-radius);
    }
    
    .topic-number {
        font-size: 2rem;
    }
    
    .topic-title {
        font-size: 1.4rem;
    }
    
    .topic-subtitle {
        font-size: 1rem;
    }
    
    .topic-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .progress-section {
        padding: 30px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .top-nav a span {
        display: none;
    }
    
    .topic-header {
        padding: 25px 15px;
    }
}

/* ============================================
   Interactive Learning Components
   ============================================ */

/* Job Aid / Downloadable Box */
.job-aid-box {
    background: var(--white);
    border: 2px solid var(--accent-blue);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.job-aid-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-accent);
}

.job-aid-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.job-aid-content {
    flex: 1;
}

.job-aid-content h4 {
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.job-aid-content p {
    color: var(--medium-gray);
    margin-bottom: 15px;
    font-size: 0.95em;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all var(--transition-fast);
}

.download-link:hover {
    background: var(--secondary-blue);
    transform: translateX(2px);
    color: var(--white);
}

.download-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* System Requirements Box */
.system-requirements {
    background: var(--light-blue);
    border-left: 4px solid var(--accent-blue);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.system-requirements h4 {
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 1em;
}

.system-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.system-requirements li {
    margin-bottom: 6px;
    color: var(--dark-gray);
}

/* Resources Section */
.resources-section {
    background: var(--sand-light);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--sand-accent);
}

.resources-section h3 {
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.resource-list li::before {
    content: '📚';
    position: absolute;
    left: 0;
    top: 0;
}

.resource-list a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.resource-list a:hover {
    text-decoration: underline;
}

.resource-list .resource-desc {
    color: var(--medium-gray);
    font-size: 0.9em;
    display: block;
    margin-top: 3px;
}

/* Reflection Box */
.reflection-box {
    background: var(--warning-orange);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 30px 0;
    border-left: 4px solid var(--orange-accent);
}

.reflection-box h4 {
    color: var(--warm-orange);
    margin-bottom: 12px;
    font-size: 1.1em;
}

.reflection-box p {
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.reflection-box ul {
    margin: 0;
    padding-left: 25px;
}

.reflection-box li {
    margin-bottom: 8px;
    color: var(--dark-gray);
}

/* Success Check Box */
.success-check {
    background: var(--light-green);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin: 25px 0;
    border: 1px solid var(--success-green);
}

.success-check h4 {
    color: var(--success-green);
    margin-bottom: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-check p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 0.95em;
}

/* Hands-On Activity Box */
.activity-box {
    background: var(--white);
    border: 2px solid var(--success-green);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.activity-box h4 {
    color: var(--success-green);
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-step {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.activity-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--success-green);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
}

/* Pro Tip Callout */
.pro-tip {
    background: var(--light-blue);
    border-left: 4px solid var(--secondary-blue);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.pro-tip h4 {
    color: var(--secondary-blue);
    margin-bottom: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-tip p {
    color: var(--dark-gray);
    margin: 0;
    font-size: 0.95em;
}

/* Checklist Box */
.checklist-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

.checklist-box h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.checklist-item:hover {
    background: var(--light-gray);
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-item-text {
    flex: 1;
    color: var(--dark-gray);
    font-size: 0.95em;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .job-aid-box {
        flex-direction: column;
        text-align: center;
    }
    
    .job-aid-icon {
        font-size: 2.5em;
    }
    
    .resources-section,
    .reflection-box {
        padding: 20px;
    }
    
    .activity-step {
        padding-left: 35px;
    }
}
    
    .topic-number {
        font-size: 1.6rem;
    }
    
    .topic-title {
        font-size: 1.2rem;
    }
    
    .dialogue-box, .key-insight, .tip-box, .story-context {
        padding: 20px;
    }
}

/* ============================================
   Action Prompts (Replaces Reflection Questions)
   ============================================ */

.action-prompt {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid var(--orange-accent);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.action-prompt h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.action-prompt p {
    margin-bottom: 15px;
}

.action-prompt p:last-child {
    margin-bottom: 0;
}

.action-prompt ul, .action-prompt ol {
    margin: 15px 0 15px 25px;
}

.action-prompt li {
    margin-bottom: 8px;
}

.action-prompt code, .action-prompt .inline-code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier', monospace;
}

.action-prompt strong {
    color: var(--primary-navy);
}

/* ===== AI E-Learning Course Component Styles ===== */


/* Base styles from styles.css */
:root {
--primary-navy: #1e3a5f;
--secondary-blue: #2980b9;
--accent-blue: #3498db;
--light-blue: #e8f4fc;
--orange-accent: #f39c12;
--warm-orange: #e67e22;
--sand-light: #faf6f1;
--sand-medium: #f5ebe0;
--sand-accent: #d4a574;
--light-gray: #f8f9fa;
--medium-gray: #6c757d;
--dark-gray: #343a40;
--white: #ffffff;
--success-green: #27ae60;
--light-green: #e8f5e9;
--warning-orange: #fff3e0;
--danger-red: #e74c3c;
--light-red: #ffebee;
}

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

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--dark-gray);
background: var(--white);
}


/* Top bar */
.top-bar {
background: var(--white);
border-bottom: 1px solid var(--light-gray);
padding: 15px 5%;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
}

.progress-container {
display: flex;
align-items: center;
gap: 15px;
}

.progress-label {
font-size: 0.85rem;
font-weight: 600;
color: var(--accent-blue);
}

.progress-bar-track {
width: 200px;
height: 6px;
background: var(--light-gray);
border-radius: 10px;
overflow: hidden;
}

.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue));
transition: width 0.3s ease;
}

.top-nav {
display: flex;
gap: 20px;
}

.nav-prev, .nav-next {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: var(--sand-light);
border: 1px solid var(--sand-accent);
border-radius: 6px;
text-decoration: none;
color: var(--primary-navy);
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover {
background: var(--accent-blue);
color: white;
border-color: var(--accent-blue);
}

/* Sidebar */
.sidebar {
position: fixed;
left: 0;
top: 60px;
width: 300px;
height: calc(100vh - 60px);
background: var(--white);
border-right: 1px solid var(--light-gray);
overflow-y: auto;
z-index: 90;
}

.sidebar-header {
padding: 20px;
border-bottom: 1px solid var(--light-gray);
position: sticky;
top: 0;
background: var(--white);
z-index: 10;
}

.sidebar-header h2 {
font-size: 1.2em;
color: var(--primary-navy);
margin: 0;
}

.sidebar-nav {
padding: 20px 0;
}

.module-item {
margin-bottom: 10px;
}

.module-header {
padding: 12px 20px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
transition: background 0.3s ease;
}

.module-header:hover {
background: var(--sand-light);
}

.module-indicator {
width: 24px;
height: 24px;
border-radius: 50%;
border: 2px solid var(--medium-gray);
flex-shrink: 0;
}

.module-indicator.complete {
background: var(--success-green);
border-color: var(--success-green);
}

.module-info {
flex: 1;
}

.module-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--primary-navy);
}

.module-title a {
color: inherit;
text-decoration: none;
}

.module-meta {
font-size: 0.8rem;
color: var(--medium-gray);
}

.module-expand {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}

.module-item.expanded .module-expand {
transform: rotate(180deg);
}

.topic-list {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}

.module-item.expanded .topic-list {
max-height: 500px;
}

.topic-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 20px 10px 56px;
text-decoration: none;
color: var(--dark-gray);
font-size: 0.9rem;
transition: all 0.3s ease;
}

.topic-item:hover {
background: var(--sand-light);
color: var(--accent-blue);
}

.topic-item.current {
background: var(--light-blue);
color: var(--accent-blue);
font-weight: 600;
}

.topic-indicator {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid var(--medium-gray);
flex-shrink: 0;
}

.topic-indicator.complete {
background: var(--success-green);
border-color: var(--success-green);
}

/* Page wrapper with sidebar */
.page-wrapper {
margin-left: 300px;
min-height: 100vh;
}

.main-content {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}

/* Breadcrumb */
.breadcrumb {
padding: 20px 0;
font-size: 0.9rem;
}

.breadcrumb a {
color: var(--accent-blue);
text-decoration: none;
}

.breadcrumb a:hover {
text-decoration: underline;
}

.separator {
margin: 0 10px;
color: var(--medium-gray);
}

/* Bottom navigation */
.bottom-nav {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 60px;
padding-top: 40px;
border-top: 2px solid var(--sand-accent);
}

.nav-button {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 24px;
background: var(--accent-blue);
color: white;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}

.nav-button:hover {
background: var(--secondary-blue);
transform: translateY(-2px);
}

.nav-button.prev {
background: var(--sand-light);
color: var(--primary-navy);
border: 1px solid var(--sand-accent);
}

.nav-button.prev:hover {
background: var(--sand-medium);
}

.nav-center {
text-align: center;
}

.back-link {
color: var(--accent-blue);
text-decoration: none;
font-size: 0.9rem;
}

.back-link:hover {
text-decoration: underline;
}

/* Mobile menu */
.mobile-menu-btn {
display: none;
position: fixed;
bottom: 20px;
right: 20px;
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--accent-blue);
color: white;
border: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
cursor: pointer;
z-index: 300;
}

.sidebar-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 150;
}

@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
transition: transform 0.3s ease;
}

.sidebar.active {
transform: translateX(0);
}

.sidebar-overlay.active {
display: block;
}

.page-wrapper {
margin-left: 0;
}

.mobile-menu-btn {
display: flex;
align-items: center;
justify-content: center;
}

.top-nav {
display: none;
}

.progress-bar-track {
width: 120px;
}
}

/* Topic header */
.topic-header {
text-align: center;
margin: 40px auto 60px;
max-width: 900px;
}

.topic-number {
display: inline-block;
background: var(--accent-blue);
color: white;
padding: 8px 20px;
border-radius: 20px;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 20px;
}

.topic-title {
font-size: 2.5em;
color: var(--primary-navy);
margin: 20px 0 15px 0;
font-weight: 300;
line-height: 1.2;
}

.topic-subtitle {
font-size: 1.2em;
color: var(--secondary-blue);
margin-bottom: 20px;
}

.topic-meta {
display: flex;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}

.meta-tag {
display: inline-block;
padding: 6px 15px;
border-radius: 15px;
font-size: 0.85rem;
border: 1px solid var(--sand-accent);
background: var(--sand-light);
}

/* Article styles */
article {
max-width: 900px;
margin: 0 auto;
padding: 40px 20px;
}

article h2 {
color: var(--primary-navy);
font-size: 1.8em;
font-weight: 400;
margin-top: 60px;
margin-bottom: 25px;
padding-top: 20px;
}

article h2:first-of-type { margin-top: 0; }

article h3 {
color: var(--primary-navy);
font-size: 1.3em;
margin-top: 25px;
margin-bottom: 15px;
}

article p {
margin-bottom: 20px;
line-height: 1.8;
color: var(--dark-gray);
}

article ul, article ol {
margin: 20px 0;
padding-left: 30px;
}

article li {
margin-bottom: 10px;
line-height: 1.7;
}

article strong {
font-weight: 600;
color: var(--primary-navy);
}

/* Accordion styles */
.accordion {
margin: 30px 0;
}

.accordion-item {
background: var(--white);
border: 2px solid var(--sand-accent);
border-radius: 12px;
margin-bottom: 15px;
overflow: hidden;
transition: all 0.3s ease;
}

.accordion-item:hover {
border-color: var(--accent-blue);
}

.accordion-header {
padding: 20px 25px;
background: var(--sand-light);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 600;
color: var(--primary-navy);
user-select: none;
}

.accordion-header:hover {
background: var(--sand-medium);
}

.accordion-icon {
transition: transform 0.3s ease;
font-size: 1.2em;
color: var(--accent-blue);
}

.accordion-item.active .accordion-icon {
transform: rotate(180deg);
}

.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
max-height: 2000px;
}

.accordion-inner {
padding: 25px;
border-top: 1px solid var(--sand-accent);
}

/* Prompt box with copy button */
.prompt-box {
background: var(--sand-light);
border: 2px solid var(--sand-accent);
border-radius: 12px;
padding: 25px;
margin: 25px 0;
position: relative;
}

.prompt-box-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}

.prompt-box-title {
font-weight: 600;
color: var(--primary-navy);
font-size: 1.1em;
}

.copy-button {
padding: 8px 16px;
background: var(--accent-blue);
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.9em;
font-weight: 600;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 6px;
}

.copy-button:hover {
background: var(--secondary-blue);
transform: translateY(-2px);
}

.copy-button.copied {
background: var(--success-green);
}

.prompt-content {
background: white;
padding: 20px;
border-radius: 8px;
border-left: 4px solid var(--accent-blue);
font-family: 'Courier New', monospace;
font-size: 0.95em;
line-height: 1.7;
white-space: pre-wrap;
}

/* Comparison cards */
.comparison-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 25px;
margin: 30px 0;
}

.comparison-card {
background: var(--white);
border: 2px solid var(--sand-accent);
border-radius: 12px;
padding: 25px;
}

.comparison-card.before {
border-color: var(--danger-red);
background: linear-gradient(to bottom, var(--light-red), var(--white));
}

.comparison-card.after {
border-color: var(--success-green);
background: linear-gradient(to bottom, var(--light-green), var(--white));
}

.comparison-card h3 {
margin-top: 0;
margin-bottom: 15px;
color: var(--primary-navy);
}

.comparison-card ul {
margin: 0;
padding-left: 20px;
}

.comparison-card li {
margin-bottom: 10px;
line-height: 1.6;
}

/* Tip box */
.tip-box {
background: var(--warning-orange);
border-left: 4px solid var(--orange-accent);
padding: 20px;
border-radius: 8px;
margin: 20px 0;
}

.tip-box h4 {
margin-top: 0;
margin-bottom: 10px;
color: var(--primary-navy);
}

.tip-box p {
margin-bottom: 8px;
}

.tip-box p:last-child {
margin-bottom: 0;
}

/* Action prompt */
.action-prompt {
background: var(--light-blue);
border-left: 4px solid var(--accent-blue);
padding: 25px;
border-radius: 8px;
margin: 30px 0;
}

.action-prompt h4 {
margin-top: 0;
margin-bottom: 15px;
color: var(--primary-navy);
}

/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}

thead tr {
background: var(--sand-medium);
}

th, td {
padding: 12px;
text-align: left;
border: 1px solid var(--sand-accent);
}

tbody tr:nth-child(even) {
background: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
.comparison-grid {
grid-template-columns: 1fr;
}

.topic-title {
font-size: 2em;
}
}

/* ===== AI Course Index Styles ===== */

:root {
            --primary-navy: #1e3a5f;
            --secondary-blue: #2980b9;
            --accent-blue: #3498db;
            --light-blue: #e8f4fc;
            --orange-accent: #f39c12;
            --warm-orange: #e67e22;
            --sand-light: #faf6f1;
            --sand-medium: #f5ebe0;
            --sand-accent: #d4a574;
            --light-gray: #f8f9fa;
            --medium-gray: #6c757d;
            --dark-gray: #343a40;
            --white: #ffffff;
            --success-green: #27ae60;
            --light-green: #e8f5e9;
            --warning-orange: #fff3e0;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background: var(--white);
        }
        
        /* Navigation */
        .site-nav {
            background: var(--white);
            padding: 15px 5%;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .site-nav a { color: var(--medium-gray); text-decoration: none; font-size: 0.95rem; }
        .site-nav a:hover { color: var(--primary-navy); }
        .nav-links { display: flex; gap: 30px; }
        .nav-links a.active { color: var(--primary-navy); font-weight: 600; }
        .site-logo { font-weight: 600; color: var(--primary-navy); font-size: 1.1rem; }
        .site-logo span { color: var(--accent-blue); }
        
        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, var(--sand-light) 0%, var(--white) 50%, var(--light-blue) 100%);
            padding: 80px 5%;
            text-align: center;
            border-bottom: 3px solid var(--accent-blue);
        }
        
        .hero-content { max-width: 900px; margin: 0 auto; }
        
        .hero-title {
            font-size: 2.8em;
            font-weight: 300;
            margin-bottom: 15px;
            color: var(--primary-navy);
            line-height: 1.2;
        }
        
        .hero-subtitle {
            font-size: 1.3em;
            margin-bottom: 20px;
            color: var(--secondary-blue);
        }
        
        .course-stats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .stat-item {
            text-align: center;
            background: var(--white);
            padding: 20px 25px;
            border-radius: 15px;
            border: 2px solid var(--accent-blue);
            min-width: 120px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
        }
        
        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
            border-color: var(--orange-accent);
        }
        
        .stat-number {
            font-size: 2.5em;
            font-weight: 600;
            display: block;
            color: var(--primary-navy);
        }
        
        .stat-label {
            font-size: 0.9em;
            color: var(--medium-gray);
        }
        
        /* Sections */
        .section {
            padding: 70px 5%;
            background: var(--white);
        }
        
        .section.alt-bg { background: var(--light-gray); }
        .section.sand-bg { background: var(--sand-light); }
        
        .section-content { max-width: 1000px; margin: 0 auto; }
        
        .section-title {
            font-size: 2em;
            margin-bottom: 30px;
            color: var(--primary-navy);
            font-weight: 400;
            text-align: center;
        }
        
        /* What You'll Learn */
        .learn-highlight {
            background: var(--light-blue);
            border-left: 4px solid var(--accent-blue);
            border-radius: 12px;
            padding: 40px;
            margin: 30px 0;
        }
        
        .learn-highlight h3 {
            color: var(--primary-navy);
            font-size: 1.5em;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .learn-category {
            margin: 20px 0;
        }
        
        .learn-category-title {
            font-weight: 600;
            color: var(--primary-navy);
            margin-bottom: 8px;
        }
        
        .learn-category p {
            color: var(--dark-gray);
            margin-left: 15px;
        }
        
        /* Who This Is For */
        .audience-highlight {
            background: var(--warning-orange);
            border-left: 4px solid var(--orange-accent);
            border-radius: 12px;
            padding: 40px;
            margin: 30px 0;
        }
        
        .audience-highlight h3 {
            color: var(--primary-navy);
            font-size: 1.5em;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .audience-intro {
            font-weight: 600;
            color: var(--primary-navy);
            margin-bottom: 15px;
        }
        
        .audience-highlight ul {
            list-style: none;
            margin-left: 0;
        }
        
        .audience-highlight li {
            padding: 8px 0 8px 25px;
            position: relative;
            color: var(--dark-gray);
        }
        
        .audience-highlight li:before {
            content: "•";
            position: absolute;
            left: 5px;
            color: var(--orange-accent);
            font-size: 1.5em;
        }
        
        /* Timeline */
        .module-timeline {
            margin-top: 40px;
        }
        
        .timeline-item {
            display: grid;
            grid-template-columns: 60px 1fr 100px;
            gap: 20px;
            align-items: start;
            margin-bottom: 35px;
            padding-bottom: 35px;
            border-bottom: 1px solid var(--sand-medium);
        }
        
        .timeline-item:last-child {
            border-bottom: none;
        }
        
        .timeline-number {
            width: 50px;
            height: 50px;
            background: var(--accent-blue);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3em;
            font-weight: 600;
            box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
        }
        
        .timeline-content h4 {
            color: var(--primary-navy);
            margin-bottom: 10px;
            font-size: 1.2em;
        }
        
        .timeline-content h4 a {
            color: var(--primary-navy);
            text-decoration: none;
        }
        
        .timeline-content h4 a:hover {
            color: var(--accent-blue);
            text-decoration: underline;
        }
        
        .timeline-content p {
            color: var(--dark-gray);
            line-height: 1.6;
        }
        
        .timeline-duration {
            text-align: right;
            color: var(--medium-gray);
            font-weight: 600;
            padding-top: 5px;
        }
        
        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
            color: var(--white);
            padding: 80px 5%;
            text-align: center;
        }
        
        .cta-section h2 {
            color: #ffffff;
            margin-bottom: 20px;
            font-size: 2em;
            font-weight: 400;
        }
        
        .cta-section p {
            color: rgba(255,255,255,0.9);
            font-size: 1.2em;
            margin-bottom: 35px;
        }
        
        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--orange-accent);
            color: var(--white);
            padding: 18px 50px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1em;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
        }
        
        .cta-button:hover {
            background: var(--warm-orange);
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
            color: var(--white);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero-section { padding: 50px 5%; }
            .hero-title { font-size: 2em; }
            .hero-subtitle { font-size: 1.1em; }
            .nav-links { display: none; }
            .timeline-item {
                grid-template-columns: 50px 1fr;
                gap: 15px;
            }
            .timeline-duration {
                grid-column: 2;
                text-align: left;
                margin-top: -10px;
            }
        }
    
        .module-cards { max-width: 1000px; margin: 0 auto; }
        
        .module-card {
            background: var(--white);
            border-radius: 12px;
            margin-bottom: 15px;
            border: 1px solid #eee;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        }
        
        .module-card-header {
            display: flex;
            align-items: center;
            padding: 20px 25px;
            gap: 15px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .module-card-header:hover { background: var(--light-gray); }
        
        .module-card .module-indicator {
            width: 24px;
            height: 24px;
            border: 2px solid var(--medium-gray);
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .module-card-info { flex: 1; }
        
        .module-card-title {
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--dark-gray);
            margin-bottom: 4px;
            text-decoration: none;
            display: block;
        }
        
        a.module-card-title:hover {
            color: var(--accent-blue);
            text-decoration: underline;
        }
        
        .module-card-meta {
            font-size: 0.85rem;
            color: var(--medium-gray);
        }
        
        .module-card-expand {
            color: var(--medium-gray);
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
        }
        
        .module-card-expand svg {
            width: 20px;
            height: 20px;
            transition: transform 0.2s ease;
        }
        
        .module-card.expanded .module-card-expand svg { transform: rotate(180deg); }
        .module-card.expanded .module-card-expand span::before { content: 'Collapse'; }
        .module-card:not(.expanded) .module-card-expand span::before { content: 'Expand'; }
        
        .module-card-topics {
            display: none;
            padding: 0 25px 20px 64px;
            background: var(--light-gray);
        }
        
        .module-card.expanded .module-card-topics { display: block; }
        
        .module-card-topic {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            color: var(--dark-gray);
            text-decoration: none;
            border-radius: 8px;
            transition: background 0.2s ease;
        }
        
        .module-card-topic:hover { background: var(--white); }
        
        .module-card-topic .topic-indicator {
            width: 16px;
            height: 16px;
            border: 2px solid var(--accent-blue);
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .course-content-section {
            padding: 60px 5%;
            background: var(--white);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1000px;
            margin: 0 auto 30px auto;
        }
        
        .expand-all-btn {
            background: var(--white);
            border: 1px solid var(--accent-blue);
            color: var(--accent-blue);
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }
        
        .expand-all-btn:hover {
            background: var(--accent-blue);
            color: var(--white);
        }
        
        .expand-all-btn svg {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }
        
        .expand-all-btn.expanded svg { transform: rotate(180deg); }
        .expand-all-btn.expanded span::before { content: 'Collapse All'; }
        .expand-all-btn:not(.expanded) span::before { content: 'Expand All'; }