/* EduConnect - Premium International Design System */

:root {
    /* Premium Color Palette - International & Modern - Blue Theme */
    --primary: #0d6efd;
    --primary-light: #6ea8fe;
    --primary-dark: #0056b3;
    --primary-50: #e7f3ff;
    --primary-100: #cfe7ff;
    --primary-200: #9fcfff;
    --primary-300: #6fb7ff;
    --primary-400: #3f9fff;
    --primary-500: #0d6efd;
    --primary-600: #0a5cc7;
    --primary-700: #084a91;
    --primary-800: #05385b;
    --primary-900: #032625;
    
    /* Secondary - Premium Blue */
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    --secondary-dark: #7c3aed;
    --secondary-50: #faf5ff;
    --secondary-100: #f3e8ff;
    --secondary-200: #e9d5ff;
    --secondary-300: #d8b4fe;
    --secondary-400: #c084fc;
    --secondary-500: #a855f7;
    --secondary-600: #9333ea;
    --secondary-700: #7c3aed;
    --secondary-800: #6b21a8;
    --secondary-900: #581c87;
    
    /* Success - Modern Green */
    --success: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    --success-800: #065f46;
    --success-900: #064e3b;
    
    /* Warning - Premium Orange */
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    /* Danger - Modern Red */
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-900: #7f1d1d;
    
    /* Neutral Colors - Premium Grays */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Surface Colors */
    --surface-primary: #ffffff;
    --surface-secondary: #fafafa;
    --surface-tertiary: #f4f4f5;
    --surface-elevated: #ffffff;
    --surface-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-tertiary: #71717a;
    --text-quaternary: #a1a1aa;
    --text-inverse: #ffffff;
    
    /* Typography - International Font Stack */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Font Sizes - International Scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Spacing Scale - 8px base */
    --space-0: 0;
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;       /* 128px */
    
    /* Border Radius - Modern Scale */
    --radius-none: 0;
    --radius-sm: 0.25rem;   /* 4px */
    --radius-base: 0.375rem; /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;   /* 24px */
    --radius-3xl: 2rem;     /* 32px */
    --radius-full: 9999px;
    
    /* Shadows - Premium System */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-all: all var(--transition-base);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Base Styles - Premium International Design */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--surface-secondary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin: 0 0 var(--space-4) 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-relaxed);
}

/* Text Utilities */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-tertiary) !important; }

/* Font Weight Utilities */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

/* Button System - Premium International Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    cursor: pointer;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:focus {
    outline: 2px solid var(--primary-200);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--text-inverse);
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Outline Primary */
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    border-width: 2px;
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Outline Secondary */
.btn-outline-secondary {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    border-width: 2px;
}

.btn-outline-secondary:hover:not(:disabled) {
    background: var(--secondary);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: var(--text-inverse);
    border-color: var(--success);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
    color: var(--text-inverse);
    border-color: var(--warning);
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--warning-dark) 0%, var(--warning) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: var(--text-inverse);
    border-color: var(--danger);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
    border-radius: var(--radius-2xl);
}

/* Button Variants */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover:not(:disabled) {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Card System - Premium International Design */
.card {
    background: var(--surface-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
    overflow: hidden;
    position: relative;
}

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

.card-header {
    background: var(--surface-secondary);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-6);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    background: var(--surface-secondary);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-6);
}

/* Premium Card Variants */
.card-elevated {
    box-shadow: var(--shadow-lg);
    border: none;
}

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

.card-interactive {
    cursor: pointer;
    transition: var(--transition-all);
}

.card-interactive:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-gradient {
    background: linear-gradient(135deg, var(--surface-primary) 0%, var(--surface-secondary) 100%);
    border: none;
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section - Premium International Design */
.hero-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: var(--space-32) 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--primary-100) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--secondary-100) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--primary-50) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: var(--surface-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Course Cards - Premium International Design */
.course-card {
    background: var(--surface-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: var(--transition-all);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.course-thumbnail {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    position: relative;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.08);
}

.course-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--success);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-info {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.course-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.course-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stars {
    color: var(--warning);
    font-size: var(--text-sm);
}

.course-actions {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

/* Navigation - Premium International Design */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-all);
    overflow: visible;
}

.navbar-brand {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: auto;
    overflow: visible;
}

.navbar-brand img {
    width: auto;
    object-fit: contain;
    margin-top: -50px;
    margin-bottom: -50px;
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary) !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-50);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-100);
}

.dropdown-menu {
    background: var(--surface-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
}

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* Navbar Search Bar */
.navbar-search {
    max-width: 600px;
    min-width: 200px;
}

.navbar-search .form-control {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: none;
}

.navbar-search .input-group-text {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border-right: none;
}

.navbar-search .btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .navbar-search {
        max-width: 100%;
        margin: var(--space-3) 0 !important;
        order: 3;
        width: 100%;
    }
    
    .navbar-search .input-group {
        flex-wrap: nowrap;
    }
    
    .navbar-search .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }
    
    .navbar-search .btn .me-1 {
        display: none;
    }
}

/* Course List Vertical Layout */
.course-list-item {
    transition: var(--transition-all);
    border: 1px solid var(--gray-200);
}

.course-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-thumbnail-list img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions-list {
    padding: var(--space-2);
}

.suggestion-item {
    padding: var(--space-3);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--primary-50);
}

.suggestion-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}

.suggestion-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    color: var(--primary);
    font-size: var(--text-xl);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-instructor {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.suggestion-instructor-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--gray-100);
}

.suggestion-instructor-pic-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
}

.suggestion-loading,
.suggestion-empty,
.suggestion-error {
    padding: var(--space-4);
    text-align: center;
    color: var(--text-secondary);
}

.suggestion-error {
    color: var(--danger);
}

/* Ensure search dropdown appears above other elements */
.navbar-search {
    z-index: 1050;
}

@media (max-width: 991px) {
    .search-suggestions-dropdown {
        max-height: 300px;
    }
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    overflow: visible !important;
}

.navbar .container {
    overflow: visible;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Forms - Premium International Design */
.form-control {
    background: var(--surface-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    transition: var(--transition-all);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-quaternary);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.form-select {
    background: var(--surface-primary);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: var(--transition-all);
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-text {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background: var(--surface-secondary);
    border: 2px solid var(--gray-200);
    border-right: none;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--primary);
}

/* Form Validation */
.is-invalid {
    border-color: var(--danger);
}

.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-100);
}

.is-valid {
    border-color: var(--success);
}

.is-valid:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-100);
}

.invalid-feedback {
    color: var(--danger);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

.valid-feedback {
    color: var(--success);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Dashboard - Premium International Design */
.dashboard-card {
    background: var(--surface-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-200);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition-all);
}

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

.stat-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--surface-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

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

.stat-number {
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--text-2xl);
    color: var(--primary);
}

.stat-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Progress Bars - Premium International Design */
.progress {
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--gray-200);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-sm {
    height: 8px;
}

.progress-lg {
    height: 16px;
}

/* Alerts - Premium International Design */
.alert {
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-800);
    border: 1px solid var(--success-200);
}

.alert-success::before {
    background: var(--success);
}

.alert-danger {
    background: var(--danger-50);
    color: var(--danger-800);
    border: 1px solid var(--danger-200);
}

.alert-danger::before {
    background: var(--danger);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-800);
    border: 1px solid var(--warning-200);
}

.alert-warning::before {
    background: var(--warning);
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

.alert-info::before {
    background: var(--primary);
}

.alert-icon {
    flex-shrink: 0;
    font-size: var(--text-lg);
    margin-top: 2px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-1);
}

.alert-message {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: var(--text-lg);
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-2);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* Video Player */
.video-player {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .course-thumbnail {
        height: 160px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Fixes */
.btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.btn:disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Ensure buttons are always clickable */
a.btn, button.btn {
    text-decoration: none !important;
    display: inline-block !important;
}

/* Specific styling for continue course buttons */
.continue-course-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    user-select: none !important;
}

.continue-course-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.continue-course-btn:active {
    transform: translateY(0) !important;
}

/* Custom Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6ea8fe 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-green-light) 100%);
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius-lg);
}

/* Course Management Styles */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-type-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.resource-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.resource-card:hover {
    border-color: var(--primary-200);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.resource-body {
    flex-grow: 1;
}

.resource-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.assignment-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.assignment-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.assignment-header {
    margin-bottom: 1rem;
}

.assignment-body {
    flex-grow: 1;
}

.assignment-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.assignment-actions {
    margin-top: 1rem;
}

.session-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.session-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.session-header {
    margin-bottom: 1rem;
}

.session-body {
    flex-grow: 1;
}

.session-details {
    margin-bottom: 1rem;
}

.session-link {
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.session-actions {
    margin-top: 1rem;
}

.calendar-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    min-height: 400px;
}

.event-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-icon {
    flex-shrink: 0;
}

.event-content {
    flex-grow: 1;
}

.student-performance-list {
    max-height: 300px;
    overflow-y: auto;
}

.student-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.student-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.student-avatar {
    flex-shrink: 0;
}

.student-info {
    flex-grow: 1;
}

.student-progress {
    flex-shrink: 0;
}

.content-performance-list {
    max-height: 300px;
    overflow-y: auto;
}

.content-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-info {
    flex-grow: 1;
}

.content-stats {
    flex-shrink: 0;
    text-align: right;
}

.metric-item {
    padding: 0.75rem 0;
}

.metric-item:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.report-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.report-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.chart-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    min-height: 300px;
}

.progress-container {
    width: 100%;
}

/* Video Management Styles */
.video-thumbnail {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--gray-100);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for management interface */
@media (max-width: 768px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-card,
    .assignment-card,
    .session-card {
        margin-bottom: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: var(--secondary-green);
}

.status-pending {
    background-color: var(--accent-orange);
}

.status-inactive {
    background-color: var(--gray-400);
}

/* Enhanced table styles */
.table-hover tbody tr:hover {
    background-color: var(--primary-blue-50);
}

.table th {
    border-top: none;
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    background-color: var(--gray-50);
}

.table td {
    border-top: 1px solid var(--gray-200);
    vertical-align: middle;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile First - Base Styles for Small Screens */
@media (max-width: 575.98px) {
    /* Typography - Smaller on mobile */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Cards - Full width on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Buttons - Full width on mobile for primary actions */
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Tables - Horizontal scroll on mobile */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Modals - Full width on mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Navigation - Already handled in base.html but ensure proper spacing */
    .navbar-brand img {
        height: 100px !important;
        max-width: 200px;
    }
    
    /* Hero sections */
    .hero-section {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Course cards */
    .course-card {
        margin-bottom: 1.5rem;
    }
    
    .course-thumbnail {
        height: 180px !important;
    }
    
    /* Stats */
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Dashboard */
    .dashboard-card {
        padding: 1rem !important;
    }
    
    /* Grid adjustments */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Footer */
    footer .row {
        text-align: center;
    }
    
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Text alignment */
    .text-lg-end,
    .text-md-end {
        text-align: center !important;
    }
    
    /* Spacing utilities */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .course-thumbnail {
        height: 200px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .course-thumbnail {
        height: 220px !important;
    }
    
    /* Two column layouts on tablets */
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* Large devices (desktops, 992px and up) - Default styles apply */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Mobile-specific utility classes */
@media (max-width: 767.98px) {
    /* Hide on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Show on mobile */
    .d-mobile-block {
        display: block !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
    
    /* Full width on mobile */
    .w-mobile-100 {
        width: 100% !important;
    }
    
    /* Stack vertically on mobile */
    .flex-mobile-column {
        flex-direction: column !important;
    }
    
    /* Center text on mobile */
    .text-mobile-center {
        text-align: center !important;
    }
    
    /* Remove margins on mobile */
    .m-mobile-0 {
        margin: 0 !important;
    }
    
    /* Smaller padding on mobile */
    .p-mobile-2 {
        padding: 0.5rem !important;
    }
    
    /* Course list adjustments */
    .course-list-item {
        flex-direction: column;
    }
    
    .course-thumbnail-list {
        width: 100%;
        height: 200px;
    }
    
    /* Search suggestions */
    .search-suggestions-dropdown {
        max-height: 300px;
        font-size: 0.9rem;
    }
    
    .suggestion-item {
        padding: 0.75rem;
    }
    
    .suggestion-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    /* Forms - Better mobile experience */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .btn {
        width: 100%;
        margin-top: 0.5rem;
        border-radius: var(--radius-lg) !important;
    }
    
    /* Alerts */
    .alert {
        padding: 1rem !important;
        font-size: 0.9rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Progress bars */
    .progress {
        height: 8px;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
    }
    
    /* Tooltips and popovers */
    .tooltip,
    .popover {
        max-width: calc(100vw - 2rem);
        font-size: 0.875rem;
    }
    
    /* Carousels */
    .carousel-item img {
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Tabs */
    .nav-tabs {
        flex-wrap: wrap;
        border-bottom: none;
    }
    
    .nav-tabs .nav-item {
        flex: 1 1 auto;
        min-width: calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
    
    .nav-tabs .nav-link {
        text-align: center;
        border-radius: var(--radius-lg);
        margin-right: 0.5rem;
    }
    
    /* Accordions */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Lists */
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.875rem;
    }
    
    /* Jumbotron/Hero sections */
    .jumbotron,
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    /* Video players */
    .video-player,
    video {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    /* Code blocks */
    pre,
    code {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    /* Sidebars */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 1.5rem 0 !important;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
    
    .dropdown-item {
        padding: 1rem !important;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .course-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Better focus states for touch */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-200);
        outline-offset: 2px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering */
    img,
    .course-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer,
    .sidebar {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if dark mode is needed */
}

/* Specific component mobile fixes */
@media (max-width: 767.98px) {
    /* Course cards in grid */
    .courses-grid .course-card {
        margin-bottom: 1.5rem;
    }
    
    /* Dashboard stats */
    .dashboard-stats .stat-card {
        margin-bottom: 1rem;
    }
    
    /* Forms with labels */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Input groups */
    .input-group-text {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* File upload areas */
    .file-upload-area {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    /* Rich text editors */
    .rich-text-editor {
        min-height: 200px;
    }
    
    /* Date pickers */
    .datepicker {
        width: 100% !important;
    }
    
    /* Select2 and other custom selects */
    .select2-container {
        width: 100% !important;
    }
    
    /* Charts and graphs */
    .chart-container {
        height: 250px !important;
    }
    
    /* Data tables */
    .dataTables_wrapper {
        overflow-x: auto;
    }
    
    /* Calendar widgets */
    .calendar-widget {
        font-size: 0.875rem;
    }
    
    /* Notification toasts */
    .toast {
        max-width: calc(100vw - 2rem);
        margin: 0.5rem;
    }
    
    /* Loading spinners */
    .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    /* Progress indicators */
    .progress {
        height: 0.5rem;
    }
    
    /* Rating stars */
    .rating-stars {
        font-size: 1.25rem;
    }
    
    /* Social share buttons */
    .social-share {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Comment sections */
    .comment-item {
        padding: 1rem 0;
    }
    
    /* Timeline components */
    .timeline-item {
        padding-left: 2rem;
    }
    
    /* Stepper/Wizard components */
    .stepper {
        flex-direction: column;
    }
    
    .stepper-step {
        margin-bottom: 1rem;
    }
    
    /* Tabs - Mobile friendly */
    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
    }
    
    /* Accordion - Better spacing */
    .accordion-item {
        margin-bottom: 0.5rem;
    }
    
    /* Card decks - Stack on mobile */
    .card-deck {
        flex-direction: column;
    }
    
    /* Card groups - Stack on mobile */
    .card-group {
        flex-direction: column;
    }
    
    /* Image galleries */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing tables */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* Feature lists */
    .feature-list li {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }
    
    /* Icon boxes */
    .icon-box {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Stats counters */
    .stat-counter {
        margin-bottom: 1.5rem;
    }
    
    /* Team member cards */
    .team-card {
        margin-bottom: 1.5rem;
    }
    
    /* Blog post cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Product cards */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    /* Filter sections */
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Search results */
    .search-results {
        padding: 1rem 0;
    }
    
    .search-result-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    /* User profiles */
    .profile-header {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .profile-avatar {
        margin: 0 auto 1rem;
    }
    
    /* Settings pages */
    .settings-section {
        margin-bottom: 2rem;
    }
    
    .settings-form {
        padding: 1rem;
    }
    
    /* Admin panels */
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    /* Data visualization */
    .chart-wrapper {
        padding: 1rem;
        overflow-x: auto;
    }
    
    /* Comparison tables */
    .comparison-table {
        font-size: 0.875rem;
    }
    
    /* Step indicators */
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step-indicator .step {
        flex: 1 1 auto;
        min-width: calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }
}

/* Ensure all images are responsive */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Ensure containers don't overflow */
.container,
.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}