@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Plus+Jakarta+Sans:wght@400;500;700&family=Unbounded:wght@400;700;850;900&display=swap');

/* --- CUSTOM VARIABLES (PURE LIGHT THEME: BLUE, ORANGE, YELLOW, WHITE) --- */
:root {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf9;
  --border-color: rgba(59, 130, 246, 0.15);
  --border-glow-gold: rgba(251, 191, 36, 0.15);
  --border-glow-red: rgba(249, 115, 22, 0.15); /* orange glow */
  --border-glow-blue: rgba(59, 130, 246, 0.15);
  
  --color-gold: #fbbf24;
  --color-gold-dark: #b45309;
  --color-blue: #3b82f6;
  --color-blue-light: #2563eb;
  --color-red: #f97316; /* Orange as requested */
  --color-red-light: #fdba74;
  --color-orange: #f97316;
  --color-yellow: #fbbf24;
  --color-white: #ffffff;
  
  --text-primary: #1e293b; /* Dark slate for high contrast text */
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Sizing Reference Additions */
  --blue-heritage: #3b82f6;
  --yellow-orange-heritage: #fbbf24;
  --brown-heritage: #b45309;
  --red-heritage: #f97316; /* Orange heritiage */
  --bg-card-glass: rgba(255, 255, 255, 0.9);
  --border-light: rgba(59, 130, 246, 0.1);
  --border-gold: #fbbf24;
  --radius-md: 16px;
  --red-glow: rgba(249, 115, 22, 0.12);
  --blue-glow: rgba(59, 130, 246, 0.12);
  --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.15);
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 120vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- CONTAINER & GENERAL LAYOUT --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

section {
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

/* Glassmorphism & Card Patterns */
.glass-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08), 0 0 35px rgba(251, 191, 36, 0.1);
}

/* Four-Color Decorative Line */
.tribal-divider {
  display: flex;
  height: 6px;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  margin: 1.5rem 0 2.5rem 0;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}
.tribal-divider .blue { background: var(--blue-heritage); flex: 1; }
.tribal-divider .yellow { background: var(--yellow-orange-heritage); flex: 1; }
.tribal-divider .brown { background: var(--brown-heritage); flex: 1; }
.tribal-divider .red { background: var(--color-orange); flex: 1; }

/* --- SECTION 1: WILLIE'S HERO & BANNER --- */
.welcome-banner-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 30%, hsla(3, 72%, 46%, 0.12) 0%, transparent 70%),
              radial-gradient(circle at 10% 80%, hsla(210, 85%, 55%, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, hsla(38, 95%, 52%, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding: 120px 0 80px 0;
  overflow: hidden;
}

.welcome-banner-section .container {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.banner-card {
  background: rgba(14, 14, 17, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 100px rgba(245, 158, 11, 0.03);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-gold) 50%, var(--color-red) 100%);
  background-size: 200% auto;
  animation: gradient-shift 6s linear infinite;
}

.tribal-accent {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  pointer-events: none;
}
.accent-top-left {
  top: 15px;
  left: 15px;
  border-top-color: var(--color-red);
  border-left-color: var(--color-gold);
}
.accent-bottom-right {
  bottom: 15px;
  right: 15px;
  border-bottom-color: var(--color-red);
  border-right-color: var(--color-gold);
}

.equity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--color-red-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  transition: var(--transition-smooth);
}
.equity-badge:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.1);
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold) 50%, var(--color-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift-text 8s ease infinite;
}

.banner-explanation {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #d1d5db;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.sentence-highlight {
  position: relative;
  display: inline;
}

.sentence-1 {
  color: #ffffff;
}

.sentence-2 {
  color: #e5e7eb;
}

.sentence-3 {
  color: var(--color-gold);
  font-weight: 500;
}

.stat-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(245, 158, 11, 0.12);
  transform: translateY(-5px);
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.3),
    0 0 30px rgba(245, 158, 11, 0.02);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 850;
  color: var(--color-red);
  margin-bottom: 6px;
}

.stat-val.gold-style, .stat-item.highlight-gold .stat-val {
  color: var(--color-gold);
}

.stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.stat-vs-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-shift-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.stat-showcase {
  background: rgba(24, 19, 16, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.03), 0 10px 30px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}

.stat-showcase:nth-child(2) {
  animation-delay: -3s;
}

.stat-showcase:hover {
  border-color: var(--yellow-orange-heritage);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 25px rgba(255, 215, 0, 0.08);
  transform: translateY(-12px);
}

.stat-title {
  font-size: 0.85rem;
  font-family: 'Unbounded', sans-serif;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.stat-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
}

.stat-num-box {
  flex: 1;
  text-align: center;
}

.stat-num-box.public .num {
  color: var(--red-heritage);
  text-shadow: 0 0 15px var(--red-glow);
}

.stat-num-box.private .num {
  color: var(--blue-heritage);
  text-shadow: 0 0 15px var(--blue-glow);
}

.stat-num-box .num {
  font-size: 2.4rem;
  font-weight: 850;
  font-family: 'Unbounded', sans-serif;
  line-height: 1;
}

.stat-num-box .label {
  font-size: 0.75rem;
  font-family: 'Unbounded', sans-serif;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
  letter-spacing: -0.02em;
}

.stat-vs {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  color: var(--yellow-orange-heritage);
  font-size: 1rem;
}

/* --- SECTION 2: ROBERT'S DISPARITY VISUALIZER --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--color-gold);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.section-main-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.visualizer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Midpoint divider label */
.comparison-card::after {
  content: 'vs';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-gold);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.metric-header {
  grid-column: span 2;
  text-align: center;
  margin-bottom: 10px;
}

.metric-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
}

.metric-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 5px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.side-panel.public-side {
  border-right: 1px dashed rgba(255, 255, 255, 0.1);
  padding-right: 40px;
}

.side-panel.private-side {
  padding-left: 40px;
}

.school-type-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-side .school-type-label {
  color: var(--color-red);
}

.private-side .school-type-label {
  color: var(--color-blue);
}

.metric-value-display {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 15px;
}

.public-side .metric-value-display {
  color: var(--color-red-light);
}

.private-side .metric-value-display {
  color: var(--color-blue-light);
}

/* Custom progress bar container */
.progress-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  height: 24px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%; /* Initial state for animation */
  border-radius: 50px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
  position: relative;
}

.public-side .progress-bar-fill {
  background: linear-gradient(90deg, #b91c1c 0%, var(--color-red) 100%);
  box-shadow: 0 0 15px var(--border-glow-red);
}

.private-side .progress-bar-fill {
  background: linear-gradient(90deg, #1e40af 0%, var(--color-blue) 100%);
  box-shadow: 0 0 15px var(--border-glow-blue);
}

.bar-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
  display: block;
}

/* --- SECTION 3: QUANG'S STUDENT SPOTLIGHT --- */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.quote-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.quote-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-heading);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-school {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-cta {
  margin-top: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-cta svg {
  transition: transform 0.3s ease;
}

.quote-card:hover .card-cta svg {
  transform: translateX(4px);
}

/* Spotlight Modal Dialog */
.modal-dialog {
  border: none;
  background: transparent;
  max-width: 600px;
  width: 90%;
  margin: auto;
  padding: 0;
  border-radius: var(--border-radius-xl);
  overflow: visible;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.modal-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.modal-content-wrapper {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.1);
}

.modal-dialog::backdrop {
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-dialog[open]::backdrop {
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--color-red);
  color: white;
  border-color: var(--color-red);
  transform: rotate(90deg);
}

.modal-body {
  margin-top: 15px;
}

.modal-quote-symbol {
  font-size: 4rem;
  color: var(--color-gold);
  line-height: 0.8;
  font-family: var(--font-heading);
}

.modal-quote-text {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.modal-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.modal-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.modal-author-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.modal-story-narrative {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- SECTION 4: SCHOOL BOARD ACTION CENTER --- */
.action-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid var(--border-glow-gold);
}

.action-header {
  text-align: center;
  margin-bottom: 35px;
}

.action-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 8px;
}

.petition-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

.form-input {
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  margin-top: 4px;
  accent-color: var(--color-gold);
  width: 18px;
  height: 18px;
}

.preview-container {
  margin-top: 15px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.preview-header span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.petition-preview {
  background: rgba(6, 9, 19, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  min-height: 180px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
  color: #060913;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

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

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 868px) {
  .comparison-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }
  
  .comparison-card::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .side-panel.public-side {
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 40px;
  }
  
  .side-panel.private-side {
    padding-left: 0;
  }
  
  .action-card {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 50px 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

/* ==========================================
   PREMIUM CONTROL SWITCH STYLES
   ========================================== */
.theme-switch-container {
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-switch {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  width: 52px;
  height: 28px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.switch-handle {
  background: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-switch .sun-icon {
  display: none;
}
.control-switch .moon-icon {
  display: block;
}

/* Light Theme Switch States */
body.light-theme .control-switch {
  background: #e5e7eb;
  border-color: #d1d5db;
}
body.light-theme .switch-handle {
  transform: translateX(24px);
  background: #b45309; /* Sun color handles text gold-dark */
}
body.light-theme .control-switch .sun-icon {
  display: block;
  color: #ffffff;
}
body.light-theme .control-switch .moon-icon {
  display: none;
}

/* ==========================================
   DYNAMIC LIGHT THEME OVERRIDES
   ========================================== */
html.light-theme, body.light-theme {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: #e5e7eb;
  
  --border-glow-gold: transparent;
  --border-glow-red: transparent;
  --border-glow-blue: transparent;
  
  --color-gold: #d97706; /* Solid Amber/Gold */
  --color-gold-dark: #b45309;
  --color-blue: #1e40af; /* Deep Royal Navy Blue */
  --color-blue-light: #3b82f6;
  --color-red: #b91c1c; /* Deep Crimson/Burnt Red */
  --color-red-light: #dc2626;
  
  --text-primary: #111827; /* Near Black */
  --text-secondary: #4b5563; /* Slate Gray */
  --text-muted: #8c96a3;
  
  background-color: #ffffff !important;
  color: #111827 !important;
  background-image: none !important;
}

body.light-theme html {
  color-scheme: light;
}

body.light-theme .welcome-banner-section {
  background-color: #ffffff;
  background-image: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.03) 0%, transparent 70%),
                    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 60%),
                    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .banner-card {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.light-theme .banner-title {
  color: var(--text-primary);
}

body.light-theme .gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brown-heritage) 50%, var(--red-heritage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
}

body.light-theme .banner-explanation {
  color: var(--text-secondary);
}

body.light-theme .sentence-1 {
  color: var(--text-primary);
}

body.light-theme .sentence-2 {
  color: var(--text-secondary);
}

body.light-theme .sentence-3 {
  color: var(--brown-heritage);
}

body.light-theme .stat-item {
  background: #f9fafb;
  border-color: var(--border-color);
}

body.light-theme .stat-item:hover {
  background: #f3f4f6;
  border-color: var(--color-gold);
}

body.light-theme .stat-lbl {
  color: var(--text-secondary);
}


body.light-theme .glass-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body.light-theme .glass-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: #d1d5db;
}

body.light-theme .badge-tribal {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
  box-shadow: none;
  animation: none;
}

body.light-theme .btn-primary {
  background-color: var(--text-primary);
  color: #ffffff;
}

body.light-theme .btn-primary:hover {
  background-color: #374151;
}

body.light-theme .btn-secondary {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

body.light-theme .btn-secondary:hover {
  background-color: #f3f4f6;
  color: var(--text-primary);
}

body.light-theme .vs-badge {
  background-color: #f3f4f6;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

body.light-theme .progress-container {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}

body.light-theme .details-panel {
  border-top-color: var(--border-color) !important;
}

body.light-theme .details-panel .glass-card {
  background-color: #f9fafb !important;
  border-color: var(--border-color) !important;
}

body.light-theme .details-panel .equation-box,
body.light-theme .details-panel .analysis-box {
  background-color: #f3f4f6 !important;
  border-color: var(--border-color) !important;
}

body.light-theme .details-panel .equation-box code,
body.light-theme .details-panel .equation-box div {
  color: var(--color-gold-dark) !important;
}

body.light-theme .methodology-card {
  background: #ffffff !important;
}

body.light-theme .methodology-card .glass-card {
  background-color: #f9fafb !important;
  border-color: var(--border-color) !important;
}

body.light-theme .methodology-card .glass-card div div {
  background-color: #f3f4f6 !important;
}

body.light-theme .quote-card .quote-icon {
  color: #fde68a;
}

body.light-theme .quote-card .author-avatar {
  background-color: #f3f4f6 !important;
  color: var(--color-gold-dark) !important;
}

body.light-theme .quote-card .card-cta {
  color: var(--text-primary);
}

body.light-theme dialog {
  background: #ffffff !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

body.light-theme dialog::backdrop {
  background: rgba(17, 24, 39, 0.4) !important;
}

body.light-theme .petition-body-box {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
}

body.light-theme .petition-display-card {
  background-color: #f9fafb !important;
}

body.light-theme .petition-preview {
  background-color: #060913 !important;
  color: #ffffff !important;
  border-color: var(--border-color) !important;
}

body.light-theme .form-input {
  background-color: #ffffff !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

body.light-theme .form-input:focus {
  border-color: var(--color-gold) !important;
}

/* ==================== THE OAKLAND EDUCATION AUDIT INDEX ==================== */
.audit-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .audit-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.audit-sidebar {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

@media (max-width: 900px) {
  .audit-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
  }
}

.audit-nav-btn {
  background: transparent;
  border: none;
  border-left: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

@media (max-width: 900px) {
  .audit-nav-btn {
    border-left: none;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }
}

.audit-nav-btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.audit-nav-btn.active {
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.audit-content-pane {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.audit-section {
  scroll-margin-top: 8rem;
  transition: var(--transition-smooth);
}

.audit-section-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.audit-section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.audit-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.audit-section blockquote {
  border-left: 4px solid var(--color-red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.01);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.audit-table th, .audit-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.audit-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.02);
}

.audit-table td strong {
  color: var(--text-primary);
}

.audit-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.audit-bullets li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.audit-bullets li strong {
  color: var(--text-primary);
}

.audit-bullets li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* ==================== AI EQUITY RESOURCE CENTER ==================== */
.ai-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ai-layout-grid {
    grid-template-columns: 1fr;
  }
}

.ai-assistant-panel,
.ai-library-panel {
  display: flex;
  flex-direction: column;
}

.ai-panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.ai-panel-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* AI Input Field */
.ai-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-field {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.ai-field:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* Suggestion Tags */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.suggestion-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  color: var(--color-gold);
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.tag:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--color-gold);
}

/* AI Console Panel */
.ai-console {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  min-height: 250px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
}

.console-initial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: auto;
  gap: 10px;
}

.console-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #10b981; /* green active */
  display: block;
}

.console-status.searching {
  color: var(--color-gold);
  animation: pulse 1.2s infinite;
}

.ai-result-title {
  font-family: var(--font-heading);
  font-weight: 850;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.ai-result-body {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.ai-result-sources {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sources-label {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 6px;
}

.source-badge {
  font-size: 0.78rem;
  color: var(--color-gold);
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.source-badge:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

/* AI Testimonies and Perspectives styling */
.ai-testimonies {
  margin-top: 18px;
  border-top: 1px dashed var(--border-color);
  padding-top: 14px;
}

.ai-quote-card {
  background: rgba(245, 158, 11, 0.02);
  border-left: 3px solid var(--color-gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.ai-quote-card:hover {
  transform: translateX(2px);
  background: rgba(245, 158, 11, 0.04);
}

/* Resource Link Cards */
.library-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lib-link-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.lib-link-card:hover {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.lib-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.lib-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lib-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.lib-link-card:hover .lib-name {
  color: var(--color-gold);
}

.lib-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LIGHT THEME COMPATIBILITY FOR NEW SECTIONS --- */
body.light-theme .audit-nav-btn {
  border-left-color: #d1d5db;
}
body.light-theme .audit-nav-btn.active {
  color: var(--color-blue-light) !important;
  border-color: var(--color-blue-light) !important;
}
body.light-theme .audit-section blockquote {
  background: #f9fafb !important;
  color: #111827 !important;
}
body.light-theme .audit-table {
  border-color: #e5e7eb;
}
body.light-theme .audit-table th {
  background: #f9fafb !important;
  color: var(--color-gold-dark) !important;
}
body.light-theme .audit-table td, body.light-theme .audit-table th {
  border-bottom-color: #e5e7eb;
}
body.light-theme .lib-link-card {
  background: #f9fafb;
}
body.light-theme .lib-link-card:hover {
  background: #f3f4f6;
  border-color: var(--color-gold-dark);
}
body.light-theme .lib-icon {
  background: #f3f4f6;
}
body.light-theme .lib-name {
  color: #111827;
}
body.light-theme .lib-link-card:hover .lib-name {
  color: var(--color-gold-dark);
}
body.light-theme .ai-panel-title {
  color: #111827 !important;
}
body.light-theme .ai-console {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}
body.light-theme .ai-result-title {
  color: #111827 !important;
  border-bottom-color: #e5e7eb !important;
}
body.light-theme .ai-result-body {
  color: #374151 !important;
}
body.light-theme .ai-quote-card {
  background: rgba(217, 119, 6, 0.03) !important;
  border-left-color: var(--color-gold-dark) !important;
}
body.light-theme .source-badge {
  background: rgba(217, 119, 6, 0.03) !important;
  border-color: #e5e7eb !important;
  color: var(--color-gold-dark) !important;
}
body.light-theme .tag {
  background: rgba(217, 119, 6, 0.03) !important;
  border-color: rgba(217, 119, 6, 0.15) !important;
  color: var(--color-gold-dark) !important;
}
body.light-theme .tag:hover {
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: var(--color-gold-dark) !important;
}

/* ==========================================
   GLOBAL NAVIGATION BAR & CIRCULAR LOGO
   ========================================== */
.global-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.02);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-brand:hover {
  transform: scale(1.02);
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50% !important; /* Perfect circle logo */
  object-fit: cover;
  border: 2px solid var(--color-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-blue);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-blue);
  background: rgba(59, 130, 246, 0.06);
}

/* Spacer for fixed navbar */
body {
  padding-top: 72px;
}

/* ==========================================
   PAGE VIEW SYSTEM (MULTI-PAGE SPA)
   ========================================== */
.page-view {
  display: none;
  animation: pageFadeIn 0.5s ease-in-out forwards;
}

.page-view.active {
  display: block;
}

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

/* ==========================================
   CENTERED AUDIT PARAGRAPHS
   ========================================== */
.audit-section p, 
.audit-section blockquote {
  text-align: center !important;
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.audit-section blockquote {
  border-left: none !important;
  border-top: 3px solid var(--color-blue);
  border-bottom: 3px solid var(--color-blue);
  border-radius: 8px;
  padding: 24px !important;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
}

.audit-bullets {
  max-width: 600px;
  margin: 20px auto !important;
  text-align: left;
}


