.vs-comparison-section {
  padding: var(--padding-section-top) 0 var(--padding-section-bottom);
  background-color: var(--color-scheme-background);
  color: var(--text-color);
}

.vs-comparison-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.vs-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vs-comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.vs-col-text {
  width: 35%;
}

.vs-col-image {
  width: 15%;
}

.vs-comparison-table th {
  vertical-align: middle;
  text-align: center;
  border: none;
}
.vs-comparison-table td {
  vertical-align: top;
  border: none;
}
.vs-comparison-table tbody tr:first-of-type td {
  padding-top: 74px;
}
.vs-comparison-table th h3 {
  font-size: 37px;
}
@media screen and (max-width: 767px) {
  .vs-comparison-table tbody tr:first-of-type td {
    padding-top: 24px;
  }
  .vs-comparison-table th h3 {
    font-size: 28px;
  }
}
.vs-comparison-table td h4 {
  font-family: var(--body-font-stack);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.vs-header-cell {
  padding: var(--title-padding) 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.vs-header-cell h3 {
  margin: 0;
}

.vs-icon-cell {
  text-align: center;
  vertical-align: middle;
  padding-top: 33px;
}

.vs-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--icon-bg-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.vs-icon img {
  width: 50%;
  height: auto;
  object-fit: contain;
}

.vs-icon-text {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.vs-text-cell {
  padding: 20px;
}

.vs-image-cell {
  padding: 0;
  overflow: hidden;
}
.vs-image-cell-img-wrap {
  display: flex;
  align-items: center;
}

.vs-image-cell .responsive-image-wrapper {
  max-width: 80px;
}
.vs-image-cell--1 .vs-image-cell-img-wrap {
  justify-content: flex-end;
}

.vs-image-cell .responsive-image-wrapper {
  height: 100%;
}

.vs-comparison-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-text-section {
  margin-bottom: 25px;
}

.vs-subtitle {
  font-weight: bold;
  margin: 0 0 8px 0;
}

.vs-text {
  line-height: 1.6;
  margin: 0;
  color: var(--text-color);
}

.vs-button-wrapper {
  margin-top: 30px;
}

.vs-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.vs-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Mobile: horizontal-scroll variant keeps true table layout, just wider than the viewport */
@media (max-width: 900px) {
  .vs-comparison-table:not(.vs-comparison-table--stacked) {
    min-width: 700px;
  }
}

/* Mobile: stacked variant reflows into a single column via CSS grid, reordering
   visually (title -> text -> image per side, VS in the middle) while leaving the
   underlying table DOM/reading order untouched. */
@media (max-width: 900px) {
  /* Stacked mode doesn't need horizontal scrolling, and the image bleed below
     relies on not being clipped by this container. */
  .vs-table-scroll:has(.vs-comparison-table--stacked) {
    overflow-x: visible;
  }

  .vs-comparison-table--stacked {
    display: grid;
    grid-template-columns: 86px 1fr 104px;
    column-gap: 20px;
    row-gap: 20px;
    grid-template-areas:
      "title1 title1 title1"
      "text1 text1 image1"
      "vs vs vs"
      "title2 title2 title2"
      "image2 text2 text2";
  }

  .vs-comparison-table--stacked thead,
  .vs-comparison-table--stacked tbody,
  .vs-comparison-table--stacked tr {
    display: contents;
  }

  .vs-comparison-table--stacked .vs-header-cell--1 {
    grid-area: title1;
  }

  .vs-comparison-table--stacked .vs-icon-cell {
    grid-area: vs;
    padding-top: 0;
  }

  .vs-comparison-table--stacked .vs-header-cell--2 {
    grid-area: title2;
  }

  .vs-comparison-table--stacked .vs-text-cell--1 {
    grid-area: text1;
  }

  /* SGSY image: comes second (text is on the left), bled flush with the right
     edge of the screen by cancelling the container's right padding. */
  .vs-comparison-table--stacked .vs-image-cell--1 {
    grid-area: image1;
    width: 104px;
    transform: translatex(20px);
  }

  .vs-comparison-table--stacked .vs-image-cell--1 .responsive-image-wrapper {
    max-width: 104px;
  }

  /* Others image: stays first (image on the left), bled flush with the left
     edge of the screen by cancelling the container's left padding. */
  .vs-comparison-table--stacked .vs-image-cell--2 {
    grid-area: image2;
    width: 86px;
    margin-left: -20px;
  }

  .vs-comparison-table--stacked .vs-image-cell--2 .responsive-image-wrapper {
    max-width: 86px;
  }

  .vs-comparison-table--stacked .vs-text-cell--2 {
    grid-area: text2;
  }

  .vs-comparison-table--stacked .vs-image-cell {
    height: auto;
  }

  .vs-comparison-table--stacked .vs-comparison-image {
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .vs-text {
    font-size: 15px;
  }
}

.vs-comparison-header h2 {
  text-align: center;
  margin-bottom: 8px;
}
.vs-comparison-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}