@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #fff #000;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e6e6e6;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.content h1,
.sidebar h2 {
  font-family: 'Poppins', sans-serif;
}

/* MOBILE STACKING */
.main {
  flex-direction: column;
}

/* SIDEBAR */
.sidebar {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px;
}

.course-list a {
  font-size: 15px;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
}

.course-list a.active {
  font-weight: 700;
  background: #e0e0e0;
}

/* CONTENT */
.content {
  width: 100%;
  padding: 18px 20px;
  overflow-x: auto;
}

.content h1 {
  font-size: 22px;
}

.content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.content a {
  color: #000;
  text-decoration: underline;
}

.section {
  margin-top: 20px;
}

.content-full {
  width: 100%;
}

.section-tight {
  margin-top: 16px;
}

.section-title-plain {
  border: none;
  padding-bottom: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.comparison-table col.feature-col {
  width: 32%;
}

.comparison-table caption {
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
}

.comparison-table thead th {
  background: #f2f2f2;
  text-align: left;
}

.comparison-table tbody {
  display: grid;
  gap: 10px;
}

.comparison-table tbody tr {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1fr;
  border: 1px solid #ddd;
}

.comparison-table tbody th[scope="row"] {
  background: #f9f9f9;
  font-weight: 700;
  text-align: left;
  padding: 8px;
}

.comparison-table tbody td {
  padding: 8px;
  border-left: 1px solid #ddd;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Responsive tables */
:where(.content, .content-full, .section-content, .info-page .content, .content-page) table {
  min-width: 520px;
  width: 100%;
}

:where(.content, .content-full, .section-content, .info-page .content, .content-page) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  :where(.content, .content-full, .section-content, .info-page .content, .content-page) table {
    min-width: 0;
  }

  .comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: 12px;
  }

  .comparison-table tbody tr {
    display: block;
    border: 1px solid #e1e5ed;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  .comparison-table tbody th[scope="row"] {
    display: block;
    padding: 12px;
    font-size: 1rem;
    background: #f5f7fb;
    border-right: none;
  }

  .comparison-table tbody td {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding: 12px;
    border-left: none;
    border-top: 1px solid #eef1f7;
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #1c1c1c;
    text-align: left;
  }
}

/* FOOTER */
footer {
  padding: 12px 16px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 10px;
}
