html {
  font-size: clamp(14px, 1.6vw, 16px);
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 45%, #f5f7ff 100%);
  color: #23364a;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 1rem;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}

body::before {
  width: 24rem;
  height: 24rem;
  background: #bcdcff;
  top: -6rem;
  right: -7rem;
}

body::after {
  width: 20rem;
  height: 20rem;
  background: #8ec5ff;
  bottom: -4rem;
  left: -5rem;
}

.container {
  max-width: 1100px;
  padding: 0 1rem;
  width: min(100%, 1100px);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.site-header .container,
.intro-card,
.content-card,
.info-card {
  width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

main > .content-card,
main > .info-card,
main > .intro-card {
  width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  background: linear-gradient(135deg, #2f6fed 0%, #4d8cff 50%, #6fb6ff 100%);
  color: #ffffff;
  padding: 2.6rem 0 2rem;
  box-shadow: 0 10px 30px rgba(47, 111, 237, 0.18);
  position: relative;
  overflow: hidden;
}

.site-header .container,
.intro-card,
.content-card,
.info-card {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.site-header .container {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.site-brand {
  color: #ffffff;
  font-size: 1.95rem;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  display: inline-block;
}

.site-tagline {
  margin: 0.4rem 0 0;
  opacity: 0.95;
  font-size: 1.05rem;
}

main {
  padding: 2rem 0 3rem;
}

main > .content-card,
main > .info-card,
main > .intro-card {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.intro-card,
.content-card,
.info-card {
  background: rgba(255, 255, 255, 0.96);
  color: #23364a;
  border: 1px solid #dce8f8;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.08);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 111, 237, 0.12);
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  color: #111111;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e1ebf8;
  padding: 0.85rem 0.7rem;
  text-align: center;
  width: 25%;
  vertical-align: middle;
}

.data-table th {
  width: 25%;
}

.data-table thead th {
  background: linear-gradient(135deg, #eef5ff 0%, #e4f0ff 100%);
  color: #2d4f7a;
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.student-link {
  color: #2f6fed;
  font-weight: 700;
  text-decoration: none;
}

.student-link:hover {
  color: #1f55c7;
  text-decoration: underline;
}

.filter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f9ff 0%, #edf5ff 100%);
  color: #2d4f7a;
  font-weight: 600;
  border: 1px solid #dbe8f8;
}

.student-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef5ff 0%, #dcecff 100%);
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.12);
  overflow: hidden;
  border: 1px solid #d9e8ff;
}

.student-photo {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d9e8ff;
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.12);
}

.student-avatar svg {
  width: 1.45rem;
  height: 1.45rem;
}

.error-text {
  color: #333333;
  margin-bottom: 0;
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
  color: #2d4f7a;
  padding: 1.6rem 0;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(47, 111, 237, 0.08);
}

.site-footer p {
  margin: 0.2rem 0;
}

.negative-score {
  color: #d24d4d;
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1.3rem 0 0.9rem;
  }

  .site-brand {
    font-size: clamp(1rem, 4.4vw, 1.3rem);
  }

  .site-tagline {
    font-size: 0.8rem;
  }

  .page-title {
    font-size: clamp(1rem, 3.8vw, 1.2rem);
  }

  .page-subtitle,
  .section-title,
  .student-link,
  .filter-info {
    font-size: 0.8rem;
  }

  .content-card,
  .info-card {
    padding: 0.8rem;
  }

  .data-table {
    display: block;
    width: 100%;
    overflow-x: hidden;
    white-space: normal;
  }

  .data-table th,
  .data-table td {
    font-size: 0.75rem;
    padding: 0.45rem 0.25rem;
  }
}
