﻿/* ==========================================
   IMPACT STORIES - ENTERPRISE LEVEL DESIGN
   Advanced animations, 3D effects, and innovative UI patterns
   ========================================== */

/* DM Sans Font Face Declarations */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DM_Sans/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DM_Sans/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* Brand Color Variables - Using existing brand palette */
:root {
  /* Brand colors from styles.css */
  --brand-orange: var(--ss-orange);
  --brand-red: var(--ss-red);
  --brand-yellow: var(--ss-yellow);
  --brand-pink: var(--ss-pink);
  --brand-brown: var(--ss-accent-1);
  --surface: var(--ss-neutral-2);
  --surface-white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --shadow-1: 0 6px 18px rgba(0,0,0,.10);
  --shadow-2: 0 10px 28px rgba(0,0,0,.14);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --gap-4: 16px;
  --gap-6: 24px;
  --gap-8: 32px;
  --gap-10: 40px;
  --section-pad: clamp(56px, 8vw, 96px);
}

/* Global color updates */
body {
  background: var(--surface-white);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-1);
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::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.6s;
}

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

.btn-primary:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

a {
  color: var(--brand-red);
  text-underline-offset: 3px;
}

/* ==========================================
   BY THE NUMBERS SECTION - COMPACT INSPIRIT STYLE
   ========================================== */

.by-the-numbers-compact {
  background: white;
  padding: var(--space-2xl) 0;
  position: relative;
  margin-top: 0;
}

.by-the-numbers-wrapper {
  margin: 0 auto;
  margin-left: 0;
  padding: 0;
  padding-right: var(--space-lg);
  display: flex;
  align-items: stretch;
  gap: var(--space-3xl);
}

/* Left: Gradient Title Block - Extends to left edge */
.numbers-title-block {
  flex: 0 0 320px;
  background: var(--gradient-primary);
  border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  box-shadow: 0 8px 32px rgba(231, 48, 82, 0.25);
}

.numbers-title {
  font-family: 'Eastman Grotesque', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Right: Statistics Row */
.numbers-stats-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.compact-stat {
  text-align: center;
  flex: 1;
  padding: var(--space-md);
}

.compact-stat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-sm);
  color: var(--ss-red);
}

.compact-stat-icon svg {
  width: 28px;
  height: 28px;
}

/* Color variations for icons */
.compact-stat:nth-child(1) .compact-stat-icon {
  color: var(--ss-red);
}

.compact-stat:nth-child(2) .compact-stat-icon {
  color: var(--ss-orange);
}

.compact-stat:nth-child(3) .compact-stat-icon {
  color: var(--ss-yellow);
}

.compact-stat:nth-child(4) .compact-stat-icon {
  color: var(--ss-pink);
}

.compact-stat-number {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}

.compact-stat-number.counting {
  transform: scale(1.05);
}

.compact-stat-desc {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* Responsive Design for Compact By the Numbers */
@media (max-width: 1024px) {
  .by-the-numbers-wrapper {
    gap: var(--space-2xl);
  }
  
  .numbers-title-block {
    flex: 0 0 220px;
    padding: var(--space-xl) var(--space-lg);
  }
  
  .numbers-title {
    font-size: clamp(20px, 2.5vw, 28px);
  }
  
  .compact-stat-number {
    font-size: clamp(24px, 3vw, 36px);
  }
  
  .compact-stat-desc {
    font-size: var(--text-xs);
  }
}

@media (max-width: 768px) {
  .by-the-numbers-compact {
    padding: var(--space-xl) 0;
  }
  
  .by-the-numbers-wrapper {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: stretch;
    padding: 0 var(--space-md);
  }
  
  .numbers-title-block {
    flex: none;
    width: 100%;
    min-height: 160px;
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--border-radius-xl);
  }
  
  .numbers-title {
    font-size: clamp(28px, 6vw, 36px);
  }
  
  .numbers-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .compact-stat {
    padding: var(--space-md);
  }
  
  .compact-stat-number {
    font-size: clamp(26px, 6vw, 36px);
  }
  
  .compact-stat-desc {
    font-size: var(--text-sm);
  }

  .stories-container .section-header {
    margin-bottom: 0px;
  }
}

@media (max-width: 480px) {
  .by-the-numbers-compact {
    padding: var(--space-lg) 0;
  }
  
  .by-the-numbers-wrapper {
    padding: 0 var(--space-md);
    gap: var(--space-lg);
  }
  
  .numbers-title-block {
    min-height: 80px;
    padding: var(--space-lg);
  }
  
  .numbers-title {
    font-size: clamp(20px, 5vw, 28px);
  }
  
  .numbers-stats-row {
    gap: var(--space-md);
  }
  
  .compact-stat {
    padding: var(--space-sm);
  }
  
  .compact-stat-number {
    font-size: clamp(22px, 5.5vw, 30px);
  }
  
  .compact-stat-desc {
    font-size: var(--text-xs);
    line-height: 1.3;
  }
}

/* Focus States for Accessibility */
.compact-stat:focus {
  outline: 2px solid var(--ss-accent-1);
  outline-offset: 2px;
}

/* Animation Performance Optimization */
.compact-stat-number {
  will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .compact-stat-number.counting {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .by-the-numbers-compact {
    background: white !important;
    padding: var(--space-md) 0 !important;
  }
  
  .numbers-title-block {
    background: #333 !important;
    box-shadow: none !important;
  }
  
  .compact-stat-number {
    color: black !important;
  }
}

/* ==========================================
   IMMERSIVE HERO SECTION
   ========================================== */

.impact-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('https://pub-dcb79d88e2ec4567824453cc853f55f3.r2.dev/images/heroes/impact-stories-hero.jpg') center 50%/cover no-repeat;
  background-size: 120%;
  padding-top: 0;
}

.impact-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 4;
}

.impact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Removed floating bubbles */
.hero-particles {
  display: none;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 2;
}

.impact-hero-container {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
  min-height: 30vh;
  padding: 0;
  justify-items: start;
  width: 100%;
}

.hero-text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 85%;
  text-align: left;
}

/* Enterprise Badge Design */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: max-content;
}

.hero-badge::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.8s;
}

.hero-badge:hover::before {
  left: 100%;
}

.badge-icon {
  font-size: var(--text-lg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Advanced Typography with Staggered Animation */
.impact-hero-title {
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin: 0;
  flex-direction: column;
  gap: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 650px;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px) rotateX(90deg);
  animation: titleReveal 1s ease-out forwards;
  transform-origin: bottom;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.2; /* Ensure proper line spacing for individual lines */
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-highlight {
  color: white;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 14px;
  background-image: url('https://pub-dcb79d88e2ec4567824453cc853f55f3.r2.dev/images/icons/pen-underline.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translateY(50%) translateX(-20%) scaleX(30) scaleY(30) rotate(5deg);
  background-position: center bottom;
  opacity: 0.9;
  z-index: 1;
}

/* Responsive adjustments for the pen underline on mobile */
@media (max-width: 768px) {
  .title-highlight::after {
    bottom: -12px;
    height: 16px;
    transform: translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }
}

@media (max-width: 768px) {
  .title-highlight::after {
    bottom: -10px;
    height: 14px;
    transform:translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }
}

@media (max-width: 480px) {
  .title-highlight::after {
    bottom: -8px;
    height: 12px;
    transform: translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }
}

@media (max-width: 360px) {
  .title-highlight::after {
    bottom: -6px;
    height: 10px;
    transform:translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

.impact-hero-subtitle {
  /* font-size: clamp(14px, 1.6vw, 16px); */
  font-size:var(--text-xl);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 900px;
}

/* Stats Section - Fixed Layout */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-8);
  padding: var(--section-pad) 0;
  position: relative;
  margin-top: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: var(--gap-8);
  position: relative;
  z-index: 2;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.stat-card .value {
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: visible;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-md);
}

.stat-card .label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--gap-4);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Floating Testimonial Preview */
.hero-visual-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-testimonial-preview {
  position: relative;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.6s ease-out;
}

.floating-testimonial-preview:hover {
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) translateY(-10px);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonials-carousel{
  padding: 0px;
}

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

.student-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.student-avatar::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.testimonial-card:hover .student-avatar::after {
  opacity: 1;
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-style: italic;
  position: relative;
}

.testimonial-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--ss-red);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: serif;
  opacity: 0.3;
}

.student-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.student-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.student-program {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Scroll Indicator - Fixed positioning */
.scroll-hint {
  position: sticky;
  bottom: var(--gap-6);
  text-align: center;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-lg);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 4;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  border-radius: 1px;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.7);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { 
    transform: translateX(-50%) translateY(0px); 
    opacity: 1;
  }
  50% { 
    transform: translateX(-50%) translateY(5px); 
    opacity: 0.5;
  }
}

/* ==========================================
   CASE STUDIES TESTIMONIALS SECTION
   ========================================== */

.case-studies-testimonials {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, 
    var(--surface-secondary) 0%, 
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
  margin-top: 0;
}

.case-studies-testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    var(--surface-secondary) 0%, 
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.case-studies-testimonials::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245, 243, 240, 0.3) 70%,
    var(--surface-secondary) 100%
  );
  pointer-events: none;
}


/* ==========================================
   STUDENT NETWORK WEB SECTION
   ========================================== */

.student-network-section {
  background: var(--surface-white);
  position: relative;
  margin-top: 0;
}

/* DUAL HEROES - JONATHAN & LILI */
.dual-heroes {
  margin: var(--space-4xl) 0;
}

.dual-heroes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: all 0.4s ease-out;
}

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

/* JONATHAN HERO - LEFT */
.jonathan-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(231, 48, 82, 0.95) 0%,
    rgba(237, 124, 75, 0.9) 50%,
    rgba(255, 182, 95, 0.85) 100%
  );
  z-index: 1;
}

/* LILI HERO - RIGHT */
.lili-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(238, 45, 110, 0.95) 0%,
    rgba(231, 48, 82, 0.9) 50%,
    rgba(237, 124, 75, 0.85) 100%
  );
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: var(--space-3xl);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-image {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  margin: 0 auto var(--space-xl) auto;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

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

.image-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.hero-image:hover .image-glow {
  opacity: 1;
}

.hero-story {
  color: white;
}

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

.story-header .student-name {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.academic-journey {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.journey-step {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.journey-arrow {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: var(--text-sm);
}

.program-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-testimonial {
  font-size: var(--text-lg);
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-testimonial::before {
  content: '"';
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: -5px;
  left: var(--space-md);
  font-family: serif;
  z-index: -1;
}

.hero-testimonial strong {
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* COMMUNITY GALLERY */
.community-gallery {
  margin: var(--space-4xl) 0;
}

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

.gallery-title {
  font-family: 'Eastman Grotesque', serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--ss-accent-1);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.gallery-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.student-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: all 0.4s ease-out;
  cursor: pointer;
  position: relative;
}

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

.student-card:nth-child(1):hover {
  box-shadow: 0 20px 60px rgba(231, 48, 82, 0.2);
}

.student-card:nth-child(2):hover {
  box-shadow: 0 20px 60px rgba(237, 124, 75, 0.2);
}

.student-card:nth-child(3):hover {
  box-shadow: 0 20px 60px rgba(255, 182, 95, 0.2);
}

.student-card:nth-child(4):hover {
  box-shadow: 0 20px 60px rgba(238, 45, 110, 0.2);
}

.student-card:nth-child(5):hover {
  box-shadow: 0 20px 60px rgba(231, 48, 82, 0.2);
}

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

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

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

.card-content {
  padding: var(--space-xl);
}

.card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card-program {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.student-card:nth-child(1) .card-program {
  color: var(--ss-red);
}

.student-card:nth-child(2) .card-program {
  color: var(--ss-orange);
}

.student-card:nth-child(3) .card-program {
  color: var(--ss-yellow);
}

.student-card:nth-child(4) .card-program {
  color: var(--ss-pink);
}

.student-card:nth-child(5) .card-program {
  color: var(--ss-red);
}

.card-quote {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* CASE STUDIES TESTIMONIALS */
.case-studies-section {
  margin: var(--space-4xl) 0;
  background: #2C3E50;
  padding: var(--space-4xl) 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.case-studies-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.case-studies-label {
  display: inline-block;
  background: var(--ss-accent-2);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.meet-students-label {
  font-family: 'Eastman Grotesque', serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--ss-accent-1);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  text-align: center;
  display: block;
}

.case-studies-title {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
}

.case-studies-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ss-red);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-normal);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.case-studies-link:hover {
  color: var(--ss-pink);
  border-bottom-color: var(--ss-pink);
  transform: translateX(4px);
}

.case-studies-link svg {
  transition: transform var(--transition-fast);
}

.case-studies-link:hover svg {
  transform: translateX(4px);
}

/* Testimonials Carousel - Enhanced Professional Animation */
.testimonials-carousel {
  position: relative;
  max-width: 6600px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 80px; /* Space for arrows */
  /* Prevent horizontal scroll interference while allowing vertical scrolling */
  touch-action: pan-y pinch-zoom;
}

.testimonials-track {
  display: flex;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%; /* 6 slides for seamless loop (5 real + 1 clone) */
  will-change: transform;
  /* Prevent any native scroll behavior on the track */
  touch-action: none;
  /* Prevent text selection during swipe */
  user-select: none;
  -webkit-user-select: none;
}

/* Enhanced card styling with consistent sliding animations only */
.testimonial-case-card {
  flex: 0 0 16.67%; /* Each card takes exactly 1/6 of track width (for 6 slides) */
  width: 16.67%;
  max-width: 1100px; /* Set reasonable max width for the card content */
  margin: 0 auto; /* Center the card within its 1/6 space */
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  min-height: fit-content;
  height: auto;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: box-shadow 0.6s ease-out;
  will-change: transform;
}
/* Photo Section */
.testimonial-photo {
  flex: 0 0 33.333%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  position: relative;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  border-radius: 16px 0 0 16px;
  object-fit: cover;
  object-position: center center;
  box-shadow: none;
}

/* Content Section */
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: var(--space-2xl) var(--space-2xl);
}

.testimonial-quote {
  font-family: 'Source Serif Pro', serif;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: #2C3E50;
  font-weight: 400;
  margin: 0 0 var(--space-xl) 0;
  font-style: italic;
  position: relative;
  background: none;
  border: none;
  padding: 0px;
  text-align: left;
}

/* Quote Attribution Styling - Matching Rana's format */
/* Divider line styling - aligned with body text (left-aligned) */
.testimonial-content hr {
  width: 100%;
  height: 1px;
  min-height: 1px;
  background: #E2E8F0;
  border: none;
  margin: var(--space-xl) 0 var(--space-lg) 0;
}

.testimonial-content .quote-attribution {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonial-content .quote-attribution .author-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

.testimonial-content .quote-attribution .author-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #2C3E50;
  margin: 0;
}

.testimonial-content .quote-attribution .author-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: #64748B;
  margin: 0;
}

.testimonial-content .quote-attribution .company-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #2C3E50;
  opacity: 0.9;
}

.testimonial-content .quote-attribution .company-logo span {
  font-size: var(--text-base);
  font-weight: 600;
}

.testimonial-content .quote-attribution .company-logo .university-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%) opacity(0.9);
  transition: all 0.3s ease;
}

/* Specific sizing for McGill logo to match Princeton logo size */
.testimonial-content .quote-attribution .company-logo .university-logo[src*="Mcgill_univ_ca_logo.png"] {
  height: 45px;
  max-width: 120px;
}

.testimonial-content .quote-attribution .company-logo .university-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Details Section */
.testimonial-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-3xl);
}

.testimonial-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #2C3E50;
  margin: 0;
  line-height: 1.2;
}

.testimonial-title {
  font-size: var(--text-base);
  color: #64748B;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.testimonial-company {
  margin-top: var(--space-md);
}

.company-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #2C3E50;
  margin: 0 0 var(--space-xs) 0;
}

.company-size {
  font-size: var(--text-sm);
  color: #64748B;
  margin: 0;
}

/* Navigation Indicators */
.testimonials-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 10;
}

.testimonial-dot {
  width: 50px;
  height: 4px;
  border-radius: var(--border-radius-full);
  background: var(--ss-accent-1);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0;
  position: relative;
  overflow: visible;
  box-shadow: none;
  z-index: 10;
}

.testimonial-dot::before {
  display: none;
}

.testimonial-dot:not(.active):hover::before {
  display: none;
} 

.testimonial-dot.active {
  background: linear-gradient(135deg, var(--ss-yellow) 0%, var(--ss-orange) 33%, var(--ss-red) 66%, var(--ss-pink) 100%);
  transform: scaleX(1.4) scaleY(1.2);
  box-shadow: 0 4px 20px rgba(231, 48, 82, 0.5);
  border-color: var(--ss-white);
  z-index: 11;
  outline: 0px solid var(--ss-yellow) !important;
  outline-offset: 6px;
}

.testimonial-dot:not(.active):hover {
  background: var(--ss-accent-1);
  transform: scaleX(1.1);
  /* box-shadow: 0 4px 16px rgba(102, 72, 64, 0.4); */
}

.testimonial-dot:focus-visible {
  outline: 0px solid var(--ss-yellow) !important; 
  outline-offset: 6px;
}

/* Navigation Arrows */
.testimonials-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 72, 64, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-accent-1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0;
  outline: 0px !important;
}

.testimonials-arrow:hover {
  background: white;
  color: var(--ss-red);
  border-color: var(--ss-red);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(231, 48, 82, 0.25);
}

.testimonials-arrow:focus-visible {
  outline: 3px solid var(--ss-yellow);
  outline-offset: 3px;
}

.testimonials-arrow-prev {
  left: 20px;
}

.testimonials-arrow-next {
  right: 20px;
}

.testimonials-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

.testimonials-arrow:hover svg {
  transform: scale(1.1);
}

/* Hide arrows on smaller screens to avoid overlap */
@media (max-width: 768px) {
  /* DISABLE DRAG SCROLLING ON MOBILE - Only allow button navigation */
  .testimonials-carousel {
    touch-action: pan-y !important; /* Only allow vertical scrolling, block horizontal */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: auto; /* Disable momentum scrolling */
  }
  
  .testimonials-track {
    touch-action: none !important;
    pointer-events: none; /* Block all touch/pointer events on the track */
  }
  
  /* Re-enable pointer events on navigation elements */
  .testimonials-arrow,
  .testimonial-dot,
  .testimonials-indicators {
    pointer-events: auto !important;
    z-index: 100;
  }
  
  /* Simplify arrow design - clean white arrows without bubble effect */
  .testimonials-arrow {
    display: flex !important;
    position: absolute !important;
    width: 40px;
    height: 40px;
    top: 35%;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  
  .testimonials-arrow:hover {
    background: transparent;
    border: none;
    transform: translateY(-50%);
    box-shadow: none;
  }
  
  .testimonials-arrow svg {
    width: 28px;
    height: 28px;
    stroke: var(--ss-accent-1);
    stroke-width: 2.5;
  }
  
  .testimonials-arrow:hover svg {
    transform: none;
  }
  
  .testimonials-arrow-prev {
    left: -10px;
  }
  
  .testimonials-arrow-next {
    right: -10px;
  }
  
  /* Card layout - use min-height: 0 to eliminate bottom space (better mobile support) */
  .testimonial-case-card {
    min-height: 0 !important;
    height: auto !important;
  }
  
  .testimonial-content hr {
    margin: var(--space-md) 0;
  }
  
  .impact-hero {
    padding: 100px 0 40px;
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
  }
  
  .impact-hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
  }
  
  .hero-content-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  .hero-text-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl) var(--space-lg);
    text-align: left;
    align-items: flex-start;
    max-width: 100%;
  }

  .impact-hero-title {
    font-size: 40px;
    text-align: left;
    grid-column: unset;
    grid-row: unset;
  }
  
  .impact-hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    text-align: left;
    max-width: 100%;
    grid-column: unset;
    grid-row: unset;
  }
  
  .hero-actions {
    justify-content: flex-start;
    margin-right: 0;
    margin-left: 0;
    justify-self: flex-start;
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: start;
  }
  
  /* Mobile testimonials section header - match other sections */
  .meet-students-label {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
  }
  
  .case-studies-title {
    font-size: var(--text-base);
    line-height: 1.5;
  }
  
  /* Carousel adjustments */
  .testimonials-carousel {
    padding: 0 var(--space-md);
    overflow: hidden;
  }
  
  .testimonials-track {
    padding: 0;
    gap: var(--space-lg);
  }
  
  /* Card layout - STACK VERTICALLY - ONE CARD AT A TIME */
  /* Note: flex-basis is controlled by JavaScript for carousel functionality */
  .testimonial-case-card {
    flex-direction: column;
    min-height: auto;
    padding: 0;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  /* Photo section - Full width at top - MOVED UP */
  .testimonial-photo {
    flex: 0 0 auto;
    width: 100%;
    height: 220px;
    min-height: 220px;
    margin-top: -10px;
  }
  
  .testimonial-photo img {
    width: 100%;
    height: 100%;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    object-position: center 35%;
  }
  
  /* Individual photo position overrides for mobile */
  /* Lili (slide 0) - show area 25% from top */
  .testimonial-case-card[data-slide="0"] .testimonial-photo img {
    object-position: center 10%;
  }
  
  /* Aashna (slide 4) - keep original top position */
  .testimonial-case-card[data-slide="4"] .testimonial-photo img {
    object-position: center 10%;
  }
  
  /* Content section - TIGHTER SPACING */
  .testimonial-content {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
  }
  
  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
  }
  
  .testimonial-content hr {
    margin: var(--space-sm) 0;
  }
  
  .testimonial-content .quote-attribution {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .testimonial-content .quote-attribution .author-name {
    font-size: var(--text-base);
  }
  
  .testimonial-content .quote-attribution .author-title {
    font-size: var(--text-sm);
  }
  
  .testimonial-content .quote-attribution .company-logo {
    margin-top: var(--space-xs);
  }
  
  /* INCREASED & STANDARDIZED logo sizes for mobile */
  .testimonial-content .quote-attribution .company-logo .university-logo {
    height: 80px !important;
    max-width: 200px !important;
  }
  
  /* Specific adjustments for McGill to keep it proportional */
  .testimonial-content .quote-attribution .company-logo .university-logo[src*="Mcgill_univ_ca_logo.png"] {
    height: 50px !important;
    max-width: 130px !important;
  }
  
  /* Navigation dots */
  .testimonials-indicators {
    margin-top: var(--space-xl);
    gap: var(--space-md);
  }
  
  .testimonial-dot {
    width: 32px;
    height: 3px;
  }
  
  .testimonial-dot.active {
    transform: scaleX(1.2) scaleY(1.1);
  }
}

@media (max-width: 480px) {
  /* Even smaller screens */
  .hero-text-section {
    gap: var(--space-xl) var(--space-md);
  }
  
  .case-studies-testimonials {
    padding: var(--space-xl) 0;
  }
  
  .case-studies-header {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .meet-students-label {
    font-size: var(--text-4xl);
  }
  
  .case-studies-title {
    font-size: var(--text-sm);
  }
  
  /* Smaller clean arrows for small mobile */
  .testimonials-arrow {
    width: 32px;
    height: 32px;
  }
  
  .testimonials-arrow svg {
    width: 22px;
    height: 22px;
  }
  
  .testimonials-arrow-prev {
    left: -5px;
  }
  
  .testimonials-arrow-next {
    right: -5px;
  }
  
  /* Note: flex-basis controlled by JavaScript */
  .testimonial-case-card {
    border-radius: 12px;
  }
  
  /* Photo section - moved up */
  .testimonial-photo {
    height: 200px;
    min-height: 200px;
    margin-top: -8px;
  }
  
  .testimonial-photo img {
    border-radius: 12px 12px 0 0;
  }
  
  /* Content section - tighter spacing */
  .testimonial-content {
    padding: var(--space-sm) var(--space-md);
  }
  
  .testimonial-quote {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: var(--space-xs);
  }
  
  .testimonial-content .quote-attribution .author-name {
    font-size: var(--text-sm);
  }
  
  .testimonial-content .quote-attribution .author-title {
    font-size: var(--text-xs);
  }
  
  /* INCREASED logo sizes for 480px screens */
  .testimonial-content .quote-attribution .company-logo .university-logo {
    height: 70px !important;
    max-width: 180px !important;
  }
  
  /* Keep McGill proportional */
  .testimonial-content .quote-attribution .company-logo .university-logo[src*="Mcgill_univ_ca_logo.png"] {
    height: 45px !important;
    max-width: 120px !important;
  }
  
  .testimonials-indicators {
    margin-top: var(--space-lg);
    gap: var(--space-sm);
  }
  
  .testimonial-dot {
    width: 24px;
    height: 3px;
  }
}

@media (max-width: 360px) {
  /* Extra small screens */
  .meet-students-label {
    font-size: var(--text-4xl);
  }
  
  .case-studies-title {
    font-size: var(--text-xs);
  }
  
  .testimonials-carousel {
    padding: 0;
  }
  
  /* Note: flex-basis controlled by JavaScript */
  .testimonial-case-card {
    /* Flex sizing handled by JS */
  }
  
  /* Photo section - moved up */
  .testimonial-photo {
    height: 180px;
    min-height: 180px;
    margin-top: -6px;
  }
  
  /* Content section - tighter spacing */
  .testimonial-content {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .testimonial-quote {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
  }
  
  .testimonial-content hr {
    margin: var(--space-xs) 0;
  }
  
  /* INCREASED logo sizes for 360px screens */
  .testimonial-content .quote-attribution .company-logo .university-logo {
    height: 60px !important;
    max-width: 150px !important;
  }
  
  /* Keep McGill proportional */
  .testimonial-content .quote-attribution .company-logo .university-logo[src*="Mcgill_univ_ca_logo.png"] {
    height: 40px !important;
    max-width: 105px !important;
  }
}

/* ==========================================
   STUDENT NETWORK WEB VISUALIZATION
   ========================================== */

.student-network-web {
  margin: var(--space-4xl) 0;
  position: relative;
}

/* Mobile: Remove extra margin from student-network-web */
@media (max-width: 768px) {
  .student-network-web {
    margin: 0;
  }
}

.network-container {
  max-width: none;
  margin: 0;
  padding: 0 20px; /* Minimal edge padding */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-height: 1000px;
}

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

.network-title {
  font-family: 'Eastman Grotesque', serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--ss-accent-1);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.network-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.network-visualization {
  position: relative;
  border-radius: 0;
  border: none;
  overflow: visible;
  backdrop-filter: none;
  min-height: 600px;
  box-shadow: none;
}

.network-visualization::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://pub-dcb79d88e2ec4567824453cc853f55f3.r2.dev/images/misc/world-map.png') center center/contain no-repeat;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.network-canvas {
  width: 100%;
  height: auto; /* Will be set dynamically */
  min-height: 600px;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 700; /* Lower than testimonial card (800) so only selected node appears on top */
}

.network-canvas:hover {
  cursor: grab;
}

.network-canvas:active {
  cursor: grabbing;
}

/* Floating Testimonial Card */
.floating-testimonial-card {
  /* CSS Variables for responsive node sizing - matching the scaled node size */
  --node-size: 170px;             /* extra-large node size (85px radius * 2) */
  --node-gap: 15px;               /* reduced space from node bottom to content */
  
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 800; /* Lower than the centered node (900) so node appears on top */
  border: 1px solid rgba(255, 255, 255, 0.3);
  
  /* Layout to accommodate overlapping node at top - reduced padding */
  padding-top: calc(var(--node-size) / 2 + var(--node-gap));
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  min-height: 300px; /* Ensure adequate space for content */
}

.floating-testimonial-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.testimonial-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  z-index: 3;
}

.testimonial-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Hide the original avatar since the node will serve as the avatar */
.testimonial-avatar {
  display: none;
}

/* Typography/spacing - adjusted for node overlap */
.testimonial-name,
.testimonial-subtitle,
.testimonial-text { 
  text-align: center; 
}

.testimonial-name { 
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0; 
  margin-bottom: .25rem; 
}

.testimonial-subtitle { 
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 .75rem; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: .75; 
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
  text-align: center;
}

.testimonial-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  /* Ensure content starts below the overlapping node */
  margin-top: 0;
}

/* Responsive node sizes */
@media (max-width: 640px) {
  .floating-testimonial-card { 
    --node-size: 130px; /* Smaller node size for mobile */
    --node-gap: 10px;   /* reduced gap for mobile */
    width: 350px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 250px;
  }
  
  .testimonial-name {
    font-size: 1.25rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .floating-testimonial-card { 
    --node-size: 200px; /* Larger node size for desktop */
    --node-gap: 12px;   /* slightly reduced gap for desktop */
    min-height: 350px;
  }



}

/* Network Node Styles (for canvas rendering reference) */
.network-node {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 3;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.network-node.large {
  width: 80px;
  height: 80px;
}

.network-node.medium {
  width: 65px;
  height: 65px;
}

.network-node.small {
  width: 50px;
  height: 50px;
}

.network-node.centered {
  transform: scale(1.3);
  z-index: 1;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.network-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

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

.cta-content::before{
  content: '';
  position: absolute;
  top: -40px;
  left: 3%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

/* Connection Line Styles (for reference) */
.connection-line {
  stroke: rgba(231, 48, 82, 0.3);
  stroke-width: 2;
  opacity: 0.6;
  transition: all 0.6s ease-out;
}

.connection-line.active {
  stroke: rgba(231, 48, 82, 0.8);
  stroke-width: 3;
  opacity: 1;
  animation: connectionPulse 2s ease-in-out infinite alternate;
}

@keyframes connectionPulse {
  0% { 
    stroke: rgba(231, 48, 82, 0.6);
    stroke-width: 2;
  }
  100% { 
    stroke: rgba(231, 48, 82, 1);
    stroke-width: 4;
  }
}

/* Particle Animation Styles */
.connection-particle {
  fill: var(--ss-red);
  opacity: 0.8;
  animation: particleFlow 3s linear infinite;
}

@keyframes particleFlow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .network-visualization {
    min-height: 400px;
  }

  .case-studies-testimonials::before{
    z-index: -1 !important;
  }
  
  .network-canvas {
    min-height: 400px;
  }
  
  .floating-testimonial-card {
    width: 400px;
  }
  
  .testimonial-name {
    font-size: 1.25rem;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cta-content::before{
    left: 50%
  }

  .network-visualization {
    min-height: 400px;
  }
  
  .network-canvas {
    height: 400px;
  }
  
  .floating-testimonial-card {
    width: 350px;
    padding: var(--space-lg);
  }
  
  .testimonial-name {
    font-size: 1.1rem;
  }
  
  .testimonial-text {
    font-size: 0.85rem;
  }
}

.loading-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-align: center;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .network-node {
    border: 3px solid currentColor;
  }
  
  .floating-testimonial-card {
    border: 2px solid currentColor;
  }
  
  .connection-line {
    stroke: currentColor;
    stroke-width: 3;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .network-node,
  .floating-testimonial-card,
  .connection-line,
  .connection-particle {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  
  .network-canvas {
    cursor: default;
  }
}

/* FEATURED STUDENT SPOTLIGHT - Legacy Support */
.featured-student {
  background: var(--surface-white);
  padding: var(--space-3xl) 0;
  position: relative;
  margin-top: 0;
}

.featured-student::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg,
    var(--surface) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.featured-student::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(249, 246, 238, 0.3) 70%,
    var(--surface) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.featured-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

.featured-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-card.spotlight {
  max-width: 500px;
  padding: var(--space-3xl);
  transform: none;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s ease-out;
}

.testimonial-card.spotlight:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 35px 90px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.testimonial-card.spotlight .student-avatar {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-xl);
}

.testimonial-card.spotlight .testimonial-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.testimonial-card.spotlight .student-name {
  font-size: var(--text-xl);
}

.testimonial-card.spotlight .student-program {
  font-size: var(--text-base);
}

/* ==========================================
   VOICES OF CHANGE NETWORK
   ========================================== */

.student-gallery {
  position: relative;
  padding: var(--space-6xl) 0 var(--space-5xl) 0;
  background: linear-gradient(180deg, 
    var(--surface) 0%, 
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
  margin-top: 0;
}

.student-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    var(--surface) 0%, 
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.student-gallery::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245, 243, 240, 0.3) 70%,
    var(--surface-white) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.gallery-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.voices {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap-10);
  margin: var(--space-3xl) 0;
  min-height: 600px;
}

.nodes {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Legacy support */
.student-web-graph {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4xl);
  margin: var(--space-3xl) 0;
  min-height: 600px;
}

.web-container {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%
  );
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.connection-lines line {
  stroke: rgba(231, 48, 82, 0.3);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.connection-lines line.active {
  opacity: 1;
  animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
  0% { 
    stroke: rgba(231, 48, 82, 0.3);
    stroke-width: 2;
  }
  100% { 
    stroke: rgba(231, 48, 82, 0.6);
    stroke-width: 3;
  }
}

/* Person Nodes - Updated for center and fade functionality */
.person {
  position: absolute;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: transform 300ms var(--ease-out), opacity 220ms var(--ease-out), filter 220ms var(--ease-out);
  cursor: pointer;
  z-index: 2;
}

.person.large {
  width: 120px;
  height: 120px;
}

.person.medium {
  width: 90px;
  height: 90px;
}

.person.small {
  width: 70px;
  height: 70px;
}

.has-active .person {
  opacity: 0.35;
  filter: saturate(0.7);
}

.person.active {
  z-index: 10;
  opacity: 1;
  filter: none;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(1.06);
}

/* Legacy support for existing nodes */
.student-node {
  position: absolute;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.student-node.large {
  width: 120px;
  height: 120px;
}

.student-node.medium {
  width: 90px;
  height: 90px;
}

.student-node.small {
  width: 70px;
  height: 70px;
}

.student-node.centered {
  transform: translate(-50%, -50%) scale(1.3) !important;
  z-index: 10;
}

.node-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.6s ease-out;
}

.node-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.student-node:nth-child(1):hover .node-image {
  border-color: var(--ss-red);
  box-shadow: 
    0 12px 48px rgba(231, 48, 82, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:nth-child(2):hover .node-image {
  border-color: var(--ss-orange);
  box-shadow: 
    0 12px 48px rgba(237, 124, 75, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:nth-child(3):hover .node-image {
  border-color: var(--ss-yellow);
  box-shadow: 
    0 12px 48px rgba(255, 182, 95, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:nth-child(4):hover .node-image {
  border-color: var(--ss-pink);
  box-shadow: 
    0 12px 48px rgba(238, 45, 110, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:nth-child(5):hover .node-image {
  border-color: var(--ss-red);
  box-shadow: 
    0 12px 48px rgba(231, 48, 82, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:nth-child(6):hover .node-image {
  border-color: var(--ss-orange);
  box-shadow: 
    0 12px 48px rgba(237, 124, 75, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: scale(1.1);
}

.student-node:hover .node-image img {
  transform: scale(1.05);
}

/* Node Pulse Effect */
.node-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 3s ease-in-out infinite;
}

.student-node:nth-child(1) .node-pulse {
  border: 2px solid var(--ss-red);
}

.student-node:nth-child(2) .node-pulse {
  border: 2px solid var(--ss-orange);
}

.student-node:nth-child(3) .node-pulse {
  border: 2px solid var(--ss-yellow);
}

.student-node:nth-child(4) .node-pulse {
  border: 2px solid var(--ss-pink);
}

.student-node:nth-child(5) .node-pulse {
  border: 2px solid var(--ss-red);
}

.student-node:nth-child(6) .node-pulse {
  border: 2px solid var(--ss-orange);
}

.student-node:hover .node-pulse {
  animation-duration: 1.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Story Display Area */
.story-display {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.story-content-area {
  padding: var(--space-2xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.story-placeholder h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.story-placeholder p {
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Active Story Display */
.student-story {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.student-story.active {
  opacity: 1;
  transform: translateY(0);
}

.story-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.story-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ss-red);
  flex-shrink: 0;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-info h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.story-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-quote {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-secondary);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--ss-red);
  position: relative;
}

.story-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--ss-red);
  position: absolute;
  top: -10px;
  left: var(--space-md);
  font-family: serif;
  opacity: 0.3;
}

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

.story-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.story-btn.primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.story-btn.secondary {
  background: transparent;
  color: var(--ss-red);
  border: 2px solid var(--ss-red);
}

.story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 48, 82, 0.3);
}

/* ==========================================
   SUCCESS STORIES - BREAKTHROUGH MOMENTS
   ========================================== */

.success-stories {
  background: var(--surface-secondary);
  position: relative;
  margin-top: -40px;
  padding-top: calc(var(--space-4xl));
  padding-bottom: var(--space-4xl);
}

.success-stories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    var(--surface-primary) 0%, 
    rgba(250, 249, 246, 0.6) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.stories-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.stories-container .section-title {
  font-family: 'Eastman Grotesque', serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--ss-accent-1);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  text-align: center;
}

.stories-container .section-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto;
  font-weight: 400;
  text-align: center;
  max-width: 800px;
}

.breakthrough-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  margin-top: var(--space-2xl);
}

.breakthrough-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.breakthrough-story-reverse {
  direction: rtl;
}

.breakthrough-story-reverse > * {
  direction: ltr;
}

.breakthrough-video {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.breakthrough-video .video-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  aspect-ratio: 16 / 9;
}

/* Apply consistent aspect ratio for all video containers */
.breakthrough-video .video-container:has(iframe) {
  aspect-ratio: 16 / 9;
}

.breakthrough-video .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-xl);
}

.breakthrough-video .video-thumbnail {
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.breakthrough-video .video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  display: block;
}

.breakthrough-video .video-thumbnail:hover img {
  transform: scale(1.08);
}

.breakthrough-video .video-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.breakthrough-video .video-thumbnail:hover::after {
  opacity: 1;
}

.breakthrough-video .video-thumbnail::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 2rem;
  z-index: 2;
  transition: all var(--transition-normal);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.breakthrough-video .video-thumbnail:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* Disable hover effects specifically for Rezwan's video thumbnail (4th breakthrough story - static image) */
.breakthrough-story:nth-child(4) .breakthrough-video .video-thumbnail:hover img {
  transform: none;
}

.breakthrough-story:nth-child(4) .breakthrough-video .video-thumbnail::after {
  display: none;
}

.breakthrough-story:nth-child(4) .breakthrough-video .video-thumbnail::before {
  display: none;
}

/* Also disable cursor pointer for Rezwan's thumbnail since it's not clickable */
.breakthrough-story:nth-child(4) .breakthrough-video .video-thumbnail {
  cursor: default;
}

.breakthrough-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.breakthrough-text h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  font-weight: 700;
  line-height: 1.2;
}

/* Individual story title colors - red, orange, yellow pattern */
.breakthrough-story:nth-child(1) .breakthrough-text h3 {
  color: var(--ss-red);
}

.breakthrough-story:nth-child(2) .breakthrough-text h3 {
  color: var(--ss-orange);
}

.breakthrough-story:nth-child(3) .breakthrough-text h3 {
  color: var(--ss-yellow);
}

/* Continue pattern for additional stories */
.breakthrough-story:nth-child(4) .breakthrough-text h3 {
  color: var(--ss-red);
}

.breakthrough-story:nth-child(5) .breakthrough-text h3 {
  color: var(--ss-orange);
}

.breakthrough-story:nth-child(6) .breakthrough-text h3 {
  color: var(--ss-yellow);
}

.breakthrough-description {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  text-align: left;
}

/* Video caption styling for breakthrough moments - matching home page */
.breakthrough-video blockquote {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
  text-align: left;
  font-style: italic;
  opacity: 0.8;
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

.breakthrough-text .btn {
  margin-top: var(--space-lg);
  align-self: flex-start;
  width: max-content;
}

/* Responsive Design for Breakthrough Stories */
@media (max-width: 768px) {
  .breakthrough-story {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
  }
  
  /* Reorder: video/image FIRST, then text with CTA button AFTER */
  .breakthrough-video {
    order: 1;
  }
  
  .breakthrough-text {
    order: 2;
    text-align: center;
  }
  
  .breakthrough-story-reverse {
    direction: ltr;
  }
  
  .breakthrough-text h3 {
    text-align: center;
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
  }
  
  .breakthrough-description {
    text-align: center;
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-md);
  }
  
  /* Center-align video caption/legend beneath the video */
  .breakthrough-video blockquote {
    text-align: center;
    font-size: var(--text-sm);
    margin-top: var(--space-md);
  }
  
  .breakthrough-text .btn {
    align-self: center;
    margin-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .breakthrough-grid {
    gap: var(--space-2xl);
  }
  
  .breakthrough-story {
    gap: var(--space-lg);
  }
  
  .breakthrough-text h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
  }
  
  .breakthrough-description {
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
  }
  
  .breakthrough-video blockquote {
    font-size: var(--text-xs);
    line-height: 1.4;
  }
  
  .breakthrough-video .video-thumbnail img {
    min-height: 220px;
  }
  
  /* Section header consistency */
  .stories-container .section-title {
    font-size: var(--text-2xl);
  }
  
  .stories-container .section-subtitle {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .breakthrough-grid {
    gap: var(--space-4xl);
  }
  
  .breakthrough-story {
    gap: var(--space-md);
  }
  
  .breakthrough-text h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }
  
  .breakthrough-description {
    font-size: var(--text-xs);
    line-height: 1.45;
    margin-bottom: var(--space-xs);
  }
  
  .breakthrough-video blockquote {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: var(--space-sm);
  }
  
  .breakthrough-video .video-thumbnail img {
    min-height: 180px;
  }
  
  .breakthrough-text .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }
  
  /* Section header for smallest screens */
  .stories-container .section-title {
    font-size: var(--text-4xl);
  }
  
  .stories-container .section-subtitle {
    font-size: var(--text-xs);
  }
}

/* ==========================================
   MAKEATHON SPOTLIGHT
   ========================================== */

.makeathon-spotlight {
  background: var(--surface-white);
  padding: var(--space-4xl) 0;
  position: relative;
  margin-top: 0;
}


.spotlight-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.spotlight-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.spotlight-title {
  font-family: 'Eastman Grotesque', serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--ss-accent-1);
  margin: 0;
  line-height: 1.1;
}

.spotlight-description {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  text-shadow: none;
}

.spotlight-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all 0.4s ease-out;
  padding-bottom: 0px;
  width: 100%;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  display: block;
}

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

.video-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.video-thumbnail:hover::after {
  opacity: 1;
}

/* Play button overlay - matching mission-thumbnail style */
.video-thumbnail::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 2rem;
  z-index: 2;
  transition: all var(--transition-normal);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.video-thumbnail:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.play-button {
  display: none;
}

.spotlight-action {
  display: flex;
  justify-content: center;
}

.watch-video-btn {
  background: var(--gradient-button);
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--border-radius-full);
  font-size: var(--text-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 16px rgba(231, 48, 82, 0.25);
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.watch-video-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.6s;
}

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

.watch-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(231, 48, 82, 0.35);
}

.watch-video-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ==========================================
   INDUSTRY RECOGNITION
   ========================================== */

.industry-recognition {
  background: var(--gradient-button);
  color: white;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}


.industry-recognition::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 182, 95, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(237, 124, 75, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(231, 48, 82, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.recognition-container {
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

.recognition-content {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.quote-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-icon {
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.4s ease-out;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.recognition-content:hover .quote-icon {
  transform: rotate(-10deg) scale(1.1);
}

.quote-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.industry-quote {
  font-family: 'Source Serif Pro', serif;
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: white;
  margin: 0;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.quote-attribution {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.author-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: left ;
  color: white;
}

.author-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.company-logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   IMPACT CTA SECTION
   ========================================== */

.impact-cta {
  background: white;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}


.impact-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 182, 95, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(237, 124, 75, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.impact-cta .cta-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.impact-cta .cta-content {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: var(--space-2xl);
  align-items: center;
  justify-content: space-between;
}

.impact-cta .cta-message {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  flex: 1;
  max-width: 60%;
}

.impact-cta .cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-bottom: 0px;
}

.impact-cta .cta-actions .btn {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--border-radius-full);
  transition: all 0.3s ease-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.impact-cta .cta-actions .btn-primary {
  background: var(--gradient-button);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(231, 48, 82, 0.25);
  position: relative;
  overflow: hidden;
}

.impact-cta .cta-actions .btn-primary::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.6s;
}

.impact-cta .cta-actions .btn-primary:hover::before {
  left: 100%;
}

.impact-cta .cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(231, 48, 82, 0.35);
}

.impact-cta .cta-actions .btn-primary:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================
   FEATURE CARD STYLING
   ========================================== */

.feature-card {
  max-width: 740px;
  margin-inline: auto;
  padding: var(--gap-8);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.feature-card .media {
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.feature-card p {
  line-height: 1.5;
}

/* ==========================================
   STORY CARD STYLING
   ========================================== */

.story-card {
  position: sticky;
  top: 12vh;
  align-self: start;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--brand-pink) 35%, white);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.story-card .tag {
  background: color-mix(in oklab, var(--brand-yellow) 30%, white);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.story-card .actions .btn-primary {
  margin-right: 10px;
}

/* ==========================================
   SECTION TRANSITIONS
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    text-align: center;
  }
  
  .floating-testimonial-preview {
    transform: none;
    margin-top: var(--space-2xl);
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  /* Featured Testimonial Responsive */
  .featured-testimonial-card {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
    padding: var(--space-3xl);
  }
  
  .featured-quote-mark {
    order: -1;
    margin-bottom: var(--space-lg);
  }
  
  .featured-author {
    order: 1;
    margin-top: var(--space-lg);
  }
  
  /* Dual Heroes Responsive */
  .dual-heroes-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-content {
    padding: var(--space-2xl);
    min-height: 400px;
  }
  
  .hero-image {
    width: 120px;
    height: 120px;
  }
  
  .academic-journey {
    justify-content: center;
  }
  
  .student-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }
  
  .student-web-graph {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    min-height: 800px;
  }
  
  .web-container {
    min-height: 500px;
  }
  
  .student-node.large {
    width: 100px;
    height: 100px;
  }
  
  .student-node.medium {
    width: 80px;
    height: 80px;
  }
  
  .student-node.small {
    width: 60px;
    height: 60px;
  }
  
  .timeline-story {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .timeline-story:nth-child(even) {
    direction: ltr;
  }
  
  .stories-timeline::before {
    display: none;
  }
  
  .timeline-story::after {
    display: none;
  }
  
  .spotlight-video {
    max-width: 100%;
  }
  
  .video-thumbnail img {
    min-height: 300px;
  }
  
  .spotlight-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-4xl));
  }
  
  .spotlight-description {
    font-size: var(--text-base);
  }
  
  .recognition-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .impact-hero {
    padding: 100px 0 40px;
    min-height: 70vh;
    background-size: cover;
    background-position: center center;
  }
  
  .impact-hero-container {
    align-items: center;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    min-height: 50vh;
  }
  
  .hero-text-section {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-content-grid {
    min-height: 50vh;
    gap: var(--space-2xl);
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .impact-hero-title {
    font-size: 40px !important;
    text-align: left;
  }
  
  .impact-hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    text-align: left;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 300px;
    margin: var(--space-xl) auto 0;
  }
  
  .testimonial-card {
    max-width: 100%;
    padding: var(--space-lg);
  }
  
  .student-avatar {
    width: 60px;
    height: 60px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .student-card {
    height: 350px;
  }
  
  .gallery-controls {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .control-btn {
    width: 200px;
    text-align: center;
  }
  
  .story-image img {
    height: 250px;
  }
  
  .story-content {
    padding: var(--space-lg);
  }
  
  .story-content h3 {
    font-size: var(--text-2xl);
  }
  
  .video-thumbnail img {
    height: 250px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .showcase-content {
    padding: var(--space-lg);
  }
  
  .project-features {
    gap: var(--space-sm);
  }
  
  /* Tighten vertical spacing */
  .industry-recognition {
    padding: var(--space-lg) 0;
  }
  
  /* Add more horizontal padding around text */
  .recognition-content {
    padding: 0 var(--space-lg);
  }
  
  .industry-quote {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
  }
  
  .quote-attribution {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding-top: var(--space-sm);
  }
  
  /* Reduce name/title size for mobile */
  .author-name {
    font-size: var(--text-base) !important;
  }
  
  .author-title {
    font-size: var(--text-sm) !important;
  }
  
  .impact-cta .cta-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }
  


  .impact-cta .cta-message {
    max-width: 100%;
  }
  
  .impact-cta .cta-actions {
    justify-content: center;
  }
  
  .impact-cta .cta-features {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }
}

@media (max-width: 480px) {
.impact-hero-container {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
  
  .impact-hero-subtitle {
    font-size: var(--text-base);
  }
  
  .stat-card {
    padding: var(--space-lg);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .testimonial-card {
    padding: var(--space-md);
  }
  
  .student-card {
    height: 300px;
  }
  
  .card-content {
    padding: var(--space-lg);
  }
  
  .student-name {
    font-size: var(--text-xl);
  }
  
  .student-quote {
    font-size: var(--text-sm);
  }
  
  .story-content h3 {
    font-size: var(--text-xl);
  }
  
  .story-description {
    font-size: var(--text-base);
  }
  
  .industry-quote {
    font-size: var(--text-lg);
  }
  
  .scroll-indicator {
    bottom: var(--space-lg);
  }
}

/* ==========================================
   ADVANCED ANIMATIONS
   ========================================== */

/* Counter Animation for Statistics */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out forwards;
}

/* Staggered Fade-up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.3s; }
.fade-up:nth-child(4) { transition-delay: 0.4s; }
.fade-up:nth-child(5) { transition-delay: 0.5s; }
.fade-up:nth-child(6) { transition-delay: 0.6s; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-particles {
    animation: none;
  }
  
  .title-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .scroll-arrow::after {
    animation: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .student-card:hover {
    outline: 3px solid currentColor;
  }
  
  .testimonial-card {
    border: 2px solid currentColor;
  }
  
  .story-visual:hover {
    outline: 2px solid currentColor;
  }
}

/* ==========================================
   UNIFIED MOBILE SECTION SPACING - IMPACT STORIES
   ========================================== */

@media (max-width: 768px) {
  /* Unified section spacing for Impact Stories mobile */
  .by-the-numbers-impact,
  .case-studies-testimonials,
  .student-network-section,
  .success-stories,
  .makeathon-spotlight,
  .industry-recognition,
  .student-gallery {
    padding-top: var(--mobile-section-padding-sm) !important;
    padding-bottom: var(--mobile-section-padding-sm) !important;
  }
  
  .impact-cta {
    padding-top: var(--mobile-cta-padding-sm) !important;
    padding-bottom: var(--mobile-cta-padding-sm) !important;
  }
}

@media (max-width: 480px) {
  /* Unified section spacing for Impact Stories small mobile */
  .by-the-numbers-impact,
  .case-studies-testimonials,
  .student-network-section,
  .success-stories,
  .makeathon-spotlight,
  .industry-recognition,
  .student-gallery {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
  }

  .impact-cta {
    padding-top: var(--space-4xl) !important;
    padding-bottom: var(--space-4xl) !important;
  }
  
  .impact-cta .cta-message {
    font-size: var(--text-2xl);
  }
  
  .impact-cta .cta-actions .btn {
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-base);
  }
}

/* ==========================================
   MOBILE CIRCULAR COMMUNITY LAYOUT
   ========================================== */

/* Hide mobile layout on desktop, show desktop network */
.mobile-community-circle {
  display: none;
}

.desktop-network {
  display: block;
}

/* Mobile-only styles */
@media (max-width: 768px) {
  /* Hide desktop canvas network on mobile */
  .desktop-network {
    display: none !important;
  }
  
  /* Show and style mobile circular layout */
  .mobile-community-circle {
    display: block;
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 380px;
    margin: var(--space-xl) auto;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Globe background behind the entire circular layout */
  .mobile-community-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('https://pub-dcb79d88e2ec4567824453cc853f55f3.r2.dev/images/icons/globe.png') center center/contain no-repeat;
    background-size: 120%;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
  }
  
  /* Circular connecting line around students */
  .mobile-community-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px dashed rgba(231, 48, 82, 0.25);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Center testimonial circle */
  .center-testimonial-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 0 0 3px var(--ss-red),
      inset 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    z-index: 10;
    overflow: hidden;
  }
  
  /* Initial prompt message */
  .center-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
  }
  
  .center-prompt span {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-8px);
    }
    60% {
      transform: translateY(-4px);
    }
  }
  
  .center-prompt p {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
  }
  
  /* Testimonial display (hidden initially) */
  .mobile-testimonial-display {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: var(--space-xs);
    overflow-y: auto;
  }
  
  .mobile-testimonial-display.active {
    display: flex;
  }
  
  .mobile-student-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
  }
  
  .mobile-student-program {
    font-size: 0.6rem;
    color: var(--ss-red);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .mobile-student-quote {
    font-size: 0.55rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
    font-style: italic;
    max-height: 70px;
    overflow-y: auto;
    padding: 0 2px;
  }
  
  /* Student circles positioned around the center */
  .student-circle {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    /* Smooth transition for rotation animation - transform handles position changes */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 5;
    /* Position from center - JavaScript will update transform */
    top: 50%;
    left: 50%;
  }
  
  .student-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .student-circle:hover,
  .student-circle.active {
    transform: scale(1.15);
    z-index: 15;
    box-shadow: 0 8px 24px rgba(231, 48, 82, 0.35);
    border-color: var(--ss-red);
  }
  
  .student-circle:hover img,
  .student-circle.active img {
    transform: scale(1.05);
  }
  
  /* Position each student using exact trigonometry on the orbit circle */
  /* Container: 380px, Orbit radius: 170px (340px diameter / 2), Center: 190px */
  /* 8 students = 45 degrees apart, starting from top (270°) */
  /* 170 × 0.707 ≈ 120px for diagonal positions */
  
  .student-circle[data-index="0"] { /* Top - 270° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(0px, -170px);
  }
  
  .student-circle[data-index="1"] { /* Top-right - 315° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(120px, -120px);
  }
  
  .student-circle[data-index="2"] { /* Right - 0° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(170px, 0px);
  }
  
  .student-circle[data-index="3"] { /* Bottom-right - 45° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(120px, 120px);
  }
  
  .student-circle[data-index="4"] { /* Bottom - 90° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(0px, 170px);
  }
  
  .student-circle[data-index="5"] { /* Bottom-left - 135° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-120px, 120px);
  }
  
  .student-circle[data-index="6"] { /* Left - 180° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-170px, 0px);
  }
  
  .student-circle[data-index="7"] { /* Top-left - 225° */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-120px, -120px);
  }
  
  /* Color-coded borders for variety */
  .student-circle[data-index="0"]:hover,
  .student-circle[data-index="0"].active {
    border-color: var(--ss-orange);
    box-shadow: 0 8px 24px rgba(237, 124, 75, 0.35);
  }
  
  .student-circle[data-index="1"]:hover,
  .student-circle[data-index="1"].active {
    border-color: var(--ss-pink);
    box-shadow: 0 8px 24px rgba(238, 45, 110, 0.35);
  }
  
  .student-circle[data-index="2"]:hover,
  .student-circle[data-index="2"].active {
    border-color: var(--ss-pink);
    box-shadow: 0 8px 24px rgba(238, 45, 110, 0.35);
  }
  
  .student-circle[data-index="3"]:hover,
  .student-circle[data-index="3"].active {
    border-color: var(--ss-red);
    box-shadow: 0 8px 24px rgba(231, 48, 82, 0.35);
  }
  
  .student-circle[data-index="4"]:hover,
  .student-circle[data-index="4"].active {
    border-color: var(--ss-red);
    box-shadow: 0 8px 24px rgba(231, 48, 82, 0.35);
  }
  
  .student-circle[data-index="5"]:hover,
  .student-circle[data-index="5"].active {
    border-color: var(--ss-orange);
    box-shadow: 0 8px 24px rgba(237, 124, 75, 0.35);
  }
  
  .student-circle[data-index="6"]:hover,
  .student-circle[data-index="6"].active {
    border-color: var(--ss-yellow);
    box-shadow: 0 8px 24px rgba(255, 182, 95, 0.35);
  }
  
  .student-circle[data-index="7"]:hover,
  .student-circle[data-index="7"].active {
    border-color: var(--ss-red);
    box-shadow: 0 8px 24px rgba(231, 48, 82, 0.35);
  }
  
  /* Adjust network header for mobile */
  .network-header {
    padding: 0 var(--space-md);
  }
  
  .network-title {
    font-size: var(--text-2xl);
  }
  
  .network-subtitle {
    font-size: var(--text-sm);
  }
}

/* Extra small mobile screens */
@media (max-width: 360px) {
  .mobile-community-circle {
    width: 280px;
    height: 280px;
  }
  
  /* Adjust circular connecting line for smaller screens */
  .mobile-community-circle::before {
    width: 220px;
    height: 220px;
  }
  
  .center-testimonial-circle {
    width: 140px;
    height: 140px;
    padding: var(--space-sm);
  }
  
  .student-circle {
    width: 40px;
    height: 40px;
  }
  
  .mobile-student-name {
    font-size: 0.75rem;
  }
  
  .mobile-student-program {
    font-size: 0.55rem;
  }
  
  .mobile-student-quote {
    font-size: 0.5rem;
    max-height: 55px;
  }
  
  .center-prompt span {
    font-size: 1.2rem;
  }
  
  .center-prompt p {
    font-size: 0.65rem;
  }
  
  /* Adjust positions for smaller container - orbit radius: 110px (220px/2) */
  .student-circle[data-index="0"] {
    transform: translate(-50%, -50%) translate(0px, -110px);
  }
  
  .student-circle[data-index="1"] {
    transform: translate(-50%, -50%) translate(78px, -78px);
  }
  
  .student-circle[data-index="2"] {
    transform: translate(-50%, -50%) translate(110px, 0px);
  }
  
  .student-circle[data-index="3"] {
    transform: translate(-50%, -50%) translate(78px, 78px);
  }
  
  .student-circle[data-index="4"] {
    transform: translate(-50%, -50%) translate(0px, 110px);
  }
  
  .student-circle[data-index="5"] {
    transform: translate(-50%, -50%) translate(-78px, 78px);
  }
  
  .student-circle[data-index="6"] {
    transform: translate(-50%, -50%) translate(-110px, 0px);
  }
  
  .student-circle[data-index="7"] {
    transform: translate(-50%, -50%) translate(-78px, -78px);
  }
}
