
    :root {
      --color-primary: #7c3aed;
      --color-primary-light: #e9defc;
      --color-primary-dark: #5512c8;
      --color-primary-hover: #5f14e0;
      --color-primary-text: #ffffff;
      --color-primary-text-hover: #ffffff;
      
      --color-secondary: #6b7280;
      --color-secondary-light: #cacdd3;
      --color-secondary-dark: #484d56;
      --color-secondary-hover: #545964;
      --color-secondary-text: #ffffff;
      --color-secondary-text-hover: #ffffff;
      
      --color-accent: #ec4899;
      --color-accent-light: #fde8f2;
      --color-accent-dark: #d21673;
      --color-accent-hover: #e71a7f;
      --color-accent-text: #000000;
      --color-accent-text-hover: #000000;
      
      --color-neutral-50: #faf9fa;
      --color-neutral-100: #f2f1f3;
      --color-neutral-200: #d8d6dc;
      --color-neutral-300: #bebac4;
      --color-neutral-400: #9791a1;
      --color-neutral-500: #706a7c;
      --color-neutral-600: #575260;
      --color-neutral-700: #3e3b45;
      --color-neutral-800: #252329;
      --color-neutral-900: #141316;
      
      --color-surface: #ffffff;
      --color-surface-hover: #faf9fa;
      --color-background: #faf9fa;
      --color-text-primary: #141316;
      --color-text-secondary: #575260;
      --color-text-muted: #9791a1;
      --overlay-opacity: 0.3;
    }
  /* Academic Research Template CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.academic-template {
  background: white;
  overflow: hidden;
  position: relative;
}

/* Navigation */
.nav-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.3s;
  z-index: 10;
  color: white;
  font-weight: 600;
  background: transparent;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.nav-content {
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav-content {
    padding: 1.5rem 1rem;
  }
}

.nav-logo {
  font-size: 1.875rem;
  font-weight: bold;
}

.logo {
  height: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  font-size: 1.125rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #cbd5e1;
}

/* Hero Section */
.hero-section {
  height: 24rem;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 0 2.5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-dark);
  opacity: var(--overlay-opacity);
}

.hero-section.disable-primary-colors .hero-overlay {
  background-color: black;
}


.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  text-align: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

/* Sections */
.section-wrapper {
  display: flex;
  justify-content: center;
}

.section-content {
  padding: 4rem;
  max-width: 1280px;
  width: 100%;
}

@media (max-width: 768px) {
  .section-content {
    padding: 2rem 1rem;
  }
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--color-primary-dark);
}

.section-wrapper.disable-primary-colors .section-title {
  color: var(--color-text-primary);
}

.prose {
  max-width: none;
}

/* Team Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.team-card {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  border-radius: 0.5rem;
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(to bottom, var(--color-neutral-200), var(--color-neutral-100));
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.team-card:hover {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .team-card {
    width: calc(33.333% - 0.5rem);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .team-card {
    width: 48%;
  }
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Papers */
.paper-item {
  margin-bottom: 1.25rem;
}

.paper-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .paper-content {
    flex-direction: row;
  }
}

.paper-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 0;
}

.paper-text {
  flex: 1;
  min-height: 200px;
}

.paper-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.paper-abstract {
  color: var(--color-text-secondary);
}

.read-more {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.read-more a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.read-more a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.read-more:hover a::after {
  width: 100%;
}

.paper-divider {
  margin: 2.5rem 0;
  border-bottom: 2px solid white;
}

/* Footer */
.footer-section {
  padding: 2.5rem;
  background-color: var(--color-neutral-200);
}

.footer-content {
  padding: 0 4rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .footer-content {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: 0 1rem;
  }
}

.footer-contact {
  width: 100%;
}

@media (min-width: 768px) {
  .footer-contact {
    width: 50%;
  }
}

.footer-links {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .footer-links {
    width: 50%;
  }
}

.footer-partner {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .footer-partner {
    align-items: flex-end;
  }
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-email {
  color: var(--color-accent-dark);
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-link {
  color: var(--color-accent-dark);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-section.disable-primary-colors .footer-email {
  color: var(--color-text-primary);
}

.footer-section.disable-primary-colors .footer-link {
  color: var(--color-text-primary);
}

.section-wrapper.disable-primary-colors .read-more {
  color: var(--color-text-primary);
}

.partner-logo {
  height: 4rem;
  object-fit: contain;
}

@media (max-width: 640px) {
  .partner-logo {
    height: 4rem;
  }
}

.partner-placeholder {
  height: 4rem;
  width: 8rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  background-color: var(--color-neutral-400);
  color: var(--color-text-primary);
}

.partner-name {
  font-size: 0.875rem;
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .partner-name {
    text-align: right;
  }
}

.partner-info {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .partner-info {
    text-align: right;
  }
}

/* Work Packages */
.work-packages-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.work-package-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-package-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.work-package-description {
  line-height: 1.7;
  color: var(--color-text-primary);
  font-size: 1rem;
}

.work-package-divider {
  margin: 1.5rem 0;
  border-bottom: 1px solid var(--color-neutral-300);
}

/* Image Attribution */
.image-attribution {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.hero-section {
  position: relative;
}

.hero-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.75rem;
  border-top-left-radius: 0.25rem;
  z-index: 15;
}

.paper-image-container {
  width: 150px;
  float: left;
  margin-bottom: 1.25rem;
  margin-right: 1.25rem;
}

.paper-attribution {
  text-align: left;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 150px;
}

.partner-attribution {
  margin-top: 0.5rem;
  text-align: right;
}

@media (min-width: 1024px) {
  .partner-attribution {
    text-align: right;
  }
}

@media (max-width: 1023px) {
  .partner-attribution {
    text-align: left;
  }
}

/* Rich Text Content Styles */
.rich-text-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.rich-text-content a:hover {
  opacity: 0.8;
}

.rich-text-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.rich-text-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.rich-text-content li {
  margin: 0.25rem 0;
  padding-left: 0.25rem;
}

.rich-text-content ul ul {
  list-style-type: circle;
}

.rich-text-content ul ul ul {
  list-style-type: square;
}

.rich-text-content p {
  margin: 0.75rem 0;
}

.rich-text-content p:first-child {
  margin-top: 0;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

/* Spacing between different block elements */
.rich-text-content p + ul,
.rich-text-content p + ol {
  margin-top: 0.75rem;
}

.rich-text-content ul + p,
.rich-text-content ol + p {
  margin-top: 0.75rem;
}

.rich-text-content ul + ul,
.rich-text-content ol + ol,
.rich-text-content ul + ol,
.rich-text-content ol + ul {
  margin-top: 0.75rem;
}

.rich-text-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

.rich-text-content code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
}

.rich-text-content pre {
  background-color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.rich-text-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Footer section links use accent-dark for consistency */
.footer-section a {
  color: var(--color-accent-dark) !important;
  text-decoration-color: var(--color-accent-dark) !important;
}

/* Hero section links use text color instead of accent color (must be more specific than footer) */
.hero-section .hero-attribution a {
  color: inherit !important;
  text-decoration-color: inherit !important;
}

/* Disable primary colors for rich text links */
.disable-primary-colors .rich-text-content a {
  color: var(--color-text-primary);
  text-decoration-color: var(--color-text-primary);
}

/* Rich text image sizing */
.richtext-thumbnail {
  max-width: 120px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.richtext-medium {
  max-width: 400px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 4px;
}

.richtext-full {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}