.student-page,
.candidate-page {
  color: #152b3d;
}

.student-portal,
.candidate-hero,
.candidate-sections,
.candidate-steps {
  width: min(100%, 1320px);
  margin: 0 auto 28px;
}

.student-portal {
  padding: clamp(22px, 3vw, 34px);
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(20, 35, 58, 0.07);
}

.student-portal__header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(20, 35, 58, 0.1);
}

.student-portal__eyebrow {
  margin: 0 0 6px;
  color: #0092bf;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-portal__header h2,
.candidate-hero h2,
.candidate-steps h2 {
  margin: 0;
  color: #073d52;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

.student-portal__header p,
.candidate-hero p,
.candidate-sections p,
.candidate-steps span {
  color: #50677a;
  line-height: 1.65;
}

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

.student-portal__quick a,
.candidate-hero__actions a,
.candidate-sections a {
  text-decoration: none;
}

.student-portal__quick a {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  color: #073d52;
  background: #eef9fc;
  border: 1px solid rgba(0, 146, 191, 0.18);
  border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.student-portal__quick strong {
  font-size: 1rem;
  line-height: 1.25;
}

.student-portal__quick span {
  color: #587083;
  font-size: 0.9rem;
  line-height: 1.45;
}

.student-portal__quick a:hover,
.student-portal__quick a:focus-visible {
  color: #ffffff;
  background: #004a6a;
  border-color: #004a6a;
}

.student-portal__quick a:hover span,
.student-portal__quick a:focus-visible span {
  color: rgba(255, 255, 255, 0.86);
}

.student-portal__quick a:focus-visible,
.candidate-hero__actions a:focus-visible,
.candidate-sections a:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

.student-portal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.student-portal__group,
.candidate-sections article,
.candidate-steps {
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20, 35, 58, 0.06);
}

.student-portal__group h3,
.candidate-sections h2 {
  margin: 0 0 14px;
  color: #073d52;
  font-size: 1.16rem;
}

.student-portal__group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-portal__group a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #304d63;
  text-decoration: none;
  font-weight: 700;
}

.student-portal__group a::before {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: #0092bf;
  border-radius: 50%;
  content: "";
}

.student-portal__group a:hover,
.student-portal__group a:focus-visible {
  color: #0092bf;
}

.student-portal__group a:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 2px;
}

.candidate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: stretch;
}

.candidate-hero__content,
.candidate-hero__stats {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 14px;
}

.candidate-hero__content {
  color: #ffffff;
  background: linear-gradient(135deg, #004a6a 0%, #1854a5 100%);
}

.candidate-hero__content .student-portal__eyebrow,
.candidate-hero__content h2,
.candidate-hero__content p {
  color: #ffffff;
}

.candidate-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.candidate-hero__actions a,
.candidate-sections a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #004a6a;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  font-weight: 800;
}

.candidate-hero__actions a + a {
  color: #ffffff;
  background: transparent;
}

.candidate-hero__actions a:hover,
.candidate-hero__actions a:focus-visible {
  color: #004a6a;
  background: #f6c343;
  border-color: #f6c343;
}

.candidate-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.12);
  box-shadow: 0 18px 42px rgba(20, 35, 58, 0.07);
}

.candidate-hero__stats article {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 16px;
  text-align: center;
  background: #eef9fc;
  border-radius: 10px;
}

.candidate-hero__stats strong {
  color: #004a6a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.candidate-hero__stats span {
  color: #50677a;
  font-weight: 800;
}

.candidate-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.candidate-sections article {
  display: flex;
  min-height: 250px;
  flex-direction: column;
}

.candidate-sections p {
  flex: 1;
}

.candidate-sections a {
  align-self: flex-start;
  color: #ffffff;
  background: #004a6a;
  border-color: #004a6a;
}

.candidate-sections a:hover,
.candidate-sections a:focus-visible {
  background: #0092bf;
  border-color: #0092bf;
}

.candidate-steps header {
  margin-bottom: 18px;
}

.candidate-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: candidate-step;
}

.candidate-steps li {
  position: relative;
  padding: 20px 18px 18px;
  background: #f4f9fb;
  border: 1px solid rgba(0, 146, 191, 0.16);
  border-radius: 10px;
  counter-increment: candidate-step;
}

.candidate-steps li::before {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #ffffff;
  background: #0092bf;
  border-radius: 50%;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-weight: 900;
  content: counter(candidate-step);
}

.candidate-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #073d52;
}

@media (max-width: 1100px) {
  .student-portal__quick,
  .candidate-sections,
  .candidate-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .candidate-hero,
  .student-portal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .student-portal__quick,
  .candidate-sections,
  .candidate-steps ol,
  .candidate-hero__stats {
    grid-template-columns: 1fr;
  }
}
