.framework-comparison-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.framework-comparison {
  padding: 120px 0;
}

.framework-comparison-title {
  margin: 0 0 60px;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--black-color);
}

.framework-comparison .panel {
  background: var(--grey-color);
  border-radius: 12px;
  position: relative;
}

.framework-comparison .panel::before {
  content: "";
  position: absolute;
  width: 24px;
  height: calc(100% - 15px);
  top: 0;
  background-color: var(--grey-color);
  z-index: 6;
  margin-right: -1px;
  border-radius: 12px;
}

.framework-comparison .panel::before {
  left: 0;
}

.framework-comparison .filter-dropdown {
  position: relative;
  width: max-content;
  min-width: 180px;
  max-width: 260px;
}

.framework-comparison .filter-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background-color: var(--white-color);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.framework-comparison .filter-button:hover {
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.12);
}

.framework-comparison .filter-button::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpolygon points='0,0 12,0 6,8' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 8px;
  width: 12px;
  height: 8px;
  opacity: 0.7;
  margin-left: 10px;
}

.framework-comparison .filter-header {
  padding: 0;
}

.framework-comparison .dropdown-panel {
  min-width: 240px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  z-index: 20;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.framework-comparison .dropdown-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.framework-comparison .option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.framework-comparison .option-row:hover {
  background-color: var(--default-blue-10);
}

.framework-comparison .option-row input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  min-width: 18px;
  height: 18px;
  background-color: var(--grey-color);
  border: 2px solid var(--grey-color);
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.framework-comparison .option-row input:checked {
  background-color: var(--default-blue);
  border-color: var(--default-blue);
}

.framework-comparison .option-row input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--white-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.framework-comparison .option-row input:hover {
  border-color: var(--default-blue);
}

.framework-comparison .table-wrap {
  overflow-x: auto;
  padding: 0 0 0 24px;
  min-height: 400px;
}

.framework-comparison .comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
  will-change: transform;
  border-spacing: 0;
}

.framework-comparison .comparison-table th,
.framework-comparison .comparison-table td {
  padding: 20px 20px;
  transition: all 0.2s ease;
  vertical-align: top;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  position: relative;
  vertical-align: middle;
}

.framework-comparison .comparison-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  font-weight: 700;
  text-transform: none;
  font-size: 1.5rem;
  line-height: 1.2;
  vertical-align: middle;
}

.framework-comparison .comparison-table .option-row {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.framework-comparison .comparison-table th:first-child,
.framework-comparison .comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 220px;
  max-width: 240px;
  white-space: normal;
}

.framework-comparison .comparison-table thead th:first-child {
  z-index: 6;
}

.framework-comparison .comparison-table tbody tr td:first-child {
  font-weight: 600;
  text-align: left;
  font-size: 1rem;
  line-height: 1.2;
}

.framework-comparison .comparison-table .cell-value {
  font-size: 1rem;
  line-height: 1.2;
  white-space: pre-wrap;
}

.framework-comparison thead tr th:first-child,
.framework-comparison tbody tr td:first-child {
  background: var(--grey-color);
}

.framework-comparison .highlighted-row td {
  background: var(--blue-light-grayish) !important;
}

.framework-comparison .highlighted-row td.highlighted-col:not(:first-child) {
  background: var(--navcard-blue) !important;
}

.framework-comparison .highlighted-row td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.framework-comparison .highlighted-row td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.framework-comparison thead .highlighted-col {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.framework-comparison tbody tr:last-child .highlighted-col {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.framework-comparison tbody tr:last-child .highlighted-col:first-child {
  border-bottom-right-radius: 0;
}
.framework-comparison tbody tr:last-child .highlighted-col:last-child {
  border-bottom-right-radius: 12px;
}

.framework-comparison tbody .highlighted-row .highlighted-col:last-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.framework-comparison .highlighted-col:not(:first-child) {
  background: var(--default-blue) !important;
  color: var(--white-color) !important;
}

.framework-comparison .hidden-row {
  display: none;
}

.framework-comparison {
  scrollbar-width: thin;
  scrollbar-color: var(--default-blue) var(--grey-color);
}

.framework-comparison::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.framework-comparison::-webkit-scrollbar-track {
  background: var(--navcard-blue);
  border-radius: 4px;
}

.framework-comparison::-webkit-scrollbar-thumb {
  background-color: var(--default-blue);
  border-radius: 4px;
  border: 2px solid var(--navcard-blue);
}

.framework-comparison::-webkit-scrollbar-thumb:hover {
  background-color: var(--default-blue);
}

@media (max-width: 1280px) {
  .framework-comparison {
    padding: 100px 0;
  }

  .framework-comparison-title {
    font-size: 2.5rem;
  }

  .framework-comparison .comparison-table {
    min-width: 900px;
  }
}

@media (max-width: 991px) {
  .framework-comparison {
    padding: 80px 0;
  }

  .framework-comparison-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .framework-comparison .comparison-table {
    min-width: 800px;
  }

  .framework-comparison .comparison-table th {
    font-size: 1.25rem;
  }

  .framework-comparison .filter-dropdown {
    min-width: 160px;
  }
  .framework-comparison .comparison-table th,
  .framework-comparison .comparison-table td {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .framework-comparison {
    padding: 60px 0;
  }

  .framework-comparison-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .framework-comparison .table-wrap {
    padding: 0 0 0 8px;
  }

  .framework-comparison .panel::before {
    width: 8px;
  }

  .framework-comparison .filter-dropdown {
    min-width: 130px;
  }

  .framework-comparison .comparison-table {
    min-width: 600px;
    font-size: 0.875rem;
  }

  .framework-comparison .comparison-table th,
  .framework-comparison .comparison-table td {
    padding: 12px 8px;
  }

  .framework-comparison .comparison-table th {
    font-size: 1rem;
  }

  .framework-comparison .comparison-table td:first-child {
    min-width: 160px;
    max-width: 160px;
  }

  .framework-comparison .filter-button {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .framework-comparison .dropdown-panel {
    min-width: 180px;
    padding: 12px 8px;
    max-height: 236px;
  }
  .framework-comparison .option-row {
    padding: 8px;
    border-radius: 8px;
  }
  .framework-comparison .comparison-table .option-row {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
  .framework-comparison .option-row input {
    width: 14px;
    min-width: 14px;
    height: 14px;
    border: 1px solid var(--grey-color);
  }
  .framework-comparison .option-row input:checked::after {
    left: 4px;
    top: 1px;
  }
  .framework-comparison .comparison-table tbody tr td:first-child {
    font-size: 0.875rem;
  }
}
