/* AFRIPAY CBT — National Digital Assessment Platform homepage */
.eh-national .eh-theme-toggle { display: none !important; }
.eh-national .eh-deploy-btn,
.eh-national .eh-nav-link--support { display: none; }
@media (min-width: 1100px) {
  .eh-national .eh-footer-grid--psc { grid-template-columns: 1.5fr repeat(3, 1fr); }
}
.eh-body.eh-national a.eh-login-btn,
.eh-national a.eh-login-btn {
  background: #128a4a;
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0.4rem 1.05rem;
  font-weight: 750;
  box-shadow: none;
}
.eh-body.eh-national a.eh-login-btn:hover,
.eh-national a.eh-login-btn:hover {
  background: #0e7340;
  color: #fff;
  filter: none;
  transform: none;
}

.nd-hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
  background: #0b3d2e;
}
.nd-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
}
.nd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 32, 24, 0.78) 0%, rgba(7, 32, 24, 0.42) 34%, rgba(7, 32, 24, 0.05) 58%, rgba(7, 32, 24, 0.12) 100%);
}
.nd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  min-height: 640px;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 980px) {
  .nd-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr); }
}
.nd-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--eh-sans, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 14ch;
}
.nd-hero-copy > p {
  margin: 0 0 1.1rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}
.nd-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0;
}
.nd-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}
.nd-hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.nd-btn--green { background: #128a4a; color: #fff; }
.nd-btn--green:hover { background: #0e7340; }
.nd-btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.nd-btn--line { background: #fff; color: #145c38; border-color: #cfe3d6; }
.nd-btn--block { width: 100%; }
.nd-centre-link {
  display: inline-flex;
  margin-top: 0.95rem;
  color: #d7ffe8;
  font-weight: 700;
  text-decoration: none;
}
.nd-hero-cards {
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}
.nd-float, .nd-script {
  width: min(100%, 280px);
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #122018;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.nd-float { padding: 0.85rem 0.95rem; }
.nd-float span {
  display: inline-flex;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #128a4a;
}
.nd-float--cbt span { color: #1d4ed8; }
.nd-float--ai span { color: #6d28d9; }
.nd-float strong { display: block; font-size: 0.95rem; }
.nd-float small { display: block; margin-top: 0.15rem; color: #526158; }
.nd-script { overflow: hidden; position: relative; }
.nd-script img { display: block; width: 100%; height: 168px; object-fit: cover; }
.nd-script figcaption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
}
.nd-script b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #6d28d9;
  color: #fff;
  font-size: 0.85rem;
}
.nd-script span { font-size: 0.82rem; font-weight: 700; }

.nd-section { padding: 4.2rem 0; background: #fff; }
.nd-section--soft { background: #f4f7f5; }
.nd-head { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.nd-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  color: #10241b;
}
.nd-head p { margin: 0; color: #526158; }
.nd-head--light h2, .nd-head--light p { color: #fff; }
.nd-head--light p { color: rgba(255, 255, 255, 0.78); }
.nd-kicker {
  margin: 0 0 0.35rem;
  color: #128a4a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-sol-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 980px) {
  .nd-sol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nd-sol {
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 10px 30px rgba(16, 36, 27, 0.04);
}
.nd-sol-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  color: #fff;
}
.nd-sol--blue .nd-sol-ico { background: #2563eb; }
.nd-sol--green .nd-sol-ico { background: #128a4a; }
.nd-sol--purple .nd-sol-ico { background: #7c3aed; }
.nd-sol h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.nd-sol p { margin: 0 0 0.75rem; color: #3e5248; }
.nd-sol ul { margin: 0 0 1rem; padding-left: 1.1rem; color: #24382e; }
.nd-sol li { margin: 0.28rem 0; }
.nd-sol a { color: #128a4a; font-weight: 750; text-decoration: none; }
.nd-sol--blue a { color: #1d4ed8; }
.nd-sol--purple a { color: #6d28d9; }

.nd-flow { padding: 3.5rem 0 3.8rem; background: #fff; border-top: 1px solid #eef3f0; }
.nd-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 0.4rem;
  margin: 0;
  padding: 0;
  text-align: center;
}
@media (min-width: 800px) {
  .nd-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.nd-steps span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 0.4rem;
  border-radius: 999px;
  background: #128a4a;
  color: #fff;
  font-weight: 800;
}
.nd-steps strong { display: block; font-size: 0.92rem; }

.nd-centre {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 980px) {
  .nd-centre { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
}
.nd-centre-copy h2 { margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.nd-lab {
  margin: 1rem 0;
  border-radius: 16px;
  overflow: hidden;
}
.nd-lab img { display: block; width: 100%; height: auto; }
.nd-checks { margin: 0 0 1rem; padding: 0; list-style: none; }
.nd-checks li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.35rem 0;
}
.nd-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #128a4a;
}
.nd-centre-copy h3 { margin: 0.4rem 0; font-size: 1rem; }
.nd-note { margin: 0; color: #526158; font-size: 0.92rem; }

.nd-form {
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(16, 36, 27, 0.06);
}
.nd-form h3 { margin: 0 0 0.25rem; }
.nd-form > p { margin: 0 0 0.9rem; color: #526158; }
.nd-form label {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #24382e;
}
.nd-form input, .nd-form select {
  min-height: 42px;
  border: 1px solid #d7e2db;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 500;
  background: #fff;
}
.nd-hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.nd-form-alt { margin: 0.75rem 0 0; font-size: 0.85rem; color: #526158; }
.nd-form-alt a { color: #128a4a; font-weight: 700; }

.nd-serve {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .nd-serve { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .nd-serve { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.nd-serve article {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6eee9;
}
.nd-serve img { display: block; width: 100%; height: 140px; object-fit: cover; background: #e8f5ee; }
.nd-serve div { padding: 0.7rem 0.75rem 0.85rem; }
.nd-serve strong { display: block; }
.nd-serve span { display: block; margin-top: 0.15rem; color: #526158; font-size: 0.8rem; }

.nd-security { padding: 4rem 0; background: #0c2348; color: #fff; }
.nd-sec-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.nd-sec-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 700;
}

.nd-cta { padding: 3.5rem 0; background: #f7fbf8; }
.nd-cta-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .nd-cta-grid { grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.55fr); }
}
.nd-cta h2 { margin: 0 0 0.5rem; letter-spacing: -0.03em; }
.nd-cta p { margin: 0 0 1rem; color: #3e5248; }
.nd-map { margin: 0; text-align: center; }
.nd-map img { width: min(100%, 280px); height: auto; }
.nd-map figcaption { font-weight: 750; color: #128a4a; }

.nd-faq { max-width: 820px; }
.nd-faq details {
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 12px;
  margin: 0.55rem 0;
  padding: 0.85rem 1rem;
}
.nd-faq summary { cursor: pointer; font-weight: 750; }
.nd-faq p { margin: 0.55rem 0 0; color: #3e5248; }

@media (max-width: 720px) {
  .nd-hero { min-height: 0; }
  .nd-hero-grid { min-height: 0; }
  .nd-hero-cards { justify-items: stretch; }
  .nd-float, .nd-script { width: 100%; }
  .nd-hero-shade {
    background: linear-gradient(180deg, rgba(7, 32, 24, 0.72) 0%, rgba(7, 32, 24, 0.28) 46%, rgba(7, 32, 24, 0.08) 100%);
  }
  .nd-hero-photo { object-position: 70% 28%; }
}
