/* professional.css - COMPLETE & CONSOLIDATED DESIGN SYSTEM */
:root {
--primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0EA5E9; /* Sky Blue */
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    /* Secondary Colors (Soft Gold/Yellow - Warmth, Awards, CTA) */
    --secondary-50: #fffbeb;
    --secondary-100: #fef3c7;
    --secondary-200: #fde68a;
    --secondary-300: #fcd34d; /* Soft Gold/Yellow CTA */
    --secondary-400: #fbbf24;
    --secondary-500: #f59e0b;
    --secondary-600: #d97706;
    --secondary-700: #b45309;
    --secondary-800: #92400e;
    --secondary-900: #78350f;
    /* Neutral Colors - Can be kept as is, but this ensures a dark text color */
    --gray-900: #111827;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --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 */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    padding-top: 80px; /* Adjust for fixed navbar */
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { 
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h2 { 
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-6);
}

h3 { 
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

h4 { 
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

h5 { 
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

h6 { 
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-relaxed);
    color: var(--gray-600);
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    background-clip: text; /* Add this line to silence the warning */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support fill-color */
}
/* Professional Navigation */
.navbar-pro {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
}

.navbar-pro.scrolled {
    padding: var(--space-3) 0;
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--primary-700);
}

.nav-logo i {
    font-size: var(--font-size-2xl);
}

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

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-600);
    border-radius: 50%;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.user-avatar:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-100);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: var(--z-dropdown);
    border: 1px solid var(--gray-200);
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(var(--space-2));
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
}

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

.dropdown-item.logout {
    color: var(--error-600);
}

.dropdown-item.logout:hover {
    background: var(--error-50);
    color: var(--error-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-500);
    color: #c0392b;
}

.btn-danger:hover {
    background: var(--error-600);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-500);
   color: #21cd38;
}

.btn-success:hover {
    background: var(--success-600);
    transform: translateY(-1px);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

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

/* Generic Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: white;
    padding: var(--space-12) 0;
    text-align: center;
}
.page-hero h1 {
    color: white;
}
.page-hero p {
    color: var(--primary-100);
    font-size: var(--font-size-lg);
    margin-bottom: 0;
}

/* Homepage Hero Section */
.hero-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    text-align: center;
}
.hero-content h1 {
    color: white;
}
.hero-subtitle {
    font-size: var(--font-size-xl);
    max-width: 700px;
    margin: 0 auto var(--space-8);
    color: var(--primary-100);
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
}
.stat {
    text-align: center;
}
.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}
.stat-label {
    font-size: var(--font-size-sm);
    color: var(--primary-200);
}

/* Features Section */
.features-section {
    padding: var(--space-16) 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}
.feature-card {
    text-align: center;
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon i {
    font-size: var(--font-size-2xl);
    color: var(--primary-600);
}
.feature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

/* Courses Preview & Cards */
.courses-preview-section, .courses-grid-section {
    padding: var(--space-16) 0;
}

.courses-preview-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-8);
}

.course-preview-card, .course-card-pro {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-preview-card:hover, .course-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-preview-header, .course-card-header {
    position: relative;
}

.course-preview-header img, .course-card-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--primary-500);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}
.course-badge.free { background: var(--success-500); }
.course-badge.new { background: var(--warning-500); }

.course-preview-body, .course-card-body {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-preview-body h3, .course-card-body h3 {
    font-size: var(--font-size-lg);
}
.course-meta {
    margin-top: auto;
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}
.course-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.course-preview-footer, .course-card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-price .current-price, .course-price .price-current {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}
.course-price .original-price, .course-price .price-original {
    text-decoration: line-through;
    color: var(--gray-400);
    margin-left: var(--space-2);
}
.course-price .price-free {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--success-600);
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-16) 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}
.testimonial-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.testimonial-rating {
    color: var(--warning-500);
    margin-bottom: var(--space-3);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h4 {
    margin-bottom: 0;
}
.author-info span {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* About Page Specific Styles */
.mission-vision { padding: var(--space-16) 0; }
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}
.mission-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.mission-icon {
    font-size: var(--font-size-4xl);
    color: var(--primary-500);
    margin-bottom: var(--space-4);
}

.founder-section { padding: var(--space-16) 0; background: var(--gray-100); }
.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: center;
}
.founder-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.founder-title {
    font-size: var(--font-size-lg);
    color: var(--primary-600);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
}
.founder-qualifications ul {
    list-style: none;
    padding-left: 0;
}
.founder-qualifications li {
    padding-left: var(--space-6);
    position: relative;
    margin-bottom: var(--space-2);
}
.founder-qualifications li::before {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-500);
    position: absolute;
    left: 0;
    top: 0;
}

.why-choose-us { padding: var(--space-16) 0; text-align: center; }
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}
.reason-card {
    position: relative;
    padding: var(--space-6);
}
.reason-number {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-200);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}
.reason-card h3, .reason-card p {
    position: relative;
    z-index: 1;
}

/* Article Page Styles */
.article-page { padding: var(--space-8) 0; }
.article-content .container {
    max-width: 800px;
}
.breadcrumb {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}
.breadcrumb a {
    color: var(--primary-600);
    text-decoration: none;
}
.breadcrumb i {
    margin: 0 var(--space-2);
    font-size: 0.7em;
    color: var(--gray-400);
}

.article-header h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-tags { margin-bottom: var(--space-8); }
.tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.article-body .article-image {
    margin-bottom: var(--space-6);
}
.article-body .article-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}
.article-body .content h2, .article-body .content h3 {
    margin-top: var(--space-8);
}
.article-body .content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.article-footer {
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
}
.article-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}
.btn-action:hover {
    color: var(--primary-600);
}
.author-card {
    display: flex;
    gap: var(--space-4);
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
}
.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
}
.author-info h4 { margin-bottom: var(--space-1); }

/* Other shared sections */
.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.section-cta {
    text-align: center;
    margin-top: var(--space-8);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
}
.cta-content h2 {
    color: white;
}

/* Footer */
.footer-pro {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 0;
    margin-top: var(--space-16);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
}
.footer-section h4 {
    color: white;
}
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: var(--space-6) 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

/* Loading Spinner & Toasts */
.loading-spinner {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white; display: flex; align-items: center; justify-content: center;
    z-index: var(--z-modal); transition: opacity 0.5s ease;
}
.loading-spinner.hidden {
    opacity: 0; pointer-events: none;
}
.spinner {
    width: 40px; height: 40px; border: 4px solid var(--gray-200);
    border-left-color: var(--primary-500); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.toast {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-left: 4px solid var(--primary-500);
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
}
.toast.toast-success { border-left-color: var(--success-500); }
.toast.toast-error { border-left-color: var(--error-500); }
.toast.toast-warning { border-left-color: var(--warning-500); }
.toast.toast-info { border-left-color: var(--info-500); }

.toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-400);
}

/* Utility & Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hidden {
    display: none !important;
}


@media (max-width: 992px) {
    .mission-grid, .founder-content { grid-template-columns: 1fr; }
    .founder-content { text-align: center; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-bottom-content { flex-direction: column; gap: var(--space-4); }
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: block; /* needs implementation */ }
}

@media (max-width: 576px) {
    .footer-content { grid-template-columns: 1fr; }
}
/* =================================================================== */
/* AUTHENTICATION PAGES (Login & Signup) - COMPLETE STYLES             */
/* =================================================================== */

/* Main page container */
.auth-page {
    padding-top: 0; /* Override main padding */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--gray-100);
}

/* Section wrapper */
.auth-section {
    width: 100%;
    padding: var(--space-8) 0;
}

/* The two-column container card */
.auth-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1000px;
    width: 95%;
    margin: auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    align-items: flex-start;
}

/* Left column (the form) */
.auth-form-container {
    padding: var(--space-10);
}

/* Right column (features/branding) */
.auth-features, .auth-branding {
    background: linear-gradient(160deg, var(--primary-50), var(--secondary-50));
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.auth-header h1, .auth-header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}
.auth-header p {
    color: var(--gray-500);
}

.auth-features h2, .auth-branding h3 {
    margin-bottom: var(--space-8);
    color: var(--gray-900);
}
.auth-branding ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.auth-branding li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    color: var(--gray-700);
}
.auth-branding li i {
    color: var(--success-500);
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}
.feature-item i {
    font-size: var(--font-size-xl);
    color: var(--primary-500);
    margin-top: var(--space-1);
}

/* Form-specific elements */
.auth-form .form-group {
    margin-bottom: var(--space-6);
}
.auth-form .form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}
.auth-form .form-label i {
    color: var(--gray-400);
}
.auth-form .form-input, .auth-form select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: white;
}
.auth-form .form-input:focus, .auth-form select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--space-6) 0;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
}
.auth-separator::before, .auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}
.auth-separator:not(:empty)::before {
    margin-right: var(--space-4);
}
.auth-separator:not(:empty)::after {
    margin-left: var(--space-4);
}
.auth-footer, .auth-switch {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--font-size-sm);
}

/* Custom Checkbox from signup.ejs */
.auth-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    user-select: none;
}
.auth-form .checkbox-label input[type="checkbox"] {
    display: none;
}
.auth-form .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    margin-right: var(--space-3);
    transition: var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}
.auth-form .checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}
.auth-form .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.auth-form .checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

/* Responsive adjustments for Auth pages */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-features, .auth-branding {
        display: none;
    }
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
}
/* Add these styles to your professional.css */

/* Dashboard Specific Styles */
.dashboard-pro {
    padding: 2rem 0;
    margin-top: 20px
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
    border-radius: var(--radius-xl);
}

.welcome-content h1 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.user-name {
    color: var(--primary-600);
}

.welcome-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.last-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.last-active i {
    color: var(--success-500);
    font-size: 0.7rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary-500);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.stat-info h3 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
    color: var(--gray-900);
}

.stat-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.actions-section {
    margin-bottom: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

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

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.action-card span {
    font-weight: var(--font-weight-medium);
}

.courses-section, .featured-courses-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.view-all {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--primary-700);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.course-item-pro {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.course-item-pro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.course-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info {
    flex: 1;
}

.course-info h4 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-lg);
}

.progress-container {
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress {
    height: 100%;
    background: var(--primary-500);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.progress-container .progress-text,
.course-actions .progress-text {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}
/* Activity Section */
.activity-section {
    margin-bottom: 3rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--success-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: var(--success-500);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.activity-score {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.score-excellent {
    background: var(--success-50);
    color: var(--success-700);
}

.score-good {
    background: var(--warning-50);
    color: var(--warning-700);
}

.score-poor {
    background: var(--error-50);
    color: var(--error-700);
}

.activity-progress {
    color: var(--primary-600);
    font-weight: var(--font-weight-medium);
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.loading-state .spinner {
    margin: 0 auto 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-item-pro {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;

    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* =================================================================== */
/* COURSES PAGE (courses-pro.ejs) - MISSING STYLES                  */
/* Add this to the bottom of your professional.css file             */
/* =================================================================== */

.courses-hero {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    padding: var(--space-16) 0;
    text-align: center;
    color: white;
}

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

.courses-hero .hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-4);
}

.courses-hero .hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--primary-100);
    margin-bottom: var(--space-8);
}

.courses-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
}

.courses-hero .stat {
    display: flex;
    flex-direction: column;
}

.courses-hero .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

.courses-hero .stat-label {
    font-size: var(--font-size-sm);
    color: var(--primary-200);
}

/* --- Filters Section --- */

.course-filters-section {
    padding: var(--space-12) 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.filters-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.filters-header h2 {
    margin-bottom: var(--space-2);
}

.filters-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    align-items: flex-end;
}

.filter-group,
.search-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-group label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
}

.filter-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 1.25em 1.25em;
    cursor: pointer;
}

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

.search-group {
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-left: var(--space-10); /* Space for icon */
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
}

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

.search-group i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* --- Benefits Section --- */

.benefits-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.benefit-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

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

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: var(--font-size-2xl);
    color: var(--primary-600);
}

.benefit-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

/* --- Testimonials Section (Slider layout) --- */
/* Your CSS has .testimonials-grid, but the EJS uses .testimonials-slider. */
/* This will make the .testimonials-slider class work like the grid. */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* --- Pagination (from courses-pro.ejs) --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.pagination button {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination button:hover {
    background: var(--gray-100);
}

.pagination button.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Loading & Empty States (from courses-pro.ejs) --- */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.loading-state .spinner {
    margin: 0 auto 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}
/* =================================================================== */
/* CONTACT PAGE (contact.ejs) - MISSING STYLES                         */
/* Add this to the bottom of your professional.css file             */
/* =================================================================== */

.contact-section {
    padding: var(--space-16) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    background: white;
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    margin-bottom: var(--space-4);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    color: var(--primary-600);
    font-size: var(--font-size-lg);
}

.method-info h4 {
    margin-bottom: var(--space-1);
    color: var(--gray-900);
    font-size: var(--font-size-lg);
}

.method-info p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--gray-700);
}

.method-info span {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.social-links {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
}

.social-links h4 {
    margin-bottom: var(--space-4);
}

.social-icons {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

/* --- Contact Form Styles --- */
/* We are re-using auth-form styles for the contact-form */

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

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

.contact-form label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: white;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 1.25em 1.25em;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
}

/* --- Map Section --- */

.map-section {
    padding: var(--space-12) 0;
    text-align: center;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: var(--space-8);
    background: var(--gray-100);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: var(--space-4);
}

.map-placeholder p {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-1);
}

/* --- Responsive for Contact Page --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: var(--space-8);
    }
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    padding: var(--space-12) 0;
}

.course-content h2 {
    margin-bottom: var(--space-4);
}
.course-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-2);
}

.course-features {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.course-features li i {
    color: var(--success-500);
}

.curriculum-list .curriculum-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}
.curriculum-list .curriculum-item i {
    color: var(--primary-500);
}

.course-sidebar {
    position: sticky;
    top: 100px; /* 80px for navbar + 20px space */
}

.course-buy-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.course-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.course-buy-body {
    padding: var(--space-6);
}
.course-price {
    margin-bottom: var(--space-4);
}
.course-price .price-current {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
}
.course-price .price-original {
    font-size: var(--font-size-lg);
    text-decoration: line-through;
    color: var(--gray-400);
    margin-left: var(--space-2);
}
.course-meta-details {
    list-style: none;
    padding: 0;
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}
.course-meta-details li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.course-meta-details li i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    .course-sidebar {
        margin-top: var(--space-8);
        position: relative;
        top: 0;
    }
}
.payments-table-section {
    padding: var(--space-12) 0;
}

.payments-table-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th,
.payments-table td {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.payments-table th {
    background: var(--gray-50);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    text-transform: uppercase;
}

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

.payments-table tbody tr:hover {
    background: var(--primary-50);
}

.course-cell-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.course-cell-content img {
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.course-cell-content span {
    font-weight: var(--font-weight-medium);
}

.status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: capitalize;
}

.status-badge.status-success {
    background: var(--success-50);
    color: var(--success-600);
}

.status-badge.status-failed {
    background: var(--error-50);
    color: var(--error-6D00);
}

@media (max-width: 768px) {
    .payments-table-section {
        padding: var(--space-6) 0;
    }
    .payments-table thead {
        display: none;
    }
    .payments-table tr {
        display: block;
        margin-bottom: var(--space-4);
        border-radius: var(--radius-lg);
        border: 1px solid var(--gray-200);
        overflow: hidden;
        background: white;
        box-shadow: var(--shadow-sm);
    }
    .payments-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--gray-100);
        padding: var(--space-3) var(--space-4);
        text-align: right;
    }
    .payments-table td::before {
        content: attr(data-label);
        font-weight: var(--font-weight-medium);
        margin-right: auto;
        text-align: left;
        color: var(--gray-600);
    }
    .payments-table td:last-child {
        border-bottom: none;
    }
    .course-cell-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .course-cell-content img {
        margin-bottom: var(--space-2);
    }
}/* =================================================================== */
/* COMPLETE PROFILE PAGE (new)                                         */
/* =================================================================== */

.complete-profile-page .auth-section {
    padding: var(--space-12) 0;
}

.profile-completion-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.completion-header {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.completion-progress {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.completion-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-600);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-background {
    fill: none;
    stroke: var(--gray-200);
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary-500);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.completion-info h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}

.completion-info p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin: 0;
}

.profile-form {
    padding: var(--space-8);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-700);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary-100);
    margin-bottom: var(--space-6);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

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

.profile-form .form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.profile-form .form-group input,
.profile-form .form-group select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: white;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .completion-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
.complete-profile-page .auth-section {
    padding: var(--space-12) 0;
}

.profile-completion-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.completion-header {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.completion-progress {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}



.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-background {
    fill: none;
    stroke: var(--gray-200);
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary-500);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.completion-info h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-2);
}

.completion-info p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin: 0;
}

.profile-form {
    padding: var(--space-8);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-700);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary-100);
    margin-bottom: var(--space-6);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

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

.profile-form .form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.profile-form .form-group input,
.profile-form .form-group select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: white;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .completion-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
.auth-error-message {
    padding: var(--space-3) var(--space-4);
    background: var(--error-50);
    border: 1px solid var(--error-200);
    color: var(--error-700);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}
.course-details-page .page-hero {
    padding-bottom: var(--space-8);
}

.course-details-page .breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--primary-200);
    margin-bottom: var(--space-4);
}
.course-details-page .breadcrumb a {
    color: var(--primary-100);
    text-decoration: none;
}
.course-details-page .breadcrumb a:hover {
    text-decoration: underline;
}
.course-details-page .breadcrumb i {
    margin: 0 var(--space-2);
    font-size: 0.8em;
}

.course-content-layout {
    padding: var(--space-16) 0;
}

.course-content-layout .container {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: var(--space-12);
}

.course-main-content h2 {
    font-size: var(--font-size-3xl);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-6);
}

.course-full-description p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--gray-700);
    white-space: pre-wrap; /* This respects line breaks from your description */
}

/* Sidebar Card */
.course-sidebar-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 100px; /* Sticks below the navbar */
}

.course-sidebar-card .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.course-sidebar-card .course-price {
    margin-bottom: var(--space-4);
}

.course-sidebar-card .price-free {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--success-600);
}

.course-sidebar-card .price-current {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
}

.course-sidebar-card .price-original {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: var(--space-3);
}

.course-sidebar-card .btn {
    margin-bottom: var(--space-6);
}

.course-sidebar-card .course-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.course-sidebar-card .meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.course-sidebar-card .meta-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-500);
}

/* Responsive */
@media (max-width: 992px) {
    .course-content-layout .container {
        grid-template-columns: 1fr;
    }
    .course-sidebar-card {
        order: -1; /* Moves the card to the top on mobile */
        position: static;
        margin-bottom: var(--space-8);
    }
}
.btn-secondary,
.btn-secondary:disabled {
    background-color: #6c757d; /* A standard grey color */
    border-color: #6c757d;
    color: #ffffff;
    opacity: 0.65; /* Makes it look disabled */
}
/* --- START: Add this to your main.css file --- */

/* This styles the new form container */
.profile-form {
    width: 100%;
}

/* This styles each section (Personal, Educational, etc.) */
.form-section {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.form-section p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* This creates the side-by-side layout for fields */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* This styles the new checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    height: 1.1rem;
    width: 1.1rem;
}

/* Re-style the form-group for the new context */
.profile-form .form-group {
    margin-bottom: 1.25rem;
}

.profile-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Use the modern form-input style */
.profile-form .form-input,
.profile-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form .form-input:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light-transparent);
}

/* --- Add this to your public CSS file --- */

/* This styles the "Enroll to Access" button */
.btn-secondary {
    background-color: #6c757d; /* A standard grey color */
    border-color: #6c757d;
    color: #ffffff;
}

/* This styles the "Locked until..." button */
.btn-secondary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    opacity: 0.65; /* Makes it look faded and disabled */
}

/* Optional: Make it grey on hover too */
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #ffffff;
}
.payments-page .page-hero {
  background-color: var(--light-gray-color);
  padding: 3rem 0;
  text-align: center;
}

.payments-page .page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.payments-page .page-hero p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.payments-section {
  padding: 3rem 0;
}

.payments-list-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* --- Header Row --- */
.payments-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  padding: 1rem 1.5rem;
  background-color: var(--light-gray-color);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--dark-gray-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Payment Item Row --- */
.payment-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

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

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

/* --- Columns --- */
.payment-course {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.payment-course img {
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.payment-amount {
  font-weight: 600;
  color: var(--primary-color);
}

.payment-date,
.payment-id {
  color: var(--text-color);
  font-size: 0.9rem;
}

.payment-id {
  font-family: var(--font-mono, monospace); /* Good for IDs */
  word-break: break-all;
}

/* --- Status Badge --- */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

.status-badge.success {
  color: var(--success-color, #28a745);
  background-color: var(--success-light-color, #e9f6eb);
  border: 1px solid var(--success-color, #28a745);
}

/* --- Responsive styles for mobile --- */
@media (max-width: 900px) {
  .payments-header {
    display: none; /* Hide header on mobile */
  }

  .payment-item {
    grid-template-columns: 1fr 1fr; /* 2-column layout */
    gap: 1rem 1.5rem;
    padding: 1.5rem;
  }
  
  /* Show all info, but stacked */
  .payment-course { grid-column: 1 / -1; } /* Full width */
  .payment-amount { grid-column: 1 / 2; }
  .payment-status { grid-column: 2 / 3; text-align: right; }
  .payment-date { grid-column: 1 / 2; }
  .payment-id { grid-column: 2 / 3; text-align: right; }

  /* Add labels for mobile */
  .payment-item div:not(.payment-course)::before {
    content: attr(class); /* Fallback */
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-gray-color);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
  }
  
  .payment-item .payment-amount::before { content: "Amount"; }
  .payment-item .payment-date::before { content: "Date"; }
  .payment-item .payment-id::before { content: "Payment ID"; }
  .payment-item .payment-status::before { content: "Status"; }
}

@media (max-width: 480px) {
    .payment-item {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 1rem;
    }
    .payment-status,
    .payment-id {
        text-align: left; /* Align left in single column */
    }
}
/* --- START: Result Modal Styles --- */
.modal-pro {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-pro.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-pro-content {
  background-color: #fefefe;
  margin: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 900px;
  animation: slideIn 0.3s ease-out;
}

.modal-pro-content.large {
  max-width: 900px;
}

.modal-pro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-pro-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.modal-pro-close {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.modal-pro-close:hover {
  color: var(--dark-gray-color);
}

.modal-pro-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Modal Loading State */
#modal-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1rem;
}

/* Summary Grid */
.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.result-summary-grid .stat-card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--light-gray-color);
  border-radius: var(--border-radius-md);
}

/* Question Review List */
.question-review-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.question-review-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.review-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
.review-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--light-gray-color);
}
.review-q-header strong {
  font-size: 1.1rem;
}
.review-status {
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.9rem;
}
.review-status.correct { color: var(--success-color, #28a745); }
.review-status.incorrect { color: var(--danger-color, #dc3545); }
.review-status.not-answered { color: var(--warning-color, #ffc107); }

.review-q-text {
  padding: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
/* This is important for your tables */
.review-q-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.review-q-text th,
.review-q-text td {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  text-align: left;
}

.review-options {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.review-option {
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
}
.review-option i {
  margin-right: 0.5rem;
  color: var(--gray-400);
}

/* Selected wrong answer */
.review-option.is-wrong {
  background-color: #fde8e8;
  border-color: #fab5b5;
}
.review-option.is-wrong i {
  color: var(--danger-color, #dc3545);
}

/* Correct answer */
.review-option.is-correct {
  background-color: #e9f6eb;
  border-color: #a4d4ad;
}
.review-option.is-correct i {
  color: var(--success-color, #28a745);
}

.review-explanation {
  background-color: #f5f7fa;
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.review-explanation strong {
  display: block;
  margin-bottom: 0.5rem;
}
.review-explanation div {
  line-height: 1.6;
}
.review-explanation div p {
  margin: 0.5rem 0 0 0;
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* --- Styles for NTA Layout --- */
/* ---
   NTA TEST INTERFACE - FINAL v4 (FULL SCREEN)
   This block replaces all previous NTA fixes.
--- */

/* --- 1. Force Full-Screen Rigid Layout --- */


/* --- 1. Force Full-Screen Rigid Layout --- */
main.test-interface-fullscreen {
    padding-top: 0 !important;
    margin-top: 90px !important; /* Increased to 90px to safely clear the Navbar */
    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px); /* Subtracts the same 90px so no scrollbar appears */
    overflow: hidden;
}

/* --- 2. Define the 3 Rigid Rows --- */
main.test-interface-fullscreen .test-header-pro {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 20px; /* Add horizontal padding */
}
/* This targets the content *inside* the header */
main.test-interface-fullscreen .test-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

main.test-interface-fullscreen .test-body {
    flex-grow: 1; /* This middle area takes all available space */
    background: #f0f2f5 !important;
    padding: 20px;
    overflow: hidden; /* This part does NOT scroll */
}

main.test-interface-fullscreen .question-footer-pro {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

/* --- 3. Define the 75% / 25% Content Split --- */
.test-interface-fullscreen .test-layout {
    display: flex;
    gap: 20px;
    height: 100%; /* Fill the .test-body */
}

/* --- 4. Style the Left (Question) Panel --- */
.test-interface-fullscreen .question-panel-pro {
    flex-basis: 75%;
    flex-shrink: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.test-interface-fullscreen .question-panel-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.test-interface-fullscreen .question-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.test-interface-fullscreen .section-tabs {
    display: flex;
    margin: 0;
    border-bottom: none;
}
.test-interface-fullscreen .section-tab {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    background: transparent;
    border: none;
    border-right: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.test-interface-fullscreen .section-tab:hover { background: #f4f4f4; }
.test-interface-fullscreen .section-tab.active {
    background: #fff;
    color: var(--primary-500);
    font-weight: 700;
    border-bottom-color: var(--primary-500);
}

.test-interface-fullscreen .question-header-pro {
    flex-shrink: 0;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.test-interface-fullscreen .question-nav {
    justify-content: flex-start;
}
.test-interface-fullscreen .question-counter {
    font-size: 1.1rem;
    font-weight: 600;
}

/* This is the key: make the content scrollable */
.test-interface-fullscreen .question-content-pro {
    flex-grow: 1; /* Takes all remaining space */
    overflow-y: auto; /* Adds the internal scrollbar */
    padding: 20px;
}
.test-interface-fullscreen .options-container {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
}


/* --- 5. Style the Right (Sidebar) Panel --- */
.test-interface-fullscreen .sidebar-panel {
    flex-basis: 25%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.test-interface-fullscreen .sidebar-panel .palette-card {
    flex-grow: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.test-interface-fullscreen .sidebar-panel .palette-card h3 {
    flex-shrink: 0;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.test-interface-fullscreen .sidebar-panel .palette-legend {
    flex-shrink: 0;
}

.test-interface-fullscreen .question-palette-grid {
    flex-grow: 1;
    overflow-y: auto; /* Add the scrollbar to the grid */
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(10, 1fr) !important;
    gap: 5px !important;
}

.test-interface-fullscreen .sidebar-panel .actions-card {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px;
    margin: 0;
}

/* --- 6. AGGRESSIVE BUTTON RESET (Footer) --- */
.question-footer-pro button {
    border-radius: 3px !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    border: 1px solid #aaa;
    background: #f0f0f0;
    color: #333;
    overflow: visible !important;
    transform: none !important;
}
.question-footer-pro button::before { display: none !important; }
.question-footer-pro button:hover {
    border-color: #888;
    background: #e9e9e9;
    transform: none !important;
}
.question-footer-pro #save-next {
    background: #2ecc71 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}
.question-footer-pro #save-next:hover { background: #29b765 !important; }

.question-footer-pro #save-review,
.question-footer-pro #mark-review {
    background: #9b59b6 !important;
    border-color: #8e44ad !important;
    color: #fff !important;
}
.question-footer-pro #save-review:hover,
.question-footer-pro #mark-review:hover { background: #8e44ad !important; }

.question-footer-pro #clear-response {
    background: #e74c3c !important;
    border-color: #c0392b !important;
    color: #fff !important;
}
.question-footer-pro #clear-response:hover { background: #c0392b !important; }

.question-footer-pro .footer-nav {
    margin-left: auto;
    display: flex;
    gap: 10px;
}
.question-footer-pro .btn-nav {
    background: #f4f4f4 !important;
    border: 1px solid #ddd !important;
}
.question-footer-pro .btn-nav:hover { background: #e9e9e9 !important; }

/* --- 7. AGGRESSIVE PALETTE RESET (Sidebar) --- */
.palette-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px !important;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #ddd;
    border-radius: 3px !important;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    position: relative;
    background: #f0f0f0; /* Not Visited */
    color: #555;
    transform: none !important;
}
.palette-btn::before { display: none !important; }

.palette-btn.not-answered {
    background: #e74c3c !important;
    color: #fff !important;
    border-color: #c0392b !important;
}
.palette-btn.answered {
    background: #2ecc71 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
}
.palette-btn.marked-for-review {
    background: #9b59b6 !important;
    color: #fff !important;
    border-color: #8e44ad !important;
}
.palette-btn.answered-review {
    background: #9b59b6 !important;
    color: #fff !important;
    border-color: #8e44ad !important;
}
.palette-btn.answered-review::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    border: 1px solid #fff;
}
.palette-btn.current {
    background: #3498db !important;
    color: #fff !important;
    border-color: #2980b9 !important;
}

/* 8. Legend Colors */
.palette-legend .status-dot.not-visited { background-color: #f0f0f0; border: 1px solid #ddd; }
.palette-legend .status-dot.not-answered { background-color: #e74c3c; }
.palette-legend .status-dot.answered { background-color: #2ecc71; }
.palette-legend .status-dot.marked-for-review { background-color: #9b59b6; }
.palette-legend .status-dot.answered-review { background-color: #9b59b6; }

/* --- 9. MODAL FIX (from last turn) --- */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal, 1040);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.modal.active {
    display: flex;
}
.modal-content {
    background-color: #fff;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--gray-900);
}
.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close:hover { color: var(--gray-800); }
.modal-body {
    padding: var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.instructions-content ul {
    list-style: none;
    padding-left: 0;
}
.instructions-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-3);
}
.instructions-content li::before {
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-500);
    position: absolute;
    left: 0;
    top: 4px;
}
.submit-summary h3 {
    text-align: center;
    margin-bottom: var(--space-6);
}
.summary-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-6);
    margin-bottom: var(--space-4);
}
.summary-item {
    display: flex;
    justify-content: space-between;
}
.summary-item span:last-child {
    font-weight: 700;
}
.warning-text {
    text-align: center;
    font-weight: 500;
    color: var(--error-600);
    margin-top: var(--space-6);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }

}
/* --- START: Fullscreen-Safe Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 90px; /* Below your 80px navbar */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
}

.toast-notification {
    background-color: #fff;
    color: var(--gray-800);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 5px solid var(--info-500);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    border-left-color: var(--success-500);
    color: var(--success-600);
}

.toast-notification.error {
    border-left-color: var(--error-500);
    color: var(--error-600);
}

.toast-notification.warning {
    border-left-color: var(--warning-500);
    color: var(--warning-600);
}
/* --- END: Fullscreen-Safe Toast Notifications --- */

/* --- FIX FOR DASHBOARD COURSE CARD LAYOUT --- */

.course-card-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    overflow: hidden; /* This is important */
}

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

/* This is your original card, now inside the wrapper */
.course-item-pro {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    /* Remove old styles that are now on the wrapper */
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* This styles the new progress bar at the top */
.progress-container.top-bar {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-top: 0; /* Reset margin */
}

.progress-container.top-bar .progress-text {
    /* This rule is from our previous fix, ensuring it's not centered */
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

/* --- END OF FIX --- */
/* --- FOOTER STYLES (REVISED) --- */

.footer-pro {
    background: var(--gray-900); /* Dark Background */
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-4); /* Add space at the bottom */
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Four columns for desktop */
    gap: var(--space-8);
    padding-bottom: var(--space-10);
}

/* Footer Brand and Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: white; /* White logo against dark background */
    text-decoration: none;
    margin-bottom: var(--space-4);
}
.footer-logo i {
    font-size: var(--font-size-2xl);
    color: var(--primary-500); /* Sky Blue icon */
}
.footer-description {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: var(--line-height-normal);
}

/* Footer Sections & Links */
.footer-section h4 {
    color: white;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: var(--font-size-base);
}

.footer-links a:hover {
    color: var(--primary-500); /* Sky Blue hover effect */
    transform: translateX(3px); /* Subtle slide effect */
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--gray-400);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-base);
}
.contact-item i {
    color: var(--primary-500); /* Sky Blue icons */
    margin-top: 4px; /* Align icon better with text */
    flex-shrink: 0;
}
.contact-item span {
    line-height: var(--line-height-normal);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.social-icon-pro {
    width: 36px;
    height: 36px;
    background: var(--gray-800); /* Slightly lighter background for the icon */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
}
.social-icon-pro:hover {
    background: var(--primary-500); /* Sky Blue background on hover */
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* Footer Bottom (Copyright and Legal) */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: var(--space-6) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}
.footer-legal {
    display: flex;
    gap: var(--space-6);
}
.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
}
.footer-legal a:hover {
    color: var(--primary-500); /* Sky Blue hover */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
    }
    .footer-brand-info {
        grid-column: 1 / 3; /* Brand takes full row width on top */
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr; /* Single column for small phones */
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}
/* --- HERO SECTION WITH IMAGE UPDATE --- */

.hero-section {
    /* Ensure background matches your theme */
    background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text takes slightly more space than image */
    gap: 4rem;
    align-items: center;
}

/* Text Side */
.hero-content-left {
    text-align: left;
    color: white;
}

.hero-content-left h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content-left .hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary-100);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-content-left .hero-actions {
    justify-content: flex-start; /* Align buttons to left */
}

.hero-content-left .hero-stats {
    justify-content: flex-start; /* Align stats to left */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Image Side */
.hero-image-right {
    display: flex;
    justify-content: center;
    position: relative;
}

.mentor-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.mentor-img {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: Add a subtle glow or drop shadow */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    /* If the image is a square photo, add border-radius. 
       If it's a cutout (transparent bg), remove border-radius. */
    border-radius: 20px; 
}

/* Floating Name Badge */
.mentor-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: white;
    color: var(--gray-900);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.mentor-badge i {
    color: var(--success-500);
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-grid-layout {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        gap: 3rem;
    }

    .hero-content-left {
        text-align: center;
        order: 2; /* Put text below image on tablets if you prefer, or remove this line to keep text on top */
    }

    .hero-content-left .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .hero-content-left .hero-actions {
        justify-content: center;
    }
    
    .hero-content-left .hero-stats {
        justify-content: center;
    }

    .hero-image-right {
        order: 1; /* Put image on top */
        justify-content: center;
    }
    
    .mentor-badge {
        right: 0;
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        width: max-content;
        animation: none; /* Disable float on mobile to save battery/performance */
    }
}
.brand-logo-img {
    height: 40px !important; /* Try 35px or 30px if 40 is still too big */
    width: auto !important;
    max-width: 150px;       /* Prevents it from getting too wide */
    object-fit: contain;
}

/* Optional: Make it smaller on mobile phones */
@media (max-width: 768px) {
    .brand-logo-img {
        height: 32px !important;
    }
}
/* =================================================================== */
/* MOBILE RESPONSIVENESS PACK (Add to bottom of professional.css)      */
/* =================================================================== */

/* --- 1. MOBILE MENU DRAWER STYLES --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 5rem 2rem 2rem; /* Top padding clears the close button */
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000; /* Above navbar */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    transform: translateX(0); /* Slide in */
}

.mobile-nav-link {
    font-size: 1.1rem;
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
}

.mobile-nav-link:hover {
    color: var(--primary-600);
    padding-left: 5px;
}

/* Hamburger Menu Icon Animation */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001; /* Above the menu drawer */
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Animate hamburger to 'X' when open */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- 2. GLOBAL GRID FIXES (Homepage & Dashboard) --- */
@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-menu-toggle { display: block; }
    
    /* Homepage Hero: Stack vertical */
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Dashboard Stats: Stack vertical */
    .stats-grid {
        grid-template-columns: 1fr; 
    }

    /* Course Cards: Stack vertical */
    .courses-grid, .courses-preview-grid, .actions-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer: Stack vertical */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    /* Footer Branding alignment */
    .footer-brand-info {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

/* --- 3. TEST INTERFACE FIXES (Sidebar Drawer) --- */
@media (max-width: 1024px) {
    /* Don't hide the sidebar, make it a fixed drawer */
    .sidebar-panel {
        display: flex !important; /* Override 'none' */
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-left: 1px solid var(--gray-200);
        padding-top: 60px; /* Space for close button */
    }

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

    /* Force Test Layout to Single Column */
    .test-layout {
        grid-template-columns: 1fr !important;
    }
}
/* --- MODERN GOOGLE BUTTON STYLE --- */
.btn-google-official {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between G icon and text */
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500; /* Medium weight looks more professional */
    font-size: 1rem;
    padding: 12px 16px; /* Taller, clickable area */
    border-radius: 8px; /* Smooth rounded corners */
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Very subtle depth */
}

.btn-google-official:hover {
    background-color: #f8faff; /* Very light blue tint on hover */
    border-color: #c2c8d0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #202124;
}

.btn-google-official:active {
    background-color: #eff3f8;
    box-shadow: none;
    transform: translateY(1px);
}

/* =================================================================== */
/* FINAL RESPONSIVE FIXES (Visible Header Links & Scrollable Auth)     */
/* =================================================================== */

/* --- 1. FIX SCROLLING ON LOGIN & SIGNUP PAGES --- */
/* (Keeps your forms accessible on mobile) */
.auth-page {
    /* Desktop Defaults */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 100px; 
    padding-bottom: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .auth-page {
        /* Mobile Overrides: Allow scrolling */
        display: block !important; 
        height: auto !important;
        
        /* Push content down further because header will be taller */
        padding-top: 160px !important; 
        padding-bottom: 50px !important;
        
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .auth-page .auth-container {
        margin: 0 auto 3rem auto !important;
        width: 92% !important;
        max-width: 500px;
    }
}

/* --- 2. HEADER: VISIBLE LINKS ON TABLET & MOBILE --- */

/* Tweak for Tablets (iPad, etc) */
@media (max-width: 1024px) {
    .navbar-pro .nav-menu {
        display: flex !important; /* Force links to show */
        gap: 1rem; /* Reduce spacing to fit */
    }
    
    .nav-link {
        font-size: 0.9rem; /* Slightly smaller text */
        padding: 0.5rem;
    }

    .mobile-menu-toggle {
        display: none !important; /* Hide hamburger */
    }
}

/* Tweak for Phones (iPhone, Android) */
@media (max-width: 768px) {
    .navbar-pro {
        padding: 0.5rem 0; /* Reduce vertical padding */
    }

    .nav-content {
        /* STACK LAYOUT: Logo on top, Links below */
        flex-direction: column; 
        gap: 10px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center; /* Center the links */
        gap: 0.5rem !important;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .nav-link {
        font-size: 0.85rem; /* Smaller text for mobile */
        padding: 5px 8px;
        background: var(--gray-50); /* Light background to make them tap-friendly */
        border-radius: 4px;
    }
    
    /* Hide the User Avatar/Login button on mobile header to save space? 
       Or keep it if you want. Currently keeping it visible. */
    .user-menu, .auth-buttons {
        transform: scale(0.9); /* Shrink slightly */
    }
}
/* --- RESULT MODAL STYLING --- */

/* The Container for a single question review */
.review-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    border-left: 5px solid #ccc; /* Default border */
}

/* Status Borders */
.review-item.correct { border-left-color: #10b981; } /* Green */
.review-item.incorrect { border-left-color: #ef4444; } /* Red */
.review-item.not-answered { border-left-color: #f59e0b; } /* Orange */

.review-q-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #4b5563;
}

/* Status Badges */
.review-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}
.review-status.correct { background: #d1fae5; color: #065f46; }
.review-status.incorrect { background: #fee2e2; color: #991b1b; }
.review-status.not-answered { background: #fef3c7; color: #92400e; }

.review-q-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1f2937;
}

/* Options Styling */
.review-option {
    padding: 10px 15px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
}

/* The Logic Visuals */
/* 1. The Correct Answer (Always Green) */
.review-option.is-correct {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* 2. The User's Wrong Choice (Red) */
.review-option.is-wrong {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.review-explanation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.95rem;
    color: #4b5563;
    background-color: #f8fafc;
    padding: 10px;
    border-radius: 4px;
}
/* --- MODAL OVERLAY & CONTAINER --- */
.modal-pro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    z-index: 1000; display: none; /* Hidden by default */
    align-items: center; justify-content: center;
}

.modal-pro-overlay.active { display: flex; }

.modal-pro-container {
    background: #f8f9fc; width: 95%; max-width: 900px; height: 90vh;
    border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; overflow: hidden;
}

/* --- HEADER --- */
.modal-header-modern {
    background: #fff; padding: 20px 30px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.header-title-group h2 { margin: 0; font-size: 1.5rem; color: #1e293b; }
.btn-icon-close {
    background: none; border: none; font-size: 1.5rem; color: #64748b;
    cursor: pointer; transition: color 0.2s;
}
.btn-icon-close:hover { color: #ef4444; }

/* --- BODY & SCROLL --- */
.modal-body-modern {
    padding: 30px; overflow-y: auto; flex: 1;
}

/* --- SUMMARY CARDS (STATS) --- */
.result-summary-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px; margin-bottom: 40px;
}

.summary-card {
    background: #fff; padding: 20px; border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #f1f5f9;
    display: flex; align-items: center; gap: 15px;
}

.summary-card .icon-box {
    width: 50px; height: 50px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* Card Specific Colors */
.score-card .icon-box { background: #e0e7ff; color: #4f46e5; }
.percent-card .icon-box { background: #dcfce7; color: #16a34a; }
.accuracy-card .icon-box { background: #fae8ff; color: #d946ef; }
.time-card .icon-box { background: #ffedd5; color: #f97316; }

.text-box { display: flex; flex-direction: column; }
.text-box .label { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.text-box .value { font-size: 1.25rem; font-weight: 700; color: #1e293b; }
.text-box .value.text-success { color: #16a34a; }
.text-box .value.text-warning { color: #ca8a04; }
.text-box .value.text-danger { color: #dc2626; }

/* --- QUESTION REVIEW LIST --- */
.review-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0;
}
.review-legend { font-size: 0.9rem; color: #64748b; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; margin-left: 15px; }
.legend-dot.correct { background: #16a34a; }
.legend-dot.wrong { background: #dc2626; }
.legend-dot.skipped { background: #f59e0b; }

/* --- INDIVIDUAL QUESTION CARD --- */
.review-card {
    background: #fff; border-radius: 12px; padding: 25px; margin-bottom: 25px;
    border: 1px solid #e2e8f0; border-left: 6px solid #cbd5e1; /* Default Skipped Gray */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.review-card.correct { border-left-color: #16a34a; }
.review-card.wrong { border-left-color: #dc2626; }
.review-card.skipped { border-left-color: #f59e0b; }

.review-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.status-badge { 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; 
    padding: 4px 10px; border-radius: 20px; margin-left: 10px;
}
.status-badge.correct { background: #dcfce7; color: #15803d; }
.status-badge.wrong { background: #fee2e2; color: #b91c1c; }
.status-badge.skipped { background: #fef3c7; color: #b45309; }

.review-question-text { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 20px; line-height: 1.6; }

/* --- OPTIONS STYLING --- */
.review-option {
    padding: 12px 16px; margin-bottom: 10px; border-radius: 8px;
    border: 1px solid #e2e8f0; display: flex; align-items: flex-start; gap: 12px;
    background: #fff; color: #475569; transition: all 0.2s;
}

/* Green for Correct Answer */
.review-option.opt-is-correct {
    background: #f0fdf4; border-color: #86efac; color: #166534; font-weight: 600;
}
/* Red for User's Wrong Selection */
.review-option.opt-is-wrong {
    background: #fef2f2; border-color: #fca5a5; color: #991b1b;
}

/* --- EXPLANATION BOX --- */
.review-explanation {
    margin-top: 20px; background: #f8fafc; padding: 15px;
    border-radius: 8px; border: 1px dashed #cbd5e1;
}
.exp-header { font-weight: 700; color: #475569; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.exp-body { font-size: 0.95rem; color: #64748b; line-height: 1.6; }
/* --- PAGE LAYOUT & STATS --- */
.results-page { background-color: #f4f7fa; min-height: 100vh; padding-bottom: 40px; }

/* Modern Stats Cards */
.stats-overview {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.stat-card {
    background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05); border: 1px solid #edf2f7;
    display: flex; align-items: center; gap: 15px; transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
/* Specific Colors for Stats */
.stat-card:nth-child(1) .stat-icon { background: #e0e7ff; color: #4338ca; } /* Tests */
.stat-card:nth-child(2) .stat-icon { background: #dcfce7; color: #15803d; } /* Avg */
.stat-card:nth-child(3) .stat-icon { background: #fae8ff; color: #a21caf; } /* Best */
.stat-card:nth-child(4) .stat-icon { background: #ffedd5; color: #c2410c; } /* Time */

.stat-content h3 { font-size: 1.5rem; margin: 0; color: #1e293b; font-weight: 700; }
.stat-content p { margin: 0; color: #64748b; font-size: 0.9rem; }

/* --- MODERN FILTERS --- */
.results-filters {
    background: #fff; padding: 15px 20px; border-radius: 12px;
    margin-bottom: 20px; display: flex; gap: 15px; flex-wrap: wrap;
    align-items: center; border: 1px solid #e2e8f0;
}
.filter-group select {
    padding: 8px 15px; border: 1px solid #cbd5e1; border-radius: 8px;
    color: #475569; font-size: 0.9rem; outline: none; cursor: pointer;
}

/* --- THE FLOATING TABLE UI --- */
.results-table-container { overflow-x: auto; }

.results-table {
    width: 100%; border-collapse: separate; border-spacing: 0 10px; /* Gap between rows */
}

/* Header Styling */
.results-table thead th {
    background: transparent; color: #64748b; font-weight: 600;
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em;
    padding: 0 20px 10px 20px; text-align: left;
}

/* Row Styling (The "Card" Look) */
.results-table tbody tr {
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.results-table tbody tr:hover {
    transform: scale(1.005); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

/* Cell Styling */
.results-table td {
    padding: 20px; vertical-align: middle; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}
.results-table td:first-child { border-left: 1px solid #f1f5f9; border-top-left-radius: 12px; border-bottom-left-radius: 12px; font-weight: 600; color: #1e293b; }
.results-table td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

/* Badges & Text */
.date-text { color: #64748b; font-size: 0.9rem; }
.score-text { font-weight: 700; color: #334155; }

/* Status Pills */
.percentage-badge {
    padding: 6px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; display: inline-block;
}
.grade-excellent { background: #dcfce7; color: #166534; }
.grade-good { background: #dbeafe; color: #1e40af; }
.grade-average { background: #fef9c3; color: #854d0e; }
.grade-poor { background: #fee2e2; color: #991b1b; }

/* Action Buttons */
.btn-icon-action {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e8f0;
    background: #fff; color: #64748b; cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}
.btn-icon-action:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.btn-icon-action.view-btn:hover { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
/* --- SPLIT LAYOUT --- */
.results-split-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Left Sidebar | Right Content */
    gap: 30px;
    align-items: start;
}

/* LEFT SIDEBAR STYLING */
.stats-sidebar { position: relative; }
.stats-sticky-wrapper {
    background: #fff; padding: 25px; border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0;
    position: sticky; top: 20px; /* Sticks when scrolling */
}
.stats-sticky-wrapper h3 { font-size: 1.1rem; color: #1e293b; margin-bottom: 20px; }

.stat-sidebar-card {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.stat-sidebar-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.stat-sidebar-card .label { font-size: 0.85rem; color: #64748b; display: block; }
.stat-sidebar-card h4 { font-size: 1.25rem; margin: 0; color: #0f172a; }

.icon-box {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.icon-box.purple { background: #eef2ff; color: #4f46e5; }
.icon-box.green { background: #f0fdf4; color: #16a34a; }
.icon-box.orange { background: #fff7ed; color: #ea580c; }
.icon-box.blue { background: #eff6ff; color: #2563eb; }


/* RIGHT SIDE: FEED & FILTERS */
.feed-filters {
    display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 20px;
}
.modern-select {
    padding: 10px 15px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
    font-size: 0.9rem; color: #475569; cursor: pointer;
}


/* --- THE BIG RESULT CARD --- */
.result-card-item {
    background: #fff; border-radius: 16px; padding: 25px; margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-card-item:hover {
    transform: translateY(-3px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
}

/* Card Info Section */
.card-info { flex: 1; padding-right: 20px; }
.card-title { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.card-meta { display: flex; gap: 15px; color: #64748b; font-size: 0.9rem; }
.meta-item i { margin-right: 5px; opacity: 0.7; }

/* Card Score Section (Middle) */
.card-score {
    text-align: center; padding: 0 30px; border-left: 1px solid #f1f5f9; border-right: 1px solid #f1f5f9;
    min-width: 150px;
}
.score-badge {
    font-size: 1.5rem; font-weight: 800; display: block;
}
.score-badge.good { color: #16a34a; }
.score-badge.avg { color: #ca8a04; }
.score-badge.bad { color: #dc2626; }
.score-label { font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; letter-spacing: 1px; font-weight: 600; }

/* Card Actions Section (Right - BIG BUTTONS) */
.card-actions {
    display: flex; flex-direction: column; gap: 10px; padding-left: 25px;
    min-width: 180px;
}

/* THE BIG BUTTON STYLES */
.btn-action-large {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px; border-radius: 8px;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    border: none; text-decoration: none;
}

.btn-view {
    background: #4f46e5; color: #fff; box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.btn-view:hover { background: #4338ca; transform: translateY(-1px); }

.btn-download {
    background: #fff; color: #475569; border: 2px solid #e2e8f0;
}
.btn-download:hover { border-color: #cbd5e1; background: #f8fafc; color: #1e293b; }

/* Responsive Adjustments */
@media (max-width: 900px) {
    .results-split-layout { grid-template-columns: 1fr; }
    .stats-sticky-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; position: static; }
    .stat-sidebar-card { border: none; margin: 0; background: #f8fafc; padding: 15px; border-radius: 10px; }
}
@media (max-width: 600px) {
    .result-card-item { flex-direction: column; text-align: center; gap: 20px; }
    .card-score { border: none; border-top: 1px dashed #e2e8f0; border-bottom: 1px dashed #e2e8f0; padding: 15px 0; width: 100%; }
    .card-actions { width: 100%; padding: 0; }
    .card-info { padding: 0; }
    .card-meta { justify-content: center; }
}
/* --- COMPACT NAVBAR OVERRIDES --- */

/* 1. Reduce Navbar Height */
.navbar-pro {
    padding: 0.35rem 0 !important; /* Was 1rem, this cuts vertical space in half */
}

/* 2. Make Logo Smaller */
.brand-logo-img {
    height: 32px !important; /* Slightly smaller logo fits better */
}

/* 3. Make Header Buttons Compact */
.navbar-pro .btn {
    padding: 0.4rem 1rem !important; /* Smaller buttons */
    font-size: 0.9rem !important;
}

/* 4. Adjust Normal Pages (so they don't have a gap) */
main {
    padding-top: 65px !important; /* Reduced from 80px */
}

/* 5. Adjust the Test Interface (CRITICAL UPDATE) */
/* This replaces the 90px value we just set */
main.test-interface-fullscreen {
    margin-top: 65px !important; 
    height: calc(100vh - 65px) !important;
}
/* --- BOTTOM NAVIGATION (Mobile Only) --- */
.bottom-nav-pro {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Hide the footer on mobile to make room */
    .footer-pro { padding-bottom: 80px; } 
    
    .bottom-nav-pro {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px); /* Glass effect */
        border-top: 1px solid var(--gray-200);
        padding: 10px 0;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--gray-500);
        font-size: 0.7rem;
        gap: 4px;
        width: 20%; /* Equal spacing */
    }

    .nav-item i { font-size: 1.2rem; margin-bottom: 2px; transition: 0.2s; }
    
    .nav-item.active { color: var(--primary-500); font-weight: 600; }
    .nav-item.active i { transform: translateY(-3px); }

    /* The Center "Action" Button */
    .fab-circle {
        background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        margin-top: -25px; /* Pushes it up */
        box-shadow: 0 4px 10px rgba(14, 165, 233, 0.4);
        border: 4px solid white;
    }
    .fab-label { margin-top: 5px; }
}
/* Add a new class for when the test is active */
body.zen-mode-active .navbar-pro, 
body.zen-mode-active .bottom-nav-pro,
body.zen-mode-active .footer-pro {
    display: none !important; /* Hide ALL navigation */
}

/* Adjust the test container to take full height */
body.zen-mode-active main.test-interface-fullscreen {
    margin-top: 0 !important;
    height: 100vh !important;
    z-index: 10000; /* Sit on top of everything */
    background: white;
}.card-modern-pop {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255, 0.4);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(14, 165, 233, 0.1); /* Slight blue tint in shadow */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-modern-pop:active {
    transform: scale(0.98); /* Tactile press effect */
}
.hero-title-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
@media (max-width: 768px) {
    /* Turn Grid into Horizontal Scroll */
    .courses-grid, .courses-preview-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px; /* Space for shadow */
        margin: 0 -20px; /* Bleed to edges */
        padding: 0 20px 20px 20px; /* Restore padding */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }

    /* Hide ugly scrollbars but keep functionality */
    .courses-grid::-webkit-scrollbar { display: none; }

    /* Fix the card width */
    .course-card-pro, .course-preview-card {
        min-width: 280px; /* Fixed width for scrolling */
        scroll-snap-align: center;
        margin-bottom: 0; /* Remove vertical margin */
    }
}/* =================================================================== */
/* AVAILABLE TESTS PAGE STYLES (Append to professional.css)            */
/* =================================================================== */

/* --- Tests Page Hero --- */
.tests-hero {
    background: var(--gray-900); /* Matches your dark theme */
    color: white;
    padding: var(--space-12) 0 var(--space-16);
    position: relative;
    overflow: hidden;
    margin-top: -1px; /* Fix potential gap with navbar */
}

.tests-hero .pattern-overlay {
    position: absolute; inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(var(--primary-500) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    flex-wrap: wrap;
    position: relative; z-index: 2;
}

.hero-text { flex: 1; min-width: 300px; }
.hero-badge {
    background: rgba(14, 165, 233, 0.2); /* Primary transparent */
    color: var(--primary-300);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    display: inline-block;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.hero-text h1 { color: white; margin-bottom: var(--space-4); }
.hero-text .highlight { color: var(--primary-400); }
.hero-text p { color: var(--gray-400); font-size: var(--font-size-lg); max-width: 500px; }

/* Floating Stats Cards */
.hero-stats-grid { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.stat-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; gap: var(--space-3);
    min-width: 160px;
}
.stat-card .icon-box {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.icon-box.blue { background: rgba(14, 165, 233, 0.2); color: var(--primary-400); }
.icon-box.green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.icon-box.purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }

.stat-card strong { display: block; font-size: var(--font-size-lg); color: white; }
.stat-card span { font-size: var(--font-size-xs); color: var(--gray-400); }

/* --- Sticky Toolbar --- */
.tests-toolbar-wrapper {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px; /* Adjust based on your header height */
    z-index: 900;
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
}

.toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.filter-tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 2px; }
.tab-btn {
    background: none; border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
}
.tab-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.tab-btn.active { background: var(--primary-600); color: white; }

.search-input-group {
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    display: flex; align-items: center; gap: 10px;
    width: 250px;
    transition: width 0.3s;
    border: 1px solid transparent;
}
.search-input-group:focus-within {
    width: 300px;
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}
.search-input-group input { 
    border: none; background: transparent; outline: none; width: 100%; 
    font-size: var(--font-size-sm); color: var(--gray-800);
}

/* --- Tests Grid --- */
.tests-content-section { padding: var(--space-10) 0; background: var(--gray-50); min-height: 60vh; }
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* --- Professional Test Card --- */
.test-card-pro {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-badge {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-full);
    z-index: 2; text-transform: uppercase; letter-spacing: 0.5px;
}
.card-badge.free { background: #dcfce7; color: #166534; }
.card-badge.premium { background: #fff1f2; color: #be123c; border: 1px solid #ffe4e6; }

.card-content { padding: var(--space-6); display: flex; flex-direction: column; height: 100%; }
.card-header { margin-bottom: var(--space-4); }
.test-title { 
    font-size: 1.15rem; font-weight: 700; color: var(--gray-900); 
    margin-bottom: var(--space-2); line-height: 1.4; 
}
.test-desc { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; }

.card-meta {
    display: flex; gap: var(--space-4); margin-bottom: var(--space-6);
    padding-bottom: var(--space-4); border-bottom: 1px solid var(--gray-100);
}
.meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--gray-500); font-weight: 500;
}
.meta-item i { color: var(--primary-500); }

.card-footer { margin-top: auto; }
.btn-test {
    display: flex; justify-content: center; align-items: center; width: 100%;
    padding: 12px; border-radius: var(--radius-lg);
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition-fast); gap: 8px;
}
.btn-test.start {
    background: var(--primary-50); color: var(--primary-600);
    border: 1px solid var(--primary-100);
}
.btn-test.start:hover {
    background: var(--primary-600); color: white;
    border-color: var(--primary-600);
}
.btn-test.locked {
    background: var(--gray-50); color: var(--gray-400);
    border: 1px solid var(--gray-200);
}

/* --- Skeleton Loading --- */
.skeleton-card {
    background: white; border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--gray-200); height: 300px;
}
.skeleton-image { height: 140px; background: var(--gray-100); }
.skeleton-body { padding: 20px; }
.skeleton-line { height: 12px; background: var(--gray-100); border-radius: 4px; margin-bottom: 10px; }
.w-75 { width: 75%; } .w-50 { width: 50%; } .w-30 { width: 30%; }

.skeleton-card .skeleton-image, .skeleton-card .skeleton-line {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, var(--gray-100) 4%, var(--gray-200) 25%, var(--gray-100) 36%);
    background-size: 1000px 100%;
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* --- Mobile Fixes for Tests Page --- */
@media (max-width: 768px) {
    .hero-stats-grid { flex-direction: column; width: 100%; }
    .stat-card { width: 100%; }
    .toolbar-inner { flex-direction: column; align-items: stretch; gap: 15px; }
    .search-input-group { width: 100%; }
    .search-input-group:focus-within { width: 100%; }
}

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3rem; color: #cbd5e1; margin-bottom: 20px; }
.empty-state h3 { color: #1e293b; margin-bottom: 10px; }
.empty-state p { color: #64748b; margin-bottom: 20px; }

/* --- Why Us Section --- */
.why-us-section { padding: 60px 0; background: white; border-top: 1px solid #e2e8f0; }
.section-heading h2 { text-align: center; color: #1e293b; margin-bottom: 15px; }
.divider-center { width: 60px; height: 4px; background: #3b82f6; margin: 0 auto 40px; border-radius: 2px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-box i { font-size: 2.5rem; color: #3b82f6; margin-bottom: 20px; }
.feature-box h4 { margin-bottom: 10px; font-weight: 600; }
.feature-box p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-stats-grid { flex-direction: column; width: 100%; }
    .stat-card { width: 100%; }
    .toolbar-inner { flex-direction: column; align-items: stretch; }
    .search-input-group { width: 100%; }
    .search-input-group:focus-within { width: 100%; }
}
/* =================================================================== */
/* MOBILE BOTTOM NAVIGATION (The "App" Feel)                           */
/* Add this to the very bottom of professional.css                     */
/* =================================================================== */

/* Hide on Desktop by default */
.bottom-nav-pro {
    display: none;
}

/* Mobile Styling (Visible only below 768px) */
@media (max-width: 768px) {
    /* 1. Adjust Body to prevent content from hiding behind nav */
    body {
        padding-bottom: 90px !important; /* Height of nav + breathing room */
    }

    /* 2. The Navigation Bar Container */
    .bottom-nav-pro {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.95); /* Slight transparency */
        backdrop-filter: blur(12px); /* Glass blur effect */
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        z-index: var(--z-fixed); /* Ensure it sits on top of everything */
        padding-bottom: env(safe-area-inset-bottom); /* Support for iPhone Home Bar */
    }

    /* 3. Individual Nav Items */
    .bottom-nav-pro .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--gray-500);
        font-size: 0.75rem; /* 12px text */
        font-weight: 500;
        width: 100%;
        height: 100%;
        position: relative;
        transition: color 0.3s ease;
    }

    .bottom-nav-pro .nav-item i {
        font-size: 1.25rem; /* 20px icon */
        margin-bottom: 4px;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* Active State (Selected Tab) */
    .bottom-nav-pro .nav-item.active {
        color: var(--primary-600);
    }

    .bottom-nav-pro .nav-item.active i {
        transform: translateY(-2px); /* Subtle bounce up */
    }

    /* 4. The "Floating" Center Button (FAB) */
    .bottom-nav-pro .nav-item .fab-circle {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -28px; /* Move it halfway up */
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 8px 15px rgba(14, 165, 233, 0.4);
        border: 4px solid #fff; /* White ring to separate from content */
        transition: transform 0.2s ease;
    }

    .bottom-nav-pro .nav-item.active .fab-circle {
        transform: translateX(-50%) scale(1.1); /* Pulse effect when active */
        box-shadow: 0 10px 20px rgba(14, 165, 233, 0.5);
    }

    .bottom-nav-pro .nav-item .fab-circle i {
        color: white;
        font-size: 1.5rem;
        margin-bottom: 0;
        transform: none; /* Don't move the icon inside */
    }

    .bottom-nav-pro .nav-item .fab-label {
        margin-top: 28px; /* Push text down to clear the circle */
        font-weight: 600;
    }
    
    /* Hide the Desktop Mobile Menu Toggle when Bottom Nav is active? 
       Optional: Keep it if you want secondary links (About, Contact) there. */
}
/* =================================================================== */
/* DASHBOARD LIST VIEW (Horizontal Cards)                              */
/* Add to professional.css                                             */
/* =================================================================== */

.courses-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.course-item-pro {
    display: flex;
    padding: 1.25rem;
    gap: 1.25rem;
    align-items: center;
}

.course-image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.course-info {
    flex-grow: 1;
    min-width: 0; /* Prevents text overflow issues */
}

.course-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    border-radius: 10px;
}

.course-actions {
    flex-shrink: 0;
}

/* Mobile Responsiveness for List View */
@media (max-width: 600px) {
    .course-item-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .course-image {
        width: 100%;
        height: 140px;
    }
    .course-actions {
        width: 100%;
    }
    .course-actions .btn {
        width: 100%;
        justify-content: center;
    }
}