.edu-hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(37, 99, 235, .14), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #f7fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 24px;
}

.edu-hierarchy {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--service-border, #dbe4f0);
  border-radius: 16px;
  scrollbar-width: thin;
}

.edu-hierarchy span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: .82rem;
}

.edu-hierarchy i {
  color: #94a3b8;
}

.edu-module-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 104px;
  padding: 20px;
  color: #172033;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--service-border, #dbe4f0);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.edu-module-card:hover {
  color: #172033;
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .1);
}

.edu-module-card > i:first-child,
.edu-activity-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 1.25rem;
}

.edu-module-card > span {
  min-width: 0;
  flex: 1;
}

.edu-module-card strong,
.edu-module-card small {
  display: block;
}

.edu-module-card strong {
  margin-bottom: 4px;
}

.edu-module-card small,
.edu-activity-item small {
  color: #64748b;
  line-height: 1.4;
}

.edu-module-card > i:last-child {
  color: #94a3b8;
}

.edu-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #edf2f7;
}

.edu-activity-item:last-child {
  border-bottom: 0;
}

.edu-activity-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.edu-activity-item strong,
.edu-activity-item small {
  display: block;
}

.edu-detail-field {
  min-height: 72px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.edu-detail-field span,
.edu-detail-field strong {
  display: block;
}

.edu-detail-field span {
  margin-bottom: 4px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.edu-guardian-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.edu-guardian-card strong,
.edu-guardian-card small {
  display: block;
}

.edu-guardian-card small {
  margin-top: 3px;
  color: #64748b;
}

.edu-question-picker {
  max-height: 520px;
  overflow: auto;
  padding-right: 5px;
}

.edu-question-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.edu-question-option:has(input:checked) {
  background: #eff6ff;
  border-color: #60a5fa;
}

.edu-question-option span {
  min-width: 0;
  flex: 1;
}

.edu-question-option strong,
.edu-question-option small,
.edu-question-option em {
  display: block;
}

.edu-question-option small {
  margin: 4px 0;
  color: #475569;
}

.edu-question-option em {
  color: #64748b;
  font-size: .78rem;
  font-style: normal;
}

.edu-report-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr 56px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.edu-report-row strong,
.edu-report-row small {
  display: block;
}

.edu-report-row small {
  color: #64748b;
}

.edu-report-row em {
  text-align: right;
  font-style: normal;
  font-weight: 800;
}

.edu-report-bar {
  height: 10px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.edu-report-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: inherit;
}

.edu-announcement {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.edu-announcement:last-child {
  border: 0;
}

.edu-announcement p {
  margin: 5px 0;
  color: #475569;
  font-size: .9rem;
}

.edu-announcement small {
  color: #94a3b8;
}

.edu-exam-timer {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-width: 132px;
  padding: 12px 18px;
  color: #1e3a8a;
  background: #dbeafe;
  border-radius: 14px;
}

.edu-exam-timer i {
  grid-row: 1 / 3;
  font-size: 1.35rem;
}

.edu-exam-timer strong {
  font-size: 1.2rem;
}

.edu-exam-timer small {
  font-size: .72rem;
}

.edu-exam-timer.is-expired {
  color: #991b1b;
  background: #fee2e2;
}

.edu-exam-palette {
  top: 135px;
}

.edu-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.edu-palette-grid a {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-weight: 800;
}

.edu-palette-grid a.answered {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.edu-palette-grid a.flagged {
  box-shadow: inset 0 0 0 2px #f59e0b;
}

.edu-palette-legend {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  color: #64748b;
  font-size: .75rem;
}

.edu-palette-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-palette-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.edu-palette-legend i.answered {
  background: #86efac;
}

.edu-palette-legend i.flagged {
  border: 2px solid #f59e0b;
}

.edu-question-text {
  color: #172033;
  font-size: 1.08rem;
  line-height: 1.75;
}

.edu-answer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
}

.edu-answer-option:has(input:checked) {
  background: #eff6ff;
  border-color: #60a5fa;
}

.edu-answer-option span {
  display: flex;
  gap: 10px;
}

.edu-answer-option strong {
  color: #1d4ed8;
}

@media (max-width: 767.98px) {
  .edu-hero {
    padding: 18px;
  }

  .edu-report-row {
    grid-template-columns: 1fr 48px;
  }

  .edu-report-bar {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .edu-palette-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}
