/* ===================================
   Learning That Matters - Modern CSS
   =================================== */

/* CSS Variables for Consistent Design */
:root {
    /* Modern Color Palette */
    --primary: #64748b;
    --primary-dark: #475569;
    --primary-light: #94a3b8;
    --primary-lighter: #cbd5e1;
    
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --secondary-light: #f9a8d4;
    
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-lighter: #fde68a;
    
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* 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;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #334155 0%, #64748b 100%);
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #334155 50%, #fb7185 100%);
    --gradient-card: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    --gradient-text: linear-gradient(135deg, #334155 0%, #64748b 100%);
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Section Spacing */
.section {
    padding: var(--space-4xl) 0;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-sticky);
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    background: linear-gradient(90deg, var(--primary-lighter) 0%, transparent 50%);
    opacity: 0.1;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav-brand:hover {
    transform: translateX(5px);
}

.brand-logo {
    height: 65px;
    width: auto;
    transition: transform var(--transition-base);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.brand-icon i {
    color: white !important;
}

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

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(236, 72, 153, 0.05) 50%, 
        rgba(245, 158, 11, 0.05) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.floating-elements {
    position: absolute;
    inset: 0;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: float 20s infinite ease-in-out;
    opacity: 0.8;
}

.float-1 { top: 20%; left: 10%; animation-delay: 0s; color: var(--primary); }
.float-2 { top: 60%; right: 10%; animation-delay: 5s; color: var(--secondary); }
.float-3 { bottom: 30%; left: 15%; animation-delay: 10s; color: var(--accent); }
.float-4 { top: 40%; right: 20%; animation-delay: 15s; color: var(--success); }
.float-5 { bottom: 20%; right: 30%; animation-delay: 20s; color: var(--info); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(20px) rotate(3deg); }
}

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

.hero-main {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-main {
    display: block;
    color: var(--gray-900);
}

.title-gradient {
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

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

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

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

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Removed hover - stat cards are not interactive */

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===================================
   Philosophy Section
   =================================== */
.philosophy {
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    padding-top: var(--space-md);
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    line-height: 1.2;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    white-space: nowrap;
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
}

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

.philosophy-card {
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

/* Removed hover effects - cards are not interactive */

.card-icon-wrapper {
    margin-bottom: var(--space-xl);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.card-icon i {
    color: white !important;
    font-size: 2rem !important;
    display: block !important;
}

/* Ensure icons display properly */
.card-icon .fas {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

.philosophy-card h3 {
    margin-bottom: var(--space-md);
}

.philosophy-card p {
    margin-bottom: var(--space-lg);
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-xl);
    position: relative;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ===================================
   Lessons Section
   =================================== */
.lessons {
    background: var(--gray-50);
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    align-items: center;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
}

.filter-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: var(--space-sm);
}

.filter-tab {
    padding: var(--space-sm) var(--space-xl);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-500);
    font-size: 1.125rem;
}

.lesson-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.lesson-header {
    padding: var(--space-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.lesson-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.lesson-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.3;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
}

.lesson-grade {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.lesson-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.lesson-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}

.lesson-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.lesson-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.lesson-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.lesson-meta-item i {
    color: var(--primary);
}

.lesson-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.lesson-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===================================
   Featured Lesson Section
   =================================== */
.featured-lesson {
    background: white;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.featured-tag {
    display: inline-block;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.featured-content h2 {
    margin-bottom: var(--space-lg);
}

.featured-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-600);
}

.featured-meta i {
    color: var(--primary);
}

.featured-description {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.featured-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
}

.featured-quote p {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}

.featured-quote cite {
    display: block;
    text-align: right;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.featured-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.featured-visual {
    position: relative;
}

.visual-card {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visual-card h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.visual-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

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

.visual-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

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

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

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

/* ===================================
   Resources Section
   =================================== */
.resources {
    background: var(--gray-50);
}

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

.resource-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

/* Removed hover - resource cards are not interactive */

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto var(--space-xl);
}

.resource-card h3 {
    margin-bottom: var(--space-md);
}

.resource-card p {
    margin-bottom: var(--space-xl);
}

.resource-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-base);
}

.resource-link:hover {
    gap: var(--space-md);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
}

.cta-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3xl);
    align-items: center;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-stats {
    display: grid;
    gap: var(--space-xl);
}

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

.cta-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    margin-bottom: var(--space-3xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-logo i {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: white;
}

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

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-info p {
    color: var(--gray-300);
    margin: 0;
    font-size: 0.95rem;
}

.linkedin-link {
    color: var(--gray-300);
    font-size: 1.25rem;
    transition: color var(--transition-base);
}

.linkedin-link:hover {
    color: #0077b5;
}

.footer-license {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-license img {
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-license img:hover {
    opacity: 1;
}

.footer-license p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.footer-license a {
    color: var(--gray-300);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.footer-license a:hover {
    color: white;
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop);
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-xl);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-content {
    overflow-y: auto;
    padding: var(--space-3xl);
}

/* ===================================
   Animations
   =================================== */
.slide-in {
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
}

.slide-in:nth-child(1) { animation-delay: 0.1s; }
.slide-in:nth-child(2) { animation-delay: 0.2s; }
.slide-in:nth-child(3) { animation-delay: 0.3s; }
.slide-in:nth-child(4) { animation-delay: 0.4s; }
.slide-in:nth-child(5) { animation-delay: 0.5s; }

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   Accessibility & Focus Styles
   =================================== */

/* Focus styles for keyboard navigation */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
.btn:focus,
.nav-link:focus,
.filter-tab:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.2);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast focus for mobile toggle */
.mobile-menu-toggle:focus {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* Modal focus trap styling */
.modal-close:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ===================================
   Responsive Design
   =================================== */
/* Desktop filter layout */
@media (min-width: 769px) {
    .filter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-group {
        flex-direction: row;
        width: auto;
    }
    
    .filter-group label {
        width: auto;
        text-align: left;
        min-width: auto;
        margin-right: var(--space-xs);
    }
}

@media (max-width: 1024px) {
    .featured-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Grids */
    .philosophy-grid,
    .lessons-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Filter Tabs Mobile */
    .filter-tabs {
        gap: var(--space-lg);
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .filter-group label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: var(--space-xs);
        text-align: center;
        width: 100%;
    }
    
    .filter-tab {
        padding: var(--space-xs) var(--space-lg);
        font-size: 0.875rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

/* ===================================
   Assessment and Rubric Styles
   =================================== */
.assessment-grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.assessment-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

/* Removed hover - assessment cards are not interactive */

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

.assessment-header h4 {
    margin: 0;
    color: var(--gray-900);
}

.assessment-weight {
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Rubric Toggle Button */
.rubric-toggle {
    margin-top: var(--space-md);
    background: transparent;
    border: 2px solid var(--primary-lighter);
    color: var(--primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    width: 100%;
    justify-content: center;
}

.rubric-toggle:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
}

.rubric-toggle i {
    transition: transform var(--transition-base);
}

/* Rubric Content */
.rubric-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    margin-top: var(--space-md);
    position: relative;
}

.rubric-content.show {
    max-height: 3000px;
}

/* Compact rubric view for better fit */
.rubric-wrapper {
    position: relative;
    width: 100%;
}

/* Rubric Tables */
.rubric-table {
    overflow-x: auto !important;
    margin-top: var(--space-md);
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: block; /* Ensure it behaves as a block for scrolling */
}

.rubric-table table {
    width: 100%;
    min-width: 900px; /* Increased to accommodate 4 columns */
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
    /* Removed overflow: hidden to allow proper scrolling */
    /* Removed table-layout: fixed to allow natural column sizing */
}

.rubric-table th,
.rubric-table td {
    padding: var(--space-sm) var(--space-md); /* More horizontal padding */
    text-align: left;
    border: 1px solid var(--gray-200);
    vertical-align: top;
}

.rubric-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.rubric-table .criteria-name {
    background: var(--gray-50);
    font-weight: 600;
    width: 18%; /* Reduced to give more space to content columns */
    min-width: 100px;
    font-size: 0.75rem;
}

.rubric-table td:not(.criteria-name) {
    /* Let columns size naturally based on content */
    min-width: 150px; /* Ensure minimum readable width */
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word; /* Better word breaking */
}

.rubric-table .level-1 {
    background-color: #fef3c7;
}

.rubric-table .level-2 {
    background-color: #dbeafe;
}

.rubric-table .level-3 {
    background-color: #d1fae5;
}

.rubric-table .level-4 {
    background-color: #e9d5ff;
}

.rubric-table td {
    font-size: 0.7rem;
    line-height: 1.5; /* Slightly increased for better readability */
}

/* Scroll indicator for rubric tables */
.rubric-table::-webkit-scrollbar {
    height: 6px;
}

.rubric-table::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.rubric-table::-webkit-scrollbar-thumb {
    background: var(--primary-lighter);
    border-radius: 3px;
}

.rubric-table::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Visual hint for scrollable content */
.rubric-table::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.rubric-table.scrollable::after {
    opacity: 1;
}

/* Observation Rubric */
.observation-rubric table {
    background: white;
}

.observation-rubric .text-center {
    text-align: center;
}

/* Qualitative Rubric */
.rubric-qualitative {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.qualitative-section {
    margin-bottom: var(--space-lg);
}

.qualitative-section:last-child {
    margin-bottom: 0;
}

.qualitative-section h5 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.qualitative-section ul {
    list-style: none;
    padding: 0;
}

.qualitative-section li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}

.qualitative-section li:last-child {
    border-bottom: none;
}

.qualitative-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Peer Feedback Rubric */
.rubric-peer-feedback {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rubric-peer-feedback h5 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.feedback-question {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-100);
}

.feedback-question:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feedback-question p {
    margin: var(--space-xs) 0;
}

.feedback-question .scale {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feedback-question .response-type {
    color: var(--primary);
    font-size: 0.875rem;
}

/* Grade Breakdown */
.grade-breakdown {
    margin-top: var(--space-2xl);
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.grade-chart {
    margin-top: var(--space-lg);
}

.grade-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.grade-label {
    flex: 0 0 200px;
    font-weight: 500;
}

.grade-bar {
    flex: 1;
    height: 30px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.grade-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: width var(--transition-slow);
}

.grade-percent {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 600;
}

/* Rubric Accordion Style */
.rubric-accordion {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rubric-criterion {
    border-bottom: 1px solid var(--gray-200);
}

.rubric-criterion:last-child {
    border-bottom: none;
}

.criterion-toggle {
    width: 100%;
    padding: var(--space-md);
    background: var(--gray-50);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.criterion-toggle:hover {
    background: var(--gray-100);
}

.criterion-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.criterion-toggle i {
    color: var(--gray-500);
    transition: transform var(--transition-base);
}

.criterion-levels {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.criterion-levels.show {
    max-height: 500px;
    overflow-x: auto; /* Allow horizontal scroll when expanded */
    -webkit-overflow-scrolling: touch;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-200);
    padding: 1px;
}

@media (min-width: 768px) {
    .level-grid {
        grid-template-columns: repeat(4, minmax(180px, 1fr)); /* Min width to prevent text cutoff */
        min-width: 800px; /* Force scroll if needed */
    }
}

.level-item {
    background: white;
    padding: var(--space-md);
}

.level-header {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.level-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--gray-700);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.level-item.level-1 {
    background-color: #fef3c7;
}

.level-item.level-2 {
    background-color: #dbeafe;
}

.level-item.level-3 {
    background-color: #d1fae5;
}

.level-item.level-4 {
    background-color: #e9d5ff;
}

/* Responsive Rubric Tables */
@media (max-width: 768px) {
    .rubric-table {
        font-size: 0.75rem;
    }
    
    .rubric-table th,
    .rubric-table td {
        padding: var(--space-sm);
    }
    
    .assessment-header {
        flex-direction: column;
        align-items: start;
        gap: var(--space-sm);
    }
    
    .level-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .rubric-toggle {
        display: none;
    }
    
    .rubric-content {
        max-height: none !important;
        display: block !important;
    }
}