/* ==================================================
   TRIOS COMPARISON
================================================== */

.trios-comparison {
  padding: 90px 0;
  background: transparent;
}

.trios-comparison .shv-section-heading {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.trios-comparison .shv-section-heading p {
  margin: 0 auto;
  color: var(--shv-muted);
}


/* ==================================================
   SCROLL HINT
================================================== */

.trios-scroll-hint {
  display: none;
}


/* ==================================================
   TABLE WRAPPER
================================================== */

.trios-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(123, 44, 145, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 65px rgba(20, 23, 32, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 44, 145, 0.35) transparent;
}

.trios-table-wrap::-webkit-scrollbar {
  height: 7px;
}

.trios-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.trios-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(123, 44, 145, 0.28);
}


/* ==================================================
   TABLE
================================================== */

.trios-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: center;
}

.trios-table th,
.trios-table td {
  padding: 19px 16px;
  border-left: 1px solid var(--shv-border);
  border-bottom: 1px solid var(--shv-border);
  vertical-align: middle;
}

.trios-table th:first-child,
.trios-table td:first-child {
  border-right: 0;
}

.trios-table tr:last-child td {
  border-bottom: 0;
}


/* ==================================================
   TABLE HEADER
================================================== */

.trios-table thead th {
  position: relative;
  padding-top: 28px;
  padding-bottom: 24px;
  color: var(--shv-dark);
  background: #f7f5f9;
  font-size: 18px;
}

.trios-table thead th:first-child {
  border-radius: 0 25px 0 0;
}

.trios-table thead th:last-child {
  border-radius: 25px 0 0 0;
}

.trios-table thead strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
}

.trios-table thead small {
  display: block;
  margin-top: 7px;
  color: var(--shv-muted);
  font-size: 13px;
  font-weight: 600;
}


/* ==================================================
   FEATURE COLUMN
================================================== */

.trios-table .feature-column {
  width: 25%;
  padding-right: 28px;
  text-align: right;
}

.trios-table tbody td:first-child {
  width: 25%;
  padding-right: 28px;
  color: var(--shv-dark);
  background: #fcfcfd;
  font-weight: 750;
  text-align: right;
}


/* ==================================================
   ROW HOVER
================================================== */

.trios-table tbody tr:not(.table-category):not(.recommended-row):hover td {
  background-color: rgba(123, 44, 145, 0.025);
}


/* ==================================================
   TRIOS 6 HIGHLIGHT
================================================== */
/* עמודה מודגשת - גוף הטבלה */
.trios-comparison.active-trios6 .trios-table td:nth-child(2),
.trios-comparison.active-trios5 .trios-table td:nth-child(3),
.trios-comparison.active-trios3 .trios-table td:nth-child(4),
.trios-comparison.active-core .trios-table td:nth-child(5) {
  background:
    linear-gradient(
      180deg,
      rgba(123, 44, 145, 0.09),
      rgba(123, 44, 145, 0.045)
    );
}

/* עמודה מודגשת - כותרת */
.trios-comparison.active-trios6 .trios-table thead th:nth-child(2),
.trios-comparison.active-trios5 .trios-table thead th:nth-child(3),
.trios-comparison.active-trios3 .trios-table thead th:nth-child(4),
.trios-comparison.active-core .trios-table thead th:nth-child(5) {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--shv-accent-2) 0%,
      var(--shv-accent) 72%
    );
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}
.trios-table thead th small {
  color: var(--shv-text-muted);
}
/* צבע תיאור החיבור בדגם הפעיל */
.trios-comparison.active-trios6 .trios-table thead th:nth-child(2) small,
.trios-comparison.active-trios5 .trios-table thead th:nth-child(3) small,
.trios-comparison.active-trios3 .trios-table thead th:nth-child(4) small,
.trios-comparison.active-core .trios-table thead th:nth-child(5) small {
  color: rgba(255, 255, 255, 0.82);
}
}

.trios-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}


/* ==================================================
   CATEGORY ROWS
================================================== */

.table-category td {
  padding: 13px 24px;
  color: var(--shv-accent);
  background: #f3eef6 !important;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-align: right !important;
}


/* ==================================================
   CHECK AND DASH
================================================== */

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--shv-accent);
  background: rgba(123, 44, 145, 0.1);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}


/* סימון ✓ מודגש לפי הדגם הפעיל */
.trios-comparison.active-trios6 .trios-table td:nth-child(2) .check,
.trios-comparison.active-trios5 .trios-table td:nth-child(3) .check,
.trios-comparison.active-trios3 .trios-table td:nth-child(4) .check,
.trios-comparison.active-core .trios-table td:nth-child(5) .check {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--shv-accent-2),
      var(--shv-accent)
    );
  box-shadow: 0 7px 18px rgba(123, 44, 145, 0.2);
}

.dash {
  color: #a0a6b1;
  font-size: 20px;
}


/* ==================================================
   RECOMMENDED ROW
================================================== */

.recommended-row td {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.65;
}

.recommended-row td:not(:first-child) {
  vertical-align: top;
}


/* ==================================================
   TABLE NOTE
================================================== */

.trios-table-note {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--shv-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

  .trios-comparison {
    padding: 58px 0;
  }

  .trios-comparison .shv-section-heading {
    margin-bottom: 26px;
    text-align: right;
  }

  /*
   * הודעת גלילה
   */
  .trios-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid rgba(123, 44, 145, 0.12);
    border-radius: 12px;
    color: var(--shv-accent);
    background: #f4eef8;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
  }

  .trios-scroll-hint::before {
    content: "↔";
    display: inline-block;
    font-size: 19px;
    font-weight: 900;
    animation: trios-scroll-arrow 1.4s ease-in-out infinite;
  }

  @keyframes trios-scroll-arrow {
    0%,
    100% {
      transform: translateX(3px);
    }

    50% {
      transform: translateX(-3px);
    }
  }

  /*
   * אזור הגלילה
   */
  .trios-table-wrap {
    position: relative;
    margin-inline: -6px;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 18px;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
  }

  /*
   * רוחב הטבלה בנייד
   */
  .trios-table {
    width: 860px;
    min-width: 860px;
    table-layout: fixed;
  }

  .trios-table th,
  .trios-table td {
    padding: 15px 12px;
    font-size: 14px;
  }

  .trios-table thead strong {
    font-size: 19px;
  }

  .trios-table thead small {
    margin-top: 5px;
    font-size: 11px;
  }

  /*
   * שורת הכותרות נשארת מעל שאר התוכן
   */
  .trios-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  /*
   * העמודה הראשונה נשארת קבועה בגלילה
   */
  .trios-table th:first-child,
  .trios-table tbody td:first-child {
    position: sticky;
    right: 0;
    z-index: 12;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    padding-right: 16px;
    padding-left: 12px;
    background: #fcfcfd;
    box-shadow: -8px 0 15px rgba(20, 23, 32, 0.1);
  }

  /*
   * התא "מאפיין" נמצא גם בכותרת וגם בעמודה הקבועה
   */
  .trios-table thead th:first-child {
    z-index: 30;
    color: #fff;
    background:
      linear-gradient(
        135deg,
        var(--shv-accent-2) 0%,
        var(--shv-accent) 100%
      );
    box-shadow: -8px 0 15px rgba(20, 23, 32, 0.14);
  }

  /*
   * שמירת צבע הקטגוריות בעמודה הקבועה
   */
  .trios-table .table-category td:first-child {
    background: #f3eef6 !important;
    box-shadow: -8px 0 15px rgba(20, 23, 32, 0.08);
  }

  /*
   * בשורת קטגוריה יש תא אחד על כל רוחב הטבלה,
   * ולכן אין צורך להפוך אותו לעמודה קבועה
   */
  .trios-table .table-category td {
    position: static;
  }

  /*
   * שורת ההמלצה
   */
  .trios-table .recommended-row td:first-child {
    background: #fcfcfd;
  }

  .table-category td {
    padding: 11px 18px;
  }

  .check {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }

  .recommended-row td {
    font-size: 13px;
    line-height: 1.55;
  }

  .trios-table-note {
    margin-top: 16px;
    padding-inline: 8px;
    text-align: right;
  }
}


/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 390px) {

  .trios-table {
    width: 820px;
    min-width: 820px;
  }

  .trios-table th:first-child,
  .trios-table tbody td:first-child {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    padding-right: 13px;
    font-size: 13px;
  }

  .trios-table th,
  .trios-table td {
    padding: 14px 10px;
  }
}
.trios-intro-text p{
    margin:0;
}

.trios-intro-text{
    color:var(--shv-muted);
}
.table-category td {
  background: #f2e8f5;
  border-bottom: none;
  padding-top: 14px;
  padding-bottom: 14px;
}

.table-category td:first-child {
  position: sticky;
  right: 0;
  z-index: 6;
  font-weight: 700;
  color: var(--shv-purple);
  text-align: right;
}
/* ==================================================
   MOBILE – CARD COMPARISON
================================================== */

@media (max-width: 767px) {

  .trios-comparison {
    padding: 56px 0;
  }

  .trios-comparison .shv-section-heading {
    margin-bottom: 26px;
    text-align: right;
  }

  /* אין צורך בהודעת גלילה */
  .trios-scroll-hint {
    display: none;
  }

  /* ביטול אזור הגלילה */
  .trios-table-wrap {
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .trios-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }

  .trios-table thead,
  .trios-table tbody {
    display: block;
    width: 100%;
  }

  /* כותרת הדגמים העליונה */
  .trios-table thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .trios-table thead th {
    position: static;
    display: flex;
    min-width: 0;
    min-height: 88px;
    padding: 14px 8px;
    border: 1px solid var(--shv-border);
    border-radius: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f5f9;
    font-size: 13px;
    text-align: center;
  }

  /* מסתירים את התא "מאפיין" בכותרת */
  .trios-table thead th:first-child {
    display: none;
  }

  .trios-table thead strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
  }

  .trios-table thead small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
  }

  .trios-table thead .trios-6-column {
    color: #ffffff;
    background:
      linear-gradient(
        135deg,
        var(--shv-accent-2) 0%,
        var(--shv-accent) 72%
      );
  }

  .trios-label {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 4px 8px;
    font-size: 9px;
  }

  /* כל שורת השוואה הופכת לכרטיס */
  .trios-table tbody tr:not(.table-category) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(123, 44, 145, 0.14);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 23, 32, 0.06);
  }

  .trios-table tbody tr:not(.table-category) td {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 10px 6px;
    border: 0;
    border-radius: 10px;
    background: #f8f7fa;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
  }

  /* שם הפרמטר */
  .trios-table tbody tr:not(.table-category) td:first-child {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 2px 2px 10px;
    color: var(--shv-dark);
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
  }

  /* שמות הדגמים בתוך כל כרטיס */
  .trios-table tbody tr:not(.table-category) td:nth-child(n + 2)::before {
    display: block;
    margin-bottom: 7px;
    color: var(--shv-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }

  .trios-table tbody tr:not(.table-category) td:nth-child(2)::before {
    content: "TRIOS 6";
  }

  .trios-table tbody tr:not(.table-category) td:nth-child(3)::before {
    content: "TRIOS 5";
  }

  .trios-table tbody tr:not(.table-category) td:nth-child(4)::before {
    content: "TRIOS 3";
  }

  .trios-table tbody tr:not(.table-category) td:nth-child(5)::before {
    content: "TRIOS Core";
  }

  /* הדגשת TRIOS 6 */
  .trios-table tbody tr:not(.table-category) td.trios-6-column {
    background: rgba(123, 44, 145, 0.09);
  }

  .trios-table tbody tr:not(.table-category) td.trios-6-column::before {
    color: var(--shv-accent);
  }

  /* כותרות הקטגוריות */
  .trios-table .table-category {
    display: block;
    margin: 24px 0 10px;
  }

  .trios-table .table-category td {
    display: none;
  }

  .trios-table .table-category td:first-child {
    position: static;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    color: var(--shv-accent);
    background: #f3eef6 !important;
    box-shadow: none;
    font-size: 15px;
    font-weight: 850;
    text-align: right;
  }

  .check {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }

  .recommended-row td {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .trios-table-note {
    margin-top: 18px;
    padding-inline: 5px;
    font-size: 12px;
    text-align: right;
  }
}
/* TRIOS 6 */
.trios-comparison.active-trios6 .trios-table th:nth-child(2),
.trios-comparison.active-trios6 .trios-table td:nth-child(2) {
  background: rgba(96, 55, 160, 0.08);
}

/* TRIOS 5 */
.trios-comparison.active-trios5 .trios-table th:nth-child(3),
.trios-comparison.active-trios5 .trios-table td:nth-child(3) {
  background: rgba(96, 55, 160, 0.08);
}

/* TRIOS 3 */
.trios-comparison.active-trios3 .trios-table th:nth-child(4),
.trios-comparison.active-trios3 .trios-table td:nth-child(4) {
  background: rgba(96, 55, 160, 0.08);
}

/* TRIOS Core */
.trios-comparison.active-core .trios-table th:nth-child(5),
.trios-comparison.active-core .trios-table td:nth-child(5) {
  background: rgba(96, 55, 160, 0.08);
}