/* ── Compare Page ─────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────── */

.Compare-Hero-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px) 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f7ff 100%);
  text-align: center;
}

.Compare-Hero-Section-Heading {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 16px;
}

.Compare-Hero-Section-Byline {
  color: var(--text-color);
  max-width: 780px;
  margin: 0 auto;
}

/* ── Table Section ───────────────────────────────────────────── */

.Compare-Table-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 80px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px);
}

.Compare-Table-Wrapper {
  width: 100%;
  max-width: 1620px;
  min-width: 1024px;
  overflow-x: auto;
  border: 1px solid rgba(8, 0, 68, 0.15);
  border-radius: 10px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.06);
}

.Compare-Table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.Compare-Table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.Compare-Table thead th {
  background: var(--heading-color);
  color: var(--color-white);
  font-weight: 700;
  padding: 18px 24px;
  text-align: center;
  white-space: nowrap;
}

.Compare-Table thead th:first-child {
  text-align: left;
  border-radius: 10px 0 0 0;
}

.Compare-Table thead th:last-child {
  border-radius: 0 10px 0 0;
}

/* Highlight PMG column header */
.Compare-Table thead th.Compare-Table-PMG {
  background: var(--color-primary);
  position: relative;
}

/* ── Table Body ──────────────────────────────────────────────── */

.Compare-Table tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  color: var(--text-color);
  font-size: 1.125rem;
}

.Compare-Table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--heading-color);
}

/* PMG column highlight */
.Compare-Table tbody td.Compare-Table-PMG {
  background: rgba(81, 117, 255, 0.04);
}

/* Category header row */
.Compare-Table tbody tr.Compare-Category-Row td {
  background: var(--color-bg);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  border-bottom: 2px solid var(--color-border-light);
  font-size: 1rem;
}

.Compare-Table tbody tr.Compare-Category-Row td.Compare-Table-PMG {
  background: rgba(81, 117, 255, 0.08);
}

/* Symbols */
.Compare-Yes {
  color: #16a34a;
  font-weight: 700;
}

.Compare-No {
  color: #dc2626;
  font-weight: 700;
}

.Compare-Partial {
  color: #d97706;
  font-weight: 700;
}

/* Last row rounded corners */
.Compare-Table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.Compare-Table tbody tr:last-child td:last-child {
  border-radius: 0 0 10px 0;
}

/* ── Why PMG Section ─────────────────────────────────────────── */

.Compare-Why-Section {
  display: flex;
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 80px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px);
  background: var(--color-bg);
}

.Compare-Why-Container {
  width: 100%;
  max-width: 1620px;
  min-width: 1024px;
}

.Compare-Why-Section-Heading {
  color: var(--heading-color);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.Compare-Why-Grid {
  display: flex;
  position: relative;
  width: 100%;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.Compare-Why-Card {
  display: flex;
  position: relative;
  flex-direction: column;
  flex: 1 1 calc(25% - 32px);
  min-width: 280px;
  max-width: 380px;
  background: var(--color-white);
  border: 1px solid rgba(8, 0, 68, 0.15);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Compare-Why-Card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.1);
}

.Compare-Why-Card-Icon {
  width: 48px;
  height: 48px;
  background: rgba(81, 117, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.Compare-Why-Card-Title {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.Compare-Why-Card-Text {
  color: var(--text-color);
}

/* ── CTA Section ─────────────────────────────────────────────── */

.Compare-CTA-Section {
  display: flex;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00197b 100%);
  padding: 80px calc((((130 - 63) / (1920 - 1245)) * (100vw - 1245px)) + 63px);
  text-align: center;
}

.Compare-CTA-Section-Heading {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 16px;
}

.Compare-CTA-Section-Text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}

.Compare-CTA-Section-Button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(113deg, #ECB623 -15.76%, #FFBA0A 102.86%);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Compare-CTA-Section-Button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(255, 186, 10, 0.3);
  color: var(--color-white);
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1245px) {
  .Compare-Hero-Section,
  .Compare-Table-Section,
  .Compare-Why-Section,
  .Compare-CTA-Section {
    padding-left: 29px;
    padding-right: 29px;
  }

  .Compare-Table-Wrapper {
    min-width: unset;
    max-width: unset;
  }

  .Compare-Why-Container {
    min-width: unset;
    max-width: unset;
  }
}

@media (max-width: 1050px) {
  .Compare-Hero-Section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .Compare-Why-Grid {
    flex-direction: column;
    align-items: center;
  }

  .Compare-Why-Card {
    flex: unset;
    width: 100%;
    max-width: 520px;
    min-width: unset;
  }
}

@media (max-width: 750px) {
  .Compare-Table tbody td,
  .Compare-Table thead th {
    padding: 12px 16px;
  }
}

@media (max-width: 450px) {
  .Compare-Hero-Section,
  .Compare-Table-Section,
  .Compare-Why-Section,
  .Compare-CTA-Section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .Compare-Hero-Section {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .Compare-Table-Section,
  .Compare-Why-Section,
  .Compare-CTA-Section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .Compare-Table tbody td,
  .Compare-Table thead th {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .Compare-Why-Card {
    padding: 24px 20px;
  }

  .Compare-CTA-Section-Button {
    padding: 14px 28px;
  }
}
