/* Lightweight Template CSS - Minimal external dependencies */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f3f7;
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e5e7eb;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', 'Source Sans 3', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid system (simplified) */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.column {
  flex: 1;
  padding: 0 10px;
}

.is-centered {
  justify-content: center;
}

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

.has-text-justified {
  text-align: justify;
}

.is-four-fifths {
  flex: 0 0 80%;
}

.is-8 {
  flex: 0 0 66.666667%;
}

/* Typography */
.title {
  font-family: 'Sora', 'Manrope', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.title.is-1 {
  font-size: 2.75rem;
}

.title.is-3 {
  font-size: 1.9rem;
}

.subtitle {
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.is-size-5 {
  font-size: 1.25rem;
}

/* Hero sections */
.hero {
  padding: 2.75rem 0;
}

.hero-body {
  padding: 2.75rem 0;
}

.hero.is-small .hero-body {
  padding: 1.5rem 0 2rem;
}

section {
  background-color: var(--surface);
}

section:nth-of-type(even) {
  background-color: var(--surface-muted);
}

/* Section backgrounds - alternating colors */
.section {
  padding: 3rem 0;
}

section .title.is-3 {
  text-align: center;
}

/* Publication styles */
.publication-title {
  font-family: 'Sora', 'Manrope', 'Helvetica Neue', sans-serif;
}

.publication-authors {
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.publication-authors a {
  color: var(--accent);
  text-decoration: none;
}

.publication-authors a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.author-block {
  display: inline-block;
}

.publication-links {
  margin-top: 0.6rem;
}

.link-block {
  display: inline-block;
  margin: 0 0.35rem 0.2rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.is-normal {
  font-size: 1rem;
}

.button.is-rounded {
  border-radius: 999px;
}

.button.is-dark {
  background-color: #111827;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button.is-dark:hover {
  background-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.external-link {
  text-decoration: none;
}

.icon {
  margin-right: 0.5rem;
}

/* Content */
.content {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* Carousel styles */
.carousel-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  overflow: visible;
  padding: 0 56px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.3s ease;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.carousel-slide {
  min-width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 16px 0 8px;
}

.carousel-slide.active {
  display: flex;
}

/* Video styling - maintain natural aspect ratio */
.carousel-slide video {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  padding: 8px;
}

/* Image styling - show full image without cropping */
.carousel-slide img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  padding: 8px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .carousel-container {
    min-height: 350px;
    padding: 0 40px;
  }
  
  .carousel-wrapper {
    min-height: 300px;
  }
  
  .carousel-slide video {
    max-height: 400px;
  }
  
  .carousel-slide img {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    min-height: 300px;
    padding: 0 30px;
  }
  
  .carousel-wrapper {
    min-height: 250px;
  }
  
  .carousel-slide video {
    max-height: 300px;
  }
  
  .carousel-slide img {
    max-height: 300px;
  }
  
  .carousel-btn.prev {
    left: -25px;
  }
  
  .carousel-btn.next {
    right: -25px;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }
  
  .section {
    padding: 2rem 0.5rem;
  }
  
  .hero {
    padding: 1.5rem 0.5rem;
  }
  
  .hero-body {
    padding: 1.5rem 0;
  }
  
  .title.is-1 {
    font-size: 1.75rem;
  }
  
  .title.is-3 {
    font-size: 1.25rem;
  }
  
  .is-size-5 {
    font-size: 1rem;
  }
  
  /* Fix table overflow on very small screens */
  table {
    font-size: 0.875rem;
  }
  
  th, td {
    padding: 0.25rem 0.5rem !important;
  }
  
  /* Ensure images don't overflow */
  img, video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Override inline styles for very small screens */
  [style*="max-width: 600px"] {
    max-width: 100% !important;
  }
  
  [style*="flex: 1 1 320px"] {
    flex: 1 1 250px !important;
    max-width: 100% !important;
  }
  
  /* Adjust carousel for very small screens */
  .carousel-container {
    padding: 0 20px;
    min-height: 250px;
  }
  
  .carousel-wrapper {
    min-height: 200px;
  }
  
  .carousel-slide video,
  .carousel-slide img {
    max-height: 250px;
  }
  
  .carousel-btn {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .carousel-btn.prev {
    left: -20px;
  }
  
  .carousel-btn.next {
    right: -20px;
  }
  
  /* Fix column layout for very small screens */
  .columns {
    margin: 0 -5px;
  }
  
  .column {
    padding: 0 5px;
  }
  
  .is-four-fifths {
    flex: none;
    width: 100%;
  }
  
  .is-8 {
    flex: none;
    width: 100%;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: #0f172a;
  box-shadow: var(--shadow-md);
}

.carousel-btn.prev {
  left: -30px;
}

.carousel-btn.next {
  right: -30px;
}

.carousel-dots {
  text-align: center;
  margin-top: 20px;
  position: relative; /* Changed from absolute to relative */
  bottom: auto; /* Remove absolute positioning */
  left: auto;
  right: auto;
  background: transparent; /* Remove background */
  padding: 10px 0;
  backdrop-filter: none; /* Remove backdrop filter */
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #cbd5f5;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.dot.active,
.dot:hover {
  background-color: var(--accent);
  border-color: var(--accent-dark);
}

/* Footer */
.footer {
  background-color: #f1f3f7;
  padding: 3rem 1.5rem;
  margin-top: 0;
  font-size: 0.9rem;
}

.footer .content {
  margin-bottom: 0;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

/* Responsive design */
@media (max-width: 768px) {
  .title.is-1 {
    font-size: 2.1rem;
  }
  
  .title.is-3 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-body {
    padding: 2rem 0;
  }
  
  .carousel-container {
    padding: 0 36px;
  }
  
  .carousel-btn {
    padding: 8px 12px;
    font-size: 16px;
  }
  
  .carousel-btn.prev {
    left: -35px;
  }
  
  .carousel-btn.next {
    right: -35px;
  }
  
  .columns {
    flex-direction: column;
  }
  
  .column {
    flex: none;
  }
  
  .is-four-fifths {
    flex: none;
  }
  
  .is-8 {
    flex: none;
  }
}

/* Utility classes */
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; } 
