/* School SEO landing pages — aligns with landing-page tokens */

.school-page {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 102, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 40%, #f7f9fc 100%);
  padding: 28px 20px 72px;
  min-height: 50vh;
}

.school-page-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.school-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 24px;
}

.school-breadcrumb a {
  color: var(--navy, #0b1f3a);
  text-decoration: none;
}

.school-breadcrumb a:hover {
  color: var(--blue, #0066ff);
}

.school-breadcrumb-sep {
  margin: 0 0.4em;
  opacity: 0.55;
}

.school-hero {
  margin-bottom: 28px;
  max-width: 46rem;
}

.school-hero-brand {
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy, #0b1f3a);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.school-hero-title {
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy, #0b1f3a);
  margin: 0 0 14px;
}

.school-hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted, #475569);
  margin: 0 0 22px;
}

.school-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.school-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.school-btn--primary {
  background: var(--blue, #0066ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.22);
}

.school-btn--primary:hover {
  transform: translateY(-1px);
  background: #0052cc;
  color: #fff;
}

.school-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy, #0b1f3a);
  border: 1px solid var(--border, #dbe3ef);
}

.school-btn--ghost:hover {
  background: #fff;
  color: var(--blue, #0066ff);
}

.school-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.school-stat {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}

.school-stat-value {
  display: block;
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: 1.65rem;
  color: var(--navy, #0b1f3a);
  line-height: 1.1;
}

.school-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.school-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.school-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.school-section h2 {
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--navy, #0b1f3a);
  margin: 0 0 12px;
}

.school-section p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #334155;
}

.school-section p:last-child {
  margin-bottom: 0;
}

.school-facts {
  margin: 0;
}

.school-fact {
  padding: 14px 0;
  border-bottom: 1px solid #e8eef6;
}

.school-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.school-fact dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

.school-fact dd {
  margin: 0;
  line-height: 1.55;
  color: #1e293b;
}

.school-disclaimer {
  margin-top: 16px !important;
  font-size: 0.875rem;
  color: var(--text-muted, #64748b) !important;
}

.school-topic-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 24px;
}

.school-topic-list li {
  margin-bottom: 6px;
  break-inside: avoid;
  color: #334155;
}

.school-buy-options {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: #334155;
}

.school-papers-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.school-papers-header h2 {
  margin-bottom: 0;
}

.school-subject-pills {
  display: flex;
  gap: 8px;
}

.school-aside {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 14px;
  padding: 18px 16px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.school-aside-title {
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--navy, #0b1f3a);
}

.school-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.school-aside-list li a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
}

.school-aside-list li a:hover {
  background: #f1f5f9;
  color: var(--blue, #0066ff);
}

.school-aside-list li.is-active a {
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue, #0066ff);
  font-weight: 600;
}

.school-aside-count {
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.school-aside-all {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue, #0066ff);
  text-decoration: none;
}

.school-hero-cycle {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue, #0066ff);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.school-related-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.school-related-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #dbe3ef);
  background: #fff;
  color: var(--navy, #0b1f3a);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.school-related-list a:hover {
  border-color: var(--blue, #0066ff);
  color: var(--blue, #0066ff);
}

.school-bundle {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.06), rgba(11, 31, 58, 0.04));
}

@media (max-width: 700px) {
  .school-related-list {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 960px) {
  .school-layout {
    grid-template-columns: 1fr;
  }

  .school-aside {
    position: static;
    max-height: none;
    order: 2;
  }

  .school-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-topic-list {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .school-page {
    padding: 20px 14px 56px;
  }

  .school-section {
    padding: 18px 16px;
  }

  .school-hero-actions {
    flex-direction: column;
  }

  .school-btn {
    width: 100%;
  }
}
