@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/Inter-ExtraBold.woff') format('woff'); }
:root {
  --petrol: #243235; --petrol-2: #1b2729; --teal: #1a7f82; --teal-d: #136265; --mint: #48c2c5;
  --wash: #e9f6f6; --line: #d3e8e8; --ink: #1c2a2c; --muted: #4d5f61; --ok: #1f8a4c; --err: #b3261e; --warn: #b5541b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { font-size: 14.5px; }
body { margin: 0; font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #eef7f7; line-height: 1.5; font-size: 1rem; }
img { max-width: 100%; }
a { color: var(--teal); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.top { background: var(--petrol); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand img { height: 40px; width: auto; }
.brand-tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); border-inline-start: 1px solid rgba(255,255,255,.25); padding-inline-start: .75rem; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: #d7eaeb; text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: .45rem .8rem; font: inherit; font-weight: 600; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .75rem; }
  .nav.open { display: flex; }
  .brand-tag { display: none; }
}
.main { padding-block: 2rem 3rem; min-height: 70vh; }
.foot { background: var(--petrol-2); color: #a9c3c4; font-size: .85rem; padding: 1.2rem 0; }
.foot a { color: #d7eaeb; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .4rem; line-height: 1.2; }
h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.08rem; margin: 1.2rem 0 .5rem; }
.lead { color: var(--muted); margin-top: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: 0 10px 26px rgba(26,64,66,.06); }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1.2rem 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; border-top: 4px solid var(--mint); }
.stat b { display: block; font-size: 1.8rem; color: var(--petrol); }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; font-size: .95rem; border-radius: 10px; padding: .65rem 1.15rem; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn-ghost { background: #fff; color: var(--teal); }
.btn-ghost:hover { background: var(--wash); color: var(--teal-d); }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--err); border-color: #e7b8b5; }
.btn-danger:hover { background: #fdeceb; border-color: var(--err); color: var(--err); }
.btn-wa { background: #1fa855; border-color: #1fa855; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; font-weight: 600; margin: 0 0 1rem; }
.flash-ok { background: #e3f5ea; color: #155f35; border: 1px solid #b9e3c8; }
.flash-err { background: #fdeceb; color: var(--err); border: 1px solid #f2c4c0; }
.flash-info { background: var(--wash); color: var(--petrol); border: 1px solid var(--line); }
form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-weight: 600; font-size: .92rem; margin: .7rem 0 .3rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1.5px solid #c9dfdf; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(72,194,197,.35); border-color: var(--teal); }
textarea { min-height: 120px; }
.hint { color: var(--muted); font-size: .85rem; margin: .25rem 0 0; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: start; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { background: var(--petrol); color: #e6f4f4; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--wash); color: var(--teal-d); }
.badge-ok { background: #e3f5ea; color: #155f35; }
.badge-warn { background: #fff1e6; color: var(--warn); }
.badge-err { background: #fdeceb; color: var(--err); }
.badge-dark { background: var(--petrol); color: #fff; }
.progress { height: 10px; background: #dcecec; border-radius: 99px; overflow: hidden; margin: .5rem 0 .2rem; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--teal)); border-radius: 99px; }
.course-card h3 { margin: .2rem 0 .3rem; }
.course-card .code { font-weight: 800; color: var(--teal); font-size: .85rem; letter-spacing: .04em; }
.course-card p { color: var(--muted); margin: .2rem 0; font-size: .93rem; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.lessons li:last-child { border-bottom: 0; }
.lessons a { font-weight: 600; text-decoration: none; color: var(--ink); }
.lessons a:hover { color: var(--teal); }
.module-title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin: 1.2rem 0 .3rem; }
.tick { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: #dcecec; color: #fff; font-size: .8rem; flex: none; }
.tick.done { background: var(--ok); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 1rem 0; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-body { font-size: 1.02rem; }
.lesson-body h3 { color: var(--petrol); }
.lesson-body li { margin: .25rem 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }
.q { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q p { font-weight: 700; margin: 0 0 .5rem; }
.q label { font-weight: 500; display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.q label:hover { background: #f6fbfb; }
.q .right { border-color: #9fd6b4; background: #eef9f2; }
.q .wrong { border-color: #f0b9b5; background: #fdf1f0; }
.login-box { max-width: 440px; margin: 2rem auto; }
.code-show { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; background: var(--wash); border: 2px dashed var(--mint); border-radius: 12px; padding: .6rem 1rem; display: inline-block; color: var(--petrol); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.inline-form { display: inline; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.search { display: flex; gap: .5rem; }
.search input { min-width: 220px; }
details.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; margin: .8rem 0; }
details.box summary { cursor: pointer; font-weight: 700; }

/* ===================== v2: portals, live sessions, attendance, evaluation ===================== */
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--petrol); border-color: var(--petrol); }
.btn-dark:hover { background: #12191a; border-color: #12191a; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; color: #1f1f1f; }
.btn-google .star, .btn-google span { color: #f5b301; }
.btn-live { background: #d93025; border-color: #d93025; }
.btn-live:hover { background: #b3261e; border-color: #b3261e; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.top-cta { margin-inline-start: auto; }
.nav-google { color: #ffd666 !important; }
@media (max-width: 760px) {
  .top-inner { gap: .5rem; }
  .brand img { height: 32px; }
  .top-cta { order: 2; padding: .45rem .7rem; font-size: .85rem; }
  .menu-btn { order: 3; padding: .45rem .7rem; }
  .nav { order: 4; }
}

.hero-portal { text-align: center; padding: 1.5rem 0 1rem; }
.hero-portal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--petrol); }
.portal-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; margin: 1.2rem 0 1.5rem; }
.portal-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.8rem; box-shadow: 0 16px 40px rgba(26,64,66,.08); position: relative; overflow: hidden; }
.portal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--mint), var(--teal)); }
.portal-admin::before { background: linear-gradient(90deg, var(--petrol), #4d6a6e); }
.portal-card h2 { margin: .8rem 0 .4rem; font-size: 1.5rem; }
.portal-card p { color: var(--muted); }
.portal-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--wash); color: var(--teal); }
.portal-admin .portal-icon { background: #e7eced; color: var(--petrol); }
.portal-links { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }

.login-wide { max-width: 640px; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.4rem 0 .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.live-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff4f3; border: 1.5px solid #f3b7b2; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.badge-live { background: #d93025; color: #fff; }

.course-buttons { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.course-btn { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; min-height: 150px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.course-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,64,66,.12); border-color: var(--mint); }
.course-btn strong { font-size: 1.05rem; line-height: 1.3; }
.course-btn .small { color: var(--muted); margin-top: auto; }
.course-btn-top { display: flex; justify-content: space-between; align-items: center; }
.course-btn .code { font-weight: 800; color: var(--teal); font-size: .8rem; letter-spacing: .05em; }
.course-btn .lock { font-size: 1.2rem; }
.course-btn.is-locked { background: #f7fbfb; }
.course-btn.is-open { border-color: #9fd9da; }

.quick-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 2rem; }
.quick { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.quick:hover { border-color: var(--mint); }
.quick b { font-size: 1.02rem; }
.quick span { color: var(--muted); font-size: .88rem; }
.quick-google { background: #fffbea; border-color: #f4e1a1; }

.session-card h3 { margin: .5rem 0 .2rem; }
.session-live { border: 2px solid #d93025; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .9rem 0 0; font-size: .93rem; }
.meta dt { font-weight: 700; color: var(--muted); }
.meta dd { margin: 0; }

.sheet-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem 1.2rem; margin-bottom: 1rem; }
.sheet-info span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.sig-pad-wrap { position: relative; max-width: 700px; }
.sig-pad { width: 100%; aspect-ratio: 700 / 220; height: auto; border: 2px dashed #9fd0d1; border-radius: 12px; background: #fff; touch-action: none; display: block; cursor: crosshair; }
.sig-clear { position: absolute; top: .5rem; right: .5rem; }
.sig-img { max-width: 320px; border: 1px solid var(--line); border-radius: 8px; display: block; }
.sig-sm { max-height: 44px; max-width: 150px; border: 0; }

.thanks { text-align: center; max-width: 640px; margin: 1rem auto; padding: 2rem 1.6rem; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: #e3f5ea; color: var(--ok); font-size: 2rem; display: grid; place-items: center; margin: 0 auto .8rem; font-weight: 800; }
.eval-form textarea { min-height: 90px; }
.rating-row { border: 0; padding: .7rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.rating-row legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .3rem; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; position: relative; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { margin: 0; font-size: 2rem; line-height: 1; color: #cfdede; cursor: pointer; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5b301; }
.stars input:focus-visible + label { outline: 3px solid rgba(72,194,197,.5); border-radius: 4px; }
.seg { display: flex; gap: .5rem; }
.seg label { margin: 0; display: flex; gap: .4rem; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: .45rem .9rem; font-weight: 600; cursor: pointer; }

.unlock { max-width: 520px; margin: 1rem auto; text-align: center; }
.unlock input { text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .15em; text-transform: uppercase; }
.lock-icon { font-size: 2.6rem; }
.key-box { max-width: 420px; margin: 2.5rem auto; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); background: #fff; }
.tabs a.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; }
.avg { font-size: 1.6rem; font-weight: 800; color: var(--petrol); }
@media print { .top, .foot, .no-print { display: none !important; } body { background: #fff; } }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; }
.two-col > .card + .card, .two-col > div > .card + .card { margin-top: 1rem; }
.share-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.share-qr { width: 170px; height: 170px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.share-qr svg { width: 100%; height: 100%; display: block; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.copy-row input { flex: 1 1 260px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
@media (max-width: 600px) { .share-card { grid-template-columns: 1fr; } .share-qr { margin: 0 auto; } }
.code-box { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; background: #fff; border: 2px solid var(--mint); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.code-box > div { flex: 1 1 220px; }
.code-box label { margin-top: 0; }
.code-box input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.module-check { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #f3fafa; border: 1px dashed #9fd0d1; border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0 .2rem; font-size: .93rem; }
.lesson-body [dir=rtl] { display: block; text-align: end; font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; color: var(--teal-d); }
.lesson-body h4 [dir=rtl] { display: inline; }
.resume-overlay { position: absolute; inset: 0; background: rgba(20, 32, 34, .86); color: #fff; display: grid; place-items: center; text-align: center; padding: 1rem; z-index: 2; }
.resume-overlay[hidden] { display: none; }
.resume-overlay .resume-msg { font-weight: 700; font-size: 1.05rem; margin: 0 0 .4rem; }
.resume-overlay .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.resume-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-inline-start: 5px solid var(--mint); }
.cert-ready { background: #f2fbf6; border: 1.5px solid #b9e3c8; border-radius: 14px; padding: 1.1rem; margin: 1rem 0; }
.course-btn .resume { color: var(--teal); font-weight: 700; }
@media (max-width: 600px) {
  .resume-overlay .resume-msg { font-size: .92rem; }
  .resume-overlay .actions { gap: .35rem; margin-top: .5rem; }
  .resume-overlay .btn-lg { padding: .45rem .8rem; font-size: .85rem; }
}

/* ===================== v4: professional look – photos, icons, call buttons, app tab bar ===================== */
body { background: #f2f7f7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.01em; }
.ico { flex: none; vertical-align: middle; }
.top { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.nav a { display: inline-flex; align-items: center; gap: .4rem; }
.nav a .ico { opacity: .85; }
.top-call { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: .45rem .8rem; border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; margin-inline-start: auto; }
.top-call:hover { background: rgba(255,255,255,.1); }
.top-call .ico { color: var(--mint); }
.top-cta { margin-inline-start: 0; }
.area-public .top-call + .menu-btn, .area-public .top-call + .nav { margin-inline-start: 0; }
@media (max-width: 760px) {
  .top-call span { display: none; }
  .top-call { padding: .5rem; margin-inline-start: auto; }
  .top-cta { padding: .45rem .7rem; }
}
.btn { border-radius: 12px; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.card { border-radius: 16px; box-shadow: 0 1px 2px rgba(16,40,42,.04), 0 10px 30px rgba(16,40,42,.06); }

/* Floating call / WhatsApp buttons */
.fab { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.fab-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22); text-decoration: none; transition: transform .15s; }
.fab-btn:hover { transform: scale(1.06); }
.fab-call { background: var(--teal); }
.fab-wa { background: #1fa855; }
@media print { .fab, .tabbar { display: none !important; } }

/* Candidate app tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 760px) {
  .has-tabbar .fab { display: none; }
  .has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16,40,42,.08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #6a7c7e; font-size: .68rem; font-weight: 600; padding: 4px 0; border-radius: 10px; }
  .tabbar a.on { color: var(--teal); background: var(--wash); }
  .tabbar .tab-call { color: #fff; background: var(--teal); margin: 0 4px; }
}

/* Footer */
.foot { padding: 2.2rem 0 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.foot-grid h4 { color: #fff; margin: 0 0 .5rem; font-size: .95rem; }
.foot-grid p { margin: 0; line-height: 1.9; }
.foot-grid a, .foot-grid span { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.foot-logo { height: 38px; margin-bottom: .5rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1rem; font-size: .8rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Landing page */
.main-bare { min-height: 70vh; }
.hero { position: relative; color: #fff; background: #1b2729 center / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,33,35,.94) 0%, rgba(20,33,35,.82) 42%, rgba(20,33,35,.25) 100%); }
.hero-inner { position: relative; padding: 4.5rem 0 7.5rem; max-width: 640px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); background: rgba(72,194,197,.14); border: 1px solid rgba(72,194,197,.35); padding: .35rem .8rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin: 1rem 0 .7rem; line-height: 1.08; }
.hero p { color: #d7eaeb; font-size: 1.1rem; margin: 0 0 1.5rem; }
.hero .actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .actions .btn-ghost:hover { background: rgba(255,255,255,.1); }
.portal-cards { position: relative; margin-top: -5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; z-index: 2; }
.pcard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(16,40,42,.16); display: flex; flex-direction: column; }
.pcard-img { height: 110px; background: center / cover no-repeat; position: relative; }
.pcard-img .pill { position: absolute; left: 1rem; bottom: -18px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(26,127,130,.35); }
.pcard.admin .pill { background: var(--petrol); }
.pcard-body { padding: 1.5rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.pcard-body h2 { margin: .1rem 0 .2rem; font-size: 1.2rem; }
.pcard-body p { color: var(--muted); margin: 0 0 .8rem; font-size: .92rem; }
.pcard-body ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; }
.pcard-body li { display: flex; gap: .5rem; align-items: center; color: var(--ink); font-size: .95rem; }
.pcard-body li .ico { color: var(--teal); }
.pcard-body .actions { margin-top: auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--wash); color: var(--teal); margin-bottom: .6rem; }
.feature b { display: block; margin-bottom: .2rem; }
.feature span { color: var(--muted); font-size: .9rem; }
.section-title { text-align: center; margin: 3rem 0 1.2rem; }
.section-title h2 { margin: 0 0 .3rem; font-size: 1.6rem; }
.section-title p { margin: 0; color: var(--muted); }
.course-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cstrip { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.cstrip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cstrip div { padding: .8rem 1rem 1rem; }
.cstrip b { display: block; line-height: 1.3; }
.cstrip span { color: var(--muted); font-size: .85rem; }
.accred { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.6rem 2.6rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin: 2.5rem 0; }
.accred img { height: 46px; width: auto; filter: grayscale(.15); }
.help-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--petrol); color: #fff; border-radius: 20px; overflow: hidden; margin: 2.5rem 0 3rem; }
.help-band .txt { padding: 2rem; }
.help-band h2 { color: #fff; margin: 0 0 .4rem; }
.help-band p { color: #c9dfe0; margin: 0 0 1.2rem; }
.help-band .img { background: center / cover no-repeat; min-height: 220px; }
.btn-call { background: #fff; color: var(--petrol); border-color: #fff; }
.btn-call:hover { background: #e8f3f3; color: var(--petrol); border-color: #e8f3f3; }
.btn-wa:hover { background: #178f47; border-color: #178f47; }
@media (max-width: 760px) {
  .hero-inner { padding: 2.6rem 0 6rem; }
  .hero::before { background: linear-gradient(180deg, rgba(20,33,35,.88), rgba(20,33,35,.78)); }
  .help-band { grid-template-columns: 1fr; }
  .help-band .img { min-height: 160px; order: -1; }
}

/* Login / sign-up with photo */
.auth { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(16,40,42,.12); max-width: 1000px; margin: 1rem auto; }
.auth-photo { position: relative; background: center / cover no-repeat; min-height: 520px; color: #fff; display: flex; align-items: flex-end; }
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,35,.1) 30%, rgba(20,33,35,.9)); }
.auth-photo .cap { position: relative; padding: 1.6rem; }
.auth-photo .cap b { font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.auth-photo .cap span { color: #d7eaeb; font-size: .95rem; }
.auth-form { padding: 2.2rem 2rem; }
.auth-form h1 { font-size: 1.7rem; }
.auth .login-box { margin: 0; max-width: none; box-shadow: none; border: 0; padding: 0; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-photo { min-height: 170px; }
  .auth-photo .cap { padding: 1rem 1.2rem; }
  .auth-form { padding: 1.5rem 1.2rem; }
}

/* Dashboard */
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; background: linear-gradient(110deg, var(--petrol) 0%, #2c4447 60%, var(--teal) 140%); color: #fff; border-radius: 20px; padding: 1.5rem 1.6rem; margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(72,194,197,.16); }
.welcome h1 { color: #fff; margin: 0 0 .2rem; font-size: 1.55rem; }
.welcome p { color: #cfe3e3; margin: 0; }
.welcome .btn { position: relative; z-index: 1; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--petrol); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: .6rem; }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; } .welcome .btn-live { display: none; } }
.code-box { background: #fff; border: 1.5px dashed #9fd0d1; border-radius: 16px; }
.ccards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ccard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(16,40,42,.06); }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,40,42,.14); }
.ccard-img { position: relative; aspect-ratio: 16 / 9; background: #dfeeee center / cover no-repeat; }
.ccard-img .tag { position: absolute; left: .7rem; top: .7rem; background: rgba(20,33,35,.82); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 8px; }
.ccard-img .state { position: absolute; right: .7rem; top: .7rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.ccard-img .tag-free { left: auto; right: 3.3rem; background: #B45309; }
.ccard.is-free .ccard-cta { color: #B45309; }
.ccard.is-locked .ccard-img::after { content: ""; position: absolute; inset: 0; background: rgba(20,33,35,.35); }
.ccard.is-locked .state { color: var(--petrol); z-index: 1; }
.ccard.is-done .state { background: var(--ok); color: #fff; }
.ccard-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ccard-body strong { font-size: 1.02rem; line-height: 1.3; }
.ccard-body .small { color: var(--muted); }
.ccard-body .resume { color: var(--teal); font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; }
.ccard-cta { margin-top: auto; padding-top: .4rem; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: .35rem; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-top: 2rem; }
.tile { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--mint); transform: translateY(-2px); }
.tile .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--wash); color: var(--teal); }
.tile b { font-size: .98rem; }
.tile span { color: var(--muted); font-size: .84rem; }
.tile-google .ti { background: #fff6d6; color: #d99a00; }
.tile-call .ti { background: var(--teal); color: #fff; }
.tile-wa .ti { background: #e3f6ea; color: #1fa855; }
.course-hero { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 1.4rem; min-height: 200px; background: #1b2729 center / cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.course-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,35,.15), rgba(20,33,35,.88)); }
.course-hero .inner { position: relative; padding: 1.4rem 1.5rem; }
.course-hero h1 { color: #fff; margin: .35rem 0 .2rem; }
.course-hero p { color: #d7eaeb; margin: 0; }
.help-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; margin-top: 1.4rem; }
.help-card b { display: block; }
.help-card span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .has-tabbar .top-call { display: none; }
  .course-hero p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .course-hero { min-height: 170px; }
}
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem 1.2rem; }
.acct-grid span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.acct-grid b { font-weight: 600; word-break: break-word; }
.two-col > .card + .card { margin-top: 0; }

/* original-colour logo on a white card over dark header/footer */
.brand img, .foot-logo { background: #fff; padding: 6px 12px; border-radius: 10px; box-sizing: content-box; }
@media (max-width: 640px) { .brand img { padding: 4px 9px; } }

/* biometric sign-in (passkeys) */
.btn-pk { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: var(--petrol); color: #fff; padding: .85rem 1rem; font-size: 1rem; }
.btn-pk:hover { filter: brightness(1.1); }
.pk-login .divider { margin-top: 1.1rem; }
.pk-msg { margin: .7rem 0 0; }
.pk-offer { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #E6F4F4, #fff); border: 1px solid #BFE0E1; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.2rem; }
.pk-offer[hidden] { display: none; }
.pk-ico { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--petrol); color: #fff; display: grid; place-items: center; }
.pk-txt { flex: 1; min-width: 0; }
.pk-txt b { display: block; font-size: 1.05rem; }
.pk-txt span { color: var(--muted, #5b6b6d); font-size: .92rem; }
.pk-btns { display: flex; gap: .5rem; flex: none; }
.pk-card { margin-top: 1.2rem; }
.pk-card h3 { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 640px) { .pk-offer { flex-wrap: wrap; } .pk-btns { width: 100%; } .pk-btns .btn { flex: 1; } }

/* admin certificate upload */
.cert-upload { margin: 0 0 1.2rem; }
.cert-upload > summary { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.cert-upload[open] { border-color: var(--mint); }

/* course attendance (start of each online course) */
.att-start .step-pill { display: inline-block; background: var(--wash); color: var(--teal-d); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.att-start h1 { margin: .5rem 0 .2rem; }
.sig-thumb { height: 40px; max-width: 140px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* candidate dashboard: Online course + Certificate locker at the top */
.welcome-btns { display: flex; flex-direction: column; gap: .6rem; position: relative; z-index: 1; }
.welcome-btns .btn { justify-content: center; display: inline-flex; align-items: center; gap: .5rem; }
.btn-locker { background: #fff; color: var(--petrol); border: 0; }
.btn-locker:hover { background: var(--wash); color: var(--petrol); }
@media (max-width: 760px) {
  .welcome .welcome-btns .btn-live { display: inline-flex; }
  .welcome-btns { flex-direction: row; }
  .welcome-btns .btn { flex: 1; padding: .8rem .6rem; font-size: .98rem; }
}

/* Back button in the header (the installed app has no browser back button) */
.brand-wrap { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.back-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); text-decoration: none; }
.back-btn:hover, .back-btn:focus-visible { background: rgba(255,255,255,.2); color: #fff; }
.cta-short { display: none; }
@media (max-width: 480px) {
  .cta-long { display: none; } .cta-short { display: inline; }
  .back-btn { width: 36px; height: 36px; }
  .brand-wrap { gap: .45rem; }
  .top-inner { gap: .45rem; flex-wrap: nowrap; }
  .top-inner .btn-live.top-cta { padding: .5rem .7rem; font-size: .9rem; }
  .menu-btn { padding: .45rem .6rem; font-size: .9rem; }
}
@media (max-width: 380px) { .brand img { height: 26px; padding: 4px 7px; } }
@media (max-width: 480px) { .top-inner:has(.nav.open) { flex-wrap: wrap; } }

/* admin: courses as cards (like the candidate portal) with Edit / Videos & YouTube / Codes */
.acards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 1rem; }
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(16,40,42,.06); min-width: 0; }
.acard .ccard-img { display: block; }
.acard-state { position: absolute; right: .7rem; top: .7rem; }
.acard-body { padding: .9rem 1rem .4rem; flex: 1; }
.acard-body h3 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.3; }
.acard-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--muted); }
.acard-stats b { color: var(--ink); }
.acard-stats li.warn b { color: var(--warn); }
.acard-stats li.ok b { color: var(--ok); }
.acard-btns { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem 1rem; border-top: 1px solid var(--line); margin-top: .6rem; }
.acard-btns .btn { display: inline-flex; align-items: center; gap: .35rem; }

/* admin: videos & YouTube per lesson */
.tipcard { background: var(--wash); border-color: #bfe0e1; font-size: .93rem; }
.vlist { display: grid; gap: .9rem; margin-top: 1rem; }
.vrow { scroll-margin-top: 90px; }
.vrow-head { display: flex; align-items: center; gap: .5rem .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.vnum { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 800; display: grid; place-items: center; }
.vtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vrow-body { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; margin-top: .6rem; align-items: start; }
.vfields { min-width: 0; }
.vpreview .video, .vpreview video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; display: block; }
.vpreview .video iframe { width: 100%; height: 100%; border: 0; }
.vempty { aspect-ratio: 16 / 9; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .vrow-body { grid-template-columns: 1fr; } }
.vpreview .video { margin: 0; }

/* compact sizing: smaller boxes and text across the whole app */
@media (max-width: 760px) { html { font-size: 13.6px; } }
.card { padding: 1rem 1.15rem; }
.brand img { height: 34px; }
.back-btn { width: 36px; height: 36px; }
.ccards, .acards { gap: .8rem; }
.ccard-body { padding: .75rem .9rem .85rem; }
.acard-body { padding: .75rem .9rem .35rem; }
.welcome { padding: 1.15rem 1.25rem; border-radius: 16px; }
.welcome h1 { font-size: 1.35rem; }
.tiles { gap: .7rem; }
.pk-offer { padding: .8rem 1rem; }
.pk-ico { width: 46px; height: 46px; }
@media (max-width: 760px) {
  .card { padding: .85rem .95rem; border-radius: 14px; }
  .main { padding-block: 1.2rem 2.2rem; }
  h2 { margin: 1.4rem 0 .6rem; }
  .brand img { height: 28px; }
  .back-btn { width: 32px; height: 32px; }
  .tabbar a { font-size: .72rem; }
}

/* English / Arabic video switch (lesson page) */
.lang-switch { display: inline-flex; align-items: center; gap: .25rem; background: #fff; border: 1px solid var(--line, #d3e8e8); border-radius: 999px; padding: .2rem; margin: 0 0 .6rem; flex-wrap: wrap; }
.lang-switch-label { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted, #4d5f61); padding: 0 .5rem 0 .45rem; font-weight: 600; }
.lang-switch a { text-decoration: none; font-weight: 700; font-size: .88rem; padding: .32rem .9rem; border-radius: 999px; color: var(--ink, #1c2a2c); min-width: 4.5rem; text-align: center; }
.lang-switch a[lang="ar"] { font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: .95rem; }
.lang-switch a.on { background: var(--petrol, #243235); color: #fff; }
.lang-switch a:not(.on):hover { background: var(--wash, #e9f6f6); }
.lang-note { margin-top: -.2rem; }
.badge-ar { font-family: "Cairo", "Noto Sans Arabic", Tahoma, sans-serif; background: #e3f4ee; color: #17694a; }
/* admin: English + Arabic video per lesson */
.vlangs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.vlang { border: 1px solid var(--line, #d3e8e8); border-radius: 10px; padding: .6rem .7rem; min-width: 0; }
.vlang h4 { margin: 0 0 .3rem; font-size: .9rem; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.vlang .video, .vlang video { width: 100%; margin-top: .4rem; border-radius: 8px; }
.vlang input[type=url], .vlang input[type=file] { width: 100%; }
@media (max-width: 760px) { .vlangs { grid-template-columns: 1fr; } }

/* ---------- Language switch (EN | ع) and Arabic / right-to-left layout ---------- */
.lang-pill { display: inline-flex; align-items: center; border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; padding: 2px; margin-inline-start: auto; flex: none; }
.lang-pill a { color: #d7eaeb; text-decoration: none; font-weight: 800; font-size: .8rem; min-width: 34px; height: 30px; display: grid; place-items: center; border-radius: 999px; padding: 0 .55rem; }
.lang-pill a[lang="ar"] { font-family: Tahoma, "Geeza Pro", "Noto Sans Arabic", "Segoe UI", sans-serif; font-size: 1rem; }
.lang-pill a.on { background: var(--mint); color: var(--petrol); }
.lang-pill a:not(.on):hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-pill + .top-call { margin-inline-start: 0; }
@media (max-width: 760px) { .lang-pill a { min-width: 30px; height: 28px; padding: 0 .4rem; } }
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Geeza Pro", "SF Arabic", "Noto Sans Arabic", Inter, Arial, sans-serif; line-height: 1.7; }
html[dir="rtl"] .brand-tag, html[dir="rtl"] .module-title, html[dir="rtl"] .who, html[dir="rtl"] th { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .back-btn .ico { transform: scaleX(-1); }
html[dir="rtl"] .brand img, html[dir="rtl"] .foot-logo { direction: ltr; }
html[dir="rtl"] .fab { right: auto; left: 18px; }
html[dir="rtl"] input[type=email], html[dir="rtl"] input[type=tel], html[dir="rtl"] .mono, html[dir="rtl"] .code-show, html[dir="rtl"] .unlock input, html[dir="rtl"] .ltr { direction: ltr; }
html[dir="rtl"] input[type=email], html[dir="rtl"] input[type=tel] { text-align: right; }
html[dir="rtl"] .unlock input { text-align: center; }
html[dir="rtl"] .lesson-body { direction: rtl; }
html[dir="rtl"] .lesson-body :is(p, li, h3, h4, strong, span) { unicode-bidi: plaintext; text-align: start; }
/* Arabic mode: bilingual course text shows only the Arabic line */
html[dir="rtl"] :is(.lesson-body, .course-desc, .card) li > strong:has(+ br + span[lang="ar"]),
html[dir="rtl"] :is(.lesson-body, .course-desc, .card) li > strong:has(+ br + span[lang="ar"]) + br,
html[dir="rtl"] :is(.lesson-body, .course-desc, .card) p > strong:has(+ br + span[lang="ar"]),
html[dir="rtl"] :is(.lesson-body, .course-desc, .card) p > strong:has(+ br + span[lang="ar"]) + br,
html[dir="rtl"] :is(.lesson-body, .course-desc, .card) h3:has(+ p[lang="ar"]) { display: none; }
html[dir="rtl"] .lesson-body h3 + p[lang="ar"] { font-size: 1.15rem; margin-top: 1.2rem; color: var(--ink); }
html[dir="rtl"] .lesson-body h3 + p[lang="ar"] strong { font-weight: 800; }
html[dir="rtl"] span[lang="ar"], html[dir="rtl"] p[lang="ar"] { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* phones: nothing may be wider than the screen (a wider page makes the phone zoom out) */
.layout-2 > *, .two-col > *, .toolbar > *, .acards > * { min-width: 0; }
.search { flex-wrap: wrap; }
@media (max-width: 760px) {
  .search input { min-width: 0; flex: 1 1 160px; }
  main table:not(.table-wrap table) { display: block; overflow-x: auto; }
  .toolbar { flex-wrap: wrap; }
  img, video, iframe, svg { max-width: 100%; }
}
html, body { overflow-x: clip; }
/* phones: 16px text in form fields, otherwise iPhone zooms in when you type and the next page opens zoomed */
@media (max-width: 760px) { input:not(.unlock input):not(.code-box input), select, textarea { font-size: 16px !important; } }
/* lesson video protection */
.video .wm { position: absolute; z-index: 3; pointer-events: none; user-select: none; -webkit-user-select: none; color: rgba(255,255,255,.42); font-weight: 800; font-size: clamp(.7rem, 1.6vw, 1rem); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.55); white-space: nowrap; transition: left 2s ease, top 2s ease; left: 10%; top: 12%; }
.video .vfs-btn { position: absolute; z-index: 4; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(16,41,43,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.video .vfs-btn:hover { background: rgba(16,41,43,.9); }
.video .resume-overlay { z-index: 5; }
.video:fullscreen { aspect-ratio: auto; border-radius: 0; margin: 0; width: 100vw; height: 100vh; }
.video:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; margin: 0; width: 100vw; height: 100vh; }
.video.vfull { position: fixed; inset: 0; z-index: 300; aspect-ratio: auto; border-radius: 0; margin: 0; }
.video.vblank > video, .video.vblank > iframe { visibility: hidden; }
.video video, .video { -webkit-touch-callout: none; }
/* next step opens after the video */
.watch-hint { display: inline-flex; align-items: center; gap: .35rem; margin-inline-end: .6rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
[hidden] { display: none !important; }
/* background: MEDWAY logo marks drifting behind the page */
#bg-logos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body > main, body > footer { position: relative; z-index: 1; }
body > .top { z-index: 40; }

/* ---------- Admin home: course cards like the candidate portal ---------- */
.admin-welcome .welcome-btns .btn-locker { background: #fff; color: var(--petrol); border-color: #fff; }
.stats-sm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: 1rem 0; }
.stats-sm .stat { padding: .7rem .9rem; text-decoration: none; color: inherit; }
.stats-sm .stat b { font-size: 1.45rem; }
.stats-sm .stat span { font-size: .8rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.6rem; }
.section-head h2 { margin: 0 0 .7rem; }
.admin-ccards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ccard.acc { cursor: default; }
.ccard.acc:hover { transform: none; }
.ccard.acc .ccard-img { display: block; }
.ccard.is-draft .ccard-img { filter: grayscale(.55); }
.draft-tag { position: absolute; right: .7rem; top: .7rem; background: var(--warn); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .55rem; border-radius: 8px; }
.sbar { display: flex; height: 9px; border-radius: 99px; background: #e4ecec; overflow: hidden; margin: .3rem 0 .1rem; }
.sbar .sb-done { background: var(--ok); }
.sbar .sb-prog { background: var(--mint); }
.acc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .2rem 0; }
.acc-nums a { text-decoration: none; color: var(--ink); background: var(--wash); border-radius: 10px; padding: .4rem .5rem; display: flex; flex-direction: column; min-width: 0; }
.acc-nums a:hover { background: #dbf0f0; }
.acc-nums b { font-size: 1.15rem; line-height: 1.1; }
.acc-nums span { font-size: .72rem; color: var(--muted); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.acc-nums i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-done { background: var(--ok); } .dot-prog { background: var(--mint); } .dot-none { background: #c4d2d2; }
.acc-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.acc-btns .btn { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; gap: .35rem; }
.acc-links { margin-top: .2rem; color: var(--muted); }
.badge-prog { background: #e2f5f6; color: var(--teal-d); }
/* course details */
.admin-course-hero { padding: 1.4rem 1.5rem; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background-size: cover; background-position: center; }
.admin-course-hero::before { display: none; }
.admin-course-hero h1 { color: #fff; margin: .4rem 0 .2rem; }
.admin-course-hero p { color: #d3e6e6; margin: 0; }
.admin-course-hero .tag { background: rgba(255,255,255,.16); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 8px; }
.admin-course-hero .acc-btns { margin: 0; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.st-done { border-top-color: var(--ok); } .st-prog { border-top-color: var(--mint); } .st-none { border-top-color: #c4d2d2; }
.ftabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.ftab { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .88rem; }
.ftab b { color: var(--teal); margin-inline-start: .2rem; }
.ftab.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.ftab.on b { color: var(--mint); }
.progress-table .progress { display: block; margin-bottom: .2rem; }
/* assign */
.assign-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .7rem; }
.assign-head input[type=search] { flex: 1 1 260px; }
.pick-list { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.pick { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--wash); }
.pick.has { opacity: .7; cursor: default; }
.pick input { width: 18px; height: 18px; flex: none; }
.pick-av { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.pick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-txt .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-how { border: 0; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.assign-how legend { font-weight: 800; margin-bottom: .3rem; }
.assign-how .check { align-items: flex-start; }
/* new attendance sheet */
.new-sheet > summary { cursor: pointer; }
.sheet-form { margin-top: .9rem; }
.sheet-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; background: var(--wash); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; }
.sheet-preview div { display: flex; flex-direction: column; min-width: 0; }
.sheet-preview span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.sheet-preview b { font-size: 1.02rem; }
.sheet-preview small { font-size: .74rem; }
.sheet-code-box .code-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sheet-code-box .code-row input { flex: 1 1 200px; }
/* attendance sheet that gives the online course */
.assign-check { align-items: flex-start; background: var(--wash); border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.course-gift { display: flex; gap: .5rem; align-items: flex-start; }
.course-waiting { background: var(--wash); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; text-align: center; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.legal li { margin: .25rem 0; }
/* small phones: logo, language switch and buttons share one row without overlapping */
@media (max-width: 420px) {
  .top-inner { gap: .35rem; }
  .brand-wrap { gap: .35rem; min-width: 0; flex-shrink: 1; }
  .brand { min-width: 0; }
  .brand img { height: 28px; }
  .back-btn { width: 34px; height: 34px; }
  .lang-pill a { min-width: 26px; height: 26px; padding: 0 .35rem; font-size: .74rem; }
  .lang-pill a[lang="ar"] { font-size: .9rem; }
  .top-cta { padding: .4rem .6rem; font-size: .8rem; }
  .menu-btn { padding: .4rem .6rem; font-size: .85rem; }
}
@media (max-width: 345px) { .brand img { height: 22px; } .lang-pill { margin-inline-start: .2rem; } .top-cta .dot { display: none; } }
/* assign: with code / without code */
.how-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.how-card { position: relative; display: flex; flex-direction: column; gap: .3rem; border: 2px solid var(--line); border-radius: 14px; padding: .9rem 1rem .9rem 2.6rem; cursor: pointer; background: #fff; }
.how-card input { position: absolute; left: .9rem; top: 1.05rem; width: 18px; height: 18px; }
.how-card .how-ic { color: var(--teal); }
.how-card span:last-child { color: var(--muted); font-size: .86rem; }
.how-card:has(input:checked) { border-color: var(--teal); background: var(--wash); box-shadow: 0 0 0 3px rgba(26,127,130,.12); }
.pick-wrap { margin: .6rem 0 0; }
.pick-wrap > summary { cursor: pointer; }

/* ---- attendance sheet list (admin), tablet mode, assign and submit */
.sheet-list { display: grid; gap: .8rem; }
.sheet-card { padding: 1rem 1.1rem; margin: 0; }
.sheet-card.is-today { border: 2px solid var(--teal); }
.sheet-card-top { display: flex; gap: .9rem; align-items: center; }
.sheet-date { flex: none; width: 62px; text-align: center; background: var(--wash); border-radius: 10px; padding: .35rem 0; line-height: 1.1; }
.sheet-date b { display: block; font-size: 1.5rem; color: var(--teal-d); }
.sheet-date span { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.sheet-card-main { flex: 1; min-width: 0; }
.sheet-card-title { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-weight: 800; }
.sheet-count { flex: none; text-align: center; line-height: 1.1; }
.sheet-count b { display: block; font-size: 1.4rem; }
.sheet-count span { font-size: .75rem; color: var(--muted); }
.sheet-card-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.assign-end { margin-top: 1.2rem; padding: 1rem 1.1rem; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; }
.assign-end p { display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.assign-end p svg { flex: none; color: var(--teal); margin-top: .15rem; }
.assign-end .actions { margin-top: .8rem; }
.kiosk-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.kiosk-head h1 { margin: .4rem 0; }
.kiosk-exit-link { text-align: center; margin: 2rem 0 0; font-size: .82rem; }
.kiosk-exit-link a { color: var(--muted); }
.kiosk-exit { max-width: 460px; margin: 2rem auto; }
.area-kiosk .foot-kiosk { padding: .2rem 0; }
.send-one { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.course-cell { white-space: nowrap; }
.course-cell .badge { margin-inline-end: .3rem; }
@media (max-width: 560px) {
  .sheet-card-top { flex-wrap: wrap; }
  .sheet-card-main { flex-basis: calc(100% - 140px); }
  .sheet-card-btns .btn { flex: 1 1 auto; justify-content: center; }
  .assign-end .actions .btn { width: 100%; justify-content: center; }
}
.att-box { background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin: 0 0 1rem; }
.att-box .check { margin: 0; }
.att-box #sheet-row { margin-top: .6rem; }
.att-box #att-check[hidden] + #sheet-row { margin-top: 0; }
.att-box select { width: 100%; }
.sheet-sent { background: var(--wash); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.sheet-sent p { display: flex; gap: .5rem; align-items: flex-start; }
.sheet-sent p svg { flex: none; color: var(--teal); margin-top: .15rem; }

/* ---- certificate verification: valid (green) / expired (red) */
.vstate { display: flex; gap: 1rem; align-items: center; border-radius: 16px; padding: 1.1rem 1.2rem; margin: 1.2rem 0 1rem; color: #fff; }
.vstate-ok { background: linear-gradient(135deg, #1f8a4c, #2aa05c); }
.vstate-bad { background: linear-gradient(135deg, #b3261e, #d03a2f); }
.vstate-ic { flex: none; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; }
.vstate strong.vstate-big { display: block; font-size: 1.7rem; letter-spacing: .08em; line-height: 1.1; }
.vstate span { display: block; }
.vstate .vstate-date { font-weight: 700; margin-top: .2rem; }
.vtable td, .vtable th { vertical-align: top; }
.vmods { margin: 0; padding-inline-start: 1.2rem; }
.vmods li { margin: .1rem 0; }
.txt-ok { color: var(--ok); }
.txt-bad { color: var(--err); }
.cert-valid { color: var(--ok); font-weight: 700; }
.cert-expired { color: var(--err); font-weight: 700; }
input.locked { background: var(--wash); color: var(--muted); cursor: not-allowed; }
.invite-card { max-width: 620px; margin: 1.5rem auto; }
.invite-card .sheet-info { margin: 1rem 0; }
.invite-used { text-align: center; }
.link-status { white-space: nowrap; }
.link-tl { list-style: none; padding: 0; margin: 0; border-inline-start: 3px solid var(--line); }
.link-tl li { position: relative; padding: .35rem 0 .35rem 1.1rem; }
.link-tl li::before { content: ""; position: absolute; inset-inline-start: -7px; top: .75rem; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.link-tl li.done::before { background: var(--ok); }
.tabs-admin { display: flex; gap: .4rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tabs-admin a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--teal-d); background: #fff; }
.tabs-admin a.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.lesson-body img { display: block; max-width: min(100%, 560px); height: auto; margin: .6rem auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(28,42,44,.08); }

/* password eye button */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem !important; direction: ltr; }
html[dir="rtl"] .pw-wrap input { padding-right: .8rem !important; padding-left: 3rem !important; text-align: right; }
.pw-eye { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; color: var(--muted, #5b6b6d); cursor: pointer; padding: 0; }
html[dir="rtl"] .pw-eye { right: auto; left: .35rem; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--teal, #1a7f82); background: rgba(72,194,197,.12); }
.pw-eye:focus-visible { outline: 3px solid rgba(72,194,197,.45); }

/* attendance: registered details summary */
.att-me { background: var(--wash, #e9f6f6); border: 1px solid var(--line, #d3e8e8); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.att-me-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.att-me-list { margin: .5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .3rem 1.2rem; }
.att-me-list div { display: flex; gap: .5rem; min-width: 0; }
.att-me-list dt { color: var(--muted, #5b6b6d); font-size: .85rem; min-width: 7.6rem; flex: none; }
.att-me-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.att-me.is-open .att-me-btns { display: none; }
.att-fields.js-hide { display: none; }
.att-fields-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }

/* code of conduct */
.conduct-box { border: 1.5px solid var(--line, #d3e8e8); border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 1rem; background: #fbfefe; }
.conduct-box summary { cursor: pointer; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.conduct-box .check { margin-top: .6rem; }
.conduct-text h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.conduct-text h3:first-child { margin-top: .4rem; }
.conduct-text ul { margin: 0 0 .4rem; padding-left: 1.2rem; }
.conduct-text li { margin: .35rem 0; }
.conduct-text .ar-line { color: var(--muted, #5b6b6d); display: block; text-align: right; }
.conduct-text .ar-sub { color: var(--teal, #1a7f82); font-weight: 600; }
html[dir="rtl"] .conduct-text ul { padding-left: 0; padding-right: 1.2rem; }
.conduct-done { color: var(--ok, #1e7a46); display: flex; align-items: center; gap: .3rem; }
.conduct-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.conduct-logo { height: 54px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; border: 1px solid var(--line, #d3e8e8); }
.conduct-banner { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; border-left: 5px solid var(--teal, #1a7f82); margin-bottom: 1rem; }
.conduct-banner > span:nth-child(2) { flex: 1; }
@media print {
  header.top, footer.foot, .tabbar, .fab, .demo-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* Candidate home: announcement + "Continue where you left off" */
.announce { display: flex; gap: .7rem; align-items: flex-start; background: #fffaeb; border: 1.5px solid #f5d77a; margin: 0 0 1rem; }
.announce svg { flex: none; color: #b7791f; margin-top: 2px; }
.resume-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 1.1rem; align-items: center; background: #fff; border: 2px solid var(--mint); border-radius: var(--radius); padding: .8rem; margin: 0 0 1.2rem; text-decoration: none; color: inherit; box-shadow: 0 8px 24px rgba(16,40,42,.08); }
.resume-card:hover { border-color: var(--teal); }
.rc-img { display: block; aspect-ratio: 16 / 10; border-radius: 12px; background: #dfeeee center / cover no-repeat; }
.rc-body { display: flex; flex-direction: column; min-width: 0; }
.rc-body strong { font-size: 1.1rem; color: var(--petrol); }
.rc-kicker { display: flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.rc-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .resume-card { grid-template-columns: 96px 1fr; }
  .rc-btn { grid-column: 1 / -1; justify-content: center; }
}
/* Admin: candidate portal options */
.po-group { margin-bottom: 1.2rem; }
.po-group .check { display: flex; gap: .55rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.po-group .check:last-child { border-bottom: 0; }
.po-group .check input { margin-top: .2rem; width: 18px; height: 18px; flex: none; }
.po-group .check .hint { display: block; margin: .1rem 0 0; }
.po-sub { padding-left: 1.6rem !important; }
/* Admin codes: green = used, red = not used yet */
.code-pill { display: inline-block; padding: .25rem .6rem; border-radius: 8px; font-weight: 700; text-decoration: none; letter-spacing: .03em; border: 1.5px solid; }
.code-used { background: #e3f5ea; color: #155f35; border-color: #8fd1a8; }
.code-unused { background: #fdeceb; color: var(--err); border-color: #f0a9a4; }
.code-revoked { background: #eef1f1; color: #6a7c7e; border-color: #cfd8d8; text-decoration: line-through; }
.used-email { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: #155f35; }
.used-email a { color: inherit; }
/* Next-step buttons pulse gently so candidates see where to go next */
.btn-go { position: relative; animation: btn-go-pulse 1.6s ease-in-out infinite; }
.btn-go:hover, .btn-go:focus-visible { animation-play-state: paused; }
.btn-go:disabled, .btn-go[aria-disabled="true"] { animation: none; }
@keyframes btn-go-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(72,194,197,.75); filter: brightness(1); }
  50%  { box-shadow: 0 0 0 9px rgba(72,194,197,0); filter: brightness(1.18); }
  100% { box-shadow: 0 0 0 0 rgba(72,194,197,0); filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) { .btn-go { animation: none; outline: 3px solid var(--mint); outline-offset: 2px; } }
.pager { align-items: center; gap: .8rem; }
/* In-app document viewer (certificates, handouts) */
.viewer-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.viewer-bar h1 { flex: 1; margin: 0; font-size: 1.25rem; min-width: 10rem; }
.viewer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; box-shadow: 0 8px 24px rgba(16,40,42,.08); }
.viewer canvas, .viewer img { display: block; width: 100%; height: auto; border-radius: 6px; }
.viewer canvas + canvas { margin-top: .6rem; }
.viewer-note { margin-top: .6rem; }

/* the logo opens the menu on phones (no separate Menu button) */
.brand-caret { display: none; }
@media (max-width: 760px) {
  .brand-menu { position: relative; cursor: pointer; }
  .brand-menu .brand-caret { display: grid; place-items: center; position: absolute; inset-inline-end: -8px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal, #3d7f83); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
  .brand-menu .brand-caret .ico, .brand-menu .brand-caret svg { width: 13px; height: 13px; }
  .brand-menu[aria-expanded="true"] img { outline: 2px solid var(--mint, #6cc3c6); outline-offset: 2px; }
}
/* completed course: two buttons */
.ccard.has-actions:hover { transform: none; }
.ccard-main { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.ccard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 0 1rem 1rem; }
.ccard-actions .btn { justify-content: center; padding: .6rem .5rem; font-size: .9rem; gap: .35rem; display: inline-flex; align-items: center; }
@media (max-width: 360px) { .ccard-actions { grid-template-columns: 1fr; } }

/* guidelines library */
.guide-list { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.guide-item { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); margin: 0; padding: .85rem 1rem; }
.guide-item:hover { border-color: var(--teal); }
.guide-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--wash, #eef6f6); color: var(--teal); }
.guide-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.guide-txt strong { line-height: 1.3; }
.guide-go { color: var(--teal); flex: none; }
[dir="rtl"] .guide-go { transform: scaleX(-1); }
.course-guides { margin-top: 1rem; }

/* notifications */
.top-bell { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; border: 1.5px solid rgba(255,255,255,.28); margin-inline-start: auto; text-decoration: none; }
.top-bell:hover { background: rgba(255,255,255,.1); }
.top-bell.has-new .ico { color: var(--mint); animation: bell-ring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
.top-bell + .top-call { margin-inline-start: .5rem; }
.bell-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #E53E3E; color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #243235; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 50% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .top-bell.has-new .ico { animation: none; } }
.notif-list { display: grid; gap: .7rem; }
.notif { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit; padding: 1rem 1.1rem; }
.notif.is-new { border-inline-start: 5px solid var(--mint, #48c2c5); }
.notif-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E6F3F3; color: #1a7f82; }
.notif-offer .notif-ico { background: #FFF4E5; color: #C05621; }
.notif-attendance .notif-ico, .notif-session .notif-ico { background: #FDECEB; color: #C53030; }
.notif-txt { display: grid; gap: .2rem; flex: 1; }
.notif-new { color: #C53030; }
.notif-go { align-self: center; color: #6B7C7E; }

.notif-expiry .notif-ico { background: #FFF4E5; color: #C05621; }
.expiry-banner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-inline-start: 6px solid #D69E2E; background: #FFFBEB; margin-bottom: .9rem; }
.expiry-banner.is-soon { border-inline-start-color: #DD6B20; background: #FFF4E5; }
.expiry-banner.is-expired { border-inline-start-color: #C53030; background: #FDECEB; }
.expiry-banner .exp-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #C05621; }
.expiry-banner.is-expired .exp-ico { color: #C53030; }
.expiry-banner .exp-txt { display: grid; gap: .2rem; flex: 1; min-width: 220px; }
.expiry-banner .exp-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.notif-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .4rem 1.2rem; margin: .6rem 0 .4rem; }
.notif-sw .check { align-items: flex-start; }

.push-box { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; border-inline-start: 5px solid #1a7f82; }

.vmore { margin: .6rem 0 0; }
.vmore summary { cursor: pointer; font-weight: 700; color: #1a7f82; }
.vmore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem 1rem; margin-top: .6rem; }

/* language menu (English, العربية, हिन्दी, اردو, മലയാളം, Tagalog) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; color: #fff; font-weight: 800; font-size: .92rem;
  padding: .42rem .8rem; border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255,255,255,.1); }
.lang-menu summary .ico { color: var(--mint, #48c2c5); }
.lang-list { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60; min-width: 170px; background: #fff; border-radius: 14px; padding: .35rem;
  box-shadow: 0 14px 34px rgba(0,0,0,.22); display: grid; }
.lang-list a { padding: .6rem .8rem; border-radius: 10px; color: #1c2a2c; text-decoration: none; font-weight: 700; font-size: 1rem; }
.lang-list a:hover { background: #E6F3F3; }
.lang-list a.on { background: #1a7f82; color: #fff; }
.lang-hi body, .lang-hi { font-family: Inter, "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
.lang-ml { font-family: Inter, "Noto Sans Malayalam", "Nirmala UI", sans-serif; }
.lang-ur { font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", Cairo, sans-serif; }

.lang-menu { margin-inline-start: auto; flex: none; }
.lang-menu + .top-bell { margin-inline-start: .5rem; }
/* in Hindi, Urdu, Malayalam and Tagalog the Arabic second line of course texts is hidden (the English is translated instead) */
.lang-hi [lang="ar"]:not(.lang-list a), .lang-ur [lang="ar"]:not(.lang-list a), .lang-ml [lang="ar"]:not(.lang-list a), .lang-tl [lang="ar"]:not(.lang-list a), .lang-zh [lang="ar"]:not(.lang-list a) { display: none !important; }
.lang-zh { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }

/* course search */
.csearch { position: relative; margin: .2rem 0 1rem; max-width: 520px; }
.csearch input { width: 100%; padding: .75rem 1rem .75rem 2.6rem; border: 1px solid var(--line, #d9e2e6); border-radius: 999px; font-size: 1rem; background: #fff; }
.csearch input:focus { outline: 2px solid var(--teal, #0f7a8a); outline-offset: 1px; }
.csearch-ico { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted, #6b7c85); display: flex; pointer-events: none; }
[dir="rtl"] .csearch input { padding: .75rem 2.6rem .75rem 1rem; }
[dir="rtl"] .csearch-ico { left: auto; right: .95rem; }
.csearch-none { margin-bottom: 1rem; }
.ccards > [hidden], .acards > [hidden] { display: none !important; }

/* "Medical training or Industrial training" page */
.track-page { position: relative; max-width: 980px; margin: 0 auto; padding: .5rem 0 1.5rem; text-align: center; }
.track-hello { margin: .4rem 0 0; color: var(--teal-d, #0f6f7d); font-weight: 700; }
.track-title { font-size: clamp(1.6rem, 4.6vw, 2.5rem); margin: .3rem 0 .4rem; }
.track-sub { color: var(--muted, #5d6b72); margin: 0 0 1.4rem; }
.track-mute { position: absolute; top: .2rem; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line, #d9e2e6); background: #fff; color: var(--teal-d, #0f6f7d); display: grid; place-items: center; cursor: pointer; }
[dir="rtl"] .track-mute { right: auto; left: 0; }
.track-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 680px) { .track-cards { grid-template-columns: 1fr; } }
.track-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 0; border: 0; border-radius: 22px;
  color: #fff; text-align: start; cursor: pointer; font: inherit; box-shadow: 0 10px 30px rgba(10, 40, 50, .18); transition: transform .25s ease, box-shadow .25s ease; }
@media (max-width: 680px) { .track-card { min-height: 230px; } }
.track-card:hover, .track-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(10, 40, 50, .26); }
.track-card:disabled { cursor: default; }
.tc-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 6s ease; }
.track-card:hover .tc-photo { transform: scale(1.12); }
.tc-shade { position: absolute; inset: 0; }
.tc-med .tc-shade { background: linear-gradient(180deg, rgba(8, 92, 104, .15) 0%, rgba(6, 70, 82, .78) 55%, rgba(4, 52, 62, .95) 100%); }
.tc-ind .tc-shade { background: linear-gradient(180deg, rgba(120, 60, 0, .1) 0%, rgba(70, 40, 10, .78) 55%, rgba(40, 24, 8, .95) 100%); }
.tc-ico { position: absolute; top: 1rem; left: 1rem; width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .95); }
[dir="rtl"] .tc-ico { left: auto; right: 1rem; }
.tc-heart { fill: #e04b5a; transform-origin: 32px 34px; }
.tc-ecg { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tc-gear { fill: #f2a516; stroke: #f2a516; transform-origin: 32px 32px; }
.tc-hub { fill: #fff; }
.tc-body { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem 1.3rem; }
.tc-body strong { font-size: 1.55rem; line-height: 1.15; }
.tc-desc { opacity: .92; font-size: .98rem; line-height: 1.45; }
.tc-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .45rem; align-self: flex-start; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: rgba(255, 255, 255, .95); color: #0c4b55; }
.tc-ind .tc-go { color: #6b3d00; }
.tc-line { position: absolute; left: 104px; right: 1rem; top: 34px; width: auto; height: 40px; }
[dir="rtl"] .tc-line { left: 1rem; right: 104px; transform: scaleX(-1); }
.tc-line path { fill: none; stroke: rgba(130, 236, 240, .9); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.tc-stripes { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, #f2a516 0 14px, #1f1f1f 14px 28px); }
.track-card.is-picked { transform: scale(.97); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--teal, #12919f); }
.track-all { margin-top: 1.1rem; }
.track-switch { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.2rem 0 .9rem; }
.track-switch a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line, #d9e2e6); background: #fff; text-decoration: none; color: inherit; font-weight: 600; font-size: .93rem; }
.track-switch a.on { background: var(--teal-d, #0f6f7d); border-color: var(--teal-d, #0f6f7d); color: #fff; }
.track-table td:not(:first-child), .track-table th:not(:first-child) { text-align: center; width: 90px; }
/* animation (Admin → Candidate portal → Animation on that page) */
.track-page.is-anim .track-title, .track-page.is-anim .track-sub, .track-page.is-anim .track-hello { animation: tp-up .6s ease both; }
.track-page.is-anim .track-sub { animation-delay: .1s; }
.track-page.is-anim .track-card { animation: tp-card .75s cubic-bezier(.2, .8, .2, 1) both; }
.track-page.is-anim .tc-med { animation-delay: .2s; }
.track-page.is-anim .tc-ind { animation-delay: .38s; }
.track-page.is-anim .track-all { animation: tp-up .6s ease .6s both; }
.track-page.is-anim .tc-heart { animation: tp-beat 1.2s ease-in-out infinite; }
.track-page.is-anim .tc-line path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: tp-draw 2.4s ease-out .8s infinite; }
.track-page.is-anim .tc-gear { animation: tp-spin 6s linear infinite; }
.track-page.is-anim .tc-stripes { animation: tp-slide 1.6s linear infinite; background-size: 40px 10px; }
@keyframes tp-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tp-card { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tp-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes tp-draw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@keyframes tp-slide { to { background-position: 40px 0; } }
@media (prefers-reduced-motion: reduce) { .track-page.is-anim * { animation: none !important; } }

.tc-ind-art { background: radial-gradient(120% 90% at 80% 0%, #ffb340 0%, #e07a10 38%, #7a3b06 100%); }
.tc-skyline { position: absolute; left: 0; right: 0; bottom: 30%; width: 100%; height: 70%; }
.tc-city { fill: rgba(40, 20, 4, .55); }
.tc-crane path { fill: none; stroke: rgba(40, 20, 4, .55); stroke-width: 4; stroke-linecap: round; }
.tc-smoke circle { fill: rgba(255, 255, 255, .28); }
.track-page.is-anim .tc-smoke { animation: tp-smoke 4s ease-in-out infinite; }
.track-page.is-anim .tc-hook { animation: tp-hook 3s ease-in-out infinite; transform-origin: 380px 30px; }
@keyframes tp-smoke { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-8px); opacity: .5; } }
@keyframes tp-hook { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }
.track-pic { display: flex; flex-direction: column; gap: .5rem; }
.track-pic-img { display: block; width: 100%; aspect-ratio: 16 / 7; border-radius: 12px; background-size: cover; background-position: center; background-color: #e8eef0; }
[dir="rtl"] .tc-go svg { transform: scaleX(-1); }

/* policies & procedures library */
.crumbs-nav { margin: .2rem 0 .4rem; color: var(--muted, #5d6b72); }
.crumbs-nav a { color: var(--teal-d, #0f6f7d); }
.pol-folders, .pol-list, .pol-results { display: grid; gap: .6rem; margin-bottom: 1rem; }
.pol-folders { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pol-folder, .pol-doc { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; text-decoration: none; color: inherit; margin: 0; }
.pol-folder:hover { border-color: var(--teal, #12919f); }
.pol-folder-ico svg { fill: #f2b84b; }
.pol-doc .guide-txt, .pol-folder .guide-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pol-btns { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.pol-doc[hidden] { display: none; }
@media (max-width: 560px) { .pol-doc { flex-wrap: wrap; } .pol-btns { width: 100%; justify-content: flex-start; padding-left: 2.6rem; } }

/* DOH policies library */
.crumbs { margin: 0 0 .4rem; color: var(--muted, #5d6b72); }
.crumbs a { color: var(--teal-d, #0f6f7d); text-decoration: none; }
.lib-search { margin-top: .4rem; }
.lib-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; margin-bottom: 1.2rem; }
.lib-folder { display: flex; align-items: center; gap: .85rem; padding: 1rem; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.lib-folder:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10, 40, 50, .12); }
.lib-folder-ico { flex: none; display: grid; place-items: center; width: 34px; }
.lib-folder-ico svg { fill: #f3b33d; }
.lib-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lib-txt strong { line-height: 1.3; }
.lib-docs { display: flex; flex-direction: column; gap: .5rem; }
.lib-doc { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; text-decoration: none; color: inherit; }
.lib-doc:hover { box-shadow: 0 6px 18px rgba(10, 40, 50, .1); }
.lib-ext { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .82rem; background: #5b6b73; }
.lib-docx { background: #2b579a; } .lib-pdf { background: #c8352e; } .lib-xlsx { background: #217346; } .lib-pptx { background: #c4512b; } .lib-link { background: var(--teal-d, #0f6f7d); }
.lib-go { margin-inline-start: auto; color: var(--teal-d, #0f6f7d); flex: none; }
.lib-note { margin-top: 1.4rem; }
.lib-admin-doc summary { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; cursor: pointer; }
.lib-admin-doc summary .lib-ext { width: 34px; height: 34px; font-size: .72rem; }
.lib-admin-doc.is-hidden { opacity: .7; }

.eval-about { margin: 1rem 0; border: 1px solid var(--line, #d8e6e6); border-radius: 12px; padding: .6rem .9rem; }
.eval-about summary { cursor: pointer; font-weight: 600; }

.hero-forgot { margin: .9rem 0 0; }
.hero-forgot a { color: #fff; opacity: .9; text-decoration: underline; font-size: .95rem; }
.foot-logo-link { display: inline-block; cursor: default; }

/* complaints & appeals, company portal, renewals, backup */
.case-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.case-kind { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: 14px; border: 2px solid var(--line, #dfe7e8); background: #fff; color: inherit; text-decoration: none; }
.case-kind b { font-size: 1.08rem; color: var(--petrol, #243235); }
.case-kind .small { color: var(--teal-d, #11766f); font-weight: 600; }
.case-kind.on { border-color: var(--teal, #17a2a0); box-shadow: 0 0 0 3px rgba(23, 162, 160, .15); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .6rem 0 1rem; }
dl.kv dt { color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0; }
ul.timeline { list-style: none; padding: 0; margin: .5rem 0 1rem; border-left: 3px solid var(--line, #dfe7e8); }
ul.timeline li { padding: .2rem 0 .8rem 1rem; position: relative; }
ul.timeline li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 11px; height: 11px; border-radius: 50%; background: var(--teal, #17a2a0); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.filters a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line, #dfe7e8); text-decoration: none; color: inherit; font-size: .9rem; background: #fff; }
.filters a.on { background: var(--petrol, #243235); color: #fff; border-color: var(--petrol, #243235); }
.mini-bar { display: inline-block; width: 70px; height: 7px; border-radius: 4px; background: #e6eeee; vertical-align: middle; overflow: hidden; margin-right: .3rem; }
.mini-bar i { display: block; height: 100%; background: var(--teal, #17a2a0); }
.nom-rows input { margin: 0; }
.nom-rows td { padding: .25rem; }
.co-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: .4rem; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.co-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.co-tools input[type=search] { max-width: 280px; margin: 0; }
.co-tools .btn-dl { margin-left: auto; }
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.job-card { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; }
.job-card b { font-size: 1.08rem; color: var(--petrol, #243235); }
.job-card:hover { border-color: var(--teal, #17a2a0); }
.job-meta { color: var(--muted); }
.inline-details { display: inline-block; vertical-align: top; }
.inline-details > summary { list-style: none; cursor: pointer; }
.inline-details > summary::-webkit-details-marker { display: none; }
.job-poster { display: block; margin: .6rem 0 1rem; }
.job-poster img { max-width: 100%; max-height: 80vh; border-radius: 12px; border: 1px solid var(--line, #dfe7e8); }
.job-thumb { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: .3rem; }
.job-card > .badge { align-self: flex-start; }
.job-thumb { object-position: top; }
.rep-row { display: flex; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.rep-row input { margin: 0; flex: 1; min-width: 0; }
.rep-row .rep-num { flex: 0 0 90px; }
.career .open-jobs { margin-top: 1rem; padding: .7rem .8rem; border-radius: 10px; background: #e9f6f6; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1rem; }
.talent-total { font-size: 1.15rem; margin: 1rem 0 .6rem; }
.talent-total b { font-size: 2rem; color: var(--teal-d, #11766f); margin-right: .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line, #dfe7e8); background: #fff; text-decoration: none; color: inherit; font-size: .88rem; }
.chip b { color: var(--teal-d, #11766f); margin-left: .2rem; }
.chip.on { background: var(--petrol, #243235); color: #fff; }
.chip.on b { color: #fff; }
