.hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger .bar {
  width: 28px;
  height: 4px;
  background-color: var(--primary-color, #333);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .author-row .author-col {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0 0 1rem 0;
  }

  .author-row .author-col.affiliations {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
  }

  .link-labels {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .link-labels .icon-col {
    flex: 0 0 25%;
    max-width: 25%;
    margin: 0;
  }


  .link-labels .main-icon {
    font-size: 40px !important;
  }
  .link-labels .link-labels-text {
    font-size: 0.8rem;
  }
  .link-labels .link-block {
    padding: 8px;
  }
}

@media (max-width: 1100px) {
  .hamburger {
    display: flex !important;
    position: absolute;
    top: 18px;
    right: 18px;
  }
  .main-nav {
    display: none !important;
  }
  .main-nav.nav-open {
    display: block !important;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .nav-links li {
    margin: 10px 0;
  }
}
:root {
  --primary-color: #000;
  --secondary-color: #333;
  --accent-color: #7471a8;
  --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;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

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);
}

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

.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;
  padding: 10px;
  border-radius: 8px;
  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: 1rem 0 2rem;
  padding: 1rem;
  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;
}

.image-container:hover, .table-container:hover, .video-container: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);
}

.highlight-row {
    background-color: #f3f1f56e; /* light gray */
}

.image-content {
  padding: 10px 15px 0px;
}

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

.large-image {
  max-width: 100%;
  display: block;
  margin: 0.5rem auto 0.5rem 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%);
}

/* Tablet range: remove header padding between 768px and 1100px */
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header {
    padding: 0;
  }
  .hero-section {
    padding-top: 60px;
  }
}

.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: 0;
  }
  
  .hero-section {
    padding-top: 60px;
  }

  .section {
    margin-top: 1rem;
    padding: 10px 0;
  }
}

/* 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 {
  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: 400px;
    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;
}

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

.comparison-slideshow-image {
    max-width: 800px;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin-bottom: 15px;
}

.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 */
.gradient-text {
    background: #698ec9;
    background: linear-gradient(90deg,rgba(105, 142, 201, 1) 20%, rgba(116, 99, 166, 1) 80%);
    -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;
}

.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 .border-col {
  width: 150px; /* adjust narrower width */
  max-width: 150px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  border-right: 1px solid var(--border-color);
}

/* Narrow left model column */
.advantages-table .model-col {
  width: 250px; /* adjust narrower width */
  max-width: 250px;
  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);
}

@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: 5px; }
  .title-text-block .title { font-size: 2rem; }
}
@media (max-width: 500px) {
  .title-video { height: 5rem; width: 6rem; margin-top: 2px; }
  .title-flex { gap: 5px; }
  .title-text-block .title { font-size: 1.85rem; }
  .title-text-block .subtitle { font-size: 1.25rem; }
}

/* Two-column layout for framework section */
.two-col {
  padding: 1rem;
  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 */
  margin: 1rem;
}

.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: 90%; /* adjust 70~85% as needed */
  margin: auto 0.5rem 0 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 */
  margin: auto;
}

.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;
}

/* 2x2 Grid Layout */
.grid-2x2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 1rem;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.grid-item .image-content {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item .text-content {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: 1.1rem;
  color: var(--light-text);
  line-height: 1.6;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Responsive adjustments for 2x2 grid */
@media (max-width: 768px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 15px;
  }
  
  .grid-item {
    min-height: 150px;
  }
  
  .grid-item .text-content {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

.two-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
  margin-top: 1rem;
}

.two-row .row-top,
.two-row .row-bottom {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .two-row {
    gap: 20px;
  }
  .two-row .row-top,
  .two-row .row-bottom {
    flex-direction: column;
    gap: 15px;
  }
}

/* Mobile: shrink author text size for better fit */
@media (max-width: 768px) {
  .author-row .author-text { font-size: 1.2rem; }
}
@media (max-width: 576px) {
  .author-row .author-text { font-size: 1.1rem; }
}
