.comparison-table-section {
  background-color: #ffffff;
  padding: 80px 40px;
}

.comparison-table-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.comparison-table-header {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.comparison-table-tag {
  color: #027aac;
  font-family: Univers LT Std;
  font-weight: 700;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.comparison-table-heading {
  font-family: "Univers LT Std" !important;
  font-weight: 400 !important;
  font-size: 45px !important;
  line-height: 62px !important;
  letter-spacing: 0.26px;
  text-align: center;
  color: #414141;
  max-width: 800px;
  width: 100%;
  margin-bottom: 0px;
}

.comparison-table-description {
  font-family: "Univers LT Std" !important;
  font-weight: 300 !important;
  font-size: 22px !important;
  line-height: 32px !important;
  letter-spacing: 0.07px;
  text-align: center;
  color: #414141;
  margin-bottom: 0px;
  max-width: 959px;
  width: 100%;
}

.comparison-table-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Main table styles */
.comparison-table-content table {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
}

.comparison-table-content table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  font-family: "Univers LT Std";
}

.comparison-table-content table tr {
  background: #014e77;
  border-radius: 15px 15px 0 0;
}

/* Header columns - specific styling */
.comparison-table-content table th:first-child {
  width: 25%;
  color: #fff;
}

.comparison-table-content table th:nth-child(2) {
  width: 37.5%;
  color: #efefef;
}

.comparison-table-content table th:nth-child(3) {
  color: #fff;
  width: 37.5%;
}

table {
  border-collapse: collapse;
  border: 1px solid #e5e5e5;
}

table td,
table th {
  border: 1px solid #e5e5e5;
}

/* Table body rows */
.comparison-table-content table tbody tr {
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

.comparison-table-content table tbody tr:hover {
  background-color: #f9f9f9;
}

.comparison-table-content table tbody tr:last-child {
  border-bottom: none;
}

/* Alternating row background for better readability */
.comparison-table-content table tbody td:first-child {
  background-color: #f5f5f5;
}

/* Table cells */
.comparison-table-content table td {
  padding: 20px 24px;
  font-size: 18px;
  line-height: 1.6;
  color: #414141;
  font-family: "Univers LT Std";
}

/* First column (capability names) */
.comparison-table-content table td:first-child {
  font-weight: 600;
  color: #414141;
  vertical-align: middle;
}

/* Legacy BPO column */
.comparison-table-content table td:nth-child(2) {
  color: #999999;
  vertical-align: middle;
}

/* Model N column */
.comparison-table-content table td:nth-child(3) {
  color: #414141;
  font-weight: 500;
  vertical-align: middle;
}

/* X and Checkmark styling */
.comparison-table-content table td:nth-child(2)::before,
.comparison-table-content table td:nth-child(3)::before {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
}

/* X mark (red) for Legacy BPO */
.comparison-table-content table tbody tr td:nth-child(2) {
  position: relative;
}

/* Checkmark (teal) for Model N */
.comparison-table-content table tbody tr td:nth-child(3) {
  position: relative;
}

table td {
  text-align: left !important;
}

@media (max-width: 1024px) {
  .comparison-table-section {
    padding: 60px 32px;
  }

  .comparison-table-content table th,
  .comparison-table-content table td {
    padding: 16px 18px;
    font-size: 13px;
  }

  .comparison-table-heading {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .comparison-table-section {
    padding: 48px 24px;
  }

  .comparison-table-header {
    margin-bottom: 40px;
  }

  .comparison-table-heading {
    font-size: 32px;
  }

  .comparison-table-content table th:first-child {
    width: 30%;
  }

  .comparison-table-content table th:nth-child(2) {
    width: 35%;
  }

  .comparison-table-content table th:nth-child(3) {
    width: 35%;
  }

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

  /* Stack on very small screens */
  .comparison-table-content {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .comparison-table-section {
    padding: 32px 16px;
  }

  .comparison-table-heading {
    font-size: 24px;
  }

  .comparison-table-description {
    font-size: 14px;
  }

  .comparison-table-content table th,
  .comparison-table-content table td {
    padding: 12px 10px;
    font-size: 11px;
  }

  .comparison-table-content table th {
    font-size: 10px;
  }

  /* Make columns narrower on mobile */
  .comparison-table-content table th:first-child {
    width: 25%;
  }

  .comparison-table-content table th:nth-child(2) {
    width: 37.5%;
  }

  .comparison-table-content table th:nth-child(3) {
    width: 37.5%;
  }
}

.comparison-table-heading {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive table scroll indicator */
@media (max-width: 768px) {
  .comparison-table-content::after {
    content: "";
    display: block;
    font-size: 12px;
    color: #999999;
    text-align: center;
    margin-top: 12px;
  }
}

@media print {
  .comparison-table-section {
    background-color: #ffffff;
    page-break-inside: avoid;
  }

  .comparison-table-content table {
    box-shadow: none;
  }

  .comparison-table-content table th {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .comparison-table-content table th:nth-child(3) {
    background-color: #00d9d9 !important;
    color: #1a1a1a !important;
  }
}
