.student-sidebar .student-sidebar__role {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6d7a92;
}

.student-sidebar .dashboard-mainmenu a.is-active {
  background: #eef4ff;
  color: #1849a9;
  font-weight: 700;
  border-radius: 12px;
}

.student-portal-page .student-hero,
.student-portal-page .student-panel,
.student-portal-page .student-subject-card {
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 34, 61, 0.06);
}

.student-portal-page .student-hero {
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 62%, #eef6ff 100%);
  margin-bottom: 20px;
}

.student-portal-page .student-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6f8b;
}

.student-portal-page .student-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  color: #1d2841;
}

.student-portal-page .student-copy {
  margin: 12px 0 0;
  color: #586983;
  font-size: 15px;
  line-height: 1.7;
}

.student-portal-page .student-chip-row,
.student-portal-page .student-quick-links,
.student-portal-page .student-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-portal-page .student-chip-row {
  margin-top: 18px;
}

.student-portal-page .student-quick-links {
  margin-top: 18px;
}

.student-portal-page .student-chip,
.student-portal-page .student-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #425067;
  font-size: 13px;
  font-weight: 600;
}

.student-portal-page .student-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.student-portal-page .student-stat-card {
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 34, 61, 0.05);
}

.student-portal-page .student-stat-card span {
  display: block;
  color: #68768c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.student-portal-page .student-stat-card strong {
  display: block;
  color: #16233d;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.student-portal-page .student-stat-card small {
  display: block;
  margin-top: 10px;
  color: #7b879b;
  font-size: 12px;
}

.student-portal-page .student-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.student-portal-page .student-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.student-portal-page .student-panel__title {
  margin: 0;
  color: #1e2940;
  font-size: 24px;
  line-height: 1.15;
}

.student-portal-page .student-panel__desc {
  margin: 8px 0 0;
  color: #6c7a91;
  font-size: 14px;
  line-height: 1.6;
}

.student-portal-page .student-empty {
  border: 1px dashed #d4ddea;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #fafcff;
  color: #708099;
}

.student-portal-page .student-list {
  display: grid;
  gap: 12px;
}

.student-portal-page .student-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ebf0f7;
  border-radius: 16px;
  background: #fff;
}

.student-portal-page .student-list-item strong,
.student-portal-page .student-subject-card h3,
.student-portal-page .student-subject-card h4 {
  color: #19253d;
}

.student-portal-page .student-list-item span,
.student-portal-page .student-subject-card p,
.student-portal-page .student-grade-meta,
.student-portal-page .student-subject-meta {
  display: block;
  color: #69798f;
  font-size: 13px;
  line-height: 1.55;
}

.student-portal-page .student-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.student-portal-page .student-subject-card {
  padding: 22px;
}

.student-portal-page .student-subject-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.student-portal-page .student-grade-group + .student-grade-group {
  margin-top: 20px;
}

.student-portal-page .student-grade-table,
.student-portal-page .student-timetable-table,
.student-portal-page .student-simple-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.student-portal-page .student-grade-table thead th,
.student-portal-page .student-timetable-table thead th,
.student-portal-page .student-simple-table thead th {
  padding: 14px 12px;
  background: #f5f8fc;
  color: #1f2a43;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #dfe7f1;
}

.student-portal-page .student-grade-table tbody td,
.student-portal-page .student-timetable-table tbody td,
.student-portal-page .student-timetable-table tbody th,
.student-portal-page .student-simple-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f8;
  color: #53637c;
  vertical-align: top;
}

.student-portal-page .student-grade-table tbody tr:nth-child(even) td,
.student-portal-page .student-simple-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}

.student-portal-page .student-score-badge,
.student-portal-page .student-overall-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.student-portal-page .student-score-badge {
  background: #f5f8fc;
  color: #1d2a43;
}

.student-portal-page .student-score-badge.is-empty,
.student-portal-page .student-overall-badge.is-empty {
  color: #8a97ac;
}

.student-portal-page .student-overall-badge {
  background: #eaf2ff;
  color: #1952b1;
}

.student-portal-page .student-timetable-wrap {
  overflow-x: auto;
}

.student-portal-page .student-timetable-table tbody th {
  min-width: 150px;
  background: #f9fbfe;
  font-size: 13px;
  font-weight: 700;
  color: #1b2741;
}

.student-portal-page .student-timetable-cell {
  min-width: 190px;
}

.student-portal-page .student-timetable-cell.is-empty {
  background: #fbfcff;
  color: #a0acbf;
  text-align: center;
}

.student-portal-page .student-timetable-subject {
  display: block;
  font-weight: 700;
  color: #1a2740;
  margin-bottom: 6px;
}

.student-portal-page .student-timetable-meta {
  display: block;
  color: #697a91;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1199.98px) {
  .student-portal-page .student-stat-grid,
  .student-portal-page .student-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .student-portal-page .student-hero,
  .student-portal-page .student-panel,
  .student-portal-page .student-subject-card {
    padding: 18px;
  }

  .student-portal-page .student-panel__header,
  .student-portal-page .student-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .student-portal-page .student-stat-grid,
  .student-portal-page .student-subject-grid {
    grid-template-columns: 1fr;
  }

  .student-portal-page .student-title {
    font-size: 28px;
  }
}