/* Page */
body {
  background: #ffffff;
}

.thesis-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1rem 1rem;
}

/* Header */
.hero {
  max-width: 860px;
  margin: 0 auto 4rem;
  text-align: center;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero h1 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero .subtitle {
  margin-bottom: 1.3rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.hero .author {
  margin-bottom: 0.25rem;
  font-size: 17px;
}

.hero .affiliation {
  margin-bottom: 1.6rem;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

/* Resource Links */
.resource-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid #2d3748;
  border-radius: 999px;
  background: #2d3748;
  color: #ffffff;
  font-size: 14.5px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.resource-links a:hover {
  border-color: #4a5568;
  background: #4a5568;
  color: #ffffff;
}

/* Media */
.hero-media {
  max-width: 860px;
  margin: 2rem auto 0;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 250px;
  padding: 0.5rem;
  border: 1px dashed #a0aec0;
  border-radius: 4px;
  background: #ffffff;
  color: #718096;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.media-placeholder.small {
  min-height: 180px;
}

.media-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Sections */
.research-section {
  margin: 4rem 0;
}

.research-section h2 {
  margin: 0 0 1.5rem;
  border: 0;
  color: var(--text);
  font-size: 1.65rem;
  text-align: center;
}

.research-section > p {
  max-width: 790px;
  margin: 0.6rem auto 1rem;
  font-size: 16.5px;
  line-height: 1.75;
  text-align: justify;
}

.section-intro {
  max-width: 760px !important;
  margin-bottom: 1.6rem !important;
  color: #4a5568;
  text-align: center;
}

/* Method */
.method-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.8rem 0;
}

.method-box {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.method-box strong {
  display: block;
  margin-bottom: 0.3rem;
}

.arrow {
  display: flex;
  align-items: center;
  color: #718096;
  font-size: 18px;
}

/* Curriculum */
.curriculum-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.curriculum-item {
  padding: 1rem 0.8rem;
  border-top: 3px solid var(--accent);
  background: #f8f9fa;
  text-align: center;
}

.curriculum-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 15px;
}

.curriculum-item span {
  color: #718096;
  font-size: 13px;
  line-height: 1.45;
}

/* Curriculum GIFs */
.curriculum-gifs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.curriculum-gif img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.curriculum-gif p {
  margin: 0.5rem 0 0;
  font-size: 14px;
}

/* Results */
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0;
}

.result-card {
  padding: 1.3rem 1rem;
  border: 1px solid #2d3748;
  border-radius: 4px;
  background: #2d3748;
  text-align: center;
}

.result-number {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
}

.result-label {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
}

.result-note {
  margin-top: 1rem !important;
  color: #6b7280;
  font-size: 14px !important;
  text-align: center;
}

.subsection-title {
  margin: 2.5rem 0 1.2rem;
  color: var(--text);
  font-size: 1.25rem;
  text-align: center;
}

/* Incremental Curriculum Learning */
.icl-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.icl-result img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.icl-result p {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* Scalability */
.scalability-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.scalability-result img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.scalability-result p {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* Sensitivity */
.sensitivity-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.sensitivity-result img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sensitivity-result p {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* Demos */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.demo-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.demo-card p {
  margin-top: 0.6rem;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.inline-arrow {
  margin: 0 0.25rem;
  font-size: 0.85em;
}

/* Takeaway */
.takeaway {
  max-width: 790px;
  margin: 4rem auto 0;
  padding: 1.5rem 1.7rem;
  border-left: 4px solid var(--accent);
  background: #f8f9fa;
  line-height: 1.75;
}

/* Publication */
.publication-simple {
  max-width: 790px;
  margin: 1.5rem auto 0;
  line-height: 1.65;
  text-align: center;
}

.publication-simple .paper-title {
  display: inline-block;
  margin-bottom: 0.3rem;
}

/* BibTeX */
.bibtex-box {
  max-width: 790px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  border-radius: 4px;
  background: #f8f9fa;
  overflow-x: auto;
}

.bibtex-box pre {
  margin: 0;
  white-space: pre;
}

.bibtex-box code {
  color: #2d3748;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .thesis-page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero {
    margin-bottom: 2.8rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .research-section {
    margin: 3rem 0;
  }

  .research-section h2 {
    font-size: 1.45rem;
  }

  .curriculum-row,
  .result-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .method-box {
    max-width: none;
  }

  .arrow {
    width: 100%;
    height: 20px;
    justify-content: center;
    transform: rotate(90deg);
  }

  .curriculum-gifs {
    grid-template-columns: repeat(2, 1fr);
  }

  .icl-results {
    grid-template-columns: 1fr;
  }

  .scalability-results {
    grid-template-columns: 1fr;
  }

  .sensitivity-results {
    grid-template-columns: 1fr;
  }
}
