/* Reset Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font Face Declarations */
/* [Your font-face declarations remain unchanged] */

/* Root Variables */
:root {
  --primary-color: #76b900;
  /* Brand primary color */
  --secondary-color: #5f9500;
  /* Brand secondary color */
  --text-color: #000000;
  /* Change to black */
  --background-color: #ffffff;
  /* Change to white */
  --font-family: "NVIDIASans", sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 20px;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--background-color);
  padding: 0;
  margin-bottom: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.75rem;
  color: #666;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 300;
}

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

.breadcrumb .current-page {
  color: var(--text-color);
  font-weight: 300;
}

/* Main Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1em;
}

/* Headings */
h1 {
  font-size: 48px;
  font-weight: 700;
  color: #76b900;
  line-height: 1.5em;
  /* Adjusted 60px to 1.5em*/
  margin-top: 0;
  /* Adjusted */
  margin-bottom: 0.5em;
  /* Reduced */
  text-align: center;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-top: -20px;
  /* Reduced from 1.5em */
  margin-bottom: 0.5em;
  /* Reduced */
  line-height: 1.3;
}

h3 {
  font-size: 30px;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-top: 0.75em;
  /* Reduced from 1em */
  margin-bottom: 0.5em;
  /* Reduced */
  line-height: 1.3;
}

h4 {
  font-size: 24px;
  /* Smaller than h3's 30px */
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin: 1.5em 0 0.6em 0;
  line-height: 1.3;
}

h5 {
  font-size: 18px;
  font-weight: 300;
  color: #666;
  text-align: center;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

/* Paragraphs */
p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
  text-align: justify;
  margin-bottom: 1em;
  /* Reduced from 1.5em */
}

/* Links */
a:link,
a:visited {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background-color: var(--primary-color);
}

/* Introduction Section Styles */
.introduction {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.5em 0em;
  /* Reduced padding-bottom */
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: center;
}

/* Section Styles */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5em 0em;
  /* Reduced from 2em */
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: left;
}

/* Solutions Sections */
#solutions\ 1,
#solutions\ 2,
#solutions\ 3,
#solutions\ 4,
#solutions\ 5,
#solutions\ 6,
#solutions\ 7,
#solutions\ 8,
#solutions\ 9,
#solutions\ 10,
#solutions\ 11 #solutions\ 12 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5em 0em;
  /* Consistent padding */
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: left;
}

/* Hero Section */
.hero {
  background: none;
  background-size: cover;
  height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  position: relative;
  width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1em;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 55px;
  font-weight: 300;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 20px;
  margin-bottom: 0.5em;
  text-align: justify;
  color: #f0f0f0;
}

.article-link {
  font-size: 20px;
  color: #76b900;
  /* link color similar to bootstrap default */
  text-decoration: none;
  font-weight: 700;
  margin-left: 5px;
  margin-right: 5px;
  /* spacing between links */
  padding-bottom: 2px;
}

.article-link:hover {
  text-decoration: underline;
  /* add underline on hover for better UX */
}

/* Common styles for both slideshow gallery */
.slideshow-wrapper {
  width: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* Reduced gap between elements */
}

.slideshow-banner {
  text-align: center;
  padding: 5px 0;
  /* Reduced padding */
  margin-top: 3px;
  /* Reduced margin */
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-title {
  display: none;
  margin: 0;
  font-size: 17px;
  /* Smaller font size */
  font-weight: normal;
}

.banner-title.active {
  display: block;
}

/* Ensure the active title keeps the same size */
.slideshow-banner h2.banner-title.active {
  display: block;
  font-size: 23px !important;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 0.5em auto;
  overflow: hidden;
  background-color: #ffffff;
  padding-bottom: 75%;
  /* 4:3 aspect ratio */
}

.slideshow-container.vertical {
  width: 540px;
  padding-bottom: 100%;
  /* 4:3 aspect ratio */
}

.mySlides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mySlides.active {
  opacity: 1;
  z-index: 1;
}

.mySlides img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  /* Adjust for consistent size of slideshow for all size of images*/
  height: 100%;
  /* Adjust for consistent size of slideshow for all size of images*/
  object-fit: cover;
  /* User cover for image to fill slideshow*/
  object-position: center;
}

.slideshow-container.vertical .mySlides img {
  object-fit: cover;
  /* User cover for image to fill slideshow*/
}

.mySlides img.align-left {
  object-position: left;
}

.mySlides img.align-bottom {
  object-position: bottom;
}

.mySlides img.align-right {
  object-position: right;
}

.mySlides img.align-top {
  object-position: top;
}

.mySlides img.align-center {
  object-position: center;
}

.caption-text {
  font-size: 17px;
  color: #000;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
}

.dot-container {
  position: static;
  text-align: center;
  padding: 2px 0 !important;
  /* Reduce vertical padding */
  margin-top: 0 !important;
  /* Remove top margin */
}

.dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 5px;
  background-color: rgba(204, 204, 204, 0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: rgba(118, 185, 0, 0.8);
}

/* Ensure consistent image sizing for both orientations */
.slideshow-container.horizontal .mySlides img,
.slideshow-container.vertical .mySlides img {
  max-width: 100%;
  max-height: 100%;
}

/* Adjust caption for vertical layout */
.slideshow-container.vertical .caption-text {
  bottom: 60px;
  /* Increased bottom space for vertical layout */
}

/* Video styling to fit the slideshow */
.slideshow-video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video positioning styles similar to images */
.slideshow-container.horizontal .mySlides video,
.slideshow-container.vertical .mySlides video {
  max-width: 100%;
  max-height: 100%;
}

/* Slideshow title */
.slideshow-title {
  font-size: 30px;
  font-weight: 300;
  color: var(--text-color);
  text-align: left;
  margin-bottom: 0.5em;
}

/* Side by side Comparisons */
.side-by-side-comparisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.comparison-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.comparison-column {
  position: relative;
  text-align: center;
  background-color: #ffffff;
  border: none;
  box-shadow: none;
  padding: none;
  box-sizing: border-box;
  border-radius: 0%;
}

/* Titles */
.comparison-column h2 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #000000;
  /* Darker text for better readability */
}

/* Images */
.comparison-column img {
  width: 100%;
  height: auto;
  margin-bottom: none;
  border-radius: 0%;
  /* Optional: Adds slight rounding to images */
}

/* Captions */
.comparison-column .caption {
  font-size: 17px;
  color: #666666;
}

/* Responsive Design for Tablets and Mobile Devices */
@media only screen and (max-width: 768px) {
  .side-by-side-comparisons {
    flex-direction: column;
    width: 90%;
    padding: 10px;
  }

  .comparison-column {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: none;
  }

  .comparison-column h2 {
    font-size: 17px;
  }

  .comparison-column .caption {
    font-size: 17px;
  }
}

#section-7 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5em 1em;
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: left;
}

/* 4 Columns with Image and Caption */
.row-4-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.column-4 {
  flex-basis: 23%;
  text-align: center;
}

/* 3 Columns with Image and Caption */
.row-3-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.column-3 {
  flex-basis: 31%;
  text-align: center;
}

/* Extended styles for 2 Columns */
.row-2-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.column-2 {
  flex-basis: 48%;
  text-align: center;
}

/* General Responsive Styles */
@media (max-width: 768px) {
  .row-4-columns,
  .row-3-columns,
  .row-2-columns {
    flex-direction: column;
  }

  .column-4,
  .column-3,
  .column-2 {
    flex-basis: 100%;
    margin-bottom: 1em;
  }
}

/* Single Column Layout */
.row-1-column {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.column-1 {
  flex-basis: 100%;
  text-align: center;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.column-4 img,
.column-3 img,
.column-2 img,
.column-1 img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5em;
}

.column-4-title,
.column-3-title {
  font-size: 17px;
  color: var(--text-color);
  margin-bottom: 0.5em;
  min-height: 1.6em;
}

/* Hide Empty Titles but Keep Space */
.column-4-title:empty {
  visibility: hidden;
}

.column-4 .image-caption,
.column-3 .image-caption,
.column-2 .image-caption,
.column-1 .image-caption {
  text-align: center;
  font-size: 17px;
  color: var(--text-color);
  margin-top: auto;
}

/* New Component for Image Pair Wrapper */
.image-pair-wrapper {
  text-align: center;
  margin-bottom: 2em;
}

.image-pair-title {
  font-size: 17px;
  color: var(--text-color);
  margin-bottom: 0.5em;
}

.image-pair {
  display: flex;
  justify-content: none;
  width: 100%;
  margin: 0 auto;
}

.image-pair .column-4 {
  flex-basis: 48%;
}

.image-pair img {
  width: 100%;
  height: auto;
}

/* Responsive Adjustment for Smaller Screens */
@media (max-width: 768px) {
  .image-pair {
    flex-direction: column;
    width: 100%;
  }

  .image-pair .column-4 {
    flex-basis: 100%;
    margin-bottom: 1em;
  }
}

/* Image Slider Container */
.image-slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.image-slider-image {
  width: 100%;
  display: block;
}

.image-slider-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: clip-path 0.1s ease;
}

.image-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #76b900;
  cursor: ew-resize;
  z-index: 10;
  transition: left 0.1s ease;
}

.image-slider-label {
  position: absolute;
  bottom: 30px;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  padding: 5px 10px;
  font-size: 17px;
  text-align: center;
  z-index: 5;
}

.before-label {
  left: 25%;
}

.after-label {
  left: 75%;
}

/* Additional CSS for Hiding Labels */
.image-slider-container .image-slider-label {
  transition: opacity 0.3s ease;
}

.image-slider-container.hide-left .after-label {
  opacity: 0;
}

.image-slider-container.hide-right .before-label {
  opacity: 0;
}

.image-slider-handle::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid #76b900;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
}

.image-slider-handle::after {
  content: "\2190 \2192";
  position: absolute;
  width: 32px;
  height: 32px;
  color: #76b900;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Ensure smooth transition between images */
.image-slider-container img {
  transition: none;
  will-change: clip-path;
}

/* Two-Column Comparison Section in Solutions 3 */
.column-container {
  display: flex;
  flex-direction: column;
  /* Stack columns vertically */
  justify-content: center;
  /* Center content vertically if needed */
  gap: 1.5em;
  /* Space between columns */
  margin-top: 1.5em;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.column {
  background-color: #d3d3d3;
  padding: 1em;
  flex: 1;
  min-width: 300px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: none;
}

.column-heading {
  background-color: #ffffff;
  color: #000000;
  padding: 0.5em 1em;
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 1em;
}

.column-content {
  font-family: "NVIDIASans", sans-serif;
  font-size: 17px;
  color: #666666;
  white-space: pre-wrap;
  text-align: justify;
  overflow-x: hidden;
}

/* Preformatted Text Styling */
.column-content pre {
  background-color: #f0f0f0;
  padding: 1em;
  border-radius: 0px;
  overflow: auto;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  .column-container {
    flex-direction: column;
  }

  .column {
    max-height: none;
  }
}

/* Inline Link Styles */
a.inline-link {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: #76b900;
}

a.inline-link:hover {
  text-decoration-color: #000000;
}

/* Unordered List Styles */
ul {
  list-style-position: inside;
  margin: 1em 0;
  padding-left: 1.5em;
}

li {
  text-align: justify;
  margin-bottom: 0.5em;
}

/* Image Section Styles */
.image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5em;
  /* Reduced gap */
  /* margin-top: 0.5em; */
  /* Reduced from 2em */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.image-item {
  text-align: center;
  width: 45%;
  /* Adjusted width to fit two images side by side */
}

.image-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* For img-fluid effect */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Adjust image sizes based on classes */
.large-image {
  width: 100%;
}

.medium-image {
  width: 75%;
}

.small-image {
  width: 50%;
}

.xsmall-image {
  width: 45%;
}

.xxsmall-image {
  width: 30%;
}

.tiny-image {
  width: 25%;
}

/* For z-depth-1 effect */
.z-depth-1 {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0);
}

/* Center captions */
.image-caption {
  /*margin-top: 0.5em; removed */
  font-size: 17px;
  text-align: justify;
}

.image-caption.center {
  text-align: center;
}

.image-caption.justify {
  text-align: justify;
}

/* Features Section */
.features-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  flex: 1 1 300px;
  margin: 1em;
  padding: 1.5em;
  /* Reduced padding */
  background-color: #f9f9f9;
  border-radius: 10px;
}

.feature-item h3 {
  font-size: 30px;
  margin-bottom: 0.5em;
  text-align: left;
}

.feature-item p {
  font-size: 17px;
  text-align: justify;
}

/* Visual Tokenizer Table */
#visual-tokenizers-table {
  margin: 20px 0;
}

#visual-tokenizers-table table {
  width: 100%;
  border-collapse: collapse;
}

#visual-tokenizers-table caption {
  margin-bottom: 10px;
  text-align: center;
}

/* Basic cell styling */
#visual-tokenizers-table th,
#visual-tokenizers-table td {
  padding: 8px 12px;
  text-align: center;
  font-weight: normal;
}

/* Header styling */
#visual-tokenizers-table th,
#visual-tokenizers-table .cosmos-row {
  background-color: #f2f2f2;
  border-bottom: 1px solid #ddd;
}

/* Right-align first column */
#visual-tokenizers-table td:first-child,
#visual-tokenizers-table th:first-child {
  text-align: right;
}

/* Section separators */
#visual-tokenizers-table .ci-end td,
#visual-tokenizers-table .di-end td,
#visual-tokenizers-table .cv-end td {
  border-bottom: 2px solid #000;
}

/* Check/Cross colors */
#visual-tokenizers-table .check {
  color: green;
}

#visual-tokenizers-table .cross {
  color: red;
}

/* Bold text */
#visual-tokenizers-table strong {
  font-weight: bold;
}

/* Equations Section Styles */
.equations {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5em 1em;
  /* Reduced from 2em */
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: left;
}

.equation-content {
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
}

.equation-content p {
  margin-bottom: 1em;
}

/* Pricing Section */
.pricing-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-plan {
  flex: 1 1 300px;
  margin: 1em;
  padding: 1.5em;
  /* Reduced padding */
  background-color: #333333;
  border-radius: 10px;
  border: 1px solid #444444;
  text-align: left;
}

.pricing-plan h3 {
  font-size: 30px;
  margin-bottom: 0.5em;
}

.pricing-plan .price {
  font-size: 2em;
  margin: 0.5em 0;
  color: var(--primary-color);
}

.pricing-plan ul {
  list-style: none;
  margin-bottom: 1em;
  text-align: justify;
}

.pricing-plan ul li {
  margin: 0.5em 0;
}

.pricing-plan a {
  text-decoration: none;
}

/* Styled Details Section */
.styled-details {
  margin: 1.5em auto;
  /* Reduced from 2em */
  padding: 1em 1.5em;
  /* Reduced padding */
  max-width: 800px;
  background-color: #f0f0f0;
  border-left: 5px solid var(--primary-color);
  color: #333333;
  border-radius: 0;
  box-shadow: none;
  text-align: justify;
}

.styled-details summary {
  font-weight: 500;
  cursor: pointer;
  outline: none;
  text-align: left;
}

.styled-details summary::-webkit-details-marker {
  display: none;
}

.styled-details summary::before {
  content: "▼ ";
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.styled-details[open] summary::before {
  transform: rotate(180deg);
}

.styled-details p {
  margin-top: 1em;
  font-size: 1em;
}

/* Citation Section Styles */
.citations {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5em 0;
  /* Reduced padding */
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: left;
}

.citations blockquote {
  margin: 0.5em auto;
  /* Reduced from 2em */
  padding: 0.5em 0;
  /* Reduced padding */
  font-style: italic;
  border-left: 5px solid var(--primary-color);
  background-color: #f0f0f0;
  color: #333333;
  text-align: justify;
}

.citations blockquote footer {
  margin-top: 1em;
  font-size: 0.9em;
  color: #555555;
  text-align: left;
}

.citations blockquote cite {
  font-style: normal;
}

/* Footnotes Section Styles */
.footnotes {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5em 1em;
  /* Reduced padding */
  background-color: #f9f9f9;
  color: #333333;
  text-align: left;
}

.footnotes h2 {
  color: #000000;
  margin-top: 0;
  /* Added for consistency */
  margin-bottom: 0.5em;
  /* Added for consistency */
}

.footnotes ol {
  margin: 1.5em auto;
  /* Reduced from 2em */
  padding-left: 1.5em;
  text-align: left;
}

.footnotes li {
  margin-bottom: 1em;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}

a.footnote-ref {
  text-decoration: none;
  color: var(--primary-color);
}

a.footnote-back {
  text-decoration: none;
  margin-left: 5px;
  color: var(--primary-color);
}

/* References Section Styles */
.references {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5em 1em;
  /* Reduced padding */
  background-color: #e0e0e0;
  color: #333333;
  text-align: left;
}

.references h2 {
  color: #000000;
  margin-top: 0;
  /* Added for consistency */
  margin-bottom: 0.5em;
  /* Added for consistency */
}

.references ol {
  margin: 1.5em auto;
  /* Reduced from 2em */
  padding-left: 1.5em;
}

.references li {
  margin-bottom: 1em;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}

.references li em {
  font-style: italic;
}

a.reference-ref {
  text-decoration: none;
  color: var(--primary-color);
}

a.reference-back {
  text-decoration: none;
  margin-left: 5px;
  color: var(--primary-color);
}

/* Remove hover effects for both footnotes and references */
a.footnote-ref:hover,
a.footnote-back:hover,
a.reference-ref:hover,
a.reference-back:hover {
  text-decoration: none;
}

/* Superscript Styles */
sup {
  font-size: 0.8em;
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

/* Footnote Reference Styles */
a.footnote-ref {
  text-decoration: none;
  color: var(--primary-color);
}

a.footnote-ref:hover {
  text-decoration: underline;
}

/* Project and Product Styles */
/* [Include these styles if relevant to your page; otherwise, you can omit them] */

/* Media Queries */
@media (max-width: 768px) {
  /* Adjustments for mobile devices */
  .container {
    padding: 0 1em;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
  }

  p {
    font-size: 18px;
  }

  .hero {
    height: auto;
    padding: 2em 1em;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 17px;
  }
}

/* Newly added */

.image-grid {
  width: 100%;
  max-width: 998px;
  max-height: 570px;
  /* max-width: 1500px; */
  margin: 0 auto;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  /* Ensure rows have a height */
}

.first-row {
  /* height: 214 px * 1.4; */
  height: 203px;
  /* height: 306px; */
  /* Adjusted height */
}

.second-row {
  /* height: 357 px * 1.4; */
  height: 339px;
  /* height: 510px; */
  /* Adjusted height */
}

.img-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1100px;
}

.img-container .flip {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.img-container.flipped .flip {
  transform: rotateY(180deg);
}

.img-container .front,
.img-container .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  /* Force GPU acceleration */
  will-change: transform;
  /* Optimize for animations */
}

.img-container .back {
  transform: rotateY(180deg);
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 5px);
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.img-3x5 {
  width: calc(33.33% - 4px);
}

.img-5x3 {
  width: calc(18% - 5px);
}

.img-5x5 {
  width: calc(32% - 5px);
}

.ft-image-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ft-row {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.spread-caption-container {
  width: 75%;
  margin-left: 25%;
  text-align: center;
  margin-top: 42px;
}

.spread-caption {
  display: block;
  /* Changed from inline-block to block */
  border: 2px dashed #000;
  padding: 5px 0;
  /* Remove horizontal padding */
  font-size: 16px;
  color: black;
  width: calc(100% - 15px);
  /* Account for the gap between images */
  margin-right: 5px;
  /* Match your existing image margin */
}

.image-text-container {
  height: 114%;
  align-items: center;
  width: 25%;
}

.caption-under-image {
  color: black;
  text-align: center;
  font-size: 16px;
  margin-top: 15px;
  width: 100%;
}

/* Add dashed border only to specific captions */
.image-text-container .caption-under-image[data-style="dashed"] {
  border: 2px dashed #000;
  padding: 5px 0;
  width: calc(100% - 5px);
  position: relative;
  top: -6px;
  /* Adjust this value to move the caption up */
  margin-bottom: -20px;
  /* Add this to prevent affecting layout below */
}

.fangyintrain {
  width: calc(100% - 5px);
}

.sstrain {
  width: calc(100% - 5px);
}

.icontrain {
  width: calc(100% - 5px);
}

.cartrain {
  width: calc(100% - 5px);
}

.fangyin1 {
  width: calc(100% - 5px);
}

.fangyin3 {
  width: calc(100% - 5px);
}

.fangyin4 {
  width: calc(100% - 5px);
}

.sidGroup {
  width: calc(100% - 5px);
}

.sidSjGroup {
  width: calc(100% - 5px);
}

.sjGroup {
  width: calc(100% - 5px);
}

.icon {
  width: calc(100% - 5px);
}

.car {
  width: calc(100% - 5px);
}

@media (max-width: 768px) {
  .row {
    flex-wrap: wrap;
  }

  .first-row,
  .second-row {
    height: auto;
  }

  .img-container {
    width: calc(50% - 5px);
    height: 200px;
    margin-bottom: 5px;
  }
}

.img-container:hover .front,
.img-container:hover .back {
  opacity: 0.5;
  /* Decrease opacity on hover */
}

.img-container .caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px;
  display: none;
  /* Initially hidden */
  font-size: 14px;
  border-radius: 3px;
}

.img-container:hover .caption:not(:empty) {
  display: block;
  /* Show caption on hover only if it's not empty */
}

/* -------------------------------------- */
/* Display buttons */

.button-container {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  background-color: #76b900;
  border: none;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #518000;
  /* Darker color on hover */
}

#back-to-top {
  position: fixed;
  bottom: 60px;
  right: 60px;
  display: flex;
  /* Add this */
  justify-content: center;
  /* Add this */
  align-items: center;
  /* Add this */
  background-color: var(--primary-color);
  color: white;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1;
  /* Add this */
  padding: 0;
  /* Add this */
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

#back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 185, 0, 0.3);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Code Blocks */
pre {
  background-color: #f5f5f5;
  color: #4a4a4a;
  font-size: 0.875em;
  overflow-x: auto;
  padding: 1.25rem 1.5rem;
  white-space: pre;
  word-wrap: normal;
}

code {
  background-color: #f5f5f5;
  color: #000000;
  font-size: 0.875em;
  font-weight: normal;
  padding: 0.25em 0.5em;
}

/* Video Grid Styles */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0;
}

.video-item {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item video {
  max-width: 1100px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.video-item video::-webkit-media-controls-panel,
.video-item video::-webkit-media-controls-play-button,
.video-item video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.video-prompt {
  font-size: 17px;
  color: var(--text-color);
  text-align: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.video-subtitle {
  font-size: 17px;
  color: var(--text-color);
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .video-grid,
  .video-grid23 {
    width: 90%;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .video-grid,
  .video-grid23 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .video-grid,
  .video-grid23 {
    grid-template-columns: 1fr;
  }
}

/* Video Grid 4 columns x 2 rows */
.video-grid42 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

.video-item42 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item42 video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
}

.video-prompt42 {
  font-size: 17px;
  color: var(--text-color);
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}

/* Video Grid 2 columns x 3 rows */
.video-grid23 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0;
}

.video-item23 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item23 h3 {
  margin: 0;
  padding: 0;
  font-size: 17px;
  text-align: center;
}

.video-item23 video {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  background-color: #f0f0f0;
}

.video-prompt23 {
  font-size: 17px;
  color: var(--text-color);
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
}

/* Media Container Styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Carousel Base Styles */
.carousel {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.carousel-images,
.carousel-videos,
.carousel-items {
  display: flex;
  transition: transform 0.5s ease-in-out;
  max-width: 1100px;
  width: 100%;
}

.carousel-images {
  width: 100%;
  height: 400px;
  position: relative;
}

.carousel-figure {
  max-width: 1100px;
  flex: 0 0 100%;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.carousel-figure figcaption {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px;
  font-size: 14px;
  text-align: center;
  /* justify-content:space-between; */
  color: #333;
  display: block;
  min-height: 3.6em;
  line-height: 1.7em;
  position: relative;
  max-height: 3.4em;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-bottom: 5px;
  /* Space for the button */
  z-index: 2;
}

.carousel-figure img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
}

.carousel-figure video {
  max-width: 1100px;
  width: 100%;
  max-height: 621px;
  margin-bottom: 5px;
  object-fit: cover;
  /* Ensure consistent video display */
}

.carousel-videos .carousel-figure figcaption {
  width: 100%;
  max-width: none;
}

.carousel-figure figcaption.expanded {
  max-height: 1000px;
  /* Or any sufficiently large value */
  margin-bottom: 30px;
  /* Maintain the same margin when expanded */
  text-align: justify;
}

.carousel-figure figcaption:not(.expanded) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.4em;
  text-align: center;
  /* Exactly 2 lines */
}

.dual-carousels .carousel-figure figcaption {
  transition: max-height 0.3s ease-out;
}

.dual-carousels .carousel-btn.prev {
  left: 0;
}

.dual-carousels .carousel-btn.next {
  right: 0;
}

.caption-toggle {
  background: none;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  color: rgb(118, 185, 0);
  display: block;
  width: fit-content;
  margin-left: auto;
  /* Changed from margin: 0 auto to margin-left: auto */
  margin-right: 0;
  /* Ensure right alignment */
  height: 30px;
  line-height: 20px;
  position: relative;
  font-size: 17px;
  z-index: 1;
}

.caption-toggle:hover {
  text-decoration: underline;
}

.carousel-figure figcaption.truncated + .caption-toggle {
  display: inline-block;
  padding-bottom: 5px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 24px;
  background-color: rgba(118, 185, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 100;
  box-shadow: none;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: rgba(118, 185, 0, 0.9);
}

/* Override margin-top only for the Cosmos Transfer - Adaptive MultiControl section */
#solutions-triple-column .carousel-btn {
  margin-top: 0;
  /* Remove the negative margin that pushes buttons too high */
}

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

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

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .carousel-images {
    height: 600px;
  }

  .carousel-figure {
    padding: 15px;
  }

  .carousel-figure img {
    max-height: 500px;
  }

  .carousel-figure figcaption {
    max-width: 600px;
    font-size: 15px;
    padding: 8px;
  }

  /* .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  } */
}

/* Basic styling for two side-by-side carousels */
.dual-carousels {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1100px;
  /* Match single carousel width */
  margin: 20px auto;
  gap: 0px;
  /* Reduced from 20px to bring videos closer */
  position: relative;
}

.dual-carousels .carousel {
  flex: 0 0 50%;
  /* Adjusted from 45% to fill more space */
}

.dual-carousels .carousel-btn {
  position: absolute;
  /* Position relative to dual-carousels container instead of individual carousel */
  top: 310px;
  transform: translateY(-50%);
}

.carousel .carousel-btn {
  position: absolute;
  /* Position relative to dual-carousels container instead of individual carousel */
  top: 310px;
  transform: translateY(-50%);
}

.carousel-indicators {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator-dot.active {
  background-color: var(--primary-color);
}

.divider {
  width: 1100px;
  height: 4px;
  background-color: #76b900;
  margin: 48px auto;
  /* Changed from margin: 16px 16px */
  border: none;
}

@media (max-width: 768px) {
  .divider {
    width: 90%;
    margin: 16px auto;
    /* Center on mobile */
  }
}

/* Horizontal Scrollable Video Gallery */
.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  gap: 30px;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

.scroll-video-item {
  flex: 0 0 auto;
  width: 400px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.scroll-video-item h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
}

.scroll-video-item video {
  width: 100%;
  height: auto;
  max-height: 225px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add a visual indicator for scrollability */
.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Style Transfer 20/80 Split Layout */
.style-transfer-container {
  display: flex;
  width: 100%;
  gap: 20px;
  margin: 20px 0;
}

.style-input-column {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
}

.style-output-column {
  flex: 0 0 80%;
  display: flex;
  flex-direction: column;
}

.style-input-column h3,
.style-output-column h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #333;
}

.style-input-column video,
.style-output-column video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for style transfer section */
@media (max-width: 768px) {
  .style-transfer-container {
    flex-direction: column;
  }

  .style-input-column,
  .style-output-column {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scroll-video-item {
    width: 300px;
  }
}

/* Vertical Dual Carousel Styles */
.vertical-dual-carousels {
  display: flex;
  flex-direction: column;
  width: 56%;
  /* Reduced from 80% to make 30% smaller */
  margin: 0 auto;
  position: relative;
  background: transparent;
  border-radius: 0;
}

.vertical-dual-carousels .carousel {
  width: 100%;
  margin: 0;
  height: auto;
  overflow: hidden;
  /* Remove any potential space between carousels */
  display: block;
  line-height: 0;
}

/* Override figcaption settings for vertical carousel */
.vertical-dual-carousels .carousel-figure figcaption {
  min-height: 0;
  /* Changed from 1.7em to remove height */
  max-height: 0;
  /* Changed from 1.7em to remove height */
  line-height: 0;
  margin: 0;
  /* Ensure no margin */
  padding: 0;
  /* Remove padding */
  overflow: hidden;
  opacity: 0;
  /* Hide figcaption completely */
  position: absolute;
  /* Take it out of the flow */
}

.vertical-dual-carousels .carousel-figure video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  display: block;
  margin: 0;
  /* Ensure no margin */
  padding: 0;
  /* Ensure no padding */
  /* Remove potential inline element gaps */
}

.vertical-dual-carousels .carousel-figure {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  /* Remove line-height gap */
  display: block;
}

/* Responsive adjustments for vertical carousel */
@media (max-width: 768px) {
  .vertical-dual-carousels {
    width: 90%;
  }

  .vertical-dual-carousels .carousel {
    width: 100%;
  }

  .vertical-dual-carousels .carousel-figure video {
    height: auto;
    aspect-ratio: 16/9;
  }

  .vertical-dual-carousels .carousel-btn.prev {
    left: 0;
  }

  .vertical-dual-carousels .carousel-btn.next {
    right: 0;
  }
}

.vertical-carousel-controls {
  display: block;
  position: absolute;
  top: 74%;
  /* Fine-tuned upward by 1% from 75% to 74% */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.vertical-dual-carousels .carousel-btn {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 24px;
  pointer-events: auto;
}

.vertical-dual-carousels .carousel-btn.prev {
  left: -20px;
  /* Position half outside the video */
}

.vertical-dual-carousels .carousel-btn.next {
  right: -20px;
  /* Position half outside the video */
}

/* Triple Column Video Comparison Section */
#solutions-triple-column {
  max-width: 1100px;
  margin: 0rem auto;
  overflow: visible;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin-bottom: 0px;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.triple-column-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.triple-column {
  flex: 1;
  min-width: 300px;
  margin-bottom: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.triple-column h3 {
  margin: 0;
  padding: 1rem;
  background-color: #76b900;
  color: white;
  text-align: center;
}

.column-content {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
  align-items: center;
}

.input-videos {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 0.5rem;
}

.input-videos::-webkit-scrollbar {
  width: 6px;
}

.input-videos::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}

.input-videos::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0;
}

.input-videos::-webkit-scrollbar-thumb:hover {
  background: #76b900;
}

.input-video {
  position: relative;
  margin-bottom: 0.5rem;
  border-radius: 0;
  overflow: hidden;
}

.input-video video {
  width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.output-video {
  flex: 0 0 65%;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Changed from default to respect JS positioning */
  align-items: flex-start;
  /* Changed from default to respect JS positioning */
  position: relative;
  /* Explicitly set position as relative */
}

.output-video video {
  width: 100%;
  min-width: 320px;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hide video captions by default */
.video-caption {
  display: none;
}

@media (max-width: 1100px) {
  .triple-column-container {
    flex-direction: column;
  }

  .triple-column {
    width: 100%;
  }

  .column-content {
    flex-direction: column;
  }

  .input-videos {
    max-height: none;
    overflow-y: visible;
    flex: 1;
    width: 100%;
  }

  .output-video {
    margin-top: 1rem;
    flex: 1;
    width: 100%;
  }
}

/* Sim2Real Data Generation Section */
#sim2real-section {
  padding: 2em 0;
}

.sim2real-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.sim2real-column {
  flex: 0 0 calc(50% - 15px);
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sim2real-column h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
}

.input-video-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.input-video-container video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 0;
}

.output-videos-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.output-video-item {
  flex: 0 0 calc(33.33% - 7px);
}

.output-video-item video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 0;
}

.output-video-item h4 {
  font-size: 16px;
  margin: 8px 0;
  text-align: center;
}

@media (max-width: 1100px) {
  .sim2real-container {
    flex-direction: column;
    gap: 20px;
  }

  .sim2real-column {
    flex: 0 0 100%;
  }

  .output-videos-container {
    flex-direction: column;
    gap: 15px;
  }

  .output-video-item {
    flex: 0 0 100%;
  }
}

/* Model Carousel Styles */
.model-carousel-container {
  position: relative;
  width: 100%;
  margin: 20px auto;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

#model-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
}

#model-carousel .carousel-items {
  display: flex;
  position: relative;
  min-height: 600px;
  /* Ensure enough height for content */
  width: 100%;
}

#model-carousel .carousel-item {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  pointer-events: auto;
  z-index: 1;
  min-width: 100%;
}

.model-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.model-content h3,
#driving-simulation-carousel-2 .two-column-item > h3 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.8rem;
  color: #76b900;
}

#driving-simulation-carousel-2 .two-column-item > h3.placeholder-item-title {
  color: transparent;
}

/* Updated to side-by-side layout */
.model-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  height: 100%;
}

/* Input videos container (left side) */
.model-input-videos {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 1px; /* Reduced from 2px by 10% */
  max-height: none;
  overflow-y: visible;
  background-color: white;
}

/* Remove scrollbar styles since we're not scrolling anymore */
.model-input-videos::-webkit-scrollbar {
  display: none;
}

.model-input-videos::-webkit-scrollbar-track {
  display: none;
}

.model-input-videos::-webkit-scrollbar-thumb {
  display: none;
}

.model-input-videos::-webkit-scrollbar-thumb:hover {
  display: none;
}

.model-video-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.model-video-wrapper video {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  max-height: 150px;
  /* Limit the height of input videos */
  object-fit: cover;
  /* Maintain aspect ratio */
  /* Hide video controls to prevent overflow */
  -webkit-media-controls: none;
  -webkit-media-controls-panel: none;
  -webkit-media-controls-play-button: none;
  -webkit-media-controls-start-playback-button: none;
}

.model-video-caption {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Output video container (right side) */
.model-output-video {
  flex: 0 0 70%;
  /* Increased from 60% to make output video larger */
  display: flex;
  justify-content: flex-start;
  /* Changed from center to respect our JS positioning */
  align-items: flex-start;
  /* Changed from center to respect our JS positioning */
  align-self: flex-start;
  /* Changed from center to respect our JS positioning */
  height: auto;
  /* Let height be determined by content */
  position: relative;
  /* Explicitly set position as relative */
}

.model-output-video .model-video-wrapper {
  width: 100%;
}

.model-output-video .model-video-wrapper video {
  max-height: none;
  /* Remove height limit for output video */
}

/* Preserve original aspect ratios for Adaptive MultiControl media */
#solutions-triple-column .model-video-wrapper video,
#solutions-triple-column .model-video-wrapper img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

#solutions-triple-column .model-input-videos .model-video-wrapper video,
#solutions-triple-column .model-input-videos .model-video-wrapper img {
  max-height: none;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 2;
}

.carousel-controls .carousel-btn {
  pointer-events: auto;
}

#model-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #76b900;
}

@media (max-width: 768px) {
  .model-content-wrapper {
    flex-direction: column;
  }

  .model-input-videos {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: visible;
    flex-direction: column;
  }

  .model-video-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }

  .model-output-video {
    flex: 1 1 auto;
    margin-top: 1rem;
  }

  .model-output-video .model-video-wrapper {
    max-width: 100%;
  }

  #model-carousel .carousel-item {
    padding: 1rem;
    height: auto;
  }

  #model-carousel .carousel-items {
    min-height: 800px;
    /* Adjusted for mobile layout */
  }
}

.carousel-controls .carousel-btn {
  margin-top: 0;
  /* Remove the -7em margin that's pushing buttons too high */
}

/* Multi-Output Carousel Styles */
.robotics-carousel-container,
.driving-carousel-container {
  position: relative;
  width: 100%;
  margin: 20px auto;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.robotics-carousel-container .carousel-controls,
.driving-carousel-container .carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.robotics-carousel-container .carousel-btn,
.driving-carousel-container .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.robotics-carousel-container .carousel-btn.prev,
.driving-carousel-container .carousel-btn.prev {
  left: 10px;
}

.robotics-carousel-container .carousel-btn.next,
.driving-carousel-container .carousel-btn.next {
  right: 10px;
}

.multi-output-carousel {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.multi-output-carousel .carousel-items {
  display: flex;
  transition: transform 0.5s ease;
}

.multi-output-carousel .carousel-item {
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px; /* Reduced from 30px */
  padding: 5px 0; /* Reduced from 40px 0 */
  min-height: 400px;
  position: relative;
}

.multi-output-carousel .input-video-container {
  flex: 0 0 25%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.multi-output-carousel .input-video-container h3 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
}

.multi-output-carousel .input-video-container video {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  max-width: 90%;
  align-self: center;
}

.multi-output-carousel .output-videos-grid {
  flex: 0 0 70%;
  position: relative;
  margin-left: 2px; /* Reduced from 10px */
}

.multi-output-carousel .output-videos-grid h3 {
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.multi-output-carousel .output-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.multi-output-carousel .output-grid-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-output-carousel .output-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.multi-output-carousel .output-grid-container:hover .output-video-controls {
  opacity: 1;
}

.multi-output-carousel .play-pause-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.multi-output-carousel .progress-container {
  flex-grow: 1;
  position: relative;
}

.multi-output-carousel .progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.multi-output-carousel .progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.multi-output-carousel .progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .multi-output-carousel .carousel-item {
    flex-direction: column;
    gap: 20px;
  }

  .multi-output-carousel .input-video-container,
  .multi-output-carousel .output-videos-grid {
    flex: 0 0 100%;
  }

  .multi-output-carousel .output-grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}

.multi-output-carousel .carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 40;
  pointer-events: none;
  width: 100%;
  height: 0;
  /* This helps center the buttons properly */
}

.multi-output-carousel .carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  border: none;
  outline: none;
  pointer-events: auto;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 45;
  margin: 0 10px;
}

.multi-output-carousel .carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.multi-output-carousel .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.multi-output-carousel .carousel-dot {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.multi-output-carousel .carousel-dot.active {
  background: var(--primary-color, #76b900);
}

/* More specific selector to remove padding in solutions-triple-column captions */
#solutions-triple-column .model-video-caption,
#solutions-triple-column .model-content .model-video-caption {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem;
  color: #666;
  line-height: 1;
}

/* Also ensure there's no extra spacing between videos */
#solutions-triple-column .model-input-videos {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 1.8px; /* Reduced from 2px by 10% */
  max-height: none;
  overflow-y: visible;
}

#solutions-triple-column .model-video-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure no space between the video and caption */
#solutions-triple-column .model-video-wrapper video {
  margin-bottom: 0;
}

/* Add column titles to solutions-triple-column */
#solutions-triple-column .model-input-videos::before {
  content: "Input Videos";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--font-family);
}

#solutions-triple-column .model-output-video::before {
  content: "Output Video";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--font-family);
}

/* Make sure the titles don't have any padding/margin */
#solutions-triple-column .model-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  height: 100%;
  margin-top: 10px; /* Add space for titles */
}

/* Adjust column titles for solutions-triple-column */
#solutions-triple-column .model-input-videos::before {
  content: "Input Videos";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--font-family);
}

/* Fix output video title positioning */
#solutions-triple-column .model-output-video {
  flex: 0 0 67%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: flex-start;
  height: auto;
  position: relative;
}

#solutions-triple-column .model-output-video::before {
  content: "Output Video";
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--font-family);
  width: 100%; /* Make sure it spans the full width */
}

/* Ensure proper alignment and spacing */
#solutions-triple-column .model-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  height: 100%;
  margin-top: 0; /* Reset from previous value */
}

/* Adjust column alignment in solutions-triple-column */
#solutions-triple-column .model-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start; /* Ensure top alignment */
  height: 100%;
  margin-top: 0;
}

/* Make sure both columns start at exact same vertical position */

/* Styles for the comparison carousel */
#sim2real-section .carousel-item,
#policy-section .carousel-item {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  justify-content: center;
}

#sim2real-section .model-video-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#policy-section .carousel-item {
  min-height: 600px;
  align-items: center;
}

#policy-section .model-video-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#sim2real-section .model-video-wrapper video,
#policy-section .model-video-wrapper video {
  width: 100%;
  max-height: none; /* remove max-height */
  object-fit: contain; /* contain so the whole video is visible */
}

/* Ensure the wrapper correctly positions over the carousel */
.model-carousel-container,
.robotics-carousel-container,
.driving-carousel-container {
  position: relative;
}

.model-carousel-container .arrow-wrapper,
.robotics-carousel-container .arrow-wrapper,
.driving-carousel-container .arrow-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.arrow-wrapper .carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.arrow-wrapper .carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-wrapper .carousel-btn.prev {
  left: -20px;
}

.arrow-wrapper .carousel-btn.next {
  right: -20px;
}

/* Styles for the two-column driving carousel */
#autonomous-driving-section .two-column-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#autonomous-driving-section .comparison-row {
  display: flex;
  gap: 1rem;
}

#autonomous-driving-section .comparison-row .comparison-column {
  flex: 0 0 calc(50% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#autonomous-driving-section .comparison-row .comparison-column h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

#autonomous-driving-section .comparison-row video {
  width: 100%;
  border-radius: 0;
}

#policy-section .robotics-carousel-container {
  max-width: 1100px;
}

#policy-section .section-header {
  margin-bottom: 0;
}

#policy-section .robotics-carousel-container,
#sim2real-section .robotics-carousel-container {
  max-width: 1100px;
}

#policy-section .robotics-carousel-container {
  margin-top: 0;
}

#policy-section .section-header {
  margin-bottom: 0;
}

.carousel-title {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#driving-simulation-carousel-1 .carousel-item {
  flex: 0 0 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#driving-simulation-carousel-1 .carousel-item-title {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-color);
  margin: 0;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

#driving-simulation-carousel-2 .carousel-item-title {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-color);
  margin: 0;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

#driving-simulation-carousel-1 .model-video-wrapper {
  width: 100%;
  max-width: 1100px;
}

#policy-section .robotics-carousel-container {
  margin-top: 0;
}

#driving-simulation-carousel-1 .model-video-wrapper video {
  max-height: none;
  object-fit: contain;
}

#driving-simulation-carousel-2 .two-column-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#driving-simulation-carousel-2 .comparison-row {
  display: flex;
  gap: 1rem;
}

#driving-simulation-carousel-2 .comparison-row .comparison-column {
  flex: 0 0 calc(50% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#driving-simulation-carousel-2 .comparison-row .comparison-column h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

#driving-simulation-carousel-2 .comparison-row video {
  width: 100%;
  border-radius: 0;
}

#driving-simulation-carousel-2 .comparison-row.single-column {
  justify-content: flex-start;
}

/* Policy Grid Sections - Static 2x2 video grids */
.policy-grid-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 20px 0;
}

.grid-section-title {
  font-size: 30px;
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.video-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.video-grid-2x2 video {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .video-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
  }
  
  .grid-section-title {
    font-size: 24px;
  }
  
  .policy-grid-section {
    margin-bottom: 30px;
  }
}

/* Alignment Table */
#alignment-table,
#robot-eval-table,
#visual-metrics-table,
#lane-bbox-table {
  margin: 16px 0;
}
#alignment-table table,
#robot-eval-table table,
#visual-metrics-table table,
#lane-bbox-table table {
  width: 100%;
  border-collapse: collapse;
}
#alignment-table caption,
#robot-eval-table caption,
#visual-metrics-table caption,
#lane-bbox-table caption {
  margin-bottom: 8px;
  text-align: center;
}

/* Cells */
#alignment-table th,
#alignment-table td,
#robot-eval-table th,
#robot-eval-table td,
#visual-metrics-table th,
#visual-metrics-table td,
#lane-bbox-table th,
#lane-bbox-table td {
  padding: 6px 10px;
  text-align: center;
  font-weight: 400;
  border-bottom: 1px solid #ddd;
}
#alignment-table thead th,
#robot-eval-table thead th,
#visual-metrics-table thead th,
#lane-bbox-table thead th {
  background: #f2f2f2;
}

/* Left column alignment */
#alignment-table td.left,
#alignment-table th.left,
#robot-eval-table td.left,
#robot-eval-table th.left,
#visual-metrics-table td.left,
#visual-metrics-table th.left,
#lane-bbox-table td.left,
#lane-bbox-table th.left {
  text-align: left;
}

/* Section divider between model families */
#alignment-table tr.section-end td,
#robot-eval-table tr.section-end td,
#visual-metrics-table tr.section-end td,
#lane-bbox-table tr.section-end td {
  border-bottom: 2px solid #000;
}

/* Emphasis for best values */
#alignment-table .best,
#robot-eval-table .best,
#visual-metrics-table .best,
#lane-bbox-table .best {
  font-weight: 700;
}

/* Highlight row (e.g., for "our" method) */
#alignment-table tr.highlight,
#robot-eval-table tr.highlight,
#visual-metrics-table tr.highlight,
#lane-bbox-table tr.highlight {
  background-color: #fff8cc;
}
