/**
 * CCP Course Standalone Stylesheet
 * Matches CyberLawAcademy.com Theme
 * No external dependencies
 */

/* ============================================
   CSS Variables - Theme Colors
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    --accent: #e53e3e;
    --accent-hover: #c53030;
    
    /* Background Colors */
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --bg-dark: #1a202c;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Status Colors */
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --info: #3182ce;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-hero: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a202c 100%);
    --gradient-accent: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Container Width */
    --container-max: 1200px;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.top-bar a {
    color: var(--text-white);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--text-white);
}

/* ============================================
   Main Navigation
   ============================================ */
.main-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.btn-login {
    background: var(--gradient-primary);
    color: var(--text-white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-md);
    border: none !important;
}

.btn-login:hover {
    background: var(--gradient-accent);
    color: var(--text-white) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.course-hero {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.course-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--text-white);
}

.btn-module {
    background: var(--primary);
    color: var(--text-white);
    width: 100%;
    margin-top: var(--space-md);
}

.btn-module:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

/* ============================================
   Dashboard Section
   ============================================ */
.dashboard-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.dashboard-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.dashboard-title h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.dashboard-title p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.overall-progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.overall-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-bg {
    fill: none;
    stroke: var(--bg-light);
    stroke-width: 8;
}

.progress-fill-circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-label {
    font-size: 0.7rem;
    color: var(--text-light);
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--bg-light);
}

/* ============================================
   Modules Section
   ============================================ */
.modules-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Module Cards */
.module-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.module-card.locked {
    opacity: 0.7;
}

.module-card.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    pointer-events: none;
}

.module-card.module-highlight {
    border: 2px solid var(--accent);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.module-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
}

.module-status {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.module-status.completed {
    background: #c6f6d5;
    color: #22543d;
}

.module-status.unlocked {
    background: #bee3f8;
    color: #2a4365;
}

.module-status.locked {
    background: #fed7d7;
    color: #742a2a;
}

.module-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.module-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.module-card > p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.module-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.module-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text-small {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Lessons List */
.module-lessons-list {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--bg-light);
}

.lesson-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-light);
    transition: all 0.2s;
}

.lesson-link:hover {
    color: var(--primary);
    padding-left: var(--space-sm);
}

.lesson-link.assessment {
    color: var(--primary);
    font-weight: 500;
}

.lesson-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-light);
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--text-light);
}

.lesson-check.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-white);
}

/* ============================================
   Certification Section
   ============================================ */
.certification-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-white);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.cert-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s;
}

.cert-card.unlocked {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.cert-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.cert-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.cert-card > p {
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.exam-specs,
.capstone-specs {
    text-align: left;
    background: var(--bg-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.spec {
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.exam-requirements,
.capstone-deliverables {
    text-align: left;
    margin-bottom: var(--space-md);
}

.exam-requirements h4,
.capstone-deliverables h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.exam-requirements ul,
.capstone-deliverables ol {
    padding-left: var(--space-lg);
    font-size: 0.85rem;
    color: var(--text-medium);
}

.exam-requirements li,
.capstone-deliverables li {
    padding: var(--space-xs) 0;
    list-style: disc;
}

.capstone-deliverables li {
    list-style: decimal;
}

.cert-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.btn-exam,
.btn-capstone {
    width: 100%;
    padding: var(--space-md);
}

.btn-exam {
    background: var(--primary);
    color: var(--text-white);
}

.btn-capstone {
    background: var(--accent);
    color: var(--text-white);
}

/* ============================================
   Syllabus Section
   ============================================ */
.syllabus-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.syllabus-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-item.highlight {
    border: 2px solid var(--accent);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

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

.accordion-content.open {
    max-height: 500px;
}

.accordion-content ul {
    padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
}

.accordion-content li {
    padding: var(--space-sm) 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-light);
    list-style: none;
}

.accordion-content li:last-child {
    border-bottom: none;
}

/* ============================================
   Resources Section
   ============================================ */
.resources-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.resource-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.footer-about p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-contact p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

/* ============================================
   Lesson Page Styles
   ============================================ */
.lesson-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 120px);
}

.lesson-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--bg-light);
    padding: var(--space-lg);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: var(--space-md);
}

.sidebar-header h3 {
    font-size: 1rem;
    color: var(--primary);
}

.sidebar-header p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.sidebar-nav {
    margin-bottom: var(--space-lg);
}

.sidebar-nav a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.sidebar-nav a.current {
    background: var(--primary);
    color: var(--text-white);
}

.sidebar-nav a.completed::before {
    content: '✓ ';
    color: var(--success);
}

.lesson-main {
    padding: var(--space-2xl);
    max-width: 900px;
}

.lesson-header {
    margin-bottom: var(--space-2xl);
}

.lesson-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.lesson-breadcrumb a {
    color: var(--text-light);
}

.lesson-breadcrumb a:hover {
    color: var(--primary);
}

.lesson-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.lesson-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-light);
}

.lesson-content {
    line-height: 1.8;
}

.lesson-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: var(--space-2xl) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--bg-light);
}

.lesson-content h3 {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin: var(--space-xl) 0 var(--space-md);
}

.lesson-content p {
    margin-bottom: var(--space-md);
    color: var(--text-medium);
}

.lesson-content ul,
.lesson-content ol {
    margin: var(--space-md) 0 var(--space-md) var(--space-lg);
}

.lesson-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
    list-style: disc;
}

.lesson-content ol li {
    list-style: decimal;
}

/* Info Boxes */
.info-box {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
    border-left: 4px solid;
}

.info-box.key-point {
    background: #ebf8ff;
    border-color: var(--info);
}

.info-box.legal-note {
    background: #faf5ff;
    border-color: #805ad5;
}

.info-box.warning {
    background: #fffbeb;
    border-color: var(--warning);
}

.info-box.example {
    background: #f0fff4;
    border-color: var(--success);
}

.info-box h4 {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.lesson-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.lesson-content th,
.lesson-content td {
    padding: var(--space-md);
    text-align: left;
    border: 1px solid var(--bg-light);
}

.lesson-content th {
    background: var(--primary);
    color: var(--text-white);
    font-weight: 600;
}

.lesson-content tr:nth-child(even) {
    background: var(--bg-light);
}

.lesson-content tr:hover {
    background: #e2e8f0;
}

/* Lesson Navigation */
.lesson-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-light);
}

.lesson-nav-buttons a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    transition: all 0.3s;
}

.lesson-nav-buttons a:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Complete Button */
.complete-section {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--space-2xl);
}

.complete-section h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.btn-complete {
    background: var(--success);
    color: var(--text-white);
    padding: var(--space-md) var(--space-2xl);
}

.btn-complete:hover {
    background: #2f855a;
    color: var(--text-white);
}

.btn-complete:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.btn-complete.completed {
    background: var(--success);
    cursor: default;
}

/* ============================================
   Assessment Page Styles
   ============================================ */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.assessment-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.assessment-header h1 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.assessment-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.question-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.question-number {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.question-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.option-item.selected {
    border-color: var(--primary);
    background: #ebf8ff;
}

.option-item.correct {
    border-color: var(--success);
    background: #f0fff4;
}

.option-item.incorrect {
    border-color: var(--danger);
    background: #fff5f5;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    margin-right: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-item.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.option-item.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--text-white);
    border-radius: 50%;
}

.explanation-box {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.explanation-box.show {
    display: block;
}

.assessment-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.results-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.results-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
}

.results-status {
    font-size: 1.5rem;
    margin: var(--space-md) 0;
}

.results-status.passed {
    color: var(--success);
}

.results-status.failed {
    color: var(--danger);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .certification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .course-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .lesson-container {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .module-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .top-bar,
    .main-nav,
    .dashboard-section,
    .hero-cta,
    .btn,
    .lesson-sidebar,
    .lesson-nav-buttons,
    .complete-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .lesson-content {
        max-width: 100%;
    }
    
    .info-box {
        border: 1px solid #ccc;
        background: #f9f9f9 !important;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    table {
        page-break-inside: avoid;
    }
}
