/* ============================================================
   students.css Student Information Page Styles
   Depends on style.css for shared variables, nav, buttons, footer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&display=swap');

body {
  background: #f8fafc;
}

.students-page main,
body main {
  overflow: hidden;
}

.students-page .site-promo-banner {
  padding: 22px 0;
  background: var(--primary);
}

.students-page .promo-ticker {
  margin-bottom: 16px;
  padding: 0 24px;
  overflow: hidden;
  white-space: nowrap;
}

.students-page .promo-ticker-track {
  display: inline-flex;
  max-width: none;
  margin: 0;
  animation: ticker-scroll 25s linear infinite;
  text-align: left;
}

.students-page .ticker-item {
  display: inline-flex;
  padding: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.28;
}

.students-page .promo-cta-wrap .btn-white {
  border-radius: 999px;
  box-shadow: none;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.stu-hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 126px max(28px, calc((100vw - 1200px) / 2 + 28px)) 74px;
  color: #ffffff;
  background: #0f172a;
}

.stu-hero::before,
.stu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stu-hero::before {
  z-index: -2;
  background: url("../assets/Class_Photos/Classroom/Classroom.jpg") center 48% / cover no-repeat;
  transform: scale(1.03);
}

.stu-hero::after {
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(9, 20, 38, 0.92) 0%, rgba(9, 20, 38, 0.64) 48%, rgba(9, 20, 38, 0.16) 100%),
    linear-gradient(0deg, rgba(9, 20, 38, 0.52), rgba(9, 20, 38, 0.08));
}

.stu-hero-left {
  width: min(780px, 100%);
}

.stu-hero-left .section-label {
  color: #bfdbfe;
  border-color: rgba(255, 255, 255, 0.24);
}

.stu-hero-left h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.stu-hero-left p {
  max-width: 590px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.68;
}

.stu-hero-left .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.stu-hero-left .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.stu-hero-right,
.cert-card-mockup {
  display: none;
}

/* ------------------------------------------------------------
   Recertification Tabs
   ------------------------------------------------------------ */
.student-recert-switcher-section {
  padding: 0;
  background: #ffffff;
  border-block: 1px solid #dbe4f0;
  scroll-margin-top: 104px;
}

.student-recert-switcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-inline: 1px solid #dbe4f0;
}

.student-recert-switcher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 18px 24px;
  background: #ffffff;
  border-right: 1px solid #dbe4f0;
  color: #0f172a;
}

.student-recert-switcher-card:last-child {
  border-right: 0;
}

.student-recert-switcher-card:hover {
  background: #f8fbff;
}

.student-recert-switcher-main {
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.student-recert-switcher-main span {
  color: #1e40af;
  font-size: 24px;
  font-weight: 800;
}

.student-recert-switcher-main strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-recert-switcher-main small {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.student-recert-switcher-register {
  flex: 0 0 auto;
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.student-recert-switcher-register:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Shared section typography
   ------------------------------------------------------------ */
.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header h2,
.policy-card h2,
.timeline-header h2,
.renewal-forms-card h2 {
  color: #0f172a;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section-header p,
.timeline-header p,
.renewal-forms-card > p,
.portal-card-footer p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.72;
}

/* ------------------------------------------------------------
   Certification Policy
   ------------------------------------------------------------ */
.cert-policy {
  padding: 72px 0;
  background: #f8fafc;
  border-bottom: 1px solid #dbe4f0;
}

.cert-policy .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 34px;
  align-items: start;
}

.policy-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.policy-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.policy-card .policy-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
}

.policy-card h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.policy-card > p {
  margin-bottom: 26px;
  color: #334155;
  font-size: 16px;
  line-height: 1.76;
}

.policy-card h3 {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
  color: #0f172a;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.policy-card ul li {
  position: relative;
  padding-left: 22px;
  color: #334155;
  font-size: 15px;
  line-height: 1.62;
}

.policy-card ul li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.reminder-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 14px;
  line-height: 1.58;
}

.reminder-card svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.timeline-header {
  margin-bottom: 24px;
  padding-top: 4px;
}

.timeline-header h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
}

.renewal-timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.step-circle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.step-content h4 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.step-content p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.62;
}

/* ------------------------------------------------------------
   Renewal Forms
   ------------------------------------------------------------ */
.renewal-forms-section {
  padding: 0 0 72px;
  background: #f8fafc;
}

.renewal-forms-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid #cbd8e8;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.renewal-forms-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.renewal-forms-card h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
}

.renewal-forms-card > p {
  max-width: 620px;
  margin: 0;
}

.renewal-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.renewal-download-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.renewal-forms-note {
  grid-column: 2 / -1;
  margin: -10px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Portal
   ------------------------------------------------------------ */
.portal-section {
  padding: 76px 0;
  background: #ffffff;
  border-top: 1px solid #dbe4f0;
  border-bottom: 1px solid #dbe4f0;
}

.portal-section .section-header {
  margin-bottom: 34px;
}

.portal-card {
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.portal-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-feature {
  min-height: 196px;
  padding: 28px;
  border-right: 1px solid #dbe4f0;
  border-bottom: 1px solid #dbe4f0;
}

.portal-feature:nth-child(3n) {
  border-right: 0;
}

.portal-feature:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feat-icon,
.res-icon,
.help-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
}

.portal-feature h4,
.resource-card h3,
.help-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.portal-feature p,
.help-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.62;
}

.portal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid #dbe4f0;
  background: #f8fafc;
}

.coming-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-card-footer p {
  margin: 0;
  text-align: right;
}

/* ------------------------------------------------------------
   Current Resources
   ------------------------------------------------------------ */
.resources-section {
  padding: 76px 0;
  background: #f8fafc;
}

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

.resource-card {
  padding: 28px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.resource-card.card-blue,
.resource-card.card-green,
.resource-card.card-purple {
  background: #ffffff;
}

.resource-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.resource-card ul li {
  position: relative;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.56;
}

.resource-card ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ------------------------------------------------------------
   Help
   ------------------------------------------------------------ */
.help-section {
  padding: 76px 0 84px;
  background: #ffffff;
  border-top: 1px solid #dbe4f0;
}

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

.help-card {
  padding: 28px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.help-card a.help-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.help-card a.help-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.help-section .text-center {
  margin-top: 32px;
  text-align: center;
}

.help-section .btn-primary {
  border-radius: 8px;
  font-weight: 800;
}

/* Unused legacy CTA styles retained in case the section returns later. */
.stu-cta {
  padding: 76px 0;
  text-align: center;
  color: #ffffff;
  background: var(--primary);
}

/* ------------------------------------------------------------
   Motion
   ------------------------------------------------------------ */
@keyframes studentsHeroDrift {
  from {
    transform: scale(1.03) translate3d(-10px, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(18px, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stu-hero::before {
    animation: studentsHeroDrift 18s ease-in-out infinite alternate;
  }

  .policy-card,
  .timeline-step,
  .renewal-forms-card,
  .portal-card,
  .resource-card,
  .help-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .timeline-step:hover,
  .resource-card:hover,
  .help-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }
}

/* ------------------------------------------------------------
   Renewal Form Upload Section
   ------------------------------------------------------------ */
.upload-section {
  padding: 0 0 72px;
  background: #f8fafc;
}

.upload-card {
  padding: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.upload-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8edf5;
}

.upload-header-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.upload-card-header h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
}

.upload-card-header > div > p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.68;
}

.upload-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.upload-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.upload-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.upload-form-group label span[aria-label="required"] {
  color: #2563eb;
  margin-left: 2px;
}

.upload-optional {
  font-weight: 400;
  color: #94a3b8;
  margin-left: 4px;
}

.upload-form-group input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.upload-form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.upload-form-group input::placeholder {
  color: #94a3b8;
}

.upload-drop-zone {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #bfdbfe;
  border-radius: 10px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 22px;
}

.upload-drop-zone:hover,
.upload-drop-zone:focus-visible,
.upload-drop-zone.drag-over {
  border-color: #2563eb;
  background: #eff6ff;
}

.upload-drop-zone:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.upload-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  padding: 24px;
  text-align: center;
}

.upload-drop-main {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.upload-drop-sub {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.upload-browse-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-drop-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px;
  width: 100%;
}

.upload-preview img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: block;
}

.upload-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.upload-remove-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.upload-remove-btn:focus-visible {
  outline: 3px solid #f87171;
  outline-offset: 2px;
}

.upload-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-submit-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.28);
}

.upload-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-submit-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   Recertification Registration
   ------------------------------------------------------------ */
.student-recert-registration-section {
  --registration-accent: #1e40af;
  padding: 76px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #dbe4f0;
  scroll-margin-top: 104px;
}

.students-page .registration-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 0.62fr);
  gap: 34px;
  align-items: start;
}

.students-page .registration-intro {
  position: sticky;
  top: 112px;
  padding: 6px 0;
}

.students-page .registration-intro .section-label {
  color: var(--registration-accent);
}

.students-page .registration-intro h2 {
  max-width: 430px;
  margin-bottom: 14px;
  color: #0f172a;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
}

.students-page .registration-intro p {
  max-width: 480px;
  color: #475569;
  font-size: 16px;
  line-height: 1.72;
}

.students-page .registration-course-facts {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid #dbe4f0;
}

.students-page .registration-course-facts div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #dbe4f0;
}

.students-page .registration-course-facts dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.students-page .registration-course-facts dd {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.students-page .course-registration-form {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.students-page .course-registration-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
}

.students-page .course-registration-form fieldset:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.students-page .course-registration-form legend,
.students-page .student-card-head h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.students-page .registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.students-page .registration-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.students-page .registration-grid input,
.students-page .registration-grid select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.students-page .registration-grid input:focus,
.students-page .registration-grid select:focus {
  outline: none;
  border-color: var(--registration-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--registration-accent) 18%, transparent);
}

.students-page .wide-field {
  grid-column: 1 / -1;
}

.students-page .course-date-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.students-page .course-date-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.students-page .course-date-unavailable {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.students-page .course-date-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.students-page .course-date-option input {
  position: absolute;
  inset: 14px auto auto 14px;
  width: 18px;
  height: 18px;
  accent-color: var(--registration-accent);
}

.students-page .course-date-option span {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 18px 16px 16px 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.students-page .course-date-option strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.students-page .course-date-option small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.students-page .course-date-option .course-date-location {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #dbe3ee;
  color: #334155;
  line-height: 1.45;
}

.students-page .course-date-option:hover span,
.students-page .course-date-option input:focus-visible + span {
  border-color: var(--registration-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--registration-accent) 16%, transparent);
  transform: translateY(-1px);
}

.students-page .course-date-option input:checked + span {
  border-color: var(--registration-accent);
  background: color-mix(in srgb, var(--registration-accent) 9%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--registration-accent) 32%, transparent);
}

.students-page .registration-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.students-page .student-roster-heading,
.students-page .student-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.students-page .student-roster {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.students-page .student-card {
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
}

.students-page .ssn-input-wrap {
  position: relative;
  display: block;
}

.students-page .registration-grid .ssn-input-wrap input {
  padding-right: 74px;
}

.students-page .ssn-toggle-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.students-page .ssn-toggle-btn:hover,
.students-page .ssn-toggle-btn:focus-visible {
  background: var(--registration-accent);
  color: #ffffff;
  outline: none;
}

.students-page .field-help {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.students-page .add-student-btn,
.students-page .remove-student-btn,
.students-page .registration-submit-btn {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.students-page .add-student-btn {
  min-height: 40px;
  padding: 10px 14px;
  background: #eef6ff;
  color: var(--registration-accent);
  border: 1px solid color-mix(in srgb, var(--registration-accent) 28%, #dbe4f0);
}

.students-page .remove-student-btn {
  display: none;
  min-height: 34px;
  padding: 8px 11px;
  background: #ffffff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 12px;
}

.students-page .student-card.can-remove .remove-student-btn {
  display: inline-flex;
  align-items: center;
}

.students-page .add-student-btn:hover,
.students-page .remove-student-btn:hover,
.students-page .registration-submit-btn:hover {
  transform: translateY(-1px);
}

.students-page .registration-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 2px;
}

.students-page .registration-submit-row p {
  max-width: 430px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.students-page .registration-submit-btn {
  min-height: 48px;
  padding: 13px 20px;
  background: var(--registration-accent);
  color: #ffffff;
  white-space: nowrap;
}

.students-page .registration-submit-btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.students-page .registration-status-msg {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.students-page .registration-status-msg.success {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.students-page .registration-status-msg.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

@media (max-width: 980px) {
  .student-recert-switcher-grid,
  .students-page .registration-shell {
    grid-template-columns: 1fr;
  }

  .student-recert-switcher-grid {
    border-inline: 0;
  }

  .student-recert-switcher-card {
    border-right: 0;
    border-bottom: 1px solid #dbe4f0;
  }

  .student-recert-switcher-card:last-child {
    border-bottom: 0;
  }

  .students-page .registration-intro {
    position: static;
  }

  .students-page .registration-intro h2,
  .students-page .registration-intro p {
    max-width: 760px;
  }

  .upload-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .upload-form-row .upload-form-group:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .student-recert-switcher-card {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding: 16px 20px;
  }

  .student-recert-switcher-register {
    width: auto;
  }

  .students-page .student-recert-registration-section {
    padding: 56px 0;
  }

  .students-page .course-registration-form {
    padding: 20px;
  }

  .students-page .registration-grid,
  .students-page .course-date-options {
    grid-template-columns: 1fr;
  }

  .students-page .student-roster-heading,
  .students-page .student-card-head,
  .students-page .registration-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .students-page .add-student-btn,
  .students-page .remove-student-btn,
  .students-page .registration-submit-btn {
    width: 100%;
  }

  .upload-card {
    padding: 22px;
  }

  .upload-card-header {
    flex-direction: column;
  }

  .upload-form-row {
    grid-template-columns: 1fr;
  }

  .upload-form-row .upload-form-group:last-child {
    grid-column: auto;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .cert-policy .inner,
  .renewal-forms-card {
    grid-template-columns: 1fr;
  }

  .renewal-forms-note {
    grid-column: auto;
    margin-top: -6px;
  }

  .portal-features,
  .resources-grid,
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-feature:nth-child(3n) {
    border-right: 1px solid #dbe4f0;
  }

  .portal-feature:nth-child(2n) {
    border-right: 0;
  }

  .portal-feature:nth-last-child(-n + 3) {
    border-bottom: 1px solid #dbe4f0;
  }

  .portal-feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 768px) {
  .stu-hero {
    min-height: 360px;
    padding: 92px 24px 52px;
  }

  .stu-hero-left h1 {
    font-size: 42px;
  }

  .stu-hero-left p {
    font-size: 16px;
  }

  .cert-policy,
  .portal-section,
  .resources-section,
  .help-section {
    padding: 56px 0;
  }

  .policy-card,
  .renewal-forms-card,
  .portal-feature,
  .resource-card,
  .help-card {
    padding: 22px;
  }

  .portal-card-footer {
    display: grid;
    padding: 22px;
  }

  .portal-card-footer p {
    text-align: left;
  }
}

/* ------------------------------------------------------------
   Authenticated Student Portal
   ------------------------------------------------------------ */
.student-portal-section {
  --portal-ink: #0f172a;
  --portal-muted: #5b6b82;
  --portal-line: #d9e3ef;
  --portal-soft: #f5f8fc;
  --portal-blue: #1d5fba;
  --portal-blue-dark: #164784;
  padding: 92px 0;
  scroll-margin-top: 104px;
  color: var(--portal-ink);
  background: #ffffff;
  border-block: 1px solid var(--portal-line);
}

.student-portal-section [hidden] {
  display: none !important;
}

.student-portal-container {
  width: min(1180px, calc(100% - 48px));
}

.student-portal-intro {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 36px;
}

.student-portal-intro h2 {
  margin: 10px 0 0;
  color: var(--portal-ink);
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.98;
}

.student-portal-intro > p {
  max-width: 720px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.7;
}

.student-portal-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #ffffff;
}

.student-portal-loading {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 40px 24px;
  color: var(--portal-muted);
  text-align: center;
}

.student-portal-loading p {
  margin: 0;
  font-weight: 700;
}

.student-portal-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe7f4;
  border-top-color: var(--portal-blue);
  border-radius: 50%;
  animation: student-portal-spin 0.8s linear infinite;
}

@keyframes student-portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.student-login-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  min-height: 520px;
}

.student-login-form,
.student-login-help {
  padding: clamp(32px, 5vw, 64px);
}

.student-login-form {
  width: 100%;
  max-width: 590px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.student-login-heading {
  margin-bottom: 18px;
}

.student-login-heading h3,
.student-login-help h3,
.student-account-header h3,
.student-record-heading h4,
.student-information-section h4,
.student-renewal-section h4 {
  margin: 0;
  color: var(--portal-ink);
}

.student-login-heading h3,
.student-login-help h3,
.student-account-header h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
}

.student-login-heading > p:last-child,
.student-login-help > p {
  margin: 10px 0 0;
  color: var(--portal-muted);
  line-height: 1.65;
}

.student-portal-kicker {
  margin: 0 0 8px;
  color: var(--portal-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-login-form label {
  margin-top: 8px;
  color: #26364d;
  font-size: 14px;
  font-weight: 800;
}

.student-login-form input,
.student-login-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b9c8da;
  border-radius: 7px;
  outline: 0;
  color: var(--portal-ink);
  background: #ffffff;
  font: inherit;
}

.student-login-form input:focus-visible,
.student-login-form select:focus-visible {
  border-color: var(--portal-blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 186, 0.16);
}

.student-create-account-btn {
  width: fit-content;
  margin-top: 22px;
}

.student-registration-form {
  max-width: 680px;
  align-content: start;
}

.student-registration-form small {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.student-reset-view .student-login-form > small {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.student-recovery-username {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.student-registration-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.student-registration-actions .student-portal-primary-btn {
  margin-top: 0;
}

.student-registration-help ol {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--portal-muted);
  line-height: 1.55;
}

.student-registration-help li {
  padding-left: 4px;
}

.student-login-help {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--portal-line);
  background: var(--portal-soft);
}

.student-login-help a {
  width: fit-content;
  margin-top: 18px;
  color: var(--portal-blue-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.student-portal-primary-btn,
.student-portal-secondary-btn,
.student-document-button {
  min-height: 44px;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.student-portal-primary-btn {
  margin-top: 16px;
  padding: 0 20px;
  border: 1px solid var(--portal-blue);
  color: #ffffff;
  background: var(--portal-blue);
}

.student-portal-primary-btn:hover {
  border-color: var(--portal-blue-dark);
  background: var(--portal-blue-dark);
}

.student-portal-secondary-btn {
  padding: 0 18px;
  border: 1px solid #b9c8da;
  color: var(--portal-ink);
  background: #ffffff;
}

.student-portal-secondary-btn:hover {
  border-color: #7f96b3;
  background: var(--portal-soft);
}

.student-portal-text-btn {
  width: fit-content;
  min-height: 38px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: var(--portal-blue-dark);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.student-portal-text-btn:hover {
  color: var(--portal-blue);
}

.student-portal-primary-btn:disabled,
.student-portal-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.student-portal-primary-btn:focus-visible,
.student-portal-secondary-btn:focus-visible,
.student-portal-text-btn:focus-visible,
.student-document-button:focus-visible,
.student-login-help a:focus-visible {
  outline: 3px solid rgba(29, 95, 186, 0.28);
  outline-offset: 3px;
}

.student-portal-status {
  min-height: 22px;
  margin: 6px 0 0;
  color: var(--portal-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.student-portal-status.error {
  color: #9f241a;
}

.student-portal-status.success {
  color: #087448;
}

.student-account-view {
  min-width: 0;
}

.student-account-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--portal-line);
}

.student-session-email {
  margin: 8px 0 0;
  color: var(--portal-muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.student-account-status {
  min-height: 0;
  margin: 0;
  padding-inline: 32px;
}

.student-account-status:not(:empty) {
  padding-block: 14px;
  border-bottom: 1px solid var(--portal-line);
  background: #fff8e8;
}

.student-account-status.error:not(:empty) {
  background: #fff3f1;
}

.student-account-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(285px, 0.35fr) minmax(0, 1fr);
}

.student-account-summary {
  min-width: 0;
  border-right: 1px solid var(--portal-line);
  background: var(--portal-soft);
}

.student-information-section,
.student-renewal-section {
  padding: 30px 32px;
}

.student-information-section {
  border-bottom: 1px solid var(--portal-line);
}

.student-information-section h4,
.student-renewal-section h4,
.student-record-heading h4 {
  font-size: 20px;
  font-weight: 850;
}

.student-information-list,
.student-renewal-date {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.student-information-list > div,
.student-renewal-date > div {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-bottom: 1px solid #dfe7f1;
}

.student-information-list > div:first-child,
.student-renewal-date > div:first-child {
  padding-top: 0;
}

.student-information-list > div:last-child,
.student-renewal-date > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.student-information-list dt,
.student-renewal-date dt {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-information-list dd,
.student-renewal-date dd {
  margin: 0;
  color: var(--portal-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.student-renewal-status,
.student-view-only-label,
.student-enrollment-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.student-renewal-status {
  min-height: 36px;
  margin: 18px 0 0;
  padding: 7px 13px;
  border: 1px solid #c8d4e2;
  color: #43536a;
  background: #ffffff;
}

.student-renewal-status[data-state="active"] {
  border-color: #a7d9c3;
  color: #08603d;
  background: #ecf9f3;
}

.student-renewal-status[data-state="due-soon"],
.student-renewal-status[data-state="pending"] {
  border-color: #e9c46d;
  color: #714d05;
  background: #fff8df;
}

.student-renewal-status[data-state="expired"] {
  border-color: #efb4ae;
  color: #97241b;
  background: #fff1ef;
}

.student-account-records {
  min-width: 0;
}

.student-record-section {
  min-width: 0;
  padding: 30px 32px;
  border-bottom: 1px solid var(--portal-line);
}

.student-record-section:last-child {
  border-bottom: 0;
}

.student-record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.student-record-count,
.student-view-only-label {
  flex: 0 0 auto;
}

.student-record-count {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #bcd0e8;
  border-radius: 50%;
  color: var(--portal-blue-dark);
  background: #eef6ff;
  font-size: 13px;
  font-weight: 900;
}

.student-view-only-label {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #c8d4e2;
  color: #43536a;
  background: var(--portal-soft);
}

.student-enrollment-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--portal-line);
}

.student-enrollment-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--portal-line);
}

.student-enrollment-item:last-child {
  border-bottom: 0;
}

.student-enrollment-course h5 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 15px;
  line-height: 1.45;
}

.student-enrollment-course p,
.student-enrollment-session p {
  margin: 5px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.student-enrollment-session strong {
  display: block;
  color: #314156;
  font-size: 13px;
}

.student-enrollment-status {
  min-height: 32px;
  padding: 6px 11px;
  color: #365169;
  background: #eef3f8;
}

.student-enrollment-status[data-state="active"],
.student-enrollment-status[data-state="enrolled"],
.student-enrollment-status[data-state="completed"] {
  color: #08603d;
  background: #eaf8f2;
}

.student-enrollment-status[data-state="cancelled"],
.student-enrollment-status[data-state="withdrawn"] {
  color: #97241b;
  background: #fff1ef;
}

.student-record-empty {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed #b9c8da;
  border-radius: 7px;
  color: var(--portal-muted);
  background: var(--portal-soft);
  line-height: 1.55;
}

.student-documents-note {
  margin: 10px 0 0;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.55;
}

.student-document-sync {
  margin: 8px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.student-document-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.student-document-workspace.folder-only {
  grid-template-columns: 1fr;
}

.student-document-workspace.folder-only .student-document-nav {
  border-right: 0;
}

.student-document-nav {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 8px;
  border-right: 1px solid var(--portal-line);
  background: var(--portal-soft);
}

.student-folder-root,
.student-approved-document-group {
  min-width: 0;
}

.student-folder-root-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--portal-line);
  color: #1f3047;
  background: #ffffff;
}

.student-folder-root-heading strong {
  overflow-wrap: anywhere;
}

.student-folder-root-heading span,
.student-approved-document-group > p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-approved-document-group > p {
  padding: 14px 12px 6px;
}

.student-folder-tree {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 7px 0 0;
  list-style: none;
}

.student-folder-tree-nested {
  margin: 0 0 4px 14px;
  padding: 2px 0 0 10px;
  border-left: 1px solid #cbd8e8;
}

.student-folder-group > summary,
.student-folder-file {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #26364d;
}

.student-folder-group > summary {
  cursor: pointer;
  font-weight: 800;
}

.student-folder-group > summary:hover,
.student-folder-group > summary:focus-visible {
  border-color: #c4d3e4;
  background: #ffffff;
}

.student-folder-group > summary:focus-visible {
  outline: 3px solid rgba(29, 95, 186, 0.28);
  outline-offset: 2px;
}

.student-folder-group > summary span:first-child,
.student-folder-file span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-folder-group > summary span:last-child,
.student-folder-file span:last-child {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 700;
}

.student-folder-file-information {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.student-folder-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.student-folder-empty,
.student-folder-notice {
  margin: 0;
  padding: 12px;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.student-folder-empty-nested {
  padding: 7px 10px 10px;
}

.student-document-button {
  font: inherit;
  cursor: pointer;
}

.student-file-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #a9bdd8;
  border-radius: 5px;
  color: var(--portal-blue-dark);
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.student-file-action:hover,
.student-file-action:focus-visible,
.student-document-button[aria-pressed="true"] {
  border-color: var(--portal-blue);
  background: #edf5ff;
}

.student-file-action:focus-visible {
  outline: 3px solid rgba(29, 95, 186, 0.28);
  outline-offset: 2px;
}

.student-file-unavailable {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 700;
}

.student-document-viewer {
  min-width: 0;
  min-height: 420px;
  max-height: 780px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 22px;
  background: #e9eff6;
  overscroll-behavior: contain;
}

.student-document-viewer img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #c7d3e0;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.13);
  -webkit-user-drag: none;
}

.student-document-placeholder,
.student-document-viewer-status {
  max-width: 420px;
  margin: 0;
  color: #52647a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.student-document-viewer-status:empty {
  display: none;
}

.student-document-viewer-status.error {
  color: #97241b;
}

@media (prefers-reduced-motion: no-preference) {
  .student-login-view,
  .student-registration-view,
  .student-account-view {
    animation: student-portal-reveal 0.22s ease-out both;
  }

  .student-portal-primary-btn,
  .student-portal-secondary-btn,
  .student-document-button {
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }

  @keyframes student-portal-reveal {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-portal-spinner {
    animation: none;
    border-color: var(--portal-blue);
  }
}

@media (max-width: 980px) {
  .student-portal-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .student-login-view {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  }

  .student-account-layout {
    grid-template-columns: 1fr;
  }

  .student-account-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .student-information-section {
    border-right: 1px solid var(--portal-line);
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .student-portal-section {
    padding: 64px 0;
  }

  .student-portal-container {
    width: min(100% - 32px, 1180px);
  }

  .student-login-view,
  .student-account-summary,
  .student-document-workspace {
    grid-template-columns: 1fr;
  }

  .student-login-help {
    border-top: 1px solid var(--portal-line);
    border-left: 0;
  }

  .student-account-header {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .student-account-header .student-portal-secondary-btn {
    width: 100%;
  }

  .student-account-status {
    padding-inline: 24px;
  }

  .student-information-section {
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .student-information-section,
  .student-renewal-section,
  .student-record-section {
    padding: 24px;
  }

  .student-enrollment-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .student-enrollment-status {
    justify-self: start;
  }

  .student-document-nav {
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }

  .student-document-viewer {
    min-height: 340px;
    max-height: none;
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .student-portal-intro h1,
  .student-portal-intro h2 {
    font-size: 40px;
  }

  .student-login-form,
  .student-login-help {
    padding: 26px 22px;
  }

  .student-login-form input,
  .student-login-form select {
    min-height: 48px;
    font-size: 16px;
  }

  .student-registration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .student-record-heading {
    align-items: flex-start;
  }

  .student-document-nav {
    grid-template-columns: 1fr;
  }

  .student-document-viewer {
    min-height: 280px;
  }

  .student-folder-file {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .student-folder-file-actions {
    justify-content: flex-start;
  }

  .student-file-action {
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .stu-hero {
    min-height: 330px;
  }

  .stu-hero-left h1 {
    font-size: 36px;
  }

  .portal-features,
  .resources-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .portal-feature,
  .portal-feature:nth-child(2n),
  .portal-feature:nth-child(3n),
  .portal-feature:nth-last-child(-n + 2),
  .portal-feature:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #dbe4f0;
  }

  .portal-feature:last-child {
    border-bottom: 0;
  }

  .timeline-step {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 16px;
  }

  .step-circle {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* ------------------------------------------------------------
   Student page simplification pass
   ------------------------------------------------------------ */
.students-page .cert-policy,
.students-page .portal-section,
.students-page .resources-section,
.students-page .help-section {
  padding-block: 92px;
}

.students-page .cert-policy .inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 72px;
}

.students-page .policy-card,
.students-page .portal-card,
.students-page .resource-card,
.students-page .help-card {
  box-shadow: none;
}

.students-page .policy-card {
  padding: 0 0 0 26px;
  border: 0;
  border-left: 4px solid var(--primary);
  border-radius: 0;
  background: transparent;
}

.students-page .policy-card::before,
.students-page .policy-card .policy-icon,
.students-page .feat-icon,
.students-page .res-icon,
.students-page .help-icon {
  display: none;
}

.students-page .policy-card h2,
.students-page .timeline-header h2,
.students-page .section-header h2 {
  max-width: 620px;
}

.students-page .policy-card > p {
  color: #475569;
}

.students-page .reminder-card {
  max-width: 520px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid #dbe4f0;
  border-left: 4px solid var(--primary);
  background: #ffffff;
}

.students-page .timeline-header {
  max-width: 560px;
  margin-bottom: 28px;
}

.students-page .renewal-timeline {
  position: relative;
  gap: 0;
  padding-left: 28px;
}

.students-page .renewal-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 20px;
  width: 1px;
  background: #cbd8e8;
}

.students-page .timeline-step {
  position: relative;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.students-page .timeline-step:last-child {
  padding-bottom: 0;
}

.students-page .step-circle {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  color: var(--primary);
  background: #ffffff;
  font-size: 19px;
  box-shadow: 0 0 0 6px #f8fafc;
}

.students-page .step-content {
  padding-top: 4px;
}

.students-page .renewal-forms-section {
  padding-bottom: 92px;
}

.students-page .upload-section {
  padding-bottom: 92px;
}

.students-page .upload-card {
  padding: 30px 32px;
  border-color: #dbe4f0;
  box-shadow: none;
}

.students-page .upload-card-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.students-page .upload-header-icon,
.students-page .upload-drop-content svg,
.students-page .upload-submit-btn svg {
  display: none;
}

.students-page .upload-card-header h2 {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.05;
}

.students-page .upload-form-row {
  margin-bottom: 18px;
}

.students-page .upload-drop-zone {
  min-height: 142px;
  margin-bottom: 18px;
  border-style: solid;
  background: #ffffff;
}

.students-page .upload-drop-content {
  gap: 4px;
}

.students-page .upload-preview[hidden] {
  display: none !important;
}

.students-page .upload-submit-btn {
  height: 44px;
  border-radius: 8px;
}

.students-page .renewal-forms-card {
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr) auto;
  padding: 30px 32px;
  box-shadow: none;
}

.students-page .renewal-forms-icon {
  display: none;
}

.students-page .renewal-forms-card h2 {
  margin: 0;
}

.students-page .renewal-forms-note {
  grid-column: 2 / -1;
}

.students-page .portal-section {
  background: #ffffff;
}

.students-page .portal-section .container,
.students-page .resources-section .container,
.students-page .help-section .container {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.students-page .portal-section .section-header,
.students-page .resources-section .section-header,
.students-page .help-section .section-header {
  position: sticky;
  top: 132px;
  margin-bottom: 0;
}

.students-page .portal-card {
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.students-page .portal-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.students-page .portal-feature {
  min-height: 0;
  padding: 24px 26px;
  border-right: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
}

.students-page .portal-feature:nth-child(2n) {
  border-right: 0;
}

.students-page .portal-feature:nth-child(3n) {
  border-right: 1px solid #e8edf5;
}

.students-page .portal-feature:nth-child(6) {
  border-right: 0;
}

.students-page .portal-feature:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.students-page .portal-feature h4,
.students-page .resource-card h3,
.students-page .help-card h3 {
  margin-bottom: 9px;
}

.students-page .portal-card-footer {
  background: #f8fafc;
}

.students-page .resources-section {
  background: #f8fafc;
}

.students-page .resources-grid,
.students-page .help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.students-page .resource-card,
.students-page .help-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  border-radius: 0;
}

.students-page .resource-card:last-child,
.students-page .help-card:last-child {
  border-bottom: 0;
}

.students-page .resource-card ul {
  gap: 7px;
}

.students-page .help-card a.help-link {
  grid-column: 1 / -1;
  margin-top: 0;
  align-self: end;
}

.students-page .help-section .text-center {
  grid-column: 2;
  justify-self: start;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .students-page .timeline-step:hover,
  .students-page .resource-card:hover,
  .students-page .help-card:hover {
    transform: none;
    border-color: #e8edf5;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .students-page .cert-policy .inner,
  .students-page .portal-section .container,
  .students-page .resources-section .container,
  .students-page .help-section .container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .students-page .portal-section .section-header,
  .students-page .resources-section .section-header,
  .students-page .help-section .section-header {
    position: static;
  }

  .students-page .help-section .text-center {
    grid-column: 1;
  }

  .students-page .renewal-forms-card {
    grid-template-columns: 1fr;
  }

  .students-page .renewal-forms-note {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .students-page .cert-policy,
  .students-page .portal-section,
  .students-page .resources-section,
  .students-page .help-section {
    padding-block: 64px;
  }

  .students-page .renewal-forms-section {
    padding-bottom: 64px;
  }

  .students-page .upload-section {
    padding-bottom: 64px;
  }

  .students-page .policy-card {
    padding-left: 20px;
  }

  .students-page .upload-card {
    padding: 22px;
  }

  .students-page .upload-card-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .students-page .portal-features {
    grid-template-columns: 1fr;
  }

  .students-page .portal-feature,
  .students-page .portal-feature:nth-child(2n),
  .students-page .portal-feature:nth-child(3n),
  .students-page .portal-feature:nth-child(6),
  .students-page .portal-feature:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e8edf5;
  }

  .students-page .portal-feature:last-child {
    border-bottom: 0;
  }

  .students-page .resource-card,
  .students-page .help-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }
}

/* Registration entry refinements - November 11, 2026. */
.students-page .recert-registration-entry>p{margin:18px 0}.recert-registration-links{display:grid;gap:12px;margin:20px 0}.students-page .recert-registration-links a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:16px 20px;border:1px solid #bac9e7;border-radius:8px;background:#f5f8ff;color:#17398b;text-decoration:none}.students-page .recert-registration-links a:hover{background:#eaf0ff;border-color:#2449ba}.students-page .recert-registration-links a:focus-visible{outline:3px solid #2449ba;outline-offset:3px}.recert-registration-links strong,.recert-registration-links small{display:block}.recert-registration-links strong{font-size:16px}.recert-registration-links small{margin-top:5px;font-size:13px;color:#455774}.recert-student-signin{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;text-decoration:underline}@media(max-width:600px){.students-page .recert-registration-links a{padding:14px;min-height:76px}.recert-registration-links small{line-height:1.5}}
