/* Components - Premium Design System */

/* Image Lightbox Styles (merged from lightbox.css) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 2001;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.zoomable-image {
  cursor: zoom-in;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.zoomable-image:hover {
  filter: none;
}

/* Grid Layouts */
#research-projects-container,
.team-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 768px) {
  #research-projects-container,
  .team-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  border-color: #cbd5e1;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
}

/* 높은 특이성으로 인라인 스타일 오버라이드 */
.features-grid .feature-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: #0f172a;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  transition: box-shadow 0.2s ease;
  position: relative;
  z-index: 10;
}

.feature-card:hover img {
  transform: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: default;
}

/* Publications Container - Vertical Stack */
#publications-container {
  display: block;
  margin-top: 2rem;
}

/* Publication List - Grid for Cards */
.publication-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Publication List - Year Grouping */
.year-header {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
  /* Green/Blue accent underline */
  display: inline-block;
  font-weight: 700;
}

.year-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Publication Item - List Style */
.publication-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  /* Left accent border */
  border-radius: 8px;
  /* Slightly smaller radius for list items */
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.publication-item:hover {
  transform: translateX(5px);
  /* Slide right slightly on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.publication-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.publication-item p {
  font-size: 0.95rem;
  color: #334155;
  /* Darker Slate Gray for better readability */
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.publication-item p strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 0.3rem;
}

.publication-item p em {
  color: #475569;
  /* Darker gray for journal info */
  font-style: italic;
  display: block;
  margin-top: 0.3rem;
  font-weight: 500;
  /* Slightly bolder */
}

/* Tab Interface */
/* Tab Interface */
.tab-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto 3rem;
  /* Positioned clearly below the hero */
  padding: 0 1rem;
  width: 100%;
  max-width: var(--container-width);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.tab-button {
  padding: 0.8rem 1.5rem;
  background-color: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 120px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-button.active {
  background-color: var(--primary-color);
  /* Deep Navy */
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}

.count-badge {
  background-color: #f1f5f9;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tab-button:hover .count-badge {
  background-color: #e2e8f0;
  color: var(--primary-color);
}

.tab-button.active .count-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
  max-width: 1000px;
  margin: 0 auto;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Team Section */
.team-card {
  text-align: center;
  align-items: center;
  padding: 3rem 2rem;
}

.team-card .affiliation {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.2rem 0 0.6rem;
}

.team-card .role {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.team-card .bio {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.team-card .expertise {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Stats Grid (for Project Details) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item small {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* AI Diagnosis Section Styles */
.diagnostic-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #888;
  max-width: 700px;
  margin: 0 auto;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.diagnostic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.diagnostic-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.diagnostic-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.diagnostic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.diagnostic-card:hover .diagnostic-image img {
  transform: none;
}

.diagnostic-info {
  padding: 1.5rem;
}

.diagnostic-info h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.analysis-text {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.target-diseases strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #eee;
}

.target-diseases ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.target-diseases li {
  background: rgba(0, 122, 255, 0.15);
  color: #4dabff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

/* Risk Table Section */
.risk-table-section {
  margin-top: 5rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.8rem;
}

.table-wrapper {
  overflow-x: auto;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.risk-table th {
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.risk-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.risk-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-critical {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.badge-high {
  background: rgba(255, 149, 0, 0.2);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.3);
}

.badge-moderate {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.badge-low {
  background: rgba(52, 199, 89, 0.2);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.risk-row-critical {
  background: rgba(255, 59, 48, 0.03);
}

.risk-row-high {
  background: rgba(255, 149, 0, 0.02);
}

@media (max-width: 768px) {
  .risk-table-section {
    padding: 1.5rem;
  }

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

/* Publication Section Utility Classes */
.publication-section {
  margin-bottom: 4rem;
}

.publication-section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.stats-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-badge-total {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}

.stat-badge-total span {
  color: var(--primary-color);
}

.stat-badge-field {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  color: #64748b;
  font-size: 0.9rem;
}

.stat-badge-field span {
  color: var(--primary-color);
  font-weight: 600;
}

.publication-list-iso {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.iso-item {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.iso-item .item-number {
  color: #334155;
  font-weight: 600;
}

.iso-item .paper-title {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.iso-item .paper-title:hover {
  border-bottom-color: var(--primary-color);
}

.iso-item .paper-title.no-link {
  pointer-events: none;
}

.iso-item .journal-info {
  font-style: italic;
  color: #475569;
}

/* Error text styling */
.error-text {
  color: #dc2626;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* =========================================
   Enhanced Challenge Page Styles (Refined)
   ========================================= */

/* Hero / Header Area */
.challenge-hero {
  margin-bottom: 3rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 2rem;
}

.challenge-hero h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.challenge-hero p {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 300;
  max-width: 800px;
  line-height: 1.6;
}

/* Challenge Sections */
.challenge-section {
  margin-bottom: 5rem;
  position: relative;
  padding-top: 1.5rem;
}

.challenge-phase-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  background: rgba(0, 51, 102, 0.05);
  /* Light primary bg */
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.challenge-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.3;
}

.challenge-title strong {
  color: var(--primary-color);
  font-weight: 800;
}

.challenge-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: 2rem;
  text-align: justify;
  text-justify: inter-word;
  word-break: keep-all;
}

/* Visuals */
.challenge-visual-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  background: #fff;
  padding: 1rem;
}

.challenge-visual-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.challenge-visual-grid figure {
  flex: 1;
  min-width: 250px;
  margin: 0;
}

.challenge-visual-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Mechanism Cards (for Phase 2) */
.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mechanism-item {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mechanism-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.mechanism-item h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mechanism-item p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Story Connectors */
.story-connector {
  height: 60px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #cbd5e1 50%, transparent);
  margin: 0 auto;
  display: block;
}

/* =========================================
   Homepage Inline Style Replacements
   ========================================= */

/* Sidebar Footer Links */
.sidebar-footer-meta {
  margin-top: 10px;
  font-size: 0.7rem;
}

.sidebar-footer-link {
  color: #94a3b8;
  text-decoration: none;
}

/* Homepage Hero Section */
.intro-section {
  padding: 5rem 4rem 4rem;
  background-color: #ffffff;
  color: #1e293b;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a73e8;
  margin-bottom: 1.5rem;
}

.section-heading-hero {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  color: #0a2540;
  text-align: justify;
  text-justify: inter-word;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
  max-width: none;
  margin-bottom: 3.5rem;
  word-break: keep-all;
  text-align: justify;
  text-justify: inter-word;
}

.row-flex {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.col-flex {
  flex: 1;
}

.col-flex-center {
  flex: 1;
  text-align: center;
}

/* Research Pillars */
.research-pillar {
  border-left: 3px solid #1a73e8;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  text-align: justify;
  text-justify: inter-word;
}

.research-pillar:last-child {
  margin-bottom: 0;
}

.pillar-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a73e8;
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #0a2540;
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  word-break: keep-all;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.12);
}

/* Key Metrics Section */
.metrics-section {
  padding: 0 4rem;
  margin-bottom: 3rem;
}

.key-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

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

.key-metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 0.3rem;
  text-align: center;
}

.key-metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0;
}

/* Research Section */
.research-section {
  padding: 0 4rem 4rem;
}

.research-section .container-fluid {
  padding: 0;
}

.section-label-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a73e8;
  margin-bottom: 0.8rem;
}

.section-heading-md {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #0a2540;
}

/* Overview Page Inline Style Replacements */
.overview-section {
  padding: 4rem 5%;
}

.overview-research-box {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.overview-research-box h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #334155;
  font-weight: 600;
}

.overview-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  word-break: keep-all;
  text-align: justify;
  text-justify: inter-word;
}

.overview-text-sm {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
  word-break: keep-all;
  text-align: justify;
  text-justify: inter-word;
}

.overview-research-box p {
  text-align: justify;
  text-justify: inter-word;
}

.overview-figure-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 1.5rem;
}

.overview-figure-card {
  flex: 0 1 30%;
  max-width: 30%;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
}

.overview-figure-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.overview-figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

/* Phase 2 frameless image layout */
.phase2-no-frame figure,
.phase2-no-frame .overview-figure-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phase2-no-frame img {
  border-radius: 0 !important;
}

/* Phase 3 frameless image layout */
.phase3-no-frame figure,
.phase3-no-frame .overview-figure-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phase3-no-frame img {
  border-radius: 0 !important;
}

/* Phase 4 frameless image layout */
.phase4-no-frame figure,
.phase4-no-frame .overview-figure-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phase4-no-frame img {
  border-radius: 0 !important;
}

.phase3-ir-image {
  width: 158.11% !important;
  max-width: none !important;
  margin-left: -29.055% !important;
}

.phase3-physical-image {
  width: 104.49% !important;
  max-width: none !important;
  margin-left: -2.245% !important;
}

.phase3-realtime-image {
  width: 94.095% !important;
  max-width: none !important;
  margin-left: 2.9525% !important;
}

.phase4-ir-image {
  width: 101.25% !important;
  max-width: none !important;
  margin-left: -0.625% !important;
}

.phase4-realtime-image {
  width: 74.52% !important;
  max-width: none !important;
  margin-left: 12.74% !important;
}

.phase4-stimulus-image {
  width: 101.97% !important;
  max-width: none !important;
  margin-left: -0.985% !important;
}

.phase3-vertical-right {
  width: 64% !important;
  max-width: 64% !important;
  margin: 0 auto !important;
  display: block !important;
  height: auto !important;
}

/* Match Phase 2-4 captions to the cleaner Phase 1 tone */
.phase2-no-frame figcaption,
.phase3-no-frame figcaption,
.phase4-no-frame figcaption {
  margin-top: 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: #94a3b8 !important;
  text-align: center !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.challenge-caption-fixed,
.challenge-caption-dynamic {
  display: block;
  text-align: center;
}

@media (min-width: 1025px) {
  .phase3-study1-rightshift {
    transform: translateX(2.2%);
  }

  .phase3-vertical-right {
    margin-left: 32% !important;
    margin-right: 4% !important;
  }

  .phase3-right-col .overview-figure-card .overview-figcaption {
    width: 64%;
    margin-left: 32%;
    margin-right: 4%;
    text-align: center;
  }

  .phase3-right-col .overview-arrow {
    width: 64%;
    margin-left: 32%;
    margin-right: 4%;
    text-align: center;
  }

  .phase3-physical-image {
    width: 114.939% !important;
    max-width: none !important;
    margin-left: -7.4695% !important;
  }

  .phase3-realtime-image {
    width: 103.5045% !important;
    max-width: none !important;
    margin-left: -1.75225% !important;
  }

  .phase3-study2-mobile-stack > figure:nth-child(1) figcaption,
  .phase3-study2-mobile-stack > figure:nth-child(2) figcaption {
    text-align: center !important;
  }
}

.phase3-tuning-image {
  width: 101.3472% !important;
  max-width: none !important;
  margin-left: -0.6736% !important;
  margin-top: 0.2rem !important;
  display: block !important;
  height: auto !important;
}

@media (max-width: 1024px) {
  .phase3-study2-mobile-stack,
  .phase4-study1-mobile-stack {
    flex-direction: column !important;
    align-items: center !important;
  }

  .phase3-study2-mobile-stack > figure,
  .phase4-study1-mobile-stack > figure {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
  }

  .mobile-tight-card {
    min-height: auto !important;
    height: auto !important;
    padding: 0.5rem 0.5rem 0.75rem !important;
  }

  .mobile-ref-size {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
  }

  .phase3-study2-mobile-stack figcaption,
  .phase4-study1-mobile-stack figcaption {
    white-space: normal !important;
    word-break: keep-all !important;
    width: fit-content !important;
    max-width: 170% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.35 !important;
    font-size: 0.86rem !important;
    text-align: center !important;
  }

  .phase3-caption-nowrap {
    white-space: nowrap !important;
  }

  .phase4-stimulus-shift {
    margin-top: 1.8rem !important;
  }

  .phase3-tuning-image {
    width: 119.1843% !important;
    max-width: none !important;
    margin-left: -9.59215% !important;
  }

  .phase3-tuning-caption {
    margin-top: 0.5rem !important;
  }

  .phase3-ir-image {
    width: 181.8265% !important;
    max-width: none !important;
    margin-left: -40.91325% !important;
  }

  .phase3-physical-image {
    width: 198.531% !important;
    max-width: none !important;
    margin-left: -49.2655% !important;
  }

  .phase3-realtime-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .phase4-ir-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .phase4-realtime-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .phase4-stimulus-image {
    width: 112.167% !important;
    max-width: none !important;
    margin-left: -6.0835% !important;
  }
}

.overview-findings-list {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.overview-findings-list li {
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid #3b82f6;
}

.overview-subheading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #0f172a;
  word-break: keep-all;
}

/* Phase Tab Navigation */
.phase-tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.phase-tab-link {
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.phase-tab-link:hover {
  color: #1a73e8;
}

.phase-tab-link.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

/* Unified image layout for appended Phase 3-4 content */
.advanced-phase-content .overview-figure-row,
.advanced-phase-content .challenge-visual-grid {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.advanced-phase-content figure {
  flex: 1 1 280px !important;
  max-width: 340px !important;
  min-width: 240px !important;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.advanced-phase-content figure img:not(.phase3-ir-image):not(.phase3-physical-image):not(.phase3-realtime-image):not(.phase4-ir-image):not(.phase4-realtime-image):not(.phase4-stimulus-image):not(.phase3-vertical-right):not(.phase3-tuning-image) {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  background: #f8fafc;
  border-radius: 4px;
  transform: none !important;
  margin: 0 !important;
  display: block;
}

@media (max-width: 1024px) {
  .advanced-phase-content .mobile-tight-card {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
  }

  .advanced-phase-content .mobile-tight-card .overview-figcaption {
    min-height: 0 !important;
    margin-top: 0.6rem !important;
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 3rem 1.5rem 2rem;
  }

  .section-heading-hero {
    font-size: 1.6rem;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .row-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .key-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .metrics-section,
  .research-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .overview-figure-row {
    flex-direction: column;
  }

  .overview-figure-card {
    flex: 1;
    max-width: 100%;
  }

  .phase-tab-nav {
    overflow-x: auto;
  }
}

/* Challenge Visual Elements */
.challenge-visual-box {
  width: 127px;
  height: 127px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.challenge-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.challenge-figure-item {
  flex: 0 1 127px;
  margin: 0;
  text-align: center;
}

.challenge-figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.challenge-figcaption-sm {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.challenge-caption-value {
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.overview-figure-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  justify-content: center;
  align-items: center;
}

.overview-arrow {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1;
}

.overview-figure-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* =========================================
   Publications Dynamic Styles
   (Extracted from main.js inline styles)
   ========================================= */

/* Publication Section */
.publication-section {
  margin-bottom: 4rem;
}

.publication-section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

/* Stats Bar */
.stats-bar-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-badge {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}

.stat-badge-outline {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  color: #64748b;
  font-size: 0.9rem;
}

.stat-count {
  color: #003366;
  font-weight: 600;
}

/* Publication List */
.publication-list-iso {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.iso-item {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}

.iso-item-number {
  color: #334155;
  font-weight: 600;
}

.iso-item-title {
  color: #003366;
  font-weight: 600;
}

.iso-item-title-link {
  color: #003366;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.iso-item-title-link:hover {
  border-bottom-color: #003366;
}

.iso-item-journal {
  font-style: italic;
  color: #475569;
}
