@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&family=Kantumruy+Pro:wght@400;600;700&display=swap');

/* AI Lesson - Global Styles */

:root {
    --primary-color: #B8860B; /* Dark Gold */
    --secondary-color: #DAA520; /* GoldenRod */
    --accent-color: #FFD700; /* Gold */
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.3);
    --gold-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary-color);
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background: radial-gradient(circle at top right, #1e293b 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    font-family: 'Kantumruy Pro', 'Battambang', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 2px solid var(--primary-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.nav-link-btn:not(.disabled):hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.nav-link-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

/* ============================================
   BREADCRUMB STYLES
   ============================================ */

.breadcrumb-section {
    padding: 30px 0;
    background: rgba(184, 134, 11, 0.03); /* Subtle gold tint */
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05) 0%, rgba(218, 165, 32, 0.05) 100%);
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 0 30px rgba(184, 134, 11, 0.2);
    position: relative;
    z-index: 1;
    max-width: 14ch;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 400;
    position: relative;
    z-index: 1;
    max-width: 56ch;
}

.hero-support {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 62ch;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-secondary-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.hero-secondary-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.hero-visual-icon {
    font-size: clamp(4rem, 10vw, 7.5rem);
    color: var(--accent-color);
    opacity: 0.85;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.25));
}

/* ============================================
   LESSON CONTAINER
   ============================================ */

.lesson-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
}

.lesson-header {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
    text-align: center;
}

.lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(184, 134, 11, 0.4);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lesson-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff 30%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-left: 4px solid var(--primary-color);
    padding: 40px;
    margin: 40px 0;
    border-radius: var(--border-radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 20px 40px -10px rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.4);
}

.content-section h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 26px;
    display: flex;
    align-items: center;
}

.content-section h4 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 17px;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 12px;
    line-height: 1.8;
    position: relative;
    padding-left: 5px;
}

/* ============================================
   HIGHLIGHT & EXAMPLE BOXES
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.08) 0%, rgba(218, 165, 32, 0.02) 100%);
    border: 1px solid rgba(218, 165, 32, 0.4);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.highlight-box h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.example-box {
    background: #1e293b;
    border: 1px solid var(--text-muted);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 15px;
    color: #e2e8f0;
    overflow-x: auto;
    line-height: 1.6;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.example-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.example-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.before {
    background: rgba(239, 68, 68, 0.08); /* Red tint */
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
}

.after {
    background: rgba(16, 185, 129, 0.08); /* Green tint */
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10b981;
    padding: 20px;
    border-radius: 8px;
}

.before h4 { color: #f87171; }
.after h4 { color: #34d399; }

/* ============================================
   TIP BOXES
   ============================================ */

.tip-box {
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tip-box i {
    color: var(--accent-color);
    font-size: 24px;
    margin-top: 3px;
}

.tip-box strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* ============================================
   FEATURE & CARD STYLES
   ============================================ */

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(184, 134, 11, 0.05);
}

.feature-item h4 {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.lesson-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 16px;
    padding: 25px 35px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    height: auto;
    display: grid;
    grid-template-areas:
        "number title link"
        "number desc link";
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 30px;
    row-gap: 5px;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px -10px rgba(184, 134, 11, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.lesson-card:hover::before {
    opacity: 1;
}

.lesson-card-number {
    grid-area: number;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0;
    color: #fff;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
}

.lesson-card-title {
    grid-area: title;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.lesson-card-description {
    grid-area: desc;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.6;
}

.lesson-card-link {
    grid-area: link;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 15px;
    white-space: nowrap;
}

.lesson-card-anchor {
    color: inherit;
    text-decoration: none;
    display: block;
}

.lesson-card-anchor:hover .lesson-card-link {
    gap: 12px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.lesson-card-anchor:focus-visible {
    outline: none;
}

.lesson-card-anchor:focus-visible .lesson-card {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

/* ============================================
   GRID STYLES
   ============================================ */

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    color: var(--text-primary);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

.lessons-intro {
    color: var(--text-muted);
    max-width: 62ch;
    margin: 0 auto 28px;
}

.about-section {
    padding-bottom: 40px;
}

.about-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-left: 4px solid var(--secondary-color);
    border-radius: 14px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 70ch;
}

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

.about-highlight-item {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
}

.about-highlight-item i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05) 0%, rgba(30, 41, 59, 0.5) 100%);
    padding: 50px 40px;
    border-radius: 20px;
    margin: 50px 0;
    border: 1px solid rgba(184, 134, 11, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(184, 134, 11, 0.2));
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.cta-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(184, 134, 11, 0.4);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: #fff;
}

/* Shared keyboard focus ring for links and buttons */
a:focus-visible,
button:focus-visible,
.navbar-toggler:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

/* ============================================
   TABLES
   ============================================ */

.comparison-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.comparison-table th {
    background: rgba(184, 134, 11, 0.1);
    padding: 18px;
    text-align: left;
    color: var(--accent-color);
    font-weight: 700;
    border-bottom: 2px solid rgba(184, 134, 11, 0.2);
}

.comparison-table td {
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
    padding: 18px;
    color: var(--text-secondary);
}

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

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: linear-gradient(to top, #020617 0%, rgba(15, 23, 42, 0.95) 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    padding: 60px 0 30px;
    margin-top: 80px;
    color: var(--text-muted);
}

.footer-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: var(--transition);
    font-size: 15px;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ============================================
   MISC CARDS & SECTIONS
   ============================================ */

.creative-card, .technique-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.2);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    transition: var(--transition);
}

.creative-card:hover, .technique-card:hover {
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.creative-card h4, .technique-card h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 700;
}

.creative-card p, .technique-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.email-template {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 8px;
    margin: 25px 0;
    font-family: Arial, sans-serif;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.email-template .subject {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: block;
}

.code-block {
    background: #1e293b;
    color: #e0e7ff;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Monaco', monospace;
    margin: 15px 0;
    font-size: 14px;
}

/* ============================================
   SECTION STYLES (Restored & Updated)
   ============================================ */

.section {
    background: rgba(15, 23, 42, 0.6);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(184, 134, 11, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
}

.section h2 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.quick-links {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.quick-links h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.tips {
    background: rgba(184, 134, 11, 0.05);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.tips h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.tips ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-box {
    background: rgba(14, 165, 233, 0.1);
    border-left: 4px solid #0ea5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    color: #e0f2fe;
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    color: #dcfce7;
}

.comparison {
    background: rgba(184, 134, 11, 0.05);
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.comparison-title {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.workflow-step {
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
    border-right: 1px solid rgba(184, 134, 11, 0.1);
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.workflow-step h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 18px;
    margin-top: 0;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 5px 0;
}

.arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 24px;
    margin: 10px 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}


/* ============================================
   CONTAINER STYLES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-lg {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-secondary-link {
        padding: 4px 0;
    }

    .lesson-title {
        font-size: 28px;
    }

    .lesson-card {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .lesson-card-number {
        margin-bottom: 5px;
    }

    .lesson-card-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .lesson-card-link {
        margin-top: 10px;
        padding-left: 0;
        white-space: normal;
    }

    .content-section {
        padding: 20px;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .grid-container {
        gap: 16px;
        padding: 12px 0;
    }

    .navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link-btn {
        width: 100%;
        justify-content: center;
    }

    .header h1 {
        font-size: 2em;
    }

    .stat-number {
        font-size: 28px;
    }

    table {
        font-size: 0.9em;
    }

    th,
    td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .lesson-title {
        font-size: 20px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .stat-number {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   PRESENTATION MODE STYLES
   ============================================ */

body.presentation-mode {
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #000000 100%);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.presentation-mode .navbar,
body.presentation-mode .breadcrumb-section,
body.presentation-mode footer {
    display: none !important;
}

body.presentation-mode .lesson-container {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: block; /* Changed from flex to block to allow scrolling */
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Slide Styles */
body.presentation-mode .lesson-container > *:not(.slide-content) {
    display: none !important;
}

body.presentation-mode .slide-content {
    display: none;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

body.presentation-mode .slide-content.active-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
    animation: slideIn 0.5s ease-out;
    margin: 0 auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typography Scaling for Presentation */
body.presentation-mode .lesson-header {
    text-align: center;
}

body.presentation-mode .lesson-number {
    font-size: 6rem;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    line-height: 120px;
    box-shadow: 0 0 40px rgba(184, 134, 11, 0.4);
}

body.presentation-mode .lesson-title {
    font-size: 5rem;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

body.presentation-mode .lesson-subtitle {
    font-size: 2.5rem;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

body.presentation-mode h3 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    display: inline-block;
}

body.presentation-mode h4 {
    font-size: 2.8rem !important;
    margin-bottom: 30px !important;
}

body.presentation-mode p,
body.presentation-mode li {
    font-size: 2.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

body.presentation-mode .highlight-box,
body.presentation-mode .example-box {
    padding: 40px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.presentation-mode .example-title {
    font-size: 1.8rem;
    padding: 10px 20px;
    margin-bottom: 20px;
    position: static; /* Reset absolute positioning if used */
    display: inline-block;
}

/* Controls */
body.presentation-mode .example-box {
    font-size: 2rem;
    line-height: 1.5;
}

body.presentation-mode pre,
body.presentation-mode code {
    font-size: 1.8rem;
    line-height: 1.4;
}

body.presentation-mode .tip-box {
    font-size: 2rem;
    padding: 30px;
}

body.presentation-mode blockquote {
    font-size: 2.4rem;
    font-style: italic;
    border-left-width: 8px;
    padding-left: 30px;
}

body.presentation-mode .feature-item h4 {
    font-size: 2.2rem;
}

body.presentation-mode .feature-item p {
    font-size: 1.8rem;
}

body.presentation-mode strong,
body.presentation-mode b {
    color: var(--accent-color);
}

.presentation-controls {
    font-size: 1.2rem;
}

.presentation-controls button {
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
}

.presentation-start-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 50px;
    transition: transform 0.2s;
}

.presentation-start-btn:hover {
    transform: scale(1.05);
}
