:root {
  color-scheme: light;
  --ink: #172c39;
  --muted: #4c626c;
  --line: #d9e2e3;
  --ground: #f3f6f5;
  --accent: #075951;
  --accent-bg: #e7f4ef;
  --gold: #ffbd3e;
  --white: #fff;
  --radius: 12px;
  font-family: "Noto Sans Arabic",Tahoma,Arial,sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}

[hidden] {
  display: none!important;
}

::selection {
  background: #c6ede3;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: .25em;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #08796e;
  outline-offset: 3px;
}

.wrap {
  width: min(1120px,calc(100% - 56px));
  margin-inline: auto;
}

.topbar {
  background: var(--ink);
}

.topinner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar a {
  color: var(--white);
}

.topbar a:focus-visible {
  outline-color: var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.brand picture {
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 54px;
}

.staff {
  font-weight: 600;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-block: 32px 24px;
  min-height: 204px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 30px 42px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1,.staffhead h1 {
  font-size: clamp(29px,4.3vw,48px);
  line-height: 1.27;
  margin: 0 0 12px;
  font-weight: 800;
}

.hero p {
  color: #dceaea;
  margin: 0;
  font-size: 16px;
}

.horizon {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 38%;
  height: 100%;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.horizon i {
  position: absolute;
  border: 1px solid #6c8e96;
  border-radius: 50%;
  width: 330px;
  height: 330px;
  bottom: -190px;
  left: 8%;
}

.horizon i:nth-child(2) {
  width: 274px;
  height: 274px;
  bottom: -164px;
  left: 14%;
}

.horizon i:nth-child(3) {
  width: 218px;
  height: 218px;
  bottom: -138px;
  left: 20%;
  border-color: var(--gold);
}

.horizon b {
  position: absolute;
  width: 11px;
  height: 11px;
  left: 43%;
  bottom: 75px;
  background: var(--gold);
  border-radius: 50%;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 286px;
  gap: 24px;
  align-items: start;
}

.paper,.progress {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.paper h2,.progress h2,dialog h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 0 0 7px;
}

.sub {
  margin: 0 0 23px;
  color: var(--muted);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}

legend {
  padding: 0;
}

.branches,.fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.branch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 9px;
  cursor: pointer;
  margin: 0;
}

.branch small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.branch:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.branch input,.consent input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.required {
  color: #9b3925;
}

.optional {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

label,legend {
  font-weight: 700;
  display: block;
  margin-block: 0 7px;
}

input:not([type=radio],[type=checkbox]),select,button,.button {
  font: inherit;
  min-height: 46px;
  border: 1px solid #b8c9cd;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
}

input:not([type=radio],[type=checkbox]),select {
  width: 100%;
  accent-color: var(--accent);
}

select:disabled {
  color: var(--muted);
  background: #f4f7f7;
}

input[type=tel],input[type=email] {
  text-align: left;
}

.fields {
  margin-top: 16px;
}

button,.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  gap: 12px;
}

button:hover,.button:hover {
  background: #edf4f2;
  text-decoration: none;
}

button:disabled {
  opacity: .65;
  cursor: default;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.primary:hover {
  background: #064740;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.actions .primary {
  min-width: 120px;
}

.progress h2 {
  font-size: 17px;
}

.progress ol {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress li span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #eef3f3;
  border-radius: 50%;
}

.progress li[aria-current] {
  color: var(--accent);
}

.progress li[aria-current] span {
  color: white;
  background: var(--accent);
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-block: 17px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.selection,.notice {
  padding: 10px 13px;
  background: var(--accent-bg);
  border-radius: 8px;
}

.notice {
  margin-top: 15px;
  color: var(--accent);
}

.upload {
  padding: 15px;
  border: 1px dashed #8da9aa;
  border-radius: 9px;
}

.upload small {
  display: block;
  color: var(--muted);
  margin-bottom: 9px;
}

.consent {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  font-weight: 500;
}

.error {
  color: #952b20;
}

.staffhead {
  margin-block: 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.staffhead h1 {
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.load-status {
  color: var(--muted);
  margin-block: 17px 8px;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

th,td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

th {
  background: #edf3f3;
  font-size: 13px;
}

td small {
  display: block;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: #eff3f3;
  white-space: nowrap;
}

.badge[data-status=shortlist] {
  background: var(--accent-bg);
  color: var(--accent);
}

.badge[data-status=review] {
  background: #fcf1d8;
  color: #654a13;
}

dialog {
  width: min(540px,calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
}

dialog::backdrop {
  background: #172c3977;
}

.dialogHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

dl {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px 18px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review {
  margin-top: 17px;
}

.review button {
  margin-top: 10px;
}

@media(max-width:820px) {
  .layout {
    grid-template-columns: minmax(0,1fr) 205px;
    gap: 15px;
  }
  .paper,.progress {
    padding: 20px;
  }
  .filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .table table {
    min-width: 650px;
  }
}

@media(max-width:600px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .topinner {
    min-height: 68px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    height: 56px;
  }
  .topbar a {
    font-size: 12px;
  }
  .hero {
    margin-block: 18px 14px;
    padding: 24px 16px;
    min-height: 149px;
  }
  .hero p {
    font-size: 14px;
  }
  .horizon {
    opacity: .23;
    width: 44%;
  }
  .layout {
    grid-template-columns: minmax(0,1fr);
  }
  .progress {
    grid-row: 1;
    padding: 12px;
  }
  .progress h2 {
    position: absolute;
    clip-path: inset(50%);
  }
  .progress ol {
    display: flex;
    justify-content: space-between;
    margin: 0;
    gap: 6px;
  }
  .progress li {
    flex-direction: column;
    text-align: center;
    line-height: 1.35;
    font-size: 11px;
    flex: 1;
  }
  .progress li span {
    width: 25px;
    height: 25px;
  }
  .paper {
    padding: 16px;
  }
  .branches,.fields {
    grid-template-columns: 1fr;
  }
  .staffhead {
    margin-top: 20px;
  }
  .hero h1,.staffhead h1 {
    font-size: 29px;
  }
  .dashboard {
    padding: 12px;
  }
}

.login {
  max-width: 510px;
}

.login .error:empty {
  display: none;
}

/* Ufuq recruitment — revised visual system. */
:root {
  --ink: #18363e;
  --muted: #5c7276;
  --accent: #08747b;
  --accent-bg: #e9f7f6;
  --line: #dce7e7;
  --ground: #f6f8f8;
  --gold: #ffbe32;
  --pink: #ef84b4;
  --radius: 20px;
  font-size: 16px;
}
body {
  background: var(--ground);
}
.wrap {
  width: min(1240px, calc(100% - 80px));
}
.topbar {
  background: #18363e;
  border-bottom: 0;
}
.topinner {
  min-height: 100px;
}
.brand {
  gap: 24px;
  font-size: 14px;
}
.brand img {
  height: 72px;
}
.brand > span {
  border-inline-start: 1px solid #547076;
  padding-inline-start: 24px;
  color: #d8e8e9;
  font-weight: 500;
}
.topbar a:not(.brand) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #698087;
  border-radius: 10px;
  font-size: 13px;
}
.notice {
  margin-top: 20px;
  background: #fff7e4;
  color: #745616;
  padding: 8px 15px;
  font-size: 12px;
  border: 1px solid #efdfb9;
}
.layout {
  grid-template-columns: 390px minmax(0,1fr);
  gap: 64px;
  padding-block: 44px 32px;
  align-items: stretch;
}
.application-intro {
  display: flex;
  flex-direction: column;
  padding-block: 12px;
}
.intro-copy h1 {
  font-size: clamp(38px,4vw,54px);
  line-height: 1.5;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.intro-copy p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 300px;
  margin: 0;
}
.progress {
  background: none;
  border: 0;
  padding: 30px 0;
}
.progress h2 {
  display: none;
}
.progress ol {
  gap: 0;
  margin: 0;
}
.progress li {
  font-size: 14px;
  gap: 17px;
  min-height: 64px;
  position: relative;
}
.progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 1px;
  background: #cbdadb;
  right: 19px;
  top: 46px;
}
.progress li span {
  width: 40px;
  height: 40px;
  border: 1px solid #ccdcdd;
  background: #fff;
}
.progress li[aria-current] span {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px #08747b20;
}
.intro-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.intro-bottom p {
  font-size: 13px;
  font-weight: 700;
  margin: 15px 0 3px;
}
.intro-bottom small {
  font-size: 12px;
  color: var(--muted);
}
.color-line {
  display: flex;
  width: 92px;
  height: 5px;
  background: #17b4bd;
  border-radius: 5px;
  position: relative;
}
.color-line::after,.color-line::before {
  content: "";
  height: 5px;
  width: 26px;
  position: absolute;
  left: 0;
  background: var(--pink);
  border-radius: 5px;
}
.color-line::before {
  left: 33px;
  background: var(--gold);
}
.paper {
  padding: 38px;
  border: 1px solid #e0e9e9;
  box-shadow: 0 14px 40px -24px #143b4345;
  border-radius: 20px;
}
#application {
  min-height: 490px;
  display: flex;
  flex-direction: column;
}
.paper h2 {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: -.025em;
}
.sub {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 32px;
}
label,legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
fieldset {
  margin-bottom: 25px;
}
.branches {
  gap: 14px;
}
.branch {
  padding: 20px 14px;
  border-radius: 12px;
  min-height: 108px;
  gap: 10px;
  background: #fcfdfd;
  transition: border-color .18s,background-color .18s;
}
.branch:hover {
  border-color: #7aaeb0;
}
.branch:has(:checked) {
  border-color: var(--accent);
  background: #eff9f8;
  box-shadow: 0 0 0 1px var(--accent);
}
.branch small {
  margin-top: 4px;
  font-size: 12px;
}
input:not([type=radio],[type=checkbox]),select {
  min-height: 54px;
  border-color: #ccdada;
  background-color: #fff;
  border-radius: 10px;
  font-size: 16px;
  padding: 12px 15px;
}
input::placeholder {
  color: #647b80;
}
button,.button {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  transition: background-color .18s,transform .18s;
}
button:active,.button:active {
  transform: translateY(1px);
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.primary:hover {
  background: #075d63;
}
#application > .actions {
  margin-top: auto;
  padding-top: 26px;
  border-top: 0;
}
#application > .actions .primary {
  flex: 1;
  justify-content: space-between;
}
.upload {
  padding: 25px;
  background: #f8fcfc;
  border-radius: 12px;
}
.upload b {
  font-size: 16px;
}
.consent {
  font-size: 13px;
  line-height: 1.9;
}
.selection {
  font-size: 13px;
  padding: 14px;
}
.footer {
  font-size: 12px;
  margin-top: 15px;
  padding-block: 22px;
}
.staffhead {
  margin-block: 35px 28px;
}
.staffhead h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.staffhead p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.dashboard {
  padding: 0;
  overflow: hidden;
}
.dashboard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.dashboard-title h2 {
  margin: 0;
  font-size: 20px;
}
.dashboard-title span {
  font-size: 12px;
  color: var(--muted);
}
.filters {
  padding: 24px 28px;
  background: #fbfdfd;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.filters label {
  font-size: 12px;
}
.filters input,.filters select {
  font-size: 13px;
  min-height: 47px;
  padding: 10px;
}
.load-status {
  margin: 0;
  padding: 17px 28px;
  font-size: 13px;
  font-weight: 600;
}
th {
  background: #f0f6f6;
  color: #4b676c;
  font-size: 12px;
  font-weight: 600;
}
th,td {
  padding: 19px 25px;
}
td {
  font-size: 14px;
}
td:first-child {
  font-weight: 700;
}
td small {
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}
tbody tr:hover {
  background: #f8fbfb;
}
td button {
  color: var(--accent);
  border-color: #d2e5e4;
  background: #f4fbfa;
  font-size: 12px;
  padding: 8px 14px;
  white-space: nowrap;
}
.badge {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 20px;
}
.badge[data-status=new] {
  background: #e4f5f6;
  color: #086971;
}
.badge[data-status=shortlist] {
  background: #fcebf3;
  color: #8b3660;
}
.badge[data-status=review] {
  background: #fff3cf;
  color: #71500a;
}
#paging {
  padding: 18px 28px;
  margin: 0;
}
dialog {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 24px 80px #0a333c40;
}
dialog h2 {
  font-size: 25px;
}
dl {
  padding-block: 15px;
  row-gap: 14px;
  font-size: 14px;
}
@media(max-width:1000px) {
  .wrap { width: calc(100% - 48px); }
  .layout { grid-template-columns: 300px minmax(0,1fr); gap: 32px; }
  .paper { padding: 26px; }
  .dashboard { padding: 0; }
  .intro-copy h1 { font-size: 38px; }
  .branches { grid-template-columns: 1fr; }
  .branch { min-height: 80px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .wrap { width: calc(100% - 32px); }
  .topinner { min-height: 88px; }
  .brand { gap: 10px; }
  .brand img { height: 60px; }
  .brand > span { padding-inline-start: 10px; font-size: 11px; }
  .topbar a:not(.brand) { padding: 7px 10px; font-size: 11px; }
  .layout { grid-template-columns: minmax(0,1fr); gap: 18px; padding-top: 24px; }
  .application-intro { padding: 0; }
  .intro-copy h1 { font-size: 34px; line-height: 1.45; margin-bottom: 10px; }
  .intro-copy h1 br { display: none; }
  .intro-copy p { font-size: 13px; max-width: none; }
  .intro-bottom { display: none; }
  .progress { padding: 23px 0 0; }
  .progress ol { display: flex; gap: 10px; }
  .progress li { flex: 1; gap: 7px; min-height: 58px; flex-direction: column; text-align: center; font-size: 10px; }
  .progress li span { width: 30px; height: 30px; }
  .progress li::after { display: none; }
  .paper { padding: 23px 20px; border-radius: 16px; }
  #application { min-height: 420px; }
  .paper h2 { font-size: 23px; }
  .sub { font-size: 13px; margin-bottom: 24px; }
  .branches { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .branch { padding: 14px 10px; min-height: 100px; gap: 7px; font-size: 13px; }
  .branch small { font-size: 10px; }
  .branch input { width: 15px; height: 15px; }
  .staffhead h1 { font-size: 29px; }
  .staffhead p { font-size: 12px; }
  .dashboard { padding: 0; }
  .filters,.dashboard-title { padding: 18px; }
  .filters { gap: 12px; }
  .filters > div:first-child { grid-column: 1 / -1; }
  .load-status { padding: 15px 18px; }
  th,td { padding: 15px 18px; }
  .table table { min-width: 760px; }
  .notice { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition: none !important; }
}

#school { margin-bottom: 18px; }
.vacancy-list { display: grid; gap: 7px; max-height: 240px; overflow: auto; margin-bottom: 20px; }
.vacancy { font-size: 12px; justify-content: flex-start; text-align: start; min-height: 44px; }
.vacancy:disabled { opacity: 1; color: #65777b; background: #f5f7f7; border-color: #e1e8e8; }
.vacancy.open { background: #e9f7f6; color: #075d63; border-color: #96cccd; }
#vacancyManager { padding: 24px 28px; border-bottom: 1px solid var(--line); }
#vacancyManager summary { cursor: pointer; font-weight: 700; padding-block: 8px; }
#vacancyManager p { font-size: 13px; color: var(--muted); }
#manageJobs { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; margin-top: 20px; }
.vacancy-toggle { display: flex; gap: 10px; align-items: center; font-size: 13px; min-height: 44px; }
.vacancy-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  border: 1px solid #ccdada;
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--ink);
  resize: vertical;
  margin-bottom: 18px;
}
.fields + label { margin-top: 20px; }
.fields small { font-size: 11px; color: var(--muted); }
dd { white-space: pre-wrap; }

.branch:has(input:disabled) {
  background: #edf0f0;
  border-color: #e0e5e5;
  color: #647478;
  cursor: not-allowed;
}
.branch:has(input:disabled) small { color: #647478; }

.school-choices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.school-choices .branch { min-height: 90px; }
@media(max-width:400px) {
  .school-choices { grid-template-columns: 1fr; }
}
.password-settings { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.password-settings summary { cursor: pointer; font-weight: 700; }
.password-settings form { max-width: 440px; margin-top: 20px; }
.password-settings input { margin-bottom: 14px; }
