:root {
  --primary-color: #000;
  --secondary-color: #333;
  /* --accent-color: #9375d2; */
  --accent-color: #7155ae;
  --accent-bg-color: #e3e4f3e1;
  /* --accent-color: #667eea; */
  --text-color: #2d3748;
  --light-text: #4a5568;
  --background-color: #ffffff;
  --light-bg: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.1), 0 5px 20px 0px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  overflow-x: hidden;
  font-size: 17px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-top: 5rem;
  padding: 0;
  /* border-bottom: 1px solid var(--border-color); */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Varela Round', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--light-text);
  font-size: 1.15rem;
  line-height: 1.7;
}

.title-row {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 60px;
}

.title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.author-col {
  margin: 0 15px;
  text-align: center;
}

.author-text {
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.author-text:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- Responsive author layout improvements --- */
@media (max-width: 800px) {
  .author-row { gap: 4px 10px; }
  .author-row .author-col { flex: 0 0 48%; max-width: 48%; padding: 0 0px; margin: 0px 0; }
}
@media (max-width: 420px) {
  .author-row .author-col { flex: 0 0 100%; max-width: 100%; padding: 0 0px; margin: 0px 0; }
}

.link-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0;
}

.icon-col {
  margin: 0 15px;
  text-align: center;
}

.link-block {
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.main-icon {
  color: var(--primary-color);
  transition: var(--transition);
}

.link-block:hover .main-icon {
  color: var(--accent-color);
  transform: translateY(-5px);
}

.link-labels-text {
  display: block;
  color: var(--light-text);
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.link-block:hover .link-labels-text {
  color: var(--accent-color);
}

.no-underline {
  text-decoration: none;
}

.tldr {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin: -3rem 0 2rem 0;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
  color: var(--light-text);
  line-height: 1.6;
}

.tldr b {
  color: var(--primary-color);
}

.add-top-padding {
  padding-top: 2rem;
}

.image-container {
  margin: 2rem 0;
  padding: 1rem 1rem 0.5rem 1rem; /* bottom 1rem → 0.5rem */
  position: relative;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background-color: white;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.table-container {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* .table-container-ablation {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} */


.image-container:hover, .table-container:hover, .video-container:hover, .table-container-ablation:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.25), 0 10px 15px 0px rgba(0, 0, 0, 0.15);
}

.image-content {
  padding: 12px 12px -30px;          
}

.img, 
.slideshow-video {
  width: 100%;
  transition: var(--transition);
  display: block;
}

.large-image {
  max-width: 100%;
  display: block;
  margin: 1rem auto 2rem auto;
}

.medium-image {
  max-width: 85%;
  display: block;
  margin: 1rem auto 2rem auto;
}

.z-depth-1 {
  /* Remove shadow from images as it's now on the container */
  box-shadow: none;
}

.image-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--light-text);
  text-align: center;
  padding: 0 1rem;
  font-weight: 500;
  /* max-height: 180px; */
  overflow-y: scroll;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--light-bg);
}

.image-caption::-webkit-scrollbar {
  width: 6px;
}

.image-caption::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 3px;
}

.image-caption::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 3px;
}

/* Add a class for image/video credits */
.image-credit {
  font-weight: normal;
}

.citation {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  margin: 3rem 0;
}

pre {
  background-color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 1rem;
  border-left: 4px solid var(--accent-color);
}

.credit {
  text-align: center;
  margin: 3rem 0 1rem;
  font-size: 0.8rem;
  color: var(--light-text);
  opacity: 0.8;
}

/* Base Row and Column Structure */
.base-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.base-col {
  padding: 0 15px;
  flex: 1 1 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .container {
    padding: 0 15px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .base-col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.5rem;
  }
  
  .icon-col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 1.5rem;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .base-col, .icon-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .icon-col {
    margin-bottom: 2rem;
  }
  
  .title {
    font-size: 1.6rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover:after {
  width: 100%;
}

.hero-section {
  padding-top: 100px;
  padding-bottom: 30px;
  background: linear-gradient(to bottom, #f9f9ff 0%, #ffffff 100%);
}

.main-content {
  padding: 20px 0 60px;
}

.title-row {
  padding-top: 20px;
}

.affiliations {
  font-size: 1.1rem;
  color: var(--light-text);
  text-align: center;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

.link-block {
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.link-block:hover {
  background-color: var(--light-bg);
  transform: translateY(-5px);
}

.site-footer {
  background-color: var(--light-bg);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

.credit {
  margin: 0;
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0 10px 10px;
  }
  
  .site-header {
    padding: 10px 0;
  }
  
  .hero-section {
    padding-top: 120px;
  }
}

/* Update video container styles to match image containers */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1rem;
  box-shadow: var(--shadow);
  background-color: white;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-content {
  padding: 15px;
}

.slideshow-video {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.video-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--light-text);
  text-align: center;
  padding: 0 1rem;
  padding-bottom: 15px;
}

/* Add these styles to position the video container and unmute overlay correctly */
.unmute-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.unmute-overlay:hover {
  opacity: 1;
}

.unmute-overlay i {
  font-size: 16px;
}

.unmute-text {
  font-weight: 500;
}

.main-video-container {
  box-shadow: var(--shadow);
  background-color: white;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 12px;
    background-color: white;
    padding: 1rem;
    margin: 0 0 4rem 0;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-container:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.25), 0 15px 15px -5px rgba(0, 0, 0, 0.15);
}

.slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
}

.slideshow-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.slideshow-image-video {
  width: 100%;
  height: 345px;
  object-fit: contain;
  border-radius: 8px;
}

.comparison-slideshow-image {
    max-width: 850px;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
    /* padding: 1rem 0.5rem; */
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: var(--transition);
    z-index: 10;
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-nav.prev {
    left: 10px;
}

.slideshow-nav.next {
    right: 10px;
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.play-pause {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.8;
}

.play-pause:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for slideshow */
@media (max-width: 768px) {
    .slideshow {
        height: 500px;
    }
    
    .slideshow-image {
        height: 300px;
    }
    
    .image-caption {
        max-height: 120px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .slideshow {
        height: 450px;
    }
    
    .slideshow-image {
        height: 250px;
    }
    
    .image-caption {
        max-height: 100px;
        font-size: 0.85rem;
    }
}

/* #B7ADD1 */
/* #C7DADF */
/* #EDEDF4 */
/* background: linear-gradient(45deg, #9578e4, #527f8c); */
/* background: linear-gradient(45deg, #FF512F, #FF6F61, #DD2476); */
.gradient-text {
    background: linear-gradient(45deg, #5d2fbf, #06c29c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Table Styles */
.table-container {
    margin: 2rem 0;
    padding: 1rem;
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: white;
    overflow-x: auto;
}

.table-container.abl { /* ablation table: narrower container */
  width: 80%;              /* shrink overall width */
  margin-left: auto;       /* center horizontally */
  margin-right: auto;
  font-size: 0.95rem;  /* slightly smaller text */
}

/* Ensure inner table uses full width of this smaller container */
.table-container.abl .advantages-table { width: 100%; }

@media (max-width: 1000px) {
  .table-container.abl { width: 85%; }
}
@media (max-width: 700px) {
  .table-container.abl { width: 100%; }
}

.advantages-table {
  width: 90%;
  border-collapse: collapse;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto; /* center within container */
}

.advantages-table th,
.advantages-table td {
  padding: 0.5rem;
  text-align: center; /* default center */
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle; /* vertical center */
  font-family: 'Varela Round', sans-serif;
  font-weight: 500;
}

/* Vertical divider after VRA Loss column */
.advantages-table .vra-col {
  width: 70px; /* adjust narrower width */
  max-width: 70px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  border-right: 2px solid var(--border-color);
}

/* Narrow left model column */
.advantages-table .model-col {
  width: 150px; /* adjust narrower width */
  max-width: 150px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

/* Simple VRA on/off icon colors */
.advantages-table .vra-yes { color: #63c7a4; font-size: 1rem; transition: color .2s ease; }
.advantages-table .vra-no { color: #f29a9a; font-size: 1rem; transition: color .2s ease; }

@media (max-width: 768px) {
  .advantages-table .model-col { width: 90px; max-width: 90px; font-size: 0.85rem; }
}

/* Remove double border on last vra cell if table ends */

.advantages-table th {
    background-color: var(--light-bg);
    color: var(--primary-color);
}



.advantages-table strong {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .table-container {
        margin: 0 0 2rem 0;
        padding: 0.5rem;
    }
    
    .advantages-table {
        font-size: 0.9rem;
    }
    
    .advantages-table th,
    .advantages-table td {
        padding: 0.75rem;
    }
}

/* Play Button Overlay Styles */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button-overlay i {
    font-size: 60px;
    margin-left: 8px;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hide play button when video is playing */
.video-container video.playing + .play-button-overlay {
    display: none;
}

/* Title block with video */
.title-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.title-text-block .title { margin-bottom: 0.35rem; }
.title-text-block .subtitle { margin-top: 0; }

.title-video {
  height: 5.3rem;
  width: 6.2rem;
  object-fit: cover;
  box-shadow: none; /* remove box feel */
  flex: 0 0 auto;
  margin-top: 4px;
  
  backdrop-filter: blur(2px);
}

.paragraph-image {
  height: 1.5em;         /* 글자 크기에 맞게 */
  vertical-align: middle; /* 텍스트 세로 맞춤 */
  margin-right: 0.4em;    /* 텍스트랑 간격 */
}

/* Desktop-only line break inside title */
.title-break { display: inline; }
@media (min-width: 801px) { /* large screens: force break */
  .title-break { display: block; height: 0; }
}
@media (max-width: 800px) { /* mobile/tablet: keep inline */
  .title-break { display: inline; }
}

@media (max-width: 860px) {
  .title-video { height: 4.5rem; width: 5.3rem; }
  .title-flex { gap: 5px; }
}
@media (max-width: 640px) {
  .title-video { height: 5rem; width: 6rem; }
  .title-flex { gap: 6px; flex-direction: column; align-items: center; }
  .title-text-block { display: flex; flex-direction: column; align-items: center; }
  .title-text-block .title { font-size: 1.85rem; text-align: center; }
  .title-text-block .subtitle { font-size: 1.05rem; text-align: center; }
  .author-text { font-size: 1.05rem; }
  .nav-links a { font-size: 0.95rem; }
  .nav-links li { margin: 0 8px 6px; }
}
@media (max-width: 500px) {
  .title-video { height: 4.8rem; width: 5.6rem; margin-top: 0; }
  .title-flex { gap: 8px; }
  .title-text-block .title { font-size: 1.5rem; text-align: center; }
  .title-text-block .subtitle { font-size: 0.95rem; text-align: center; }
  .author-text { font-size: 0.95rem; }
  .nav-links a { font-size: 0.85rem; }
  .site-header { padding: 6px 0; }
}
@media (max-width: 400px) {
  .title-video { height: 4.2rem; width: 5rem; }
  .title-text-block .title { font-size: 1.5rem; }
  .author-text { font-size: 0.9rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* Two-column layout for framework section */
.two-col {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 1rem;
}

.two-col .col-left, .two-col .col-right {
  flex: 1 1 0;
  min-width: 0; /* prevent overflow */
}

.two-col .col-left p:last-child {
  margin-bottom: 0;
}

/* Ensure nested image container fits column */
.two-col .image-container {
  margin: 0;
  width: 100%;

}

@media (max-width: 900px) {
  .two-col {
    flex-direction: column;
    gap: 20px;
  }
}

/* Shrink image inside two-column framework section (Option 1) */
.two-col .col-right img {
  max-width: 80%; /* adjust 70~85% as needed */
  margin: 0 auto 0.5rem auto;
  display: block;
}

/* Adjust column width ratio: give more space to text (left) than image (right) */
.two-col .col-left {
  flex: 1.2 1 0; /* increase text width */
}

.two-col .col-right {
  flex: 0.8 1 0; /* decrease image column width */
}

/* Optional: tighten right image container padding a bit */
.two-col .col-right .image-container {
  padding: 0.75rem 0.75rem 0.9rem;
}



.table-container-ablation {
  width: 50%;          /* 화면의 70%만 차지 */
  margin: 0 auto;      /* 가운데 정렬 */
  overflow-x: auto;    /* 넘치면 스크롤 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1vw;      /* 글자 크기도 뷰포트 너비 기준으로 축소/확대 */
  box-sizing: border-box;
}

.table-container-ablation .advantages-table-abl {
  width: 100%;         /* 컨테이너에 맞춰 크기 조정 */
  border-collapse: collapse;
  table-layout: fixed; /* 비율 유지 */
}

.table-container-ablation .advantages-table-abl th,
.table-container-ablation .advantages-table-abl td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  padding: 0.5em;
}




.advantages-table-abl .vra-col {
  width: 70px; /* adjust narrower width */
  max-width: 70px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  border-right: 2px solid var(--border-color);
}

/* Narrow left model column */
.advantages-table-abl .model-col {
  width: 150px; /* adjust narrower width */
  max-width: 150px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

/* Simple VRA on/off icon colors */
.advantages-table-abl .vra-yes { color: #63c7a4; font-size: 1rem; transition: color .2s ease; }
.advantages-table-abl .vra-no { color: #f29a9a; font-size: 1rem; transition: color .2s ease; }

@media (max-width: 768px) {
  .advantages-table-abl .model-col { width: 90px; max-width: 90px; font-size: 0.85rem; }
}

/* Remove double border on last vra cell if table ends */

.advantages-table th {
    /* background-color: var(--light-bg); */
    background-color: var(--accent-bg-color);
    color: var(--primary-color);

}

.table-container-ablation:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.25), 0 10px 15px 0px rgba(0, 0, 0, 0.15);
}

.bold-text {
    font-weight: 800;
}