@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  --bg: #ffffff;
  --soft: #f4f7fb;
  --card: #ffffff;
  --ink: #071b3f;
  --muted: #61708a;
  --line: #dce3ed;
  --red: #df0717;
  --red-deep: #b90010;
  --red-soft: #fff0f1;
  --navy: #071b3f;
  --navy-2: #0c2b58;
  --shadow: 0 22px 60px rgba(7, 27, 63, 0.12);
  --radius: 24px;
}

[data-theme="dark"] {
  --bg: #07111f;
  --soft: #0d1a2d;
  --card: #11223a;
  --ink: #f5f8ff;
  --muted: #aab8cc;
  --line: #263a55;
  --red-soft: #2a1421;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Tajawal", "Alexandria", Arial, sans-serif;
  line-height: 1.65;
  transition: background-color 0.25s, color 0.25s;
}

html[dir="ltr"] body {
  font-family: "Alexandria", "Tajawal", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.progress {
  position: fixed;
  z-index: 100;
  top: 0;
  inset-inline: 0;
  height: 3px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff765f);
}

.header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff6d58, var(--red));
  box-shadow: 0 10px 22px rgba(223, 7, 23, 0.17);
  color: #ffffff;
  font: 800 24px "Alexandria", sans-serif;
  transform: skew(-5deg);
}

.mark span {
  font-size: 25px;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.brand b {
  color: var(--red);
  font: 800 20px "Alexandria", sans-serif;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s;
}

nav a:hover {
  color: var(--red);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language select,
.icon-btn {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}

.language select {
  padding-inline: 12px;
}

.icon-btn {
  width: 42px;
  cursor: pointer;
  font-size: 20px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 13px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 14px 30px rgba(223, 7, 23, 0.18);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}

.button.white {
  background: #ffffff;
  color: var(--red);
}

.button.mini {
  padding: 11px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 68px;
  background:
    radial-gradient(circle at 12% 6%, rgba(223, 7, 23, 0.07), transparent 30%),
    var(--bg);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-orb.one {
  width: 420px;
  height: 420px;
  inset-inline-end: -155px;
  top: 18px;
  background: rgba(223, 7, 23, 0.045);
}

.hero-orb.two {
  width: 190px;
  height: 190px;
  inset-inline-start: -90px;
  bottom: 20px;
  border: 1px dashed rgba(223, 7, 23, 0.18);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
}

.badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge {
  padding: 7px 12px;
  border: 1px solid rgba(223, 7, 23, 0.14);
  border-radius: 99px;
  background: rgba(223, 7, 23, 0.05);
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(223, 7, 23, 0.09);
}

.hero h1 {
  margin: 20px 0;
  color: var(--navy);
  font-size: clamp(40px, 4.5vw, 65px);
  letter-spacing: -0.035em;
  line-height: 1.17;
}

[data-theme="dark"] .hero h1 {
  color: var(--ink);
}

.lead {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.ghost-link {
  color: var(--ink);
  font-weight: 800;
}

.quick-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.quick-proof span {
  display: flex;
  gap: 7px;
}

.image-shell {
  position: relative;
  height: 515px;
  border-radius: 42% 42% 24px 24px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.image-shell::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 20px -16px -16px 16px;
  border: 1px solid rgba(223, 7, 23, 0.2);
  border-radius: 42% 42% 28px 28px;
}

.image-shell img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.float-card,
.stamp {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 16px 35px rgba(7, 27, 63, 0.13);
  backdrop-filter: blur(12px);
}

.float-card {
  display: grid;
  max-width: 230px;
  padding: 13px 17px;
  border-radius: 16px;
  line-height: 1.3;
}

.float-card small {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.float-card strong {
  color: var(--ink);
}

.diploma {
  bottom: 28px;
  inset-inline-start: -35px;
}

.path {
  top: 72px;
  inset-inline-end: -30px;
}

.stamp {
  display: grid;
  width: 118px;
  height: 118px;
  place-content: center;
  top: 8px;
  inset-inline-start: -36px;
  border: 2px dashed var(--red);
  border-radius: 50%;
  color: var(--ink);
  text-align: center;
  transform: rotate(-7deg);
}

.stamp span {
  color: var(--red);
  font: 800 12px "Alexandria", sans-serif;
}

.stamp b {
  max-width: 85px;
  font-size: 13px;
  line-height: 1.25;
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  padding: 22px 0;
  border-radius: 22px 22px 0 0;
  background: var(--navy);
  color: #ffffff;
}

.metrics div {
  display: grid;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

.metrics div:last-child {
  border: 0;
}

.metrics strong {
  color: #ff4452;
  font: 800 25px "Alexandria", sans-serif;
}

.metrics span {
  color: #cbd6e7;
  font-size: 13px;
}

.section {
  padding: 105px 0;
}

.soft {
  background: var(--soft);
}

.section h2,
.section-head h2 {
  margin: 13px 0 18px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.25;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head > p {
  margin-inline: auto;
  color: var(--muted);
  font-size: 18px;
}

.vision {
  position: relative;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
  gap: 42px;
}

.vision-main {
  padding: 20px 0;
}

.vision-main p,
.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.mission-card > span {
  position: absolute;
  top: -30px;
  inset-inline-end: 16px;
  color: rgba(223, 7, 23, 0.08);
  font: 900 150px "Alexandria", sans-serif;
  line-height: 1;
}

.mission-card h3 {
  position: relative;
  margin: 0 0 12px;
  color: var(--red);
  font-size: 24px;
}

.axes-list {
  display: grid;
  gap: 22px;
}

.axis-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px 44px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 42px rgba(7, 27, 63, 0.06);
}

.axis-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 5px;
  content: "";
  background: var(--red);
}

.axis-2::before {
  background: #f36a34;
}

.axis-3::before {
  background: #2150a6;
}

.axis-4::before {
  background: #17835d;
}

.axis-5::before {
  background: linear-gradient(var(--red), #2150a6);
}

.axis-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}

.axis-number {
  color: color-mix(in srgb, var(--line) 85%, var(--muted));
  font: 800 40px "Alexandria", sans-serif;
}

.axis-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.axis-head small {
  color: var(--red);
  font-weight: 900;
}

.axis-head h3 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.axis-objective {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.axis-objective span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.axis-objective p {
  margin: 4px 0 0;
  font-weight: 700;
}

.axis-detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.axis-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.axis-detail summary::-webkit-details-marker {
  display: none;
}

.axis-detail summary b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 20px;
  transition: 0.2s;
}

.axis-detail[open] summary b {
  transform: rotate(45deg);
}

.axis-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 22px;
}

.service-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--soft) 75%, var(--card));
}

.service-group h4 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 16px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.audience {
  margin-top: 18px;
  padding: 18px;
  border-radius: 15px;
  background: var(--navy);
  color: #ffffff;
}

.audience > b {
  color: #ff6972;
}

.audience > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 9px;
  color: #c9d4e6;
  font-size: 13px;
}

.axis-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.axis-detail + .axis-link {
  grid-column: 1 / -1;
}

.navy {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(223, 7, 23, 0.16), transparent 25%),
    var(--navy);
  color: #ffffff;
}

.section-head.light h2 {
  color: #ffffff;
}

.section-head.light p {
  color: #b8c7dd;
}

.navy .kicker {
  color: #ff5260;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.approach-grid article,
.steps article {
  position: relative;
  overflow: hidden;
  padding: 25px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.approach-grid article::after {
  position: absolute;
  top: -42px;
  inset-inline-end: -42px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.approach-grid article > span,
.steps article > span {
  color: #ff4b57;
  font: 800 30px "Alexandria", sans-serif;
}

.approach-grid h3,
.steps h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}

.approach-grid p,
.steps p {
  margin: 0;
  color: #b8c7dd;
  font-size: 13px;
}

.vae-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.vae-copy > p {
  color: var(--muted);
  font-size: 18px;
}

blockquote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--red);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.flow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.flow-card div {
  display: grid;
  text-align: center;
}

.flow-card div > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: auto;
  border-radius: 18px;
  background: var(--soft);
  color: var(--red);
  font: 800 16px "Alexandria", sans-serif;
}

.flow-card .active > span {
  background: var(--red);
  color: #ffffff;
}

.flow-card small {
  color: var(--muted);
  font-size: 11px;
}

.flow-card i {
  color: var(--red);
  font-size: 25px;
  font-style: normal;
}

html[dir="ltr"] .flow-card i {
  transform: rotate(180deg);
}

.vae-services {
  margin-top: 48px;
}

.vae-services > div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.vae-services h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.check-grid span {
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-grid span::first-letter {
  color: var(--red);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.registration {
  background:
    linear-gradient(90deg, rgba(223, 7, 23, 0.025), transparent 40%),
    var(--bg);
}

.register-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 70px;
}

.register-copy p {
  color: var(--muted);
  font-size: 18px;
}

.register-copy ul {
  padding: 0;
  list-style: none;
}

.register-copy li {
  margin: 13px 0;
}

.register-copy li::before {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-inline-end: 9px;
  border-radius: 50%;
  content: "✓";
  background: rgba(223, 7, 23, 0.07);
  color: var(--red);
  font-weight: 900;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.form-progress > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-progress > div span {
  color: var(--red);
  font-weight: 800;
}

.form-progress > i {
  display: block;
  overflow: hidden;
  height: 6px;
  border-radius: 10px;
  background: var(--soft);
}

.form-progress > i span {
  display: block;
  height: 100%;
  background: var(--red);
  transition: 0.25s;
}

.form-step {
  display: none;
  padding: 26px 0 15px;
}

.form-step.active {
  display: grid;
  gap: 17px;
}

.form-step label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-step input,
.form-step select,
.form-step textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(223, 7, 23, 0.05);
}

.form-step input.invalid,
.form-step select.invalid,
.form-step textarea.invalid,
.consent:has(input.invalid) {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(223, 7, 23, 0.05);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions button[disabled] {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 7, 23, 0.14);
  border-radius: 10px;
  background: rgba(223, 7, 23, 0.05);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.consent {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: start;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.consent input {
  width: 18px !important;
  margin-top: 5px;
}

.review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.review div {
  display: grid;
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
}

.review small {
  color: var(--muted);
}

.success {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 35px;
  text-align: center;
}

.success-check {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #e5f8eb;
  color: #15803d;
  font-size: 35px;
}

.success h3 {
  margin: 4px 0 0;
  font-size: 27px;
  line-height: 1.35;
}

.success > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.success-actions {
  display: flex;
  width: min(520px, 100%);
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.success-actions .button {
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
}

.faq-wrap {
  max-width: 850px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
  font-size: 17px;
  font-weight: 800;
}

.faq-item button span {
  color: var(--red);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.cta {
  padding: 55px 0;
  background: linear-gradient(125deg, #d90015, #a80013);
  color: #ffffff;
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta span {
  color: #ffd7da;
}

.cta h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 34px;
}

footer {
  padding: 60px 0 22px;
  background: #04132f;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-brand b {
  color: #ffffff;
}

.footer-brand small {
  color: #aebbd0;
}

.footer-claim {
  max-width: 320px;
  margin-top: 14px;
  color: #aebbd0;
}

.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 6px;
}

.footer-grid a,
.footer-grid p {
  margin: 0;
  color: #aebbd0;
  overflow-wrap: anywhere;
}

.copyright {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #8696af;
  font-size: 13px;
}

/* Discovery portal */
.portal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

.portal-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(7, 27, 63, 0.06);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.portal-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--red) 38%, var(--line));
  box-shadow: var(--shadow);
}

.portal-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  inset-inline-end: -85px;
  bottom: -95px;
  border: 30px solid var(--red-soft);
  border-radius: 50%;
  content: "";
}

.portal-card small,
.portal-card b {
  position: relative;
  z-index: 1;
  color: var(--red);
  font-weight: 800;
}

.portal-card h3 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 45px 0 12px;
  font-size: 27px;
  line-height: 1.25;
}

.portal-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: var(--muted);
}

.portal-icon {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.portal-main {
  background: linear-gradient(145deg, var(--navy), #123868);
  color: #fff;
}

.portal-main p { color: #b7c6da; }
.portal-main h3 { font-size: 33px; }
.portal-main::after { border-color: rgba(255, 255, 255, 0.05); }

/* Eligibility simulator */
.simulator {
  background:
    radial-gradient(circle at 10% 15%, rgba(223, 7, 23, 0.08), transparent 28%),
    var(--bg);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
}

.simulator-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
}

.simulator-copy > p { color: var(--muted); font-size: 18px; }

.simulator-meter {
  display: flex;
  align-items: center;
  margin-top: 35px;
}

.simulator-meter span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 800 12px "Alexandria", sans-serif;
}

.simulator-meter span:last-child { background: var(--red); }
.simulator-meter i { width: 48px; height: 2px; background: var(--line); }

.simulator-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.simulator-card form > label,
.simulator-card .two label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 800;
}

.simulator-card select {
  width: 100%;
  height: 53px;
  padding-inline: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  color: var(--ink);
}

.evidence-fieldset {
  margin: 4px 0 24px;
  padding: 0;
  border: 0;
}

.evidence-fieldset legend { margin-bottom: 11px; font-weight: 800; }

.evidence-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.evidence-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.evidence-options input { accent-color: var(--red); }
.evidence-options label > span { color: var(--red); }
.simulator-submit { width: 100%; }

.sim-result { text-align: center; }
.result-orbit {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) 82%, var(--line) 0);
}

.sim-result.develop .result-orbit { background: conic-gradient(#f39a14 64%, var(--line) 0); }
.sim-result.start .result-orbit { background: conic-gradient(#5375b6 45%, var(--line) 0); }
.result-orbit::after { position: absolute; inset: 10px; border-radius: 50%; background: var(--card); content: ""; }
.result-orbit span { position: relative; z-index: 1; color: var(--ink); font: 900 26px "Alexandria", sans-serif; }
.sim-result > small { color: var(--red); font-weight: 800; }
.sim-result h3 { margin: 8px 0 10px; font-size: 27px; }
.sim-result > p { color: var(--muted); }
.result-notice { margin: 20px 0; padding: 13px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13px; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Shared subpages */
.subhero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 95px;
  background:
    radial-gradient(circle at 88% 20%, rgba(223, 7, 23, 0.11), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--soft));
}

.subhero::after {
  position: absolute;
  width: 420px;
  height: 420px;
  inset-inline-end: -210px;
  bottom: -250px;
  border: 70px solid rgba(223, 7, 23, 0.05);
  border-radius: 50%;
  content: "";
}

.subhero-grid { display: grid; grid-template-columns: 1fr 0.55fr; align-items: center; gap: 80px; }
.subhero h1 { max-width: 900px; margin: 18px 0; font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.04em; line-height: 1.12; }
.subhero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 19px; }
.back-link { display: block; margin-bottom: 25px; color: var(--muted); font-size: 13px; font-weight: 800; }

.expertise-compass { position: relative; display: grid; width: 270px; height: 270px; margin: auto; place-items: center; border: 1px dashed rgba(223, 7, 23, 0.4); border-radius: 50%; }
.expertise-compass::before, .expertise-compass::after { position: absolute; inset: 28px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.expertise-compass::after { inset: 62px; background: var(--card); box-shadow: var(--shadow); }
.expertise-compass > span { position: absolute; top: -4px; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 26px; }
.expertise-compass > div { position: relative; z-index: 1; display: grid; text-align: center; color: var(--red); font: 900 38px "Alexandria", sans-serif; }
.expertise-compass small { color: var(--muted); font-size: 10px; }

.expertise-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.expertise-page-card { padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: 0 12px 34px rgba(7, 27, 63, 0.05); }
.expertise-page-card:nth-child(6), .expertise-page-card:nth-child(7) { border-color: rgba(223, 7, 23, 0.28); background: linear-gradient(145deg, var(--card), var(--red-soft)); }
.expertise-card-top { display: flex; align-items: center; justify-content: space-between; }
.expertise-index { color: color-mix(in srgb, var(--muted) 40%, transparent); font: 900 38px "Alexandria", sans-serif; }
.expertise-card-top i { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: var(--red-soft); color: var(--red); font-style: normal; font-size: 22px; }
.expertise-page-card > h2 { margin: 12px 0; font-size: 28px; }
.expertise-page-card > p { color: var(--muted); }
.expertise-page-card > p b { color: var(--red); }
.expertise-groups { display: grid; gap: 16px; margin-top: 25px; }
.expertise-groups h3 { margin: 0 0 8px; font-size: 14px; }
.expertise-groups > div > div { display: flex; flex-wrap: wrap; gap: 7px; }
.expertise-groups span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.expertise-contact { display: inline-block; margin-top: 25px; color: var(--red); font-weight: 800; }

/* Success pathways */
.stories-hero .container { position: relative; z-index: 1; }
.truth-note { max-width: 900px; margin-top: 28px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font-size: 13px; }
.story-list { display: grid; gap: 24px; }
.story-card { display: grid; grid-template-columns: 0.65fr 1fr 1.1fr 1.2fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 14px 38px rgba(7, 27, 63, 0.06); }
.story-card > div { padding: 28px; }
.story-person { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: #fff; }
.story-person > span { color: #8298b7; font: 800 13px "Alexandria", sans-serif; }
.story-person strong { margin-top: 12px; color: #fff; font: 900 48px "Alexandria", sans-serif; line-height: 1; }
.story-person small { color: #aabbd0; }
.story-person h2 { margin: 26px 0 0; font-size: 22px; }
.story-stage { border-inline-start: 1px solid var(--line); }
.story-stage > small { color: var(--red); font-weight: 900; }
.story-stage p, .story-stage li { color: var(--muted); }
.story-stage ol { margin: 16px 0 0; padding-inline-start: 20px; }
.story-stage li + li { margin-top: 10px; }
.story-stage.after { background: linear-gradient(145deg, var(--card), var(--red-soft)); }
.story-stage.after h3 { margin: 15px 0 22px; font-size: 21px; }
.proofs { display: flex; flex-wrap: wrap; gap: 7px; }
.proofs b { width: 100%; font-size: 13px; }
.proofs span { padding: 5px 8px; border-radius: 99px; background: var(--card); color: var(--muted); font-size: 11px; font-weight: 700; }

/* Diploma guide */
.diploma-stack { position: relative; width: 310px; height: 280px; margin: auto; }
.diploma-stack span { position: absolute; display: grid; width: 230px; height: 135px; place-items: center; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--navy); font: 800 22px "Alexandria", sans-serif; transform: rotate(-5deg); }
.diploma-stack span:nth-child(2) { top: 70px; inset-inline-start: 38px; transform: rotate(4deg); color: var(--red); }
.diploma-stack span:nth-child(3) { top: 140px; inset-inline-start: 76px; transform: rotate(-1deg); }
.diploma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diploma-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--card); }
.diploma-card-head { display: flex; align-items: center; gap: 13px; min-height: 115px; padding: 25px; background: var(--navy); color: #fff; }
.diploma-card.master .diploma-card-head { background: linear-gradient(135deg, var(--red-deep), var(--red)); }
.diploma-card.higher .diploma-card-head { background: #173d70; }
.diploma-card-head span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-size: 23px; }
.diploma-card-head h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.diploma-card dl { margin: 0; padding: 25px; }
.diploma-card dl > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.diploma-card dt { color: var(--red); font-size: 12px; font-weight: 900; }
.diploma-card dd { margin: 7px 0 0; color: var(--muted); }
.decision-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 25px; padding: 20px 24px; border: 1px solid rgba(223, 7, 23, 0.2); border-radius: 17px; background: var(--red-soft); }
.decision-note b { color: var(--red); }
.decision-note p { margin: 0; color: var(--muted); }
.diploma-navigator { display: grid; grid-template-columns: 0.65fr 1.35fr; align-items: start; gap: 70px; }
.diploma-navigator h2 { margin: 10px 0; font-size: 40px; }
.navigator-card { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.navigator-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.navigator-options label { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); cursor: pointer; font-weight: 700; }
.navigator-options label.selected { border-color: var(--red); background: var(--red-soft); }
.navigator-options input { position: absolute; opacity: 0; pointer-events: none; }
.navigator-options label > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--card); color: var(--red); font: 800 11px "Alexandria", sans-serif; }
.navigator-result { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--navy); color: #fff; }
.navigator-result small { color: #9eb1ca; }
.navigator-result h3 { margin: 8px 0 20px; font-size: 20px; }

@media (max-width: 1040px) {
  nav {
    position: absolute;
    top: 80px;
    inset-inline: 20px;
    display: none;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .tools .mini {
    display: none;
  }

  .hero-grid,
  .vision-grid,
  .vae-grid,
  .register-grid,
  .simulator-grid,
  .subhero-grid,
  .diploma-navigator {
    grid-template-columns: 1fr;
  }

  .portal-grid,
  .diploma-grid { grid-template-columns: 1fr 1fr; }

  .portal-main { grid-column: 1 / -1; }
  .expertise-compass, .diploma-stack { display: none; }
  .story-card { grid-template-columns: 0.7fr 1fr 1fr; }
  .story-stage.after { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); }

  .hero-copy,
  .register-copy {
    text-align: center;
  }

  .hero-actions,
  .quick-proof {
    justify-content: center;
  }

  .hero-visual {
    width: min(600px, 100%);
    margin: auto;
  }

  .axis-card {
    grid-template-columns: 1fr;
  }

  .axis-detail,
  .axis-detail + .axis-link {
    grid-column: 1;
  }

  .approach-grid,
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .register-copy ul {
    display: inline-block;
    text-align: start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .header {
    height: 70px;
  }

  .nav {
    gap: 7px;
  }

  nav {
    top: 70px;
  }

  .brand small,
  .brand > span:last-child b {
    display: none;
  }

  .mark {
    width: 42px;
    height: 42px;
  }

  .language select {
    width: 58px;
    padding-inline: 6px;
  }

  .hero {
    padding-top: 40px;
  }

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

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .image-shell {
    height: 390px;
  }

  .diploma {
    inset-inline-start: 8px;
  }

  .path {
    inset-inline-end: 5px;
  }

  .stamp {
    width: 88px;
    height: 88px;
    inset-inline-start: 4px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .metrics div:nth-child(2) {
    border: 0;
  }

  .section {
    padding: 74px 0;
  }

  .axis-card {
    gap: 20px;
    padding: 22px 18px;
  }

  .axis-head {
    grid-template-columns: auto auto 1fr;
    gap: 10px;
  }

  .axis-number {
    font-size: 28px;
  }

  .axis-icon {
    width: 42px;
    height: 42px;
  }

  .axis-head h3 {
    font-size: 19px;
  }

  .axis-groups,
  .approach-grid,
  .check-grid,
  .steps,
  .footer-grid,
  .portal-grid,
  .expertise-page-grid,
  .diploma-grid,
  .navigator-options {
    grid-template-columns: 1fr;
  }

  .portal-main { grid-column: auto; }
  .portal-card { min-height: 285px; }
  .simulator-card { padding: 23px 16px; }
  .evidence-options { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-card > div { padding: 22px; }
  .story-stage, .story-stage.after { grid-column: auto; border-inline-start: 0; border-top: 1px solid var(--line); }
  .story-person { min-height: 210px; text-align: center; align-items: center; }
  .subhero { padding: 55px 0 65px; }
  .subhero h1 { font-size: 38px; }
  .decision-note { grid-template-columns: 1fr; gap: 4px; }

  .flow-card {
    padding: 20px 10px;
  }

  .flow-card div > span {
    width: 45px;
    height: 45px;
  }

  .flow-card small {
    display: none;
  }

  .register-grid {
    gap: 35px;
  }

  .form-card {
    padding: 20px 15px;
  }

  .success {
    gap: 9px;
    padding: 16px 0 4px;
  }

  .success h3 {
    font-size: 24px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .button {
    width: 100%;
  }

  .two,
  .review {
    grid-template-columns: 1fr;
  }

  .cta {
    text-align: center;
  }

  .cta .container {
    flex-direction: column;
  }

  .cta h2 {
    font-size: 28px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-grid .brand {
    justify-content: center;
  }

  .footer-claim {
    margin-inline: auto;
  }
}

/* Personal simulator report */
.sim-result .result-orbit,
.sim-result.develop .result-orbit,
.sim-result.start .result-orbit {
  background: conic-gradient(var(--red) var(--score, 0deg), var(--line) 0);
}

.sim-result.develop .result-orbit { background: conic-gradient(#f39a14 var(--score, 0deg), var(--line) 0); }
.sim-result.start .result-orbit { background: conic-gradient(#5375b6 var(--score, 0deg), var(--line) 0); }

.personal-report-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
  text-align: start;
}

.personal-report-preview > div {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
}

.personal-report-preview small,
.report-recommendation-preview small {
  color: var(--red);
  font-weight: 900;
}

.personal-report-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-recommendation-preview {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 17px;
  border-inline-start: 4px solid var(--red);
  border-radius: 13px;
  background: var(--red-soft);
  text-align: start;
}

.report-recommendation-preview b { font-size: 13px; line-height: 1.7; }

.submitted-reference {
  display: grid;
  width: min(430px, 100%);
  min-width: 0;
  gap: 3px;
  margin: 12px auto;
  padding: 18px;
  border: 1px dashed var(--red);
  border-radius: 15px;
  background: var(--red-soft);
  overflow-wrap: anywhere;
}

.submitted-reference small,
.submitted-reference span { color: var(--muted); }
.submitted-reference strong {
  max-width: 100%;
  color: var(--red);
  font: 900 clamp(16px, 4vw, 21px) "Alexandria", sans-serif;
  direction: ltr;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-claim {
    max-width: 520px;
  }
}

/* Protected access */
.access-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle at 20% 10%, rgba(223, 7, 23, 0.12), transparent 32%), #071b3f;
}

.access-card {
  width: min(560px, 100%);
  padding: 48px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.access-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font: 900 24px "Alexandria", sans-serif;
}

.access-card small { color: var(--red); font-weight: 900; }
.access-card h1 { margin: 12px 0; color: #071b3f; }
.access-card p { margin-bottom: 24px; color: #61708a; }

/* Admin dashboard */
.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: #f2f5f9;
  color: #071b3f;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 20px;
  background: #071b3f;
  color: #fff;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
  font: 900 15px "Alexandria", sans-serif;
}

.admin-logo b { font: 800 18px "Alexandria", sans-serif; }
.admin-sidebar nav { display: grid; gap: 8px; margin: 32px 0 auto; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 12px; color: #b8c7dd; font-size: 14px; }
.admin-sidebar nav a span { width: 22px; color: #ff6972; text-align: center; }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active { background: rgba(255, 255, 255, 0.09); color: #fff; }

.admin-user { display: flex; align-items: center; gap: 10px; padding: 17px 8px 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.admin-user > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(223, 7, 23, 0.24); color: #ff6972; font-weight: 900; }
.admin-user div { display: grid; min-width: 0; }
.admin-user b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user small { color: #8fa1ba; font-size: 10px; }
.admin-signout { padding: 7px 8px; color: #8fa1ba; font-size: 11px; }

.admin-main { min-width: 0; padding: 32px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.admin-topbar small { color: var(--red); font-weight: 900; }
.admin-topbar h1 { margin: 5px 0 0; font-size: 28px; }
.admin-top-actions { display: flex; gap: 9px; }
.admin-top-actions button,
.admin-top-actions a { padding: 11px 15px; border: 1px solid #d9e0e9; border-radius: 11px; background: #fff; color: #071b3f; cursor: pointer; font-weight: 800; }
.admin-top-actions a { border-color: var(--red); background: var(--red); color: #fff; }
.admin-alert { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f4ca7a; border-radius: 12px; background: #fff6df; color: #8a5a00; font-weight: 700; }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-kpis article { display: grid; gap: 3px; padding: 20px; border: 1px solid #dfe5ed; border-radius: 17px; background: #fff; box-shadow: 0 10px 25px rgba(7, 27, 63, 0.035); }
.admin-kpis article.accent { border-color: rgba(223, 7, 23, 0.2); background: linear-gradient(145deg, #fff, #fff4f5); }
.admin-kpis small { color: #6d7a8e; font-weight: 700; }
.admin-kpis strong { font: 900 32px "Alexandria", sans-serif; }
.admin-kpis span { color: #8a96a8; font-size: 11px; }

.admin-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.75fr); overflow: hidden; min-height: 610px; border: 1px solid #dfe5ed; border-radius: 20px; background: #fff; box-shadow: 0 15px 40px rgba(7, 27, 63, 0.06); }
.applications-panel { min-width: 0; border-inline-end: 1px solid #e3e8ef; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 21px 23px 10px; }
.panel-heading h2 { display: inline; margin: 0; font-size: 19px; }
.panel-heading span { margin-inline-start: 9px; padding: 3px 8px; border-radius: 99px; background: #eef2f7; color: #6d7a8e; font-size: 10px; }
.dashboard-filters { display: grid; grid-template-columns: 1fr 180px; gap: 10px; padding: 10px 23px 16px; }
.dashboard-filters input,
.dashboard-filters select { width: 100%; height: 43px; padding-inline: 13px; border: 1px solid #dfe5ed; border-radius: 10px; outline: none; background: #f8fafc; color: #071b3f; }

.application-list { max-height: 520px; overflow-y: auto; border-top: 1px solid #edf0f4; }
.application-list > button { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 20px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: #071b3f; cursor: pointer; text-align: start; }
.application-list > button:hover,
.application-list > button.selected { background: #f8fafc; box-shadow: inset -3px 0 var(--red); }
.application-avatar { display: grid; width: 42px; height: 42px; grid-row: 1 / 3; place-items: center; border-radius: 13px; background: #fff0f1; color: var(--red); font-weight: 900; }
.application-avatar.large { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }
.application-main { display: grid; min-width: 0; }
.application-main b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.application-main small { overflow: hidden; color: #758297; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.application-date { grid-column: 2; color: #98a2b3; font-size: 10px; }
.status-chip { padding: 5px 8px; border-radius: 99px; background: #eef2f7; color: #667085; font-size: 9px; font-weight: 900; white-space: nowrap; }
.status-chip[data-status="new"] { background: #fff0f1; color: #c60817; }
.status-chip[data-status="contacted"] { background: #edf4ff; color: #2458a6; }
.status-chip[data-status="documents_pending"] { background: #fff5dd; color: #8a5a00; }
.status-chip[data-status="under_review"] { background: #f0ecff; color: #6842bd; }
.status-chip[data-status="committee_ready"] { background: #e7f7f3; color: #087b65; }
.status-chip[data-status="completed"] { background: #e8f7ed; color: #14753b; }
.empty-list,
.empty-detail { display: grid; place-items: center; padding: 70px 25px; text-align: center; }
.empty-list > span,
.empty-detail > span { color: var(--red); font-size: 37px; }
.empty-list h3,
.empty-detail h3 { margin: 8px 0; }
.empty-list p,
.empty-detail p { margin: 0; color: #758297; }

.application-detail { overflow-y: auto; max-height: 700px; padding: 24px; background: #fbfcfe; }
.application-detail form { display: grid; gap: 14px; }
.detail-head { display: flex; align-items: center; gap: 13px; padding-bottom: 15px; border-bottom: 1px solid #e5e9ef; }
.detail-head h2 { margin: 1px 0; font-size: 18px; }
.detail-head small,
.detail-head p { margin: 0; color: #7c889a; font-size: 10px; }
.detail-score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; }
.detail-score > div { overflow: hidden; height: 6px; border-radius: 99px; background: #e7ecf2; }
.detail-score > div span { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.detail-score b { color: var(--red); font: 900 14px "Alexandria", sans-serif; }
.detail-score small { grid-column: 1 / -1; color: #8b96a7; font-size: 9px; }
.detail-contact { display: grid; grid-template-columns: 1fr; gap: 6px; }
.detail-contact a { padding: 8px 10px; border: 1px solid #e1e6ed; border-radius: 9px; background: #fff; color: #637086; font-size: 11px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.detail-facts div { padding: 9px; border-radius: 9px; background: #f0f3f7; }
.detail-facts dt { color: #8591a3; font-size: 9px; }
.detail-facts dd { margin: 2px 0 0; font-size: 11px; font-weight: 800; }
.admin-documents { display: grid; gap: 7px; padding: 12px; border: 1px solid #dfe5ed; border-radius: 11px; background: #fff; }
.admin-documents > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.admin-documents > div small { color: #8b96a7; font-size: 9px; }
.admin-documents label { grid-template-columns: 1fr 105px; align-items: center; gap: 8px; padding-top: 6px; border-top: 1px solid #edf0f4; }
.admin-documents select { padding: 6px; font-size: 10px; }
.application-detail label { display: grid; gap: 5px; color: #4d5c70; font-size: 11px; font-weight: 800; }
.application-detail input,
.application-detail select,
.application-detail textarea { width: 100%; padding: 10px; border: 1px solid #dce2e9; border-radius: 9px; outline: none; background: #fff; color: #071b3f; resize: vertical; }
.application-detail input:focus,
.application-detail select:focus,
.application-detail textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223, 7, 23, 0.06); }
.save-notice { padding: 10px; border-radius: 9px; background: #eef6ff; color: #2458a6; font-size: 11px; font-weight: 800; }
.detail-save { width: 100%; }

/* Candidate portal */
.candidate-page { min-height: 70vh; padding-bottom: 100px; background: var(--soft); }
.candidate-hero { padding: 60px 0 110px; background: radial-gradient(circle at 15% 20%, rgba(223, 7, 23, 0.14), transparent 27%), var(--navy); color: #fff; }
.candidate-hero .container { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.candidate-hero-copy > span { color: #ff6772; font-weight: 900; }
.candidate-hero-copy h1 { margin: 8px 0; color: #fff; font-size: 40px; }
.candidate-hero-copy p { margin: 0; color: #bac8da; }
.candidate-reference,
.file-selector { display: grid; min-width: 250px; gap: 3px; padding: 17px 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 15px; background: rgba(255, 255, 255, 0.07); }
.candidate-reference small,
.candidate-reference span,
.file-selector span { color: #aebed2; font-size: 11px; }
.candidate-reference strong { font: 900 18px "Alexandria", sans-serif; direction: ltr; }
.file-selector select { padding: 8px; border: 0; border-radius: 8px; background: #fff; color: #071b3f; }
.candidate-overview { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 18px; margin-top: -72px; }
.progress-card,
.eligibility-summary-card,
.candidate-panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 14px 40px rgba(7, 27, 63, 0.08); }
.progress-card-head { display: flex; align-items: start; justify-content: space-between; }
.progress-card-head small,
.candidate-panel-head small { color: var(--red); font-weight: 900; }
.progress-card-head h2 { margin: 4px 0 13px; font-size: 23px; }
.progress-card-head > strong { color: var(--red); font: 900 27px "Alexandria", sans-serif; }
.candidate-progress { overflow: hidden; height: 9px; border-radius: 99px; background: var(--soft); }
.candidate-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff6d58); }
.next-action { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border-radius: 13px; background: var(--red-soft); }
.next-action > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--red); color: #fff; }
.next-action div { display: grid; }
.next-action small { color: var(--muted); }
.advisor-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.advisor-row div { display: grid; }
.advisor-row small { color: var(--muted); }
.advisor-row a,
.report-link { color: var(--red); font-weight: 900; }
.eligibility-summary-card { display: grid; align-content: center; }
.mini-score { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mini-score strong { color: var(--red); font: 900 34px "Alexandria", sans-serif; }
.mini-score span { color: var(--muted); font-size: 11px; font-weight: 800; }
.eligibility-summary-card h2 { margin: 8px 0; font-size: 20px; }
.eligibility-summary-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.candidate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.candidate-panel { box-shadow: none; }
.candidate-panel-head h2 { margin: 3px 0; font-size: 22px; }
.candidate-panel-head p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.candidate-timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 25px 0 0; padding: 0; list-style: none; }
.candidate-timeline li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.candidate-timeline li::before { position: absolute; top: 19px; inset-inline-start: calc(50% + 20px); width: calc(100% - 40px); height: 2px; background: var(--line); content: ""; }
.candidate-timeline li:last-child::before { display: none; }
.candidate-timeline li > span { position: relative; z-index: 1; display: grid; width: 39px; height: 39px; place-items: center; border: 3px solid var(--card); border-radius: 50%; background: var(--soft); color: var(--muted); font: 800 9px "Alexandria", sans-serif; box-shadow: 0 0 0 1px var(--line); }
.candidate-timeline li.done > span,
.candidate-timeline li.current > span { background: var(--red); color: #fff; box-shadow: 0 0 0 1px var(--red); }
.candidate-timeline li.done::before { background: var(--red); }
.candidate-timeline li div { display: grid; }
.candidate-timeline b { font-size: 10px; }
.candidate-timeline small { color: var(--muted); font-size: 9px; }
.document-list { display: grid; gap: 8px; margin-top: 17px; }
.document-list > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.document-check { display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--line); border-radius: 7px; color: #fff; }
.document-check.received { border-color: #e4a31a; background: #e4a31a; }
.document-check.validated { border-color: #16a36a; background: #16a36a; }
.document-list b { font-size: 12px; }
.document-list small { padding: 4px 7px; border-radius: 99px; color: #8a5a00; background: #fff5dd; font-size: 9px; font-weight: 900; }
.document-list small[data-doc-status="validated"] { color: #14753b; background: #e8f7ed; }
.document-list small[data-doc-status="received"] { color: #2458a6; background: #edf4ff; }
.evidence-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 17px; }
.evidence-columns > div { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: 13px; background: var(--soft); }
.evidence-columns h3 { margin: 0 0 5px; font-size: 14px; }
.evidence-columns span { color: var(--muted); font-size: 11px; }
.activity-list { display: grid; gap: 16px; margin-top: 20px; }
.activity-list > div { display: grid; grid-template-columns: auto 1fr; gap: 11px; }
.activity-list > div > span { width: 10px; height: 10px; margin-top: 7px; border: 3px solid var(--red-soft); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.activity-list b { font-size: 12px; }
.activity-list p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.activity-list small { color: var(--muted); font-size: 9px; }
.candidate-empty { display: grid; width: min(680px, calc(100% - 30px)); min-height: 520px; place-items: center; align-content: center; gap: 9px; margin: auto; padding: 50px; text-align: center; }
.candidate-empty-icon { color: var(--red); font-size: 58px; }
.candidate-empty small { color: var(--red); font-weight: 900; }
.candidate-empty h1 { margin: 0; font-size: 32px; }
.candidate-empty p { max-width: 580px; margin: 0 0 10px; color: var(--muted); }
.candidate-empty b { direction: ltr; }

/* Printable personal report */
.report-page { min-height: 100vh; padding: 35px; background: #e9edf2; color: #071b3f; }
.report-toolbar { display: flex; width: min(900px, 100%); align-items: center; justify-content: space-between; margin: 0 auto 18px; }
.report-toolbar a { color: #61708a; font-weight: 800; }
.report-sheet { width: min(900px, 100%); min-height: 1100px; margin: auto; padding: 55px; background: #fff; box-shadow: 0 20px 55px rgba(7, 27, 63, 0.13); }
.report-sheet > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; border-bottom: 2px solid #071b3f; }
.report-sheet > header > div { display: grid; }
.report-sheet > header > div:first-child { grid-template-columns: auto 1fr; column-gap: 10px; }
.report-sheet > header > div:first-child > span { display: grid; width: 45px; height: 45px; grid-row: 1 / 3; place-items: center; border-radius: 12px; background: var(--red); color: #fff; font: 900 15px "Alexandria", sans-serif; }
.report-sheet > header b { font: 900 19px "Alexandria", sans-serif; }
.report-sheet > header small { color: #758297; }
.report-sheet > header > div:last-child { text-align: end; }
.report-sheet > header strong { color: var(--red); font: 900 15px "Alexandria", sans-serif; direction: ltr; }
.report-intro { padding: 45px 0 28px; }
.report-intro small { color: var(--red); font-weight: 900; }
.report-intro h1 { max-width: 700px; margin: 8px 0; font-size: 35px; line-height: 1.25; }
.report-intro p { color: #61708a; }
.report-score-row { display: grid; grid-template-columns: 180px 1fr; gap: 25px; }
.report-score { display: grid; place-content: center; border-radius: 20px; background: #071b3f; color: #fff; text-align: center; }
.report-score strong { font: 900 38px "Alexandria", sans-serif; }
.report-score span { color: #b9c6d7; }
.report-score-row dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.report-score-row dl div { padding: 13px; border-radius: 11px; background: #f2f5f8; }
.report-score-row dt { color: #758297; font-size: 11px; }
.report-score-row dd { margin: 2px 0 0; font-weight: 800; }
.report-recommendation { margin: 30px 0; padding: 22px; border-inline-start: 5px solid var(--red); background: #fff0f1; }
.report-recommendation small { color: var(--red); font-weight: 900; }
.report-recommendation h2 { margin: 5px 0; font-size: 19px; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.report-columns > div { padding: 20px; border: 1px solid #dce3ed; border-radius: 15px; }
.report-columns h3 { margin-top: 0; }
.report-columns p { color: #61708a; font-size: 13px; }
.report-status { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; margin-top: 28px; }
.report-status div { display: grid; padding: 14px; border-radius: 11px; background: #f2f5f8; }
.report-status small { color: #758297; }
.report-sheet > footer { margin-top: 55px; padding-top: 20px; border-top: 1px solid #dce3ed; background: transparent; color: #61708a; text-align: center; }
.report-sheet > footer p { margin: 0 auto 8px; font-size: 11px; }
.report-sheet > footer span { font-size: 10px; }

@media (max-width: 1120px) {
  .admin-shell { grid-template-columns: 85px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 12px; }
  .admin-logo b,
  .admin-sidebar nav a:not(.active) { font-size: 0; }
  .admin-sidebar nav a { justify-content: center; }
  .admin-sidebar nav a.active { font-size: 0; }
  .admin-sidebar nav a span { font-size: 18px; }
  .admin-user div,
  .admin-signout { display: none; }
  .admin-user { justify-content: center; }
  .admin-workspace { grid-template-columns: 1fr 360px; }
  .candidate-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 25px; }
  .candidate-timeline li:nth-child(3)::before,
  .candidate-timeline li:nth-child(6)::before { display: none; }
}

@media (max-width: 850px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 15px; padding: 12px 18px; }
  .admin-logo { padding: 0; border: 0; }
  .admin-logo b { display: block; font-size: 14px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; margin: 0 0 0 auto; }
  .admin-sidebar nav a,
  .admin-sidebar nav a.active { width: 42px; flex: 0 0 auto; font-size: 0; }
  .admin-user { display: none; }
  .admin-main { padding: 20px; }
  .admin-topbar { align-items: start; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-top-actions { flex-direction: column; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .admin-workspace { grid-template-columns: 1fr; }
  .applications-panel { border-inline-end: 0; }
  .application-detail { border-top: 1px solid #e3e8ef; }
  .candidate-overview,
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-hero .container { align-items: start; flex-direction: column; }
  .candidate-reference,
  .file-selector { min-width: min(100%, 360px); }
}

@media (max-width: 680px) {
  .personal-report-preview,
  .evidence-columns,
  .report-columns,
  .report-score-row,
  .report-status { grid-template-columns: 1fr; }
  .success .button { width: 100%; margin: 5px 0 !important; }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-grid .brand { justify-content: center; }
  .footer-claim { margin-inline: auto; }
  .admin-main { padding: 14px; }
  .admin-topbar { flex-direction: column; }
  .admin-top-actions { width: 100%; flex-direction: row; }
  .admin-top-actions > * { flex: 1; text-align: center; font-size: 11px; }
  .admin-kpis { gap: 8px; }
  .admin-kpis article { padding: 14px; }
  .admin-kpis strong { font-size: 25px; }
  .dashboard-filters { grid-template-columns: 1fr; }
  .application-list > button { grid-template-columns: auto minmax(0, 1fr); }
  .status-chip { grid-column: 2; justify-self: start; }
  .application-date { display: none; }
  .candidate-hero { padding: 42px 0 95px; }
  .candidate-hero-copy h1 { font-size: 31px; }
  .candidate-overview { margin-top: -55px; }
  .progress-card,
  .eligibility-summary-card,
  .candidate-panel { padding: 20px 16px; }
  .advisor-row { align-items: start; flex-direction: column; }
  .candidate-timeline { grid-template-columns: repeat(2, 1fr); }
  .candidate-timeline li:nth-child(2)::before,
  .candidate-timeline li:nth-child(4)::before { display: none; }
  .candidate-timeline li:nth-child(3)::before { display: block; }
  .document-list > div { grid-template-columns: auto 1fr; }
  .document-list small { grid-column: 2; justify-self: start; }
  .report-page { padding: 0; background: #fff; }
  .report-toolbar { padding: 12px; }
  .report-sheet { min-height: 0; padding: 25px 18px; box-shadow: none; }
  .report-sheet > header { align-items: start; gap: 15px; }
  .report-sheet > header > div:first-child small { display: none; }
  .report-intro h1 { font-size: 28px; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  .report-page { padding: 0; background: #fff; }
  .report-toolbar { display: none; }
  .report-sheet { width: 100%; min-height: 0; padding: 15mm; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
