/* ObeliskCore Design System - Modern Institutional Fintech */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables - Design Tokens */
:root {
  /* Quantum Blue Primary Palette */
  --primary-500: #0A60FF;
  --primary-700: #0045B8;
  --primary-100: #E7EFFF;
  
  /* Architectural Neutral System */
  --neutral-0: #F8F9FA;
  --neutral-100: #FFFFFF;
  --neutral-500: #DDE2E7;
  --neutral-700: #68717A;
  --neutral-900: #12181F;
  
  /* Semantic Colors */
  --success: #00A34D;
  --warning: #FFC024;
  --error: #E52E2E;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing (8px grid system) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  
  /* Border Radius - Modern Scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  /* Modern Shadows - Enhanced Depth */
  --shadow-xs: 0 1px 2px rgba(10, 96, 255, 0.08), 0 1px 1px rgba(10, 96, 255, 0.12);
  --shadow-sm: 0 2px 4px rgba(10, 96, 255, 0.12), 0 1px 2px rgba(10, 96, 255, 0.16);
  --shadow-md: 0 4px 12px rgba(10, 96, 255, 0.15), 0 2px 6px rgba(10, 96, 255, 0.1);
  --shadow-lg: 0 8px 25px rgba(10, 96, 255, 0.18), 0 3px 10px rgba(10, 96, 255, 0.12);
  --shadow-xl: 0 16px 40px rgba(10, 96, 255, 0.2), 0 4px 16px rgba(10, 96, 255, 0.15);
  --shadow-2xl: 0 24px 60px rgba(10, 96, 255, 0.25), 0 6px 24px rgba(10, 96, 255, 0.18);
  --shadow-inner: inset 0 2px 4px rgba(10, 96, 255, 0.08);
  
  /* Glass Morphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);
  
  /* Container */
  --container-max: 1280px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-900);
  background-color: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Scale */
h1 {
  font-family: var(--font-heading);
  font-size: 61px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--neutral-900);
}

h2 {
  font-family: var(--font-heading);
  font-size: 49px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--neutral-900);
}

h3 {
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--neutral-900);
}

h4 {
  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.25px;
  color: var(--neutral-900);
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-700);
}

.small-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.25px;
  color: var(--neutral-700);
}

/* Global Navigation - Modern Glass Morphism */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--neutral-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform;
  /* High DPI display optimization */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Logo accessibility improvements */
.logo img {
  display: block;
}

.logo img:not([src]) {
  background-color: var(--primary-500);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  .logo img {
    height: 32px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo img:not([src]) {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 28px;
  }
  
  .logo {
    font-size: 18px;
    gap: 6px;
  }
  
  .logo img:not([src]) {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 320px) {
  .logo {
    font-size: 16px;
  }
  
  .logo img {
    height: 24px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  text-decoration: none;
  color: var(--neutral-900);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '▼';
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  border: 1px solid var(--neutral-500);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--neutral-900);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--primary-100);
  color: var(--primary-500);
}

.btn {
  padding: 14px var(--space-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, #1A7EFF 100%);
  color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, #0A5BFF 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--neutral-900);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-500);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--neutral-900);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--glass-border);
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-xl);
  box-shadow: var(--shadow-2xl);
}

.mobile-menu.open {
  right: 0;
}

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

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--neutral-700);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--neutral-900);
  font-size: 18px;
  font-weight: 500;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border: 1px solid transparent;
}

.mobile-nav-links a:hover {
  background: var(--primary-100);
  color: var(--primary-500);
  transform: translateX(8px);
  border-color: rgba(10, 96, 255, 0.2);
}

/* Hero Section - Modern Gradient Design */
.hero {
  padding: calc(72px + var(--space-xxxl)) 0 var(--space-xxxl);
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 50%, #F0F4FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(10, 96, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(10, 96, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(26, 126, 255, 0.04) 0%, transparent 60%);
  animation: gradientShift 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(10, 96, 255, 0.02), transparent);
  animation: slowRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { opacity: 0.3; transform: translateX(0) translateY(0); }
  100% { opacity: 0.5; transform: translateX(10px) translateY(-5px); }
}

/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.15;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(2px) contrast(1.1) brightness(0.8);
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--neutral-700);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.metric-card {
  background: var(--neutral-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.metric-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: 14px;
  color: var(--neutral-700);
  font-weight: 500;
}

/* Value Proposition Grid */
.value-props {
  padding: var(--space-xxxl) 0;
}

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

/* Modern Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Element-specific animation classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Modern Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Enhanced Typography Effects */
.text-gradient {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-rainbow {
  background: linear-gradient(135deg, var(--primary-500) 0%, #1A7EFF 25%, #00A34D 50%, #FFC024 75%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Modern Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: var(--space-xxxl) 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.value-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(10, 96, 255, 0.3);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary-500), #1A7EFF);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-100), rgba(10, 96, 255, 0.2));
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-500);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 96, 255, 0.1);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card ul {
  list-style: none;
  margin: var(--space-md) 0;
}

.value-card li {
  padding: var(--space-xs) 0;
  color: var(--neutral-700);
}

.value-card li::before {
  content: "✓";
  color: var(--primary-500);
  font-weight: bold;
  margin-right: var(--space-xs);
}

/* Value Card Images */
.value-image {
  margin: 0 0 var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}

.value-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.value-card:hover .value-image img {
  transform: scale(1.05);
}

.value-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 96, 255, 0.1), rgba(10, 96, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover .value-image::after {
  opacity: 1;
}

/* Value Props Section Network Background */
.value-props {
  position: relative;
  overflow: hidden;
}

.network-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.network-bg-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: sepia(100%) hue-rotate(200deg) saturate(0.5);
}

.value-props .container {
  position: relative;
  z-index: 2;
}

.value-props .text-center h2 {
  position: relative;
  z-index: 3;
}

/* Research Page Specific Styles */
.research-hero {
  background: linear-gradient(135deg, #1A1B3E 0%, #2D3561 50%, #4A5568 100%);
}

.research-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.25;
  overflow: hidden;
}

.research-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(1px) contrast(1.2) brightness(0.7);
}

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

/* Research Card Images */
.research-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 96, 255, 0.3);
}

.research-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.research-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.research-card:hover .research-card-image img {
  transform: scale(1.05);
}

.research-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 96, 255, 0.1), rgba(10, 96, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.research-card:hover .research-card-image::after {
  opacity: 1;
}

/* Research Card Content Padding */
.research-card h4,
.research-card .research-tag,
.research-card .research-meta,
.research-card .research-abstract,
.research-card .research-key-finding,
.research-card .research-actions {
  padding: var(--space-md);
}

/* Methodology Image */
.methodology-image {
  width: 100%;
  height: 160px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}

.methodology-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.value-card:hover .methodology-image img {
  transform: scale(1.03);
}

/* Research Filter Background */
.research-filter-bg {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

.research-filter-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: sepia(100%) hue-rotate(200deg) saturate(0.3);
}

/* Research Grid Improvements */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

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

.research-card {
  display: flex;
  flex-direction: column;
}

.research-meta {
  color: var(--neutral-700);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.research-abstract {
  color: var(--neutral-700);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.research-key-finding {
  background: rgba(10, 96, 255, 0.08);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--primary-700);
}

.research-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Social Proof */
.social-proof {
  background: var(--neutral-100);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--neutral-500);
  border-bottom: 1px solid var(--neutral-500);
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  color: var(--neutral-500);
  font-weight: 500;
  font-size: 14px;
}

/* CTA Buttons - Enhanced Modern Design */
.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
  border-radius: 2px;
}

.hero-cta .btn {
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.hero-cta .btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta .btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Modern Card Components */
.modern-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 96, 255, 0.3), transparent);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 96, 255, 0.3);
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-links a:focus,
.mobile-nav-links a:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Modern Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-500) 50%, var(--neutral-100) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Enhanced Table Styling */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.modern-table th {
  background: linear-gradient(135deg, var(--primary-500), #1A7EFF);
  color: white;
  padding: var(--space-lg);
  text-align: left;
  font-weight: 600;
  position: relative;
}

.modern-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.3s ease;
}

.modern-table tr:hover td {
  background: rgba(10, 96, 255, 0.04);
}

/* Filter System */
.filter-system {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}

.filter-input {
  padding: 12px var(--space-md);
  border: 1px solid var(--neutral-500);
  border-radius: var(--radius-md);
  font-size: 16px;
  min-width: 300px;
  transition: border-color 0.2s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.filter-pill {
  padding: 10px var(--space-md);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-500);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-pill.active {
  background: var(--primary-100);
  border-color: var(--primary-500);
  color: var(--primary-500);
}

.filter-pill:hover:not(.active) {
  border-color: var(--neutral-700);
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.research-card {
  background: var(--neutral-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.research-card h4 {
  margin-bottom: var(--space-sm);
  font-size: 24px;
}

.research-meta {
  font-size: 14px;
  color: var(--neutral-700);
  margin-bottom: var(--space-sm);
}

.research-tag {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary-500);
  padding: 4px var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.research-abstract {
  margin: var(--space-sm) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-key-finding {
  background: var(--neutral-0);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  margin: var(--space-sm) 0;
  font-style: italic;
  color: var(--neutral-700);
}

.research-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Pricing Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.pricing-card {
  background: var(--neutral-100);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border: 2px solid var(--primary-500);
  transform: scale(1.05);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-500);
  color: white;
  padding: 4px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.pricing-header h3 {
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: var(--space-xs);
}

.pricing-period {
  color: var(--neutral-700);
  font-size: 16px;
}

.pricing-features {
  list-style: none;
  margin: var(--space-lg) 0;
  text-align: left;
}

.pricing-features li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary-500);
  font-weight: bold;
  margin-right: var(--space-sm);
}

.pricing-features li.unavailable::before {
  content: "✗";
  color: var(--neutral-500);
}

/* Tools SPA */
.tool-container {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

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

.tool-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--neutral-900);
}

.input-group input,
.input-group textarea,
.input-group select {
  padding: 12px var(--space-md);
  border: 1px solid var(--neutral-500);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-500);
}

.tool-results {
  background: var(--neutral-0);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

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

.result-item {
  text-align: center;
  padding: var(--space-md);
}

.result-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: var(--space-xs);
}

.result-label {
  font-size: 14px;
  color: var(--neutral-700);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  h1 {
    font-size: 42px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  h3 {
    font-size: 28px;
  }
  
  .hero {
    padding: calc(72px + var(--space-xxl)) 0 var(--space-xxl);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .metric-card {
    padding: var(--space-md);
  }
  
  .metric-value {
    font-size: 24px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-system {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-input {
    min-width: auto;
  }
  
  .research-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  /* Clean mobile fix for value-grid and value-card - MOBILE ONLY */
  .value-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  .value-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: var(--space-lg) !important;
    box-sizing: border-box !important;
  }
  
  .value-image img {
    height: 140px !important;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  
  .value-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: var(--space-sm) !important;
  }
    margin: var(--space-md) 0 !important;
  }
  
  .value-card li {
    font-size: 0.875rem !important;
    margin-bottom: var(--space-xs) !important;
    padding: 0 !important;
    line-height: 1.4 !important;
  }
  
  .value-card .btn {
    width: 100% !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    display: block !important;
    margin-top: var(--space-sm) !important;
  }
  
  /* FIX FOR ANY INLINE STYLES */
  [style*="value-grid"] .value-card {
    min-width: unset !important;
    max-width: unset !important;
  }
  
  /* CONTAINER FIXES */
  .value-props {
    padding: var(--space-xl) 0 !important;
  }
  
  .trust-bar {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-inputs {
    grid-template-columns: 1fr;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  /* FURTHER OPTIMIZATIONS FOR SMALLER SCREENS */
  .value-grid {
    gap: var(--space-sm) !important;
    margin-top: var(--space-md) !important;
  }
  
  .value-card {
    padding: var(--space-md) !important;
  }
  
  .value-image img {
    height: 120px !important;
  }
  
  .value-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
  
  .value-card h3 {
    font-size: 1.125rem !important;
  }
  
  .value-card li {
    font-size: 0.8rem !important;
  }
  
  /* ULTRA-SMALL MOBILE (320px) */
  .value-card {
    padding: var(--space-sm) !important;
  }
  
  .value-image img {
    height: 100px !important;
  }
  
  .value-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  
  .value-card h3 {
    font-size: 1rem !important;
  }
  
  .value-card .btn {
    padding: var(--space-xs) var(--space-sm) !important;
    font-size: 0.8rem !important;
  }
  
  /* Course-specific responsive layouts */
.course-header-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.course-content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.course-meta-container {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.transaction-demo-container {
  background: var(--neutral-0);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

@media (max-width: 768px) {
  .course-header-layout,
  .course-content-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
  
  .course-meta-container {
    flex-direction: column !important;
    gap: var(--space-md) !important;
    margin: var(--space-md) 0 !important;
  }
  
  .transaction-demo-container {
    padding: var(--space-md) !important;
    margin: var(--space-sm) 0 !important;
  }
}

@media (max-width: 480px) {
  .course-header-layout,
  .course-content-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  .course-meta-container {
    flex-direction: column !important;
    gap: var(--space-sm) !important;
    margin: var(--space-sm) 0 !important;
  }
  
  .transaction-demo-container {
    padding: var(--space-sm) !important;
    margin: var(--space-xs) 0 !important;
  }
}

/* Force mobile compatibility for all grid layouts */
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Course-specific mobile fixes */
  .course-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  .course-header-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  .course-content-layout {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Tool containers */
  .tool-container {
    margin: var(--space-md) 0 !important;
    padding: var(--space-md) !important;
  }
  
  /* Lesson items */
  .lesson-item {
    display: block !important;
    text-align: left !important;
    margin-bottom: var(--space-md) !important;
    padding: var(--space-md) !important;
  }
  
  .lesson-number {
    margin-bottom: var(--space-sm) !important;
  }
  
  .lesson-content {
    margin-bottom: var(--space-sm) !important;
  }
  
  .lesson-content button {
    width: 100% !important;
  }
  
  /* Transaction demos */
  .transaction-demo {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Course cards */
  .course-card {
    margin-top: var(--space-md) !important;
  }
  
  /* Force single column for all content sections */
  .content-section > div > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Ensure no horizontal overflow */
  .course-content,
  .lesson-list,
  .tool-container,
  .transaction-demo,
  .course-header-layout,
  .course-content-layout {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* Mobile-specific responsive classes */
@media (max-width: 768px) {
  .course-layout {
    grid-template-columns: 1fr !important;
  }
  
  .course-header-layout {
    grid-template-columns: 1fr !important;
  }
  
  .course-content-layout {
    grid-template-columns: 1fr !important;
  }
  
  /* Override problematic inline styles */
  div[style*="display: grid"][style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
}

/* EDUCATION FOLDER COMPREHENSIVE MOBILE ENHANCEMENTS */
/* Main education page mobile fixes */
@media (max-width: 768px) {
  /* Force single column for main education page grids */
  .value-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
    margin-top: var(--space-lg) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  
  /* VALUE CARD MOBILE OPTIMIZATION */
  .value-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: var(--space-lg) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  
  /* IMAGE FIXES */
  .value-image img {
    height: 140px !important;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  
  /* TYPOGRAPHY FIXES */
  .value-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: var(--space-sm) !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }
  
  .value-card ul {
    margin: var(--space-sm) 0 !important;
    padding: 0 !important;
  }
  
  .value-card li {
    font-size: 0.875rem !important;
    margin-bottom: var(--space-xs) !important;
  }
  
  .value-card .btn {
    width: 100% !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-size: 0.875rem !important;
  }
  
  /* Remove side cards and stack them vertically */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  [style*="display: grid; grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Hide or stack instructor cards properly */
  .instructor-grid,
  .workshop-grid,
  .course-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Mobile-friendly course layout */
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* COMPREHENSIVE VALUE-CARD FIXES - ULTRA HIGH PRIORITY */
  .value-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: var(--space-lg) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  
  /* IMAGE FIXES */
  .value-image img {
    height: 140px !important;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  
  .value-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
    margin-bottom: var(--space-md) !important;
  }
  
  .value-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: var(--space-sm) !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }
  
  .value-card ul {
    margin: var(--space-sm) 0 !important;
    padding: 0 !important;
  }
  
  .value-card li {
    font-size: 0.875rem !important;
    margin-bottom: var(--space-xs) !important;
    padding: 0 !important;
    line-height: 1.4 !important;
  }
  
  .value-card .btn {
    width: 100% !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    display: block !important;
    margin-top: var(--space-sm) !important;
  }
  
  .hero-image {
    opacity: 0.1 !important;
  }
  
  /* Hero and CTA sections mobile optimization */
  .hero-cta {
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-md) !important;
  }
  
  .hero-cta .btn {
    width: 100% !important;
    max-width: 300px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  /* Ultra-small mobile improvements */
  .container {
    padding: 0 12px !important;
  }
  
  /* Further compress grids for very small screens */
  .value-grid,
  .course-grid,
  
  /* Mobile image optimizations */
  .value-image img {
    height: 140px !important;
  }
  
  .hero-image {
    opacity: 0.08 !important;
    filter: blur(3px) contrast(1.05) brightness(0.7) !important;
  }
  
  .network-bg {
    display: none !important;
  }
  
  /* Ultra-mobile research fixes */
  .research-card-image {
    height: 140px !important;
  }
  
  .research-hero-image {
    opacity: 0.12 !important;
    filter: blur(2px) contrast(1.1) brightness(0.6) !important;
  }
  
  .methodology-image {
    height: 100px !important;
  }
  
  .research-actions {
    flex-direction: column !important;
  }
  
  .research-actions .btn {
    width: 100% !important;
    text-align: center !important;
  }
  
  .research-filter-bg {
    display: none !important;
  }
  
  /* Research page mobile fixes */
  .research-hero-image {
    opacity: 0.15 !important;
  }
  
  .research-card-image {
    height: 160px !important;
  }
  
  .research-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
  
  .methodology-image {
    height: 120px !important;
  }
  .instructor-grid {
    gap: var(--space-sm) !important;
  }
  
  /* Compact all cards */
  .value-card,
  .tool-container,
  .course-card {
    padding: var(--space-sm) !important;
    margin: var(--space-sm) 0 !important;
  }
  
  /* Remove complex layouts that don't fit on small screens */
  [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-xs) !important;
  }
}

/* EDUCATION PAGE SPECIFIC MOBILE FIXES */
@media (max-width: 768px) {
  /* Main education index.html specific fixes */
  .education-hero {
    padding: calc(72px + var(--space-lg)) 0 var(--space-lg) !important;
  }
  
  /* Course showcase section mobile fix */
  .course-showcase [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Instructor showcase mobile stacking */
  [style*="value-grid"] .value-card {
    min-width: unset !important;
    max-width: unset !important;
  }
  
  /* Complete course catalog mobile optimization */
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-sm) !important;
  }
  
  /* Metrics and stats cards mobile stacking */
  [style*="grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
  }
}

/* EDUCATION COURSE PAGES MOBILE ENHANCEMENTS */
@media (max-width: 768px) {
  /* All course pages grid fixes */
  .course-layout,
  .course-header-layout,
  .course-content-layout {
    display: block !important;
  }
  
  /* Remove side cards in course pages */
  .course-sidebar,
  .course-aside,
  [style*="margin-left"] {
    display: none !important;
  }
  
  /* Single column for all course content */
  .course-main,
  .course-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Module grid mobile fixes */
  .module-grid {
    display: block !important;
  }
  
  .module-card {
    margin-bottom: var(--space-md) !important;
    padding: var(--space-md) !important;
  }
  
  /* Transaction demos mobile scrolling */
  .transaction-demo,
  .code-demo,
  .calculation-grid {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }
  
  /* Lesson navigation mobile stacking */
  .lesson-nav,
  .breadcrumb {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Course metadata mobile stacking */
  .course-meta {
    display: block !important;
    margin-bottom: var(--space-sm) !important;
  }
  
  .course-meta > div {
    margin-bottom: var(--space-xs) !important;
  }
}

@media (max-width: 480px) {
  /* Very small screen optimizations */
  .course-main,
  .course-content {
    padding: var(--space-xs) !important;
  }
  
  .module-card {
    padding: var(--space-xs) !important;
    margin-bottom: var(--space-sm) !important;
  }
  
  /* Hide complex tables and charts on very small screens */
  .complex-table,
  .data-table,
  [style*="overflow-x"] {
    font-size: 12px !important;
  }
}

/* COMPREHENSIVE GRID LAYOUT FIXES */
@media (max-width: 768px) {
  /* Force all grid layouts to single column */
  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Specific grid pattern overrides */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Auto-fit and minmax fixes */
  [style*="grid-template-columns: repeat(auto-fit, minmax("] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
  
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
}

/* SIDEBAR ELIMINATION - CONVERT TO METRICS */
@media (max-width: 768px) {
  /* Eliminate all sidebar elements and convert to full-width content */
  .sidebar,
  [style*="grid-template-columns: 2fr 1fr"] > div:last-child,
  [style*="grid-template-columns: 1fr 1fr"] > div:last-child {
    display: none !important;
  }
  
  /* Force all content to full width */
  .course-header-layout > div:last-child,
  .course-content-layout > div:last-child,
  .grid-layout > div:last-child {
    display: none !important;
  }
  
  /* Convert sidebar content to main content */
  .tool-container {
    margin: var(--space-md) 0 !important;
    padding: var(--space-md) !important;
  }
}

/* SIDEBAR TO METRIC CONVERSION - ALL SCREENS */
@media (min-width: 769px) {
  /* Hide sidebar elements on all screen sizes */
  .sidebar,
  [class*="sidebar"],
  [id*="sidebar"],
  [style*="grid-template-columns: 2fr 1fr"] > div:last-child,
  [style*="grid-template-columns: 1fr 1fr"] > div:last-child {
    display: none !important;
  }
  
  /* Convert any remaining tool-containers in sidebars to metric cards */
  .tool-container {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-sm) 0;
  }
  
  /* Override problematic grid layouts that create sidebars */
  [style*="display: grid"][style*="grid-template-columns: 2fr 1fr"] {
    display: block !important;
  }
  
  [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
}

/* FORCE METRIC CARD CONVERSION */
.metric-card {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: var(--primary-300);
  box-shadow: 0 4px 12px rgba(10, 96, 255, 0.1);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: var(--space-xs);
}

/* HORIZONTAL SCROLL PREVENTION */
@media (max-width: 768px) {
  /* Prevent horizontal scroll on all education pages */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Ensure all containers fit screen width */
  .container,
  .tool-container,
  .value-card,
  .course-card,
  .module-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Remove fixed widths that cause overflow */
  [style*="width: 800px"],
  [style*="width: 600px"],
  [style*="width: 400px"],
  [style*="min-width:"] {
    max-width: 100% !important;
    width: auto !important;
  }
  
  /* Remove negative margins that cause overflow */
  [style*="margin-left: -"],
  [style*="margin-right: -"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

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

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-xxl { padding: var(--space-xxl); }

/* ============================================
   MODERN ENHANCEMENT UTILITY CLASSES
   ============================================ */

/* Glass Morphism Effects */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.modern-shadow {
  box-shadow: var(--shadow-xl);
}

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

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Floating Animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Glow Effects */
.glow-blue {
  box-shadow: 0 0 20px rgba(10, 96, 255, 0.3);
}

.glow-blue:hover {
  box-shadow: 0 0 30px rgba(10, 96, 255, 0.5);
}

/* Modern Borders */
.border-gradient {
  position: relative;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-500), #1A7EFF);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-500), #1A7EFF);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-700);
}

/* Selection Styling */
::selection {
  background: var(--primary-100);
  color: var(--primary-500);
}

::-moz-selection {
  background: var(--primary-100);
  color: var(--primary-500);
}

/* Smooth Transitions */
.smooth-transition {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Card Hover Effects */
.card-hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Enhanced Button Variants */
.btn-modern {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  font-weight: 600;
  letter-spacing: 0.025em;
}

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

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

/* Modern Section Styling */
.modern-section {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xxxl);
  margin: var(--space-xl) 0;
}

.modern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
}

/* Progressive Enhancement for Modern Browsers */
@supports (backdrop-filter: blur(12px)) {
  .supports-blur {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
}

/* Education Platform Specific Styles */

/* Hero Background for Education Page */
.education-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-education-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  opacity: 0.15;
  z-index: -1;
}

/* Visual Learning Resources Images */
.visual-learning-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visual-learning-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(10, 96, 255, 0.3);
}

/* Instructor Photos */
.instructor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-photo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(10, 96, 255, 0.3);
}

/* Curriculum Roadmap Background */
.curriculum-roadmap-bg {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 96, 255, 0.02) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(10, 96, 255, 0.02) 100%);
}

.curriculum-roadmap-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/education_strategy_dev_6.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
}

/* Course Showcase Enhancement */
.course-showcase-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

/* Workshop Section Enhancement */
.workshop-section-bg {
  position: relative;
  background: linear-gradient(45deg, rgba(10, 96, 255, 0.03) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(10, 96, 255, 0.03) 100%);
}

.workshop-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/workshop-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
}

/* Learning Path Icons Enhancement */
.path-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 8px rgba(10, 96, 255, 0.2));
}

/* Education Mobile Responsive */
@media (max-width: 768px) {
  .education-hero-background {
    filter: blur(4px);
    opacity: 0.1;
  }
  
  .visual-learning-image {
    height: 160px;
  }
  
  .instructor-photo {
    width: 60px;
    height: 60px;
  }
  
  .course-showcase-image {
    height: 200px;
  }
  
  .curriculum-roadmap-bg::before,
  .workshop-section-bg::before {
    display: none;
  }
}

/* Enhanced Visual Elements & Animations for Insights */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Enhanced Research Card Styles */
.research-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.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) 0%, var(--primary-700) 100%);
  box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
  background: var(--neutral-0);
  border-color: var(--primary-500);
  color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Filter Pill Enhancements */
.filter-pill {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neutral-200);
  background: rgba(255, 255, 255, 0.8);
  color: var(--neutral-700);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--neutral-100);
  border-color: var(--primary-300);
}

.filter-pill.active {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.filter-pill.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Value Cards */
.value-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Progress Bar Enhancements */
.progress-bar {
  position: relative;
  background: var(--neutral-200);
  border-radius: 3px;
  overflow: hidden;
}

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

/* Live Indicator Animation */
.live-indicator {
  position: relative;
}

.live-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-delay-1 {
  transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
  transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Enhanced Metrics Display */
.metric-card {
  background: linear-gradient(135deg, var(--neutral-0) 0%, var(--neutral-25) 100%);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Enhanced Tag Styles */
.research-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
}

.research-tag:hover {
  transform: scale(1.05);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .research-card {
    margin-bottom: var(--space-lg);
  }
  
  .value-card {
    margin-bottom: var(--space-xl);
  }
  
  .filter-pill {
    font-size: 0.75rem;
    padding: 10px 16px;
  }
  
  .metric-card {
    padding: var(--space-md);
  }
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Focus States for Accessibility */
.research-card:focus,
.filter-pill:focus,
.btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .research-card,
  .value-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--neutral-300);
  }
  
  .btn {
    border: 1px solid var(--neutral-500);
  }
}

/* CLEAN MOBILE FIX FOR VALUE-GRID - Targeted Solution Only */
/* This fix addresses the mobile display issue for "The Architecture of Alpha" section */

/* CRITICAL: Prevent value-grid elements from being hidden by generic CSS rules */
.value-props,
.value-props .value-grid,
.value-props .value-grid > *,
.value-props .value-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  /* Only target the main value-grid, not all grids in the site */
  .value-props .value-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
    display: grid !important;
  }
  
  /* Mobile optimization for value cards in main section only */
  .value-props .value-card {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: var(--space-lg) !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Mobile image optimization */
  .value-props .value-image img {
    height: 140px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
  }
}

/* ======================================= */
/* COMPREHENSIVE PROJECT-WIDE MOBILE FIX  */
/* Extends mobile display protection to ALL grid/card patterns */
/* This addresses the mobile issue across all 47 affected files */
/* ======================================= */

@media (max-width: 768px) {
  /* PROTECT ALL GRID PATTERNS FROM HIDING */
  .research-grid,
  .research-card,
  .course-card,
  [class*="grid"],
  [class*="card"],
  .grid > *,
  [class*="grid"] > *,
  [class*="card"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* RESEARCH GRID - Used in insights section */
  .research-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }
  
  /* COURSE CARD - Used in education pages */
  .course-card {
    width: 100% !important;
    margin-bottom: var(--space-xl) !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* GENERIC GRID PROTECTION - Covers any remaining patterns */
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* GENERIC CARD PROTECTION */
  [class*="card"] {
    max-width: 100% !important;
    margin: 0 auto var(--space-lg) auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* PROTECT ELEMENTS WITH INLINE GRID STYLES */
  [style*="grid-template-columns"] > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* MOBILE IMAGE OPTIMIZATION FOR ALL PATTERNS */
  .research-card img,
  .course-card img,
  [class*="card"] img {
    height: 120px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* BUTTON PROTECTION FOR ALL CARDS */
  .research-card .btn,
  .course-card .btn,
  [class*="card"] .btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    text-align: center !important;
  }
}
  
  /* Ensure value-grid and value-card content is always visible */
  .value-props .value-grid,
  .value-props .value-grid > div,
  .value-props .value-card,
  .value-props .value-card > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  /* Further optimization for very small screens */
  .value-props .value-grid {
    gap: var(--space-sm) !important;
  }
  
  .value-props .value-card {
    padding: var(--space-md) !important;
  }
  
  .value-props .value-image img {
    height: 120px !important;
  }
}

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

/* Desktop Footer Layout */
footer.footer {
  background: var(--neutral-900) !important;
  color: white !important;
  padding: var(--space-xxl) 0 !important;
  margin-top: auto !important;
}

.footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 var(--space-lg) !important;
}

.footer .value-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: var(--space-xl) !important;
  align-items: start !important;
}

.footer .value-grid > div {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-sm) !important;
}

.footer h4 {
  color: white !important;
  margin-bottom: var(--space-md) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.footer h4 img {
  height: 32px !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  filter: brightness(0) invert(1) !important;
}

.footer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-xs) !important;
}

.footer li {
  margin: 0 !important;
}

.footer a {
  color: var(--neutral-500) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.footer a:hover {
  color: var(--primary-300) !important;
  text-decoration: underline !important;
}

.footer .small-text {
  color: var(--neutral-500) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  margin-bottom: var(--space-xs) !important;
}

.footer-bottom {
  text-align: center !important;
  margin-top: var(--space-xl) !important;
  padding-top: var(--space-lg) !important;
  border-top: 1px solid var(--neutral-700) !important;
}

.footer-bottom p {
  margin-bottom: var(--space-sm) !important;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-lg) 0 !important;
  }
  
  .footer .container {
    padding: 0 var(--space-md) !important;
  }
  
  .footer .value-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-lg) !important;
    margin-bottom: var(--space-lg) !important;
  }
  
  .footer h4 {
    font-size: 1rem !important;
    margin-bottom: var(--space-sm) !important;
  }
  
  .footer h4 img {
    height: 28px !important;
  }
  
  .footer ul {
    gap: var(--space-xs) !important;
  }
  
  .footer a {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  
  .footer-bottom {
    margin-top: var(--space-lg) !important;
    padding-top: var(--space-md) !important;
  }
  
  .footer-bottom .small-text {
    font-size: 0.8rem !important;
  }
  
  .footer-bottom .small-text:last-child {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-md) 0 !important;
  }
  
  .footer .container {
    padding: 0 var(--space-sm) !important;
  }
  
  .footer .value-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  .footer .value-grid > div {
    text-align: center !important;
  }
  
  .footer h4 {
    font-size: 0.95rem !important;
    margin-bottom: var(--space-sm) !important;
  }
  
  .footer h4 img {
    height: 24px !important;
  }
  
  .footer ul {
    align-items: center !important;
  }
  
  .footer a {
    font-size: 0.8rem !important;
    padding: var(--space-xs) 0 !important;
    display: block !important;
  }
  
  .footer-bottom {
    margin-top: var(--space-md) !important;
    padding-top: var(--space-sm) !important;
  }
  
  .footer-bottom p {
    font-size: 0.8rem !important;
    margin-bottom: var(--space-xs) !important;
  }
  
  .footer-bottom .small-text:last-child {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 320px) {
  .footer {
    padding: var(--space-sm) 0 !important;
  }
  
  .footer .container {
    padding: 0 8px !important;
  }
  
  .footer .value-grid {
    gap: var(--space-sm) !important;
  }
  
  .footer h4 {
    font-size: 0.9rem !important;
  }
  
  .footer h4 img {
    height: 20px !important;
    margin-right: 4px !important;
  }
  
  .footer a {
    font-size: 0.75rem !important;
  }
  
  .footer-bottom {
    margin-top: var(--space-sm) !important;
    padding-top: var(--space-xs) !important;
  }
  
  .footer-bottom .small-text:last-child {
    font-size: 0.65rem !important;
  }
}