.math-hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: var(--white, #eef1f4);
}

.math-hub__kicker {
  margin: 0 0 0.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-muted, rgba(238, 241, 244, 0.62));
}

.math-hub__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.math-hub__lead {
  margin: 0.8rem 0 0;
  max-width: 42rem;
  color: var(--text-muted, rgba(238, 241, 244, 0.72));
  line-height: 1.5;
}

.math-hub__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.math-hub__panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.math-hub__panel--ege {
  border-color: rgba(96, 165, 250, 0.18);
}

.math-hub__panel--oge {
  border-color: rgba(52, 211, 153, 0.15);
}

.math-hub__panel-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 650;
}

.math-hub__panel-head p {
  margin: 0.35rem 0 1rem;
  color: var(--text-muted, rgba(238, 241, 244, 0.62));
  font-size: 0.92rem;
}

.math-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.math-hub__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.18);
}

.math-hub__card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.math-hub__card--ready {
  border-color: rgba(96, 165, 250, 0.55);
}

.math-hub__card-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(238, 241, 244, 0.5));
}

.math-hub__card--soon .premium-lock,
.math-hub--stub .math-hub__title .premium-lock {
  color: inherit;
  vertical-align: middle;
}

.math-hub__card--ready .math-hub__card-mark {
  color: #7cb3ff;
}

.math-hub__card-title {
  font-size: 1.05rem;
}

.math-hub__card-text {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(238, 241, 244, 0.62));
  line-height: 1.4;
}

.math-hub__back {
  display: inline-block;
  margin-top: 1.5rem;
  color: inherit;
}

.math-hub__seo {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.math-hub__seo-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
}

.math-hub__seo-lead {
  margin: 0.75rem 0 1.25rem;
  max-width: 46rem;
  color: var(--text-muted, rgba(238, 241, 244, 0.72));
  line-height: 1.55;
  font-size: 0.95rem;
}

.math-hub__faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.math-hub__faq-item {
  margin: 0;
}

.math-hub__faq-q {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

.math-hub__faq-a {
  margin: 0.35rem 0 0;
  color: var(--text-muted, rgba(238, 241, 244, 0.68));
  line-height: 1.5;
  font-size: 0.92rem;
}

[data-theme="light"] .math-hub {
  color: #3f3a34;
}

[data-theme="light"] .math-hub__kicker,
[data-theme="light"] .math-hub__lead,
[data-theme="light"] .math-hub__panel-head p,
[data-theme="light"] .math-hub__card-text,
[data-theme="light"] .math-hub__card-mark,
[data-theme="light"] .math-hub__seo-lead,
[data-theme="light"] .math-hub__faq-a {
  color: #7a7168;
}

[data-theme="light"] .math-hub__title,
[data-theme="light"] .math-hub__panel-head h2,
[data-theme="light"] .math-hub__card-title,
[data-theme="light"] .math-hub__seo-title,
[data-theme="light"] .math-hub__faq-q {
  color: #2c2824;
}

[data-theme="light"] .math-hub__panel {
  background: #f4f6fa;
  border-color: rgba(55, 72, 100, 0.1);
  box-shadow: 0 10px 28px rgba(40, 52, 72, 0.05);
}

[data-theme="light"] .math-hub__panel--oge {
  background: #f3f6f4;
  border-color: rgba(55, 80, 64, 0.1);
}

[data-theme="light"] .math-hub__card {
  background: rgba(255, 252, 248, 0.92);
  border-color: rgba(90, 72, 52, 0.1);
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

[data-theme="light"] .math-hub__panel--oge .math-hub__card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(55, 80, 64, 0.1);
}

[data-theme="light"] .math-hub__card:hover {
  border-color: rgba(90, 72, 52, 0.22);
  background: #fff;
}

[data-theme="light"] .math-hub__card--ready {
  border-color: rgba(59, 110, 180, 0.4);
  background: #f5f9ff;
}

[data-theme="light"] .math-hub__card--ready .math-hub__card-mark {
  color: #3b6eb4;
}

[data-theme="light"] .math-hub__back {
  color: #6d5c48;
}

[data-theme="light"] .math-hub__seo {
  border-top-color: rgba(90, 72, 52, 0.12);
}

@media (max-width: 800px) {
  .math-hub__panels {
    grid-template-columns: 1fr;
  }
}
