:root {
  --neural-blue: #2563eb;
  --cerebral-purple: #7c3aed;
  --axon-cyan: #06b6d4;
  --brain-gray: #f3f4f6;
  --white: #ffffff;
  --synapse-black: #1f2937;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--brain-gray);
  color: var(--synapse-black);
  margin: 0;
  line-height: 1.6;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neural-blue);
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--synapse-black);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--neural-blue);
  color: var(--white);
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--white);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.25rem 1rem;
  color: var(--synapse-black);
  text-decoration: none;
}

.dropdown-link:hover {
  background: var(--brain-gray);
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--neural-blue), var(--axon-cyan));
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Combined hero title and impact */
.hero-title-impact {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Oswald', sans-serif;
}

.hero-title-impact span {
  font-weight: normal;
  font-size: 2.5rem;
}

.hero-title-main {
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
}

.hero-title-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 400;
}

/* Boxed description to reduce vertical space */
.hero-description-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 0.5rem auto;
}

/* Layout support for hero sections with visuals */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text, .hero-visual {
  flex: 1 1 300px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Models Page Hero */
.models-hero {
  background: linear-gradient(135deg, var(--axon-cyan), var(--neural-blue));
  color: var(--white);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.models-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.models-hero p {
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #1e40af;
}

.btn-secondary {
  background: var(--cerebral-purple);
  color: var(--white);
}

.btn-secondary:hover {
  background: #5b21b6;
}

.btn-large {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

/* Layout Sections */
.section {
  padding: 2rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}
.section-compact {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 1rem auto;
}
.section-highlight {
  background: var(--brain-gray);
  padding: 3rem;
  border-radius: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.section-subtitle {
  color: #6b7280;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
  justify-items: center;
}

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

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

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

.card-gray {
  background: var(--brain-gray);
  padding: 1.5rem;
  border-radius: 12px;
}

.list-tight {
  margin-left: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.flex-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 260px;
  width: 100%;
}

/* Card with two-column layout */
.two-column-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.two-column-card .card-text {
  flex: 1 1 300px;
}

.two-column-card .card-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .two-column-card {
    flex-direction: column;
    text-align: center;
  }

  .two-column-card .card-image img {
    max-width: 100%;
  }
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.card-title-with-icon {
  display: flex;
  align-items: center;
}

.icon-inline {
  margin-right: 0.5rem;
}

.module-number,
.dataset-meta {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.dataset-type {
  margin-right: 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-description {
  color: #4b5563;
}

/* Dataset and Workflow Styles */
.datasets-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  justify-items: center;
}

.dataset-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

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

.dataset-icon {
  margin-right: 0.5rem;
}

.dataset-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tag {
  background: var(--brain-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.modules-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
  justify-content: center;
  justify-items: center;
}
.module-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
}
.module-number-link {
  font-weight: 600;
  color: var(--neural-blue);
  text-decoration: none;
}
.module-number-link:hover {
  text-decoration: underline;
}
.module-description {
  color: #4b5563;
  margin-top: 0.25rem;
}

/* Module filter controls */
.module-filters select {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: var(--white);
}

/* Stage-specific module card accents */
.stage-foundations {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--neural-blue);
}

.stage-question {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  border-left: 4px solid #f59e0b;
}

.stage-experiment {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 4px solid #10b981;
}

.stage-analysis {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-left: 4px solid #f97316;
}

.stage-dissemination {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  border-left: 4px solid var(--cerebral-purple);
}

/* Merit matrix styles */
.merit-matrix {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2rem;
  justify-content: center;
  justify-items: center;
}

.merit-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
}

.module-subcards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.module-subcard {
  background: var(--brain-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--neural-blue);
  font-weight: 600;
}

.module-subcard:hover {
  text-decoration: underline;
}

.workflow-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: auto;
  padding: 1rem 1.5rem;
  background: var(--brain-gray);
  border-radius: 8px;
}

.pipeline-step {
  background: var(--axon-cyan);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pipeline-arrow {
  color: var(--axon-cyan);
  font-weight: bold;
  font-size: 1.25rem;
}

.step-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--cerebral-purple);
}

.tech-tag {
  background: var(--brain-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

footer {
  background: var(--synapse-black);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Existing framework and component styles */
.framework-grid,
.compass-grid,
.ccr-boxes {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  justify-items: center;
}

.framework-grid .merit-stage,
.framework-grid .merit-step,
.compass-grid .compass-workshop,
.ccr-boxes > div {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framework-grid .merit-stage:hover,
.framework-grid .merit-step:hover,
.compass-grid .compass-workshop:hover,
.ccr-boxes > div:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.framework-grid h3,
.compass-grid h3,
.ccr-boxes h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 0.5rem;
}

.framework-grid p,
.compass-grid p,
.ccr-boxes p {
  color: #374151;
}

.framework-grid .merit-icon,
.compass-grid .workshop-number {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: #6366f1;
}

.compass-grid .workshop-focus {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.framework-grid .merit-components,
.framework-grid .merit-examples {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #2563eb;
}

@media (prefers-color-scheme: dark) {
  .framework-grid .merit-stage,
  .framework-grid .merit-step,
  .compass-grid .compass-workshop,
  .ccr-boxes > div {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }

  .framework-grid h3,
  .compass-grid h3,
  .ccr-boxes h3 {
    color: #d8b4fe;
  }

  .framework-grid .merit-icon,
  .compass-grid .workshop-number {
    color: #c4b5fd;
  }

  .compass-grid .workshop-focus {
    color: #ddd6fe;
  }
}

/* Timeline styles */
.timeline {
  border-left: 3px solid var(--axon-cyan);
  margin: 2rem 0;
  padding-left: 1.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.65rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  background: var(--axon-cyan);
  border-radius: 50%;
}
.timeline-year {
  font-weight: 600;
  margin-bottom: 0.25rem;
  margin-left: 0.5rem;
}
.dataset-facts {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0.5rem 0;
  list-style: none;
  padding: 0;
}
.dataset-facts li {
  margin-bottom: 0.25rem;

/* Additional page styles */
.hero-spaced {
  margin: 0 -2rem 4rem -2rem;
  padding: 3rem 2rem;
}
.hero-compact {
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.hero-rounded {
  border-radius: 12px;
}

.avatar-icon {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--axon-cyan), var(--neural-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: var(--white);
}

.avatar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dataset-card-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--neural-blue);
}
.dataset-card-purple {
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  border-left: 4px solid var(--cerebral-purple);
}
.dataset-card-cyan {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border-left: 4px solid var(--axon-cyan);
}
.checklist-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.checklist {
  margin-top: 1rem;
}
.checklist label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: var(--brain-gray);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.3s ease;
}
.checklist input[type="checkbox"] {
  margin-right: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--neural-blue);
  transform: scale(1.1);
}
.checklist label span {
  flex: 1;
}
.checklist label:hover {
  background: rgba(37, 99, 235, 0.1);
}
.main-content ol,
.main-content ul {
  color: #4b5563;
  line-height: 1.6;
}
.main-content ol li,
.main-content ul li {
  margin: 0.25rem 0;
}

/* Utility spacing classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mt-05 { margin-top: 0.5rem; }
.opacity-70 { opacity: 0.7; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Ask the Expert page styles */
.expert-bio {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}

.expert-bio-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.expert-bio-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.expert-bio-text {
  flex: 1 1 auto;
}

.expert-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neural-blue), var(--axon-cyan));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.avatar-nav a {
  color: var(--neural-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.avatar-nav a:hover {
  background: var(--brain-gray);
  text-decoration: none;
}
/* Avatar cards for index page */
.avatar-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}
.avatar-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}
.avatar-card h3 {
  margin: 0;
}
.avatar-card-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--neural-blue);
}
.avatar-card-purple {
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  border-left: 4px solid var(--cerebral-purple);
}
.avatar-card-cyan {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border-left: 4px solid var(--axon-cyan);
}
.avatar-card-orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-left: 4px solid #f97316;
}
