 :root {
  --aee-primary: #188754;
  --aee-primary-dark: #136a42;
  --aee-primary-soft: #e7f5ee;
}

body {
  background: #f4f6f9;
}

.campus-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(5, 18, 12, 0.84) 0%, rgba(5, 18, 12, 0.54) 42%, rgba(24, 135, 84, 0.14) 100%),
    url('../img/campus-hero.png') center center / cover no-repeat;
}

.campus-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 18, 12, 0.12) 0%, rgba(5, 18, 12, 0.04) 50%, rgba(24, 135, 84, 0.08) 100%);
  pointer-events: none;
}

.campus-hero-inner {
  padding-top: 36px;
  padding-bottom: 56px;
  z-index: 1;
  width: 100%;
}

.campus-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f4c542;
  margin-bottom: 12px;
}

.campus-title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  line-height: 0.96;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.campus-text {
  max-width: 54ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

.campus-meta {
  max-width: 380px;
  margin-left: auto;
  padding: 24px 26px;
  border-radius: 14px;
  background: rgba(13, 18, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.campus-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9fbe8;
  margin-bottom: 10px;
}

.campus-meta-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.campus-meta-list {
  margin: 0;
  padding-left: 20px;
}

.campus-meta-list li + li {
  margin-top: 8px;
}

.campus-steps {
  padding: 42px 0 12px;
}

.metric-label {
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
}

.step-card,
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}

.campus-step {
  height: 100%;
  padding: 22px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe4f0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--aee-primary-soft);
  color: var(--aee-primary);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.site-footer {
  border-top: 1px solid #dbe4f0;
  background: #f8fbff;
  padding: 18px 0 24px;
}

.auth-page {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.auth-card.registration-card {
  max-width: 980px;
}

.auth-shell {
  width: 100%;
  background: #fff;
}

.auth-hero {
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(24, 135, 84, 0.12) 0%, #f8fbff 58%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.auth-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.auth-hero p {
  margin-bottom: 0;
  color: #475569;
}

.auth-body {
  padding: 26px 28px 30px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.95rem;
}

.auth-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  color: #475569;
  font-size: 0.92rem;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

.auth-grid .mb-3 {
  margin-bottom: 0 !important;
}

.auth-grid .form-label {
  font-weight: 600;
  color: #334155;
}

.btn-primary {
  --bs-btn-bg: var(--aee-primary);
  --bs-btn-border-color: var(--aee-primary);
  --bs-btn-hover-bg: var(--aee-primary-dark);
  --bs-btn-hover-border-color: var(--aee-primary-dark);
  --bs-btn-focus-shadow-rgb: 24, 135, 84;
  --bs-btn-active-bg: var(--aee-primary-dark);
  --bs-btn-active-border-color: var(--aee-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--aee-primary);
  --bs-btn-border-color: var(--aee-primary);
  --bs-btn-hover-bg: var(--aee-primary);
  --bs-btn-hover-border-color: var(--aee-primary);
  --bs-btn-active-bg: var(--aee-primary-dark);
  --bs-btn-active-border-color: var(--aee-primary-dark);
}

.text-primary {
  color: var(--aee-primary) !important;
}

.bg-primary {
  background-color: var(--aee-primary) !important;
}

.border-primary {
  border-color: var(--aee-primary) !important;
}

@media (max-width: 900px) {
  .campus-hero {
    min-height: 460px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .campus-hero-inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .campus-title {
    max-width: none;
    font-size: 2.2rem;
  }

  .campus-meta {
    margin-left: 0;
    margin-top: 14px;
  }
}

.panel,
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel {
  padding: 24px;
}

.stat-card {
  padding: 20px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.question-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.timer-box {
  position: sticky;
  top: 12px;
  z-index: 10;
}

.result-slip-body {
  background: #d9dee7;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.result-actions {
  max-width: 850px;
  margin: 18px auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.result-page {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 28px;
  padding: 0.42in;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  line-height: 1.35;
  position: relative;
}

.result-topcode {
  position: absolute;
  right: 0.42in;
  top: 0.18in;
  font-size: 11px;
  font-weight: 700;
}

.result-header {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  gap: 12px;
  align-items: center;
  margin: 4px 0 12px;
}

.result-government-logo {
  width: 92px;
  max-height: 82px;
  object-fit: contain;
  justify-self: end;
}

.seal {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14532d;
  font-weight: 800;
  font-size: 24px;
  overflow: hidden;
}

.school-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.office-name {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.school-address {
  font-size: 11px;
  text-align: center;
}

.campus-name {
  font-weight: 700;
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.05;
  text-align: center;
}

.school-year {
  color: #1d4ed8;
  font-weight: 700;
  margin-top: 2px;
}

.result-letter {
  margin-top: 28px;
}

.result-consent {
  margin-top: 16px;
  font-size: 12px;
}

.result-consent p {
  margin-bottom: 9px;
  text-align: justify;
}

.result-examinee {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  font-size: 12px;
}

.result-examinee > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
}

.result-section-heading {
  margin: 20px 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  text-align: center;
  table-layout: fixed;
}

.result-table th,
.result-table td {
  border: 1px solid #111;
  padding: 6px 6px;
  font-size: 12px;
  font-weight: 400;
}

.result-table thead tr:first-child th {
  font-size: 13px;
  font-weight: 700;
}

.result-table thead tr:nth-child(2) th {
  font-size: 11px;
  font-weight: 700;
}

.result-note {
  font-style: italic;
  margin-top: 8px;
}

.result-interpretation-table {
  margin-top: 0;
}

.result-interpretation-table th:nth-child(1) { width: 20%; }
.result-interpretation-table th:nth-child(2) { width: 15%; }
.result-interpretation-table th:nth-child(3) { width: 12%; }
.result-interpretation-table th:nth-child(4) { width: 53%; }

.result-recommendation {
  margin: 18px 0;
  font-size: 14px;
}

.result-recommendation strong {
  text-decoration: underline;
}

.result-course-recommendations {
  margin: -8px 0 18px;
  font-size: 13px;
}

.result-course-table {
  margin-top: 0;
}

.result-course-table th:nth-child(1) { width: 9%; }
.result-course-table th:nth-child(2) { width: 36%; }
.result-course-table th:nth-child(3) { width: 17%; }
.result-course-table th:nth-child(4) { width: 17%; }
.result-course-table th:nth-child(5) { width: 21%; }

.result-course-summary {
  margin: 14px 0 20px;
  padding: 4px 0;
}

.result-course-summary p:last-child {
  margin-bottom: 0;
}


.result-signatures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
  width: 58%;
}

.result-signatures span,
.result-signatures small,
.result-signatures strong {
  display: block;
}

.result-signatures strong {
  margin-top: 24px;
  text-decoration: underline;
}

.signature {
  margin-top: 50px;
}

.result-footer {
  position: absolute;
  left: 0.42in;
  right: 0.42in;
  bottom: 0.35in;
  font-size: 11px;
  font-style: italic;
}

.result-certification-logo {
  position: absolute;
  right: 0.42in;
  bottom: 0.35in;
  width: 116px;
  height: auto;
  object-fit: contain;
}

@media print {
  body.result-slip-body {
    background: #fff;
  }

  .result-actions {
    display: none;
  }

  .result-page {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0.35in;
    box-shadow: none;
  }

  .result-topcode {
    top: 0.08in;
  }
}
