/* Trainee dashboard and related modal surfaces */

:root {
  --trainee-green: #158b57;
  --trainee-green-dark: #0d7a48;
  --trainee-muted: #6c7584;
  --trainee-text: #374151;
  --trainee-border: #d9e0e6;
  --trainee-soft: #eef3f7;
  --trainee-bg: #f3f5f7;
}

body.trainee-dashboard-page {
  margin: 0;
  background: var(--trainee-bg);
  color: var(--trainee-text);
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

body.trainee-dashboard-page.modal-open,
body.program-registration-modal-open {
  overflow: hidden;
}

.trainee-shell {
  width: min(1320px, calc(100vw - 96px));
  margin-inline: auto;
}

.trainee-header {
  background: #fff;
  border-bottom: 1px solid #e4e9ee;
}

.trainee-header__inner {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.trainee-brand {
  display: inline-flex;
  align-items: center;
}

.trainee-brand img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

.trainee-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dee5;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
}

.trainee-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

.trainee-nav a {
  color: #111827;
  text-decoration: none;
  font-size: 34px;
  line-height: 34px;
  font-weight: 400;
}

.trainee-nav a:hover {
  color: var(--trainee-green);
}

.trainee-userbar {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.trainee-userbar__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.trainee-userbar__name {
  color: #101828;
  font-size: 30px;
  line-height: 30px;
  font-weight: 400;
}

.trainee-userbar__email {
  color: #111827;
  font-size: 44px;
  line-height: 44px;
  font-weight: 400;
}

.trainee-userbar__avatar,
.trainee-userbar__bell {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trainee-userbar__avatar {
  background: #e8f5ed;
  color: var(--trainee-green);
}

.trainee-userbar__bell {
  border: 0;
  background: transparent;
  color: #334155;
  position: relative;
}

.trainee-userbar__bell::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.trainee-breadcrumb-bar {
  background: #fff;
  border-top: 1px solid #e4e9ee;
  border-bottom: 1px solid #e4e9ee;
}

.trainee-breadcrumb {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #6b7280;
  font-size: 34px;
  line-height: 34px;
  gap: 0.45rem;
}

.trainee-breadcrumb .sep {
  color: #9ca3af;
}

.trainee-main {
  padding: 3rem 0 4rem;
}

.trainee-page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trainee-page-head h1 {
  margin: 0;
  color: #374151;
  font-size: clamp(2rem, 2.9vw, 3.2rem);
  line-height: 1.2;
  font-weight: 700;
}

.trainee-page-head p {
  margin: 0;
  color: #6b7280;
  font-size: 1.9rem;
  line-height: 1.45;
}

.trainee-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.trainee-stat-card {
  background: #fff;
  border: 1px solid var(--trainee-border);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.trainee-stat-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.trainee-stat-card__head h2 {
  margin: 0;
  color: #6b7280;
  font-size: 2.7rem;
  line-height: 1.25;
  font-weight: 600;
}

.trainee-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #d7efe2;
  color: var(--trainee-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.trainee-stat-card strong {
  align-self: center;
  color: #374151;
  font-size: clamp(2rem, 2.3vw, 3.3rem);
  line-height: 1;
  font-weight: 700;
}

.trainee-programs-board {
  background: #f7f9fb;
  border: 1px solid #dde5eb;
  border-radius: 16px;
  padding: 1rem;
}

.trainee-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trainee-program-card {
  position: relative;
  background: #fff;
  border: 1px solid #cfd8e0;
  border-radius: 18px;
  overflow: hidden;
  padding: 1rem 1rem 0.75rem;
}

.trainee-program-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 7px;
  background: var(--trainee-green);
}

.trainee-program-card.is-closed::before {
  background: #1a9f6a;
}

.trainee-program-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.trainee-program-status {
  min-width: 60px;
  text-align: center;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border: 1px solid #9adab9;
  color: var(--trainee-green);
  background: #e8f7ef;
}

.trainee-program-status.is-closed {
  border-color: #f3c7c7;
  color: #b42318;
  background: #fef1f1;
}

.trainee-program-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #0d8a58;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.trainee-program-card h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.trainee-program-card p {
  margin: 0 0 0.65rem;
  color: #4b5563;
  font-size: 1.45rem;
  line-height: 1.55;
}

.trainee-program-materials {
  margin: 0 0 0.65rem;
  color: var(--trainee-green);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 500;
}

.trainee-program-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e5ebf0;
}

.trainee-program-actions .trainee-btn,
.trainee-program-actions .trainee-btn-outline {
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

.trainee-btn {
  background: var(--trainee-green);
  color: #fff;
}

.trainee-btn:hover {
  background: var(--trainee-green-dark);
  color: #fff;
}

.trainee-btn-outline {
  background: #fff;
  color: var(--trainee-green);
  border: 1px solid #8acfb0;
}

.trainee-btn-outline:hover {
  background: #ecf8f1;
  color: var(--trainee-green-dark);
}

.trainee-btn.is-loading,
.trainee-btn-outline.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.trainee-btn.is-loading::after,
.trainee-btn-outline.is-loading::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-btn-spin 0.6s linear infinite;
  top: calc(50% - 0.625rem);
  left: calc(50% - 0.625rem);
}

.trainee-btn-outline.is-loading::after {
  border-color: rgba(31, 122, 77, 0.25);
  border-top-color: var(--trainee-green);
}

/* Loading spinner for slow-navigation buttons (e.g. certificate).
   The certificate button is the 3rd child of .trainee-program-actions, whose
   ::after is reset to `content: none` for the icon design — so this rule must
   restore the pseudo-element and out-specify that reset. Fully self-contained. */
body.trainee-dashboard-page .trainee-program-actions .trainee-btn[data-loading-btn].is-loading::after,
.trainee-btn[data-loading-btn].is-loading::after {
  content: "" !important;
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  border-radius: 50%;
  background: none;
  animation: auth-btn-spin 0.6s linear infinite;
  top: calc(50% - 0.575rem);
  left: calc(50% - 0.575rem);
}

.trainee-btn:disabled,
.trainee-btn.is-disabled,
.trainee-btn-outline:disabled,
.trainee-btn-outline.is-disabled {
  pointer-events: none;
  opacity: 1;
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.trainee-certificate-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.trainee-certificate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 16px;
  color: #4b5563;
  font-size: 14px;
}

.trainee-certificate-meta span strong {
  color: #111827;
  margin-inline-start: 6px;
}

.trainee-certificate-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 297 / 210;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.trainee-certificate-page .trainee-page-head {
  display: block;
  text-align: right;
}

.trainee-certificate-card--full {
  padding: 12px;
}

.trainee-certificate-preview--full {
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

body.trainee-dashboard-page .trainee-certificate-preview--full {
  display: block;
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  margin-inline: auto;
}

body.trainee-dashboard-page .trainee-certificate-preview--full img {
  display: block;
  width: 90%;
  max-width: 90%;
  height: auto;
  margin-inline: auto;
  object-fit: initial;
}

.trainee-certificate-preview iframe,
.trainee-certificate-preview img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  display: block;
}

.trainee-certificate-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.trainee-program-details {
  margin-inline-end: auto;
  color: var(--trainee-green);
  text-decoration: none;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trainee-program-details:hover {
  color: var(--trainee-green-dark);
}

.trainee-pagination {
  margin-top: 1.35rem;
  padding: 0.9rem 0.75rem;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trainee-pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #1f2937;
  font-size: 1.3rem;
  line-height: 1;
}

.trainee-pagination button.is-active {
  border-color: #d1d5db;
  background: #fff;
  color: #111827;
}

.trainee-pagination button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.trainee-pagination .dots {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.15rem;
}

/* Survey page */
.trainee-survey-wrap {
  border: 1px solid #dce4ea;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.trainee-survey-progress {
  background: #fff;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.trainee-survey-progress::before,
.trainee-survey-question::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 6px;
  background: var(--trainee-green);
}

.trainee-survey-progress p {
  margin: 0 0 0.7rem;
  color: #4b5563;
  font-size: 1.5rem;
}

.trainee-progress-track {
  height: 10px;
  background: #eceff3;
  border-radius: 999px;
  overflow: hidden;
}

.trainee-progress-bar {
  width: 20%;
  height: 100%;
  background: var(--trainee-green);
  border-radius: inherit;
}

.trainee-survey-question {
  position: relative;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  padding: 1.3rem 1.2rem 1.1rem;
}

.trainee-survey-question__meta {
  margin: 0 0 0.45rem;
  color: #9ca3af;
  font-size: 1.45rem;
}

.trainee-survey-question h2 {
  margin: 0 0 0.9rem;
  color: #111827;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.4;
  font-weight: 700;
}

.trainee-survey-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.trainee-survey-option {
  width: 100%;
  border: 1px solid #d7dee5;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  min-height: 64px;
  background: #fff;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 1.65rem;
  cursor: pointer;
}

.trainee-survey-option .indicator {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trainee-survey-option .indicator::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
}

.trainee-survey-option.is-selected {
  border-color: #7ac7a3;
  background: #eff9f4;
}

.trainee-survey-option.is-selected .indicator {
  border-color: var(--trainee-green);
}

.trainee-survey-option.is-selected .indicator::before {
  background: var(--trainee-green);
}

.trainee-survey-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.trainee-survey-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trainee-survey-dots span,
.trainee-survey-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  appearance: none;
  flex: 0 0 auto;
}

.trainee-survey-dots span.active,
.trainee-survey-dots button.active {
  width: 30px;
  border-radius: 999px;
  background: var(--trainee-green);
}

.trainee-survey-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

/* Generic modal shell */
.trainee-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.trainee-modal-shell.is-open {
  display: block;
}

.trainee-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.trainee-modal-dialog {
  position: relative;
  width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.trainee-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid #eceff3;
}

.trainee-modal-head h2 {
  margin: 0;
  color: #374151;
  font-size: clamp(1.7rem, 2.2vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
}

.trainee-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 2rem;
}

.trainee-modal-body {
  padding: 1rem;
  overflow: auto;
}

.trainee-download-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.trainee-download-item {
  border: 1px solid #dce4ea;
  border-radius: 14px;
  background: #fbfcfd;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.trainee-download-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #dcefe5;
  color: var(--trainee-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.trainee-download-item__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.trainee-download-item__text h3 {
  margin: 0;
  color: #374151;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
}

.trainee-download-item__text p {
  margin: 0;
  color: #6b7280;
  font-size: 1.3rem;
  line-height: 1.3;
}

.trainee-certificate-preview {
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  background: #f7f9fb;
  padding: 1.2rem;
}

.trainee-certificate-sheet {
  border: 1px solid #e1e7ec;
  border-radius: 8px;
  background: #fcfdff;
  padding: 1.2rem;
  text-align: center;
}

.trainee-certificate-badge {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: #dcebe4;
  color: var(--trainee-green);
  margin: 0 auto 1rem;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trainee-certificate-sheet h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.2;
  color: #374151;
}

.trainee-certificate-sheet .name {
  margin: 0.6rem 0;
  color: #0f8b56;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  font-weight: 700;
}

.trainee-certificate-sheet p {
  margin: 0.35rem 0;
  color: #6b7280;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
}

.trainee-certificate-meta {
  margin-top: 0.85rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 1.25rem;
}

.trainee-modal-footer {
  border-top: 1px solid #eceff3;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Program details registration modal */
.program-registration-modal .trainee-modal-dialog {
  width: min(680px, calc(100vw - 2rem));
}


.program-registration-modal__lead {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 1.35rem;
  line-height: 1.55;
}

.program-registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.program-registration-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.program-registration-field label {
  color: #374151;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 600;
}

.program-registration-field input,
.program-registration-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d3dbe2;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 1.1rem;
  line-height: 1.2;
  padding: 0.7rem 0.85rem;
}

.program-registration-field input:focus,
.program-registration-field select:focus {
  outline: none;
  border-color: #53a983;
  box-shadow: 0 0 0 3px rgba(21, 139, 87, 0.15);
}

.program-registration-field input::placeholder {
  color: #9ca3af;
}

.program-registration-modal .trainee-modal-footer {
  justify-content: flex-start;
}

/* Responsive */
@media (max-width: 1400px) {
  .trainee-header__inner {
    min-height: 82px;
    gap: 1rem;
  }

  .trainee-brand img {
    width: 250px;
  }

  .trainee-nav a {
    font-size: 24px;
    line-height: 24px;
  }

  .trainee-userbar__name {
    font-size: 24px;
    line-height: 24px;
  }

  .trainee-userbar__email {
    font-size: 34px;
    line-height: 34px;
  }

  .trainee-breadcrumb {
    font-size: 24px;
    line-height: 24px;
  }

  .trainee-page-head p {
    font-size: 1.35rem;
  }

  .trainee-stat-card__head h2 {
    font-size: 1.6rem;
  }

  .trainee-program-card p {
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .trainee-shell {
    width: calc(100vw - 40px);
  }

  .trainee-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .trainee-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .trainee-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
  }

  .trainee-header.is-nav-open .trainee-nav {
    max-height: 220px;
    opacity: 1;
    padding-bottom: 0.75rem;
  }

  .trainee-nav a {
    font-size: 18px;
    line-height: 18px;
  }

  .trainee-userbar__identity {
    gap: 0.2rem;
  }

  .trainee-userbar__name {
    font-size: 18px;
    line-height: 18px;
  }

  .trainee-userbar__email {
    font-size: 21px;
    line-height: 21px;
  }

  .trainee-breadcrumb {
    min-height: 48px;
    font-size: 18px;
    line-height: 18px;
  }

  .trainee-main {
    padding: 1.6rem 0 2.5rem;
  }

  .trainee-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainee-program-grid {
    grid-template-columns: 1fr;
  }

  .trainee-program-actions {
    flex-wrap: wrap;
  }

  .trainee-program-details {
    order: 5;
    margin-inline: 0 auto;
    width: 100%;
  }

  .trainee-survey-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .trainee-survey-nav {
    justify-content: space-between;
  }

  .program-registration-form {
    grid-template-columns: 1fr;
  }

  .program-registration-modal .trainee-modal-footer {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .trainee-shell {
    width: calc(100vw - 24px);
  }

  .trainee-brand img {
    width: 180px;
  }

  .trainee-userbar__avatar,
  .trainee-userbar__bell {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .trainee-userbar__name {
    font-size: 15px;
    line-height: 15px;
  }

  .trainee-userbar__email {
    font-size: 16px;
    line-height: 16px;
  }

  .trainee-stats-grid {
    grid-template-columns: 1fr;
  }

  .trainee-stat-card {
    min-height: 120px;
  }

  .trainee-program-card {
    padding: 0.85rem 0.8rem 0.7rem;
  }

  .trainee-program-card h3 {
    font-size: 1.35rem;
  }

  .trainee-program-card p,
  .trainee-program-materials,
  .trainee-program-actions .trainee-btn,
  .trainee-program-actions .trainee-btn-outline,
  .trainee-program-details {
    font-size: 1.1rem;
  }

  .trainee-pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .trainee-modal-dialog {
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
  }

  .trainee-download-item {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .trainee-download-item__text {
    align-items: flex-start;
  }

  .trainee-modal-head h2 {
    font-size: 1.45rem;
  }
}

/* Final trainee parity overrides */
body.trainee-dashboard-page {
  background: #f8fafb;
}

body.trainee-dashboard-page .site-header.trainee-site-header .header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

body.trainee-dashboard-page .site-header.trainee-site-header .header-row {
  gap: 1rem;
}

body.trainee-dashboard-page .site-header.trainee-site-header .header-nav {
  flex-wrap: nowrap;
  gap: 0.3rem;
  margin-inline-start: 2.25rem;
}

body.trainee-dashboard-page .site-header.trainee-site-header .header-nav .nav-item {
  min-height: auto;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

body.trainee-dashboard-page .site-header.trainee-site-header .brand-logo-image {
  height: 48px !important;
}

body.trainee-dashboard-page .trainee-user-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

body.trainee-dashboard-page .trainee-user-summary__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

body.trainee-dashboard-page .trainee-user-summary__name {
  color: #111827;
  font-size: 1.1rem;
  line-height: 1.15;
  font-weight: 700;
  direction: rtl;
  text-align: right;
}

body.trainee-dashboard-page .trainee-user-summary__email {
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 400;
  direction: ltr;
}

body.trainee-dashboard-page .trainee-user-summary__avatar,
body.trainee-dashboard-page .trainee-user-summary__bell {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

body.trainee-dashboard-page .trainee-user-summary__avatar {
  background: #e8f5ed;
  color: var(--trainee-green);
}

body.trainee-dashboard-page .trainee-user-summary__bell {
  border: 0;
  background: transparent;
  color: #334155;
  position: relative;
}

body.trainee-dashboard-page .trainee-user-summary__bell::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.trainee-breadcrumb {
  min-height: 52px;
  font-size: 1rem;
  line-height: 1.4;
}

.trainee-main {
  padding: 2.5rem 0 3.5rem;
}

.trainee-page-head {
  gap: 0.35rem;
  margin-bottom: 1.6rem;
}

.trainee-page-head h1 {
  font-size: clamp(2.5rem, 3.8vw, 4rem);
  line-height: 1.15;
}

.trainee-page-head p {
  font-size: 1.05rem;
  line-height: 1.55;
}

.trainee-stat-card {
  min-height: 142px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
}

.trainee-stat-card__head {
  direction: rtl;
}

.trainee-stat-card__head h2 {
  max-width: calc(100% - 44px);
  font-size: 0.78rem;
  line-height: 1.3;
}

.trainee-stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
}

.trainee-stat-card strong {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
}

.trainee-programs-board {
  border-radius: 18px;
  padding: 0.9rem;
}

.trainee-program-card {
  padding: 0.9rem 0.95rem 0.8rem;
}

.trainee-program-card__head {
  direction: rtl;
}

.trainee-program-status {
  min-width: auto;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.trainee-program-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 1.7rem;
}

.trainee-program-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.25;
  text-align: right;
}

.trainee-program-card p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: right;
  color: #667085;
}

.trainee-program-materials {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--trainee-green);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
}

.trainee-program-materials:hover {
  background: transparent;
  color: var(--trainee-green-dark);
}

.trainee-btn,
.trainee-btn-outline {
  min-height: 28px;
  padding: 0 0.35rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-decoration: none;
  font-size: 0.65rem;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}

.trainee-btn {
  border: 1px solid var(--trainee-green);
}

.trainee-btn-outline {
  border-radius: 6px;
}

.trainee-btn i,
.trainee-btn-outline i,
.trainee-program-details i {
  font-size: 1rem;
}

.trainee-program-actions {
  direction: rtl;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.trainee-program-actions .trainee-btn,
.trainee-program-actions .trainee-btn-outline {
  min-height: 28px;
  padding: 0 0.35rem;
  gap: 0.25rem;
  font-size: 0.65rem;
  line-height: 1.1;
  font-weight: 400;
}

.trainee-program-details {
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-size: 0.75rem;
  gap: 0.35rem;
  white-space: nowrap;
}

.trainee-pagination button,
.trainee-pagination .dots {
  font-size: 1rem;
}

.trainee-survey-progress p {
  font-size: 1rem;
}

.trainee-survey-question__meta {
  font-size: 1rem;
}

.trainee-survey-question h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.25;
  text-align: right;
}

.trainee-survey-option {
  direction: rtl;
  text-align: right;
  font-size: 1.1rem;
  min-height: 60px;
  padding: 0.95rem 1.1rem;
}

.trainee-survey-option .indicator {
  width: 24px;
  height: 24px;
}

.trainee-survey-option .indicator::before {
  width: 10px;
  height: 10px;
}

.trainee-modal-head h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.trainee-download-item__text h3 {
  font-size: 1rem;
}

.trainee-download-item__text p,
.trainee-certificate-meta,
.trainee-certificate-sheet p,
.program-registration-modal__lead {
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  body.trainee-dashboard-page .site-header.trainee-site-header .header-nav {
    flex-wrap: wrap;
    margin-inline-start: 0;
  }

  body.trainee-dashboard-page .trainee-user-summary__email {
    display: none;
  }

  body.trainee-dashboard-page .trainee-user-summary__name {
    font-size: 0.95rem;
  }

  .trainee-breadcrumb {
    font-size: 0.92rem;
  }

  .trainee-page-head h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .trainee-page-head p {
    font-size: 0.95rem;
  }

  .trainee-stat-card__head h2 {
    font-size: 1.05rem;
  }

  .trainee-program-actions {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .trainee-program-details {
    order: 4;
    width: 100%;
    margin-inline-start: 0;
  }
}

@media (max-width: 575.98px) {
  body.trainee-dashboard-page .trainee-user-summary__identity {
    display: none;
  }

  .trainee-breadcrumb {
    font-size: 0.85rem;
  }

  .trainee-page-head h1 {
    font-size: 2rem;
  }

  .trainee-program-card h3 {
    font-size: 1.45rem;
  }

  .trainee-program-card p,
  .trainee-program-materials,
  .trainee-btn,
  .trainee-btn-outline,
  .trainee-program-details,
  .trainee-survey-option {
    font-size: 0.9rem;
  }
}

/* Final trainee parity patch */
body.trainee-dashboard-page .trainee-breadcrumb,
body.trainee-dashboard-page .breadcrumb-bar nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.trainee-dashboard-page .trainee-breadcrumb a,
body.trainee-dashboard-page .trainee-breadcrumb span,
body.trainee-dashboard-page .breadcrumb-bar nav a,
body.trainee-dashboard-page .breadcrumb-bar nav span {
  display: inline-flex;
  align-items: center;
}

body.trainee-dashboard-page .trainee-breadcrumb a,
body.trainee-dashboard-page .breadcrumb-bar nav a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 600;
}

body.trainee-dashboard-page .trainee-breadcrumb a:hover,
body.trainee-dashboard-page .breadcrumb-bar nav a:hover {
  color: var(--trainee-green);
}

body.trainee-dashboard-page .trainee-breadcrumb span[aria-current="page"],
body.trainee-dashboard-page .breadcrumb-bar nav span[aria-current="page"] {
  color: #475467;
  font-weight: 600;
}

body.trainee-dashboard-page .trainee-user-summary,
body.trainee-dashboard-page .trainee-program-actions,
body.trainee-dashboard-page .trainee-program-actions .trainee-btn,
body.trainee-dashboard-page .trainee-program-details,
body.trainee-dashboard-page .trainee-download-item,
body.trainee-dashboard-page .trainee-modal-footer,
.program-registration-summary,
.program-registration-summary__grid,
.program-registration-summary__item {
  direction: rtl;
}

body.trainee-dashboard-page .trainee-user-summary__bell i,
body.trainee-dashboard-page .trainee-user-summary__avatar i,
body.trainee-dashboard-page .trainee-stat-card__icon i,
body.trainee-dashboard-page .trainee-program-icon i,
body.trainee-dashboard-page .trainee-program-card [data-modal-open="certificateModal"] i,
body.trainee-dashboard-page .trainee-program-details i,
body.trainee-dashboard-page .trainee-download-item__icon i,
body.trainee-dashboard-page #downloadModal .trainee-btn i,
body.trainee-dashboard-page .trainee-certificate-badge i,
body.trainee-dashboard-page #certificateModal .trainee-modal-footer i,
body.trainee-dashboard-page .trainee-pagination button[aria-label] i,
body.trainee-dashboard-page .trainee-modal-close i,
.program-registration-modal .trainee-modal-close i {
  display: none;
}

body.trainee-dashboard-page .trainee-user-summary__bell {
  background: transparent url("../images/icons/Trainee Dashboard/header-notification.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-user-summary__avatar {
  background: #e8f5ed url("../images/icons/Trainee Dashboard/header-user.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-stat-card__head h2 {
  font-size: 18px;
  line-height: 1.35;
}

body.trainee-dashboard-page .trainee-stat-card:nth-child(1) .trainee-stat-card__icon {
  background: #dcefe5 url("../images/icons/Trainee Dashboard/stats-active-programs.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-stat-card:nth-child(2) .trainee-stat-card__icon {
  background: #dcefe5 url("../images/icons/Trainee Dashboard/stats-upcoming-programs.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-stat-card:nth-child(3) .trainee-stat-card__icon {
  background: #dcefe5 url("../images/icons/Trainee Dashboard/stats-completion.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-stat-card:nth-child(4) .trainee-stat-card__icon {
  background: #dcefe5 url("../images/icons/Trainee Dashboard/stats-certificates.svg") center / 18px 18px no-repeat;
}

body.trainee-dashboard-page .trainee-program-icon {
  background: var(--trainee-green) url("../images/icons/Trainee Dashboard/program-card.svg") center / 24px 24px no-repeat;
}

body.trainee-dashboard-page .trainee-program-card [data-modal-open="certificateModal"]::after,
body.trainee-dashboard-page #certificateModal .trainee-btn::after,
body.trainee-dashboard-page #downloadModal .trainee-btn::after,
body.trainee-dashboard-page #certificateModal .trainee-btn-outline::after,
body.trainee-dashboard-page .trainee-program-details::after,
.program-registration-modal__cta::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.trainee-dashboard-page .trainee-program-card [data-modal-open="certificateModal"]::after {
  background-image: url("../images/icons/Trainee Dashboard/certificate-button.svg");
}

body.trainee-dashboard-page .trainee-program-details::after {
  background-image: url("../images/icons/Trainee Dashboard/details-arrow.svg");
  transform: scaleX(-1);
}

body.trainee-dashboard-page .trainee-download-item__icon {
  background: #dcefe5 url("../images/icons/Trainee Dashboard/modal-file.svg") center / 22px 22px no-repeat;
}

body.trainee-dashboard-page .trainee-pagination button[aria-label] {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

body.trainee-dashboard-page .trainee-pagination button[aria-label="الصفحة السابقة"] {
  background-image: url("../images/icons/Trainee Dashboard/pagination-prev.svg");
}

body.trainee-dashboard-page .trainee-pagination button[aria-label="الصفحة التالية"] {
  background-image: url("../images/icons/Trainee Dashboard/pagination-next.svg");
}

body.trainee-dashboard-page #downloadModal .trainee-btn::after,
body.trainee-dashboard-page #certificateModal .trainee-btn::after {
  background-image: url("../images/icons/Trainee Dashboard/modal-download.svg");
}

body.trainee-dashboard-page #certificateModal .trainee-btn-outline::after {
  background-image: url("../images/icons/Trainee Dashboard/modal-share.svg");
}

body.trainee-dashboard-page .trainee-certificate-badge {
  background: #dcebe4 url("../images/icons/Trainee Dashboard/certificate-award.svg") center / 28px 28px no-repeat;
}

body.trainee-dashboard-page .trainee-modal-close,
.program-registration-modal .trainee-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent url("../images/icons/Trainee Dashboard/modal-close.svg") center / 16px 16px no-repeat;
}

body.trainee-dashboard-page .trainee-modal-head h2,
.program-registration-modal .trainee-modal-head h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.25;
}

body.trainee-dashboard-page .trainee-download-item__text,
.program-registration-summary__item div,
.program-registration-summary__notes,
.program-registration-summary__card {
  text-align: right;
}

.program-registration-modal .trainee-modal-dialog {
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 24px;
  border-color: #e7edf0;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.2);
  /* `clip` (not `hidden`) — see the .program-registration-form note below. */
  overflow: clip;
}

.program-registration-modal .trainee-modal-head {
  align-items: center;
  padding: 1.55rem 1.5rem 1rem;
  border-bottom: 0;
}

.program-registration-modal .trainee-modal-body {
  padding: 0 1.5rem 1.25rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.program-registration-modal .program-registration-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  /* `clip`, not `hidden`: selecting a course focuses the visually-hidden radio
     and the browser scrolls it into view. `overflow: hidden` clips but is still
     programmatically scrollable, so that scroll pushed the whole modal content
     out of the clipped area with no scrollbar to recover — the modal went blank.
     `overflow: clip` clips identically but is not a scroll container, so it can't
     be scrolled away. `.trainee-modal-body` stays `overflow: auto` and is the
     only scroll container. */
  overflow: clip;
}

.program-registration-modal .trainee-modal-footer {
  flex-shrink: 0;
}

.program-registration-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.program-registration-summary__card {
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  padding: 1.5rem;
  background: #fbfdfc;
}

.program-registration-course-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.program-registration-course-list__item {
  margin: 0;
}

.program-registration-course-card {
  display: block;
  cursor: pointer;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  padding: 1.25rem;
  background: #fbfdfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.program-registration-course-card:hover {
  border-color: #2f8a6b;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.program-registration-course-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.program-registration-course-card:has(.program-registration-course-card__input:checked) {
  border-color: #2f8a6b;
  background: #effaf3;
  box-shadow: 0 8px 22px rgba(47, 138, 107, 0.18);
}

.program-registration-course-card:focus-within {
  outline: 2px solid #2f8a6b;
  outline-offset: 2px;
}

.program-registration-summary__eyebrow {
  display: none;
}

.program-registration-summary__card h3 {
  margin: 0 0 0.55rem;
  color: #344054;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 700;
}

.program-registration-summary__card p {
  margin: 0;
  color: #6c737f;
  font-size: 0.94rem;
  line-height: 1.8;
}

.program-registration-summary__grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 1rem;
}

.program-registration-summary__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.program-registration-summary__item::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 0.2rem;
}

.program-registration-summary__item--trainer::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-trainer.svg");
}

.program-registration-summary__item--location::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-location.svg");
}

.program-registration-summary__item--organizer::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-organizer.svg");
}

.program-registration-summary__item--calendar::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-calendar.svg");
}

.program-registration-summary__item--duration::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-duration.svg");
}

.program-registration-summary__item--seats::before {
  background-image: url("../images/icons/Trainee Dashboard/registration-seats.svg");
}

.program-registration-summary__item h4,
.program-registration-summary__notes h4 {
  margin: 0 0 0.2rem;
  color: #6c737f;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.program-registration-summary__item p {
  margin: 0;
  color: #344054;
  font-size: 1rem;
  line-height: 1.5;
}

/* Location "view on map" link — styled as a clear hyperlink (blue + underline). */
.program-registration-summary__item--location a {
  color: #0d6efd;
  text-decoration: underline;
}

.program-registration-summary__item--location a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.program-registration-summary__notes {
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.program-registration-summary__notes ol {
  margin: 0;
  padding: 0 1.1rem 0 0;
  list-style: decimal;
  display: grid;
  gap: 0.35rem;
}

.program-registration-summary__notes li {
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.7;
}

.program-registration-modal .trainee-modal-footer {
  direction: ltr;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid #eceff3;
}

.program-registration-modal__cta {
  direction: rtl;
  min-height: 44px;
  padding-inline: 1rem 1.15rem;
  gap: 0.45rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.program-registration-modal__cta::after {
  background-image: url("../images/icons/Trainee Dashboard/registration-cta-arrow.svg");
}

.program-registration-modal .trainee-modal-close {
  width: 28px;
  height: 28px;
  background-size: 14px 14px;
}

.program-registration-modal .trainee-modal-head h2 {
  color: #344054;
  font-size: 1.95rem;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .program-registration-summary__grid {
    grid-template-columns: 1fr;
  }

  .program-registration-modal .trainee-modal-body,
  .program-registration-modal .trainee-modal-footer,
  .program-registration-modal .trainee-modal-head {
    padding-inline: 1rem;
  }

  .program-registration-modal .trainee-modal-dialog {
    width: min(100vw - 1rem, 672px);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .program-registration-modal .trainee-modal-head h2 {
    font-size: 1.4rem;
  }

  .program-registration-summary__card h3 {
    font-size: 1rem;
  }

  .program-registration-summary__grid {
    margin-top: 1.2rem;
    gap: 0.85rem;
  }

  .program-registration-summary__notes li {
    font-size: 0.88rem;
  }
}

/* Certificate and survey parity patch */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.trainee-dashboard-page {
  background: linear-gradient(135deg, rgba(0, 108, 53, 0.03) 0%, rgba(31, 78, 120, 0.03) 100%);
}

body.trainee-dashboard-page .trainee-stat-card__head h2,
body.trainee-dashboard-page .trainee-stat-card__head .trainee-stat-card__label {
  color: #6c737f;
  margin: 0;
  text-align: right;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
}

body.trainee-dashboard-page .trainee-survey-progress {
  border-radius: 18px;
  padding: 1.35rem 1.2rem 1rem;
  background: #fff;
}

body.trainee-dashboard-page .trainee-survey-progress p {
  margin: 0 0 0.6rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: right;
}

body.trainee-dashboard-page .trainee-progress-track {
  position: relative;
  height: 8px;
}

body.trainee-dashboard-page .trainee-progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
}

body.trainee-dashboard-page .trainee-survey-question {
  border-radius: 18px;
  padding: 1.1rem 1rem 1.25rem;
  background: #fff;
}

body.trainee-dashboard-page .trainee-survey-question__meta {
  margin: 0 0 0.45rem;
  color: #6c737f;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

body.trainee-dashboard-page .trainee-survey-question h2,
body.trainee-dashboard-page .trainee-survey-question .trainee-survey-question__title {
  margin: 0 0 1rem;
  color: #1f2937;
  display: block;
  text-align: right;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

body.trainee-dashboard-page .trainee-survey-options {
  gap: 0.75rem;
}

body.trainee-dashboard-page .trainee-survey-option {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0.9rem 3rem 0.9rem 1rem;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  text-align: right;
  font-size: 1rem;
  line-height: 1.4;
  justify-content: flex-start;
}

body.trainee-dashboard-page .trainee-survey-option__label {
  display: block;
  width: 100%;
  color: #344054;
  text-align: right;
}

body.trainee-dashboard-page .trainee-survey-option .indicator {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
}

body.trainee-dashboard-page .trainee-survey-option .indicator::before {
  width: 10px;
  height: 10px;
}

body.trainee-dashboard-page .trainee-survey-option.is-selected {
  border-color: #d8e8df;
  background: #fff;
}

body.trainee-dashboard-page .trainee-survey-option.is-selected .indicator {
  border-color: #98a2b3;
}

body.trainee-dashboard-page .trainee-survey-option.is-selected .indicator::before {
  background: var(--trainee-green);
}

body.trainee-dashboard-page .trainee-survey-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

body.trainee-dashboard-page .trainee-survey-nav--next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.trainee-dashboard-page .trainee-survey-nav--prev {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body.trainee-dashboard-page .trainee-survey-dots {
  display: flex;
  justify-content: center;
  direction: rtl;
  flex-direction: row;
}

body.trainee-dashboard-page .trainee-survey-dots span,
body.trainee-dashboard-page .trainee-survey-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  background: #e4e7ec;
  appearance: none;
}

body.trainee-dashboard-page .trainee-survey-dots span.active,
body.trainee-dashboard-page .trainee-survey-dots button.active {
  width: 24px;
  background: var(--trainee-green);
}

body.trainee-dashboard-page .trainee-survey-nav .trainee-btn,
body.trainee-dashboard-page .trainee-survey-nav .trainee-btn-outline {
  min-width: 68px;
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

body.trainee-dashboard-page .trainee-survey-nav .is-disabled,
body.trainee-dashboard-page .trainee-survey-nav .trainee-btn-outline:disabled,
body.trainee-dashboard-page .trainee-survey-nav .trainee-btn:disabled {
  border-color: #e4e7ec;
  background: #fff;
  color: #c0c6cf;
  cursor: default;
}

body.trainee-dashboard-page #certificateModal .trainee-modal-dialog {
  width: min(1010px, calc(100vw - 2rem));
  border-radius: 24px;
}

body.trainee-dashboard-page #certificateModal .trainee-modal-head {
  padding: 1.55rem 1.5rem 1.2rem;
}

body.trainee-dashboard-page #certificateModal .trainee-modal-head h2 {
  font-size: clamp(1.5rem, 2vw, 1.95rem);
}

body.trainee-dashboard-page #certificateModal .trainee-modal-body {
  padding: 1.5rem 1.5rem 0.85rem;
}

body.trainee-dashboard-page .trainee-certificate-preview {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: center;
}

body.trainee-dashboard-page .trainee-certificate-sheet {
  width: min(912px, 100%);
  min-height: 521px;
  padding: 48px 48px 4px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  flex-shrink: 0;
  border: 0;
  border-bottom: 4px solid #006c35;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(0, 108, 53, 0.03) 0%, rgba(31, 78, 120, 0.03) 100%);
  box-shadow: none;
}

body.trainee-dashboard-page .trainee-certificate-sheet__hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.trainee-dashboard-page .trainee-certificate-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  background-size: 28px 28px;
}

body.trainee-dashboard-page .trainee-certificate-sheet__platform,
body.trainee-dashboard-page .trainee-certificate-sheet__lead,
body.trainee-dashboard-page .trainee-certificate-sheet__completion {
  color: #6c737f;
}

body.trainee-dashboard-page .trainee-certificate-sheet__platform {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.4;
}

body.trainee-dashboard-page .trainee-certificate-sheet h3 {
  margin: 0 0 0.85rem;
  color: #344054;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

body.trainee-dashboard-page .trainee-certificate-sheet__lead {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.4;
}

body.trainee-dashboard-page .trainee-certificate-sheet .name {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 2.6vw, 2.65rem);
  line-height: 1.3;
}

body.trainee-dashboard-page .trainee-certificate-sheet__completion {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.5;
}

body.trainee-dashboard-page .trainee-certificate-sheet h4 {
  margin: 0 0 1.05rem;
  color: #344054;
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 700;
}

body.trainee-dashboard-page .trainee-certificate-meta {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  justify-content: center;
  gap: 1.4rem;
  color: #6c737f;
  font-size: 1rem;
}

body.trainee-dashboard-page .trainee-certificate-sheet__number {
  width: 100%;
  margin: auto 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid #eaecf0;
  color: #98a2b3;
  text-align: right;
  font-size: 1rem;
  line-height: 1.4;
}

body.trainee-dashboard-page #certificateModal .trainee-modal-footer {
  justify-content: center;
  gap: 0.7rem;
  padding: 0 1.5rem 1.25rem;
}

body.trainee-dashboard-page #certificateModal .trainee-modal-footer .trainee-btn,
body.trainee-dashboard-page #certificateModal .trainee-modal-footer .trainee-btn-outline {
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  body.trainee-dashboard-page .trainee-survey-footer {
    align-items: stretch;
  }

  body.trainee-dashboard-page .trainee-survey-nav--next,
  body.trainee-dashboard-page .trainee-survey-nav--prev,
  body.trainee-dashboard-page .trainee-survey-dots {
    width: 100%;
  }

  body.trainee-dashboard-page .trainee-survey-dots {
    justify-content: center;
  }

   body.trainee-dashboard-page .trainee-survey-nav--next,
   body.trainee-dashboard-page .trainee-survey-nav--prev {
    justify-content: flex-start;
  }

  body.trainee-dashboard-page .trainee-certificate-sheet {
    min-height: auto;
    padding: 2rem 1.5rem 0.35rem;
  }
}

@media (max-width: 575.98px) {
  body.trainee-dashboard-page .trainee-stat-card__head h2,
  body.trainee-dashboard-page .trainee-stat-card__head .trainee-stat-card__label {
    font-size: 16px;
    line-height: 1.3;
  }

  body.trainee-dashboard-page .trainee-survey-question h2,
  body.trainee-dashboard-page .trainee-survey-question .trainee-survey-question__title {
    font-size: 16px;
  }

  body.trainee-dashboard-page .trainee-survey-option {
    padding: 0.85rem 2.8rem 0.85rem 0.9rem;
  }

  body.trainee-dashboard-page #certificateModal .trainee-modal-head,
  body.trainee-dashboard-page #certificateModal .trainee-modal-body,
  body.trainee-dashboard-page #certificateModal .trainee-modal-footer {
    padding-inline: 1rem;
  }

  body.trainee-dashboard-page .trainee-certificate-sheet h4 {
    font-size: 1.25rem;
  }

  body.trainee-dashboard-page .trainee-certificate-meta {
    gap: 0.7rem;
    flex-direction: column;
  }
}

/* Trainee parity refinements */
body.trainee-dashboard-page .trainee-stats-grid.row,
body.trainee-dashboard-page .trainee-program-grid.row {
  display: flex;
}

body.trainee-dashboard-page .trainee-stats-grid.row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin-bottom: 1rem;
}

body.trainee-dashboard-page .trainee-program-grid.row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

body.trainee-dashboard-page .trainee-stats-grid__col,
body.trainee-dashboard-page .trainee-program-grid__col {
  display: flex;
}

body.trainee-dashboard-page .trainee-stats-grid__col > .trainee-stat-card,
body.trainee-dashboard-page .trainee-program-grid__col > .trainee-program-card {
  width: 100%;
}

body.trainee-dashboard-page .trainee-pagination {
  width: max-content;
  max-width: 100%;
  margin-top: 1.25rem;
  margin-inline-start: auto;
  margin-inline-end: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  gap: 6px;
}

body.trainee-dashboard-page .trainee-pagination .pagination {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  gap: 6px;
}

body.trainee-dashboard-page .trainee-pagination .page-item {
  display: flex;
}

body.trainee-dashboard-page .trainee-pagination .page-item:not(:first-child) .page-link {
  margin: 0;
}

body.trainee-dashboard-page .trainee-pagination__btn,
body.trainee-dashboard-page .trainee-pagination button {
  min-width: 26px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #161616;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

body.trainee-dashboard-page .trainee-pagination .page-link:focus {
  box-shadow: none;
}

body.trainee-dashboard-page .trainee-pagination .page-link:focus-visible {
  outline: 2px solid #1b8354;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.18);
}

body.trainee-dashboard-page .trainee-pagination__btn.is-page {
  width: 26px;
  min-width: 26px;
}

body.trainee-dashboard-page .trainee-pagination__btn.is-wide {
  width: 45px;
  min-width: 45px;
}

body.trainee-dashboard-page .trainee-pagination__btn.is-nav {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

body.trainee-dashboard-page .trainee-pagination button[aria-label] {
  background-size: 24px 24px;
}

body.trainee-dashboard-page .trainee-pagination button[aria-label="الصفحة السابقة"] {
  background-image: url("../images/icons/Trainee Dashboard/pagination-next.svg");
}

body.trainee-dashboard-page .trainee-pagination button[aria-label="الصفحة التالية"] {
  background-image: url("../images/icons/Trainee Dashboard/pagination-prev.svg");
}

body.trainee-dashboard-page .trainee-pagination button:hover:not(:disabled):not(.is-active) {
  background: #f4f6f8;
}

body.trainee-dashboard-page .trainee-pagination button[aria-label]:hover:not(:disabled),
body.trainee-dashboard-page .trainee-pagination button[aria-label]:focus-visible:not(:disabled) {
  background: transparent;
  color: #161616;
}

body.trainee-dashboard-page .trainee-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.trainee-dashboard-page .trainee-pagination button.is-active {
  border: none;
  background: transparent;
  color: #161616;
}

body.trainee-dashboard-page .trainee-pagination button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #1b8354;
  transform: translateX(-50%);
}

body.trainee-dashboard-page .trainee-pagination__dots,
body.trainee-dashboard-page .trainee-pagination .dots {
  min-width: 40px;
  height: 40px;
  border: 1px solid #161616;
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #161616;
  font-size: 16px;
}

body.trainee-dashboard-page .trainee-stat-card__head {
  direction: rtl;
  justify-content: flex-start;
  align-items: center;
}

body.trainee-dashboard-page .trainee-stat-card__label {
  order: 2;
  flex: 1;
  text-align: right;
}

body.trainee-dashboard-page .trainee-stat-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  order: 1;
  border-radius: 0;
}

body.trainee-dashboard-page .trainee-program-details {
  transition: color 0.2s ease;
}

body.trainee-dashboard-page .trainee-program-details::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("../images/icons/Trainee Dashboard/details-arrow.svg") center / contain no-repeat;
  transform: scaleX(-1);
  transition: transform 0.26s ease;
}

body.trainee-dashboard-page .trainee-program-details::before {
  content: none;
}

body.trainee-dashboard-page .trainee-program-details:hover::after {
  transform: translateX(-5px) scaleX(-1);
}

body.trainee-dashboard-page .trainee-download-item {
  direction: ltr;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "icon text action";
}

body.trainee-dashboard-page .trainee-download-item__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  grid-area: icon;
  justify-self: start;
  background: transparent url("../images/icons/Trainee Dashboard/modal-file.svg") center / 100% 100% no-repeat;
  border-radius: 0;
}

body.trainee-dashboard-page .trainee-download-item__text {
  grid-area: text;
  justify-self: end;
  width: 100%;
  direction: rtl;
  align-items: flex-end;
  text-align: right;
}

body.trainee-dashboard-page #downloadModal .trainee-download-item__text h3 {
  font-size: 14px !important;
  line-height: 1.45;
  width: 100%;
  text-align: right;
}

body.trainee-dashboard-page .trainee-download-item__text p {
  font-size: 12px;
  line-height: 1.4;
  width: 100%;
  text-align: right;
}

body.trainee-dashboard-page #downloadModal .trainee-modal-head h2 {
  font-size: 24px !important;
  line-height: 1.35;
}

body.trainee-dashboard-page #downloadModal .trainee-download-item .trainee-btn {
  font-size: 14px;
}

body.trainee-dashboard-page #downloadModal .trainee-download-item .trainee-btn {
  grid-area: action;
  justify-self: end;
}

body.trainee-dashboard-page .trainee-user-summary__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  order: 2;
  background: transparent url("../images/icons/Trainee Dashboard/header-user.svg") center / 100% 100% no-repeat;
  border-radius: 0;
}

body.trainee-dashboard-page .trainee-user-summary {
  direction: rtl;
  justify-content: flex-start;
}

body.trainee-dashboard-page .trainee-user-summary__identity {
  order: 3;
  align-items: flex-end;
  text-align: right;
}

body.trainee-dashboard-page .trainee-user-summary__name {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

body.trainee-dashboard-page .trainee-user-summary__identity {
  width: max-content;
  min-width: max-content;
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: center;
}

body.trainee-dashboard-page .trainee-user-summary__name,
body.trainee-dashboard-page .trainee-user-summary__email {
  display: block;
  width: 100%;
  text-align: right;
}

body.trainee-dashboard-page .trainee-user-summary__email {
  direction: ltr;
  unicode-bidi: plaintext;
}

body.trainee-dashboard-page .trainee-user-summary__bell {
  order: 1;
}

body.trainee-dashboard-page .trainee-page-head {
  align-items: flex-end;
  text-align: right;
  direction: rtl;
}

body.trainee-dashboard-page .trainee-page-head h1,
body.trainee-dashboard-page .trainee-page-head p {
  align-self: flex-end;
}

body.trainee-dashboard-page .trainee-page-head p {
  width: auto;
  text-align: right;
}

body.trainee-dashboard-page .trainee-program-card {
  direction: rtl;
}

body.trainee-dashboard-page .trainee-program-materials {
  display: inline-flex;
  width: fit-content;
  margin-inline-start: auto;
  margin-inline-end: 0;
  justify-content: flex-start;
  text-align: left;
  direction: rtl;
}

body.trainee-dashboard-page .trainee-program-actions {
  justify-content: flex-start;
}

body.trainee-dashboard-page .trainee-program-details {
  margin-inline-start: auto;
  margin-inline-end: 0;
  justify-content: flex-start;
  text-align: left;
}

body.trainee-dashboard-page .trainee-stats-grid__col:nth-child(1) .trainee-stat-card__icon,
body.trainee-dashboard-page .trainee-stats-grid > .trainee-stat-card:nth-child(1) .trainee-stat-card__icon {
  background: transparent url("../images/icons/Trainee Dashboard/stats-active-programs.svg") center / 100% 100% no-repeat;
}

body.trainee-dashboard-page .trainee-stats-grid__col:nth-child(2) .trainee-stat-card__icon,
body.trainee-dashboard-page .trainee-stats-grid > .trainee-stat-card:nth-child(2) .trainee-stat-card__icon {
  background: transparent url("../images/icons/Trainee Dashboard/stats-upcoming-programs.svg") center / 100% 100% no-repeat;
}

body.trainee-dashboard-page .trainee-stats-grid__col:nth-child(3) .trainee-stat-card__icon,
body.trainee-dashboard-page .trainee-stats-grid > .trainee-stat-card:nth-child(3) .trainee-stat-card__icon {
  background: transparent url("../images/icons/Trainee Dashboard/stats-completion.svg") center / 100% 100% no-repeat;
}

body.trainee-dashboard-page .trainee-stats-grid__col:nth-child(4) .trainee-stat-card__icon,
body.trainee-dashboard-page .trainee-stats-grid > .trainee-stat-card:nth-child(4) .trainee-stat-card__icon {
  background: transparent url("../images/icons/Trainee Dashboard/stats-certificates.svg") center / 100% 100% no-repeat;
}

body.trainee-dashboard-page .trainee-program-icon {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  background: transparent url("../images/icons/Trainee Dashboard/program-card.svg") center / 100% 100% no-repeat;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.trainee-dashboard-page .trainee-program-icon:has(img) {
  background-image: none;
}

body.trainee-dashboard-page .trainee-program-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

body.trainee-dashboard-page .trainee-certificate-badge {
  width: 80px;
  height: 80px;
  padding: 0 20px;
  box-sizing: border-box;
  background: transparent url("../images/icons/Trainee Dashboard/certificate-award.svg") center / 100% 100% no-repeat;
  border-radius: 0;
}

body.trainee-dashboard-page .trainee-program-actions > :nth-child(3)::after {
  content: none;
}

body.trainee-dashboard-page .trainee-program-actions > :nth-child(3)::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("../images/icons/Trainee Dashboard/certificate-button.svg") center / contain no-repeat;
}

body.trainee-dashboard-page .trainee-program-card.is-closed .trainee-program-actions > :nth-child(3)::before {
  background-image: url("../images/icons/Trainee Dashboard/certificate-button close.svg");
}

body.trainee-dashboard-page .trainee-program-actions > :nth-child(3) {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body.trainee-dashboard-page .trainee-program-actions > :nth-child(3) i {
  display: none !important;
}

@media (max-width: 767.98px) {
  body.trainee-dashboard-page .trainee-pagination .pagination {
    flex-wrap: wrap;
  }

  body.trainee-dashboard-page .trainee-pagination {
    flex-wrap: wrap;
  }

  body.trainee-dashboard-page .trainee-download-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "text"
      "action";
  }

  body.trainee-dashboard-page .trainee-download-item__icon,
  body.trainee-dashboard-page #downloadModal .trainee-download-item .trainee-btn {
    justify-self: end;
  }
}

/* Trainee home follow-up patch */
body.trainee-home-page .breadcrumb-bar nav,
body.trainee-survey-page .breadcrumb-bar nav {
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

body.trainee-home-page .breadcrumb-bar nav a,
body.trainee-survey-page .breadcrumb-bar nav a {
  color: #6b7280;
  font-weight: 400;
}

body.trainee-home-page .breadcrumb-bar nav a:hover,
body.trainee-survey-page .breadcrumb-bar nav a:hover {
  color: #6b7280;
}

body.trainee-home-page .breadcrumb-bar nav span[aria-current="page"],
body.trainee-survey-page .breadcrumb-bar nav span[aria-current="page"] {
  color: #000000;
  font-weight: 400;
}

body.trainee-home-page .trainee-page-head {
  width: 100%;
  align-items: stretch;
  text-align: right;
}

body.trainee-home-page .trainee-page-head h1,
body.trainee-home-page .trainee-page-head p {
  width: 100%;
  align-self: auto;
}

body.trainee-home-page .trainee-program-details {
  margin-inline-start: auto;
  margin-inline-end: 0;
  justify-content: flex-start;
}

body.trainee-home-page .trainee-pagination {
  width: max-content;
  max-width: 100%;
  margin-top: 1.25rem;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

body.trainee-home-page .trainee-pagination .admin-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn {
  min-width: 26px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #161616;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn.is-page {
  width: 26px;
  min-width: 26px;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn.is-wide {
  width: 45px;
  min-width: 45px;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn.is-nav {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn[aria-label] {
  background-image: none;
  background-size: auto;
}

body.trainee-home-page .trainee-pagination .admin-pagination__icon {
  width: 24px;
  height: 24px;
  display: block;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn:hover:not(:disabled):not(.is-active) {
  background: #f4f6f8;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn[aria-label]:hover:not(:disabled),
body.trainee-home-page .trainee-pagination .admin-pagination__btn[aria-label]:focus-visible:not(:disabled) {
  background: #f4f6f8;
  color: #161616;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn.is-active {
  color: #161616;
}

body.trainee-home-page .trainee-pagination .admin-pagination__btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #1b8354;
}

body.trainee-home-page .trainee-pagination .admin-pagination__dots {
  min-width: 40px;
  height: 40px;
  border: 1px solid #161616;
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #161616;
  font-size: 16px;
}

.trainee-program-status.is-finished      { color: #198754; background: #d1e7dd; }
.trainee-program-status.is-under-study   { color: #0d6efd; background: #cfe2ff; }
.trainee-program-status.is-implementing  { color: #20c997; background: #d2f4ea; }
.trainee-program-status.is-rejected      { color: #dc3545; background: #f8d7da; }

/* Trainee settings pages */
body.trainee-settings-page .trainee-settings-main {
  padding: 35px 0 24px;
  direction: rtl;
}

body.trainee-settings-page .trainee-settings-main .trainee-shell {
  width: 100%;
  margin: 0;
  padding: 0 52px 0 40px;
}

body.trainee-settings-page .trainee-page-head {
  width: 100%;
  margin-bottom: 28px;
  align-items: flex-end;
}

body.trainee-settings-page .trainee-page-head h1 {
  margin: 0;
  color: #384250;
  font-size: 36px;
  line-height: 54px;
  font-weight: 700;
}

body.trainee-settings-email-page .trainee-page-head h1 {
  width: 100%;
  text-align: right;
}

body.trainee-settings-main-page .trainee-page-head h1 {
  width: 100%;
  text-align: right;
}

body.trainee-settings-page .trainee-settings-form-card {
  width: 100%;
  border: 1px solid #ecf0f3;
  border-radius: 12px;
  background: #ffffff;
  padding: clamp(16px, 2vw, 24px) clamp(12px, 1.4vw, 16px);
}

body.trainee-settings-page .trainee-settings-panel {
  position: relative;
  border: 1px solid #e6e8e6;
  border-radius: 10px;
  background: #fff;
  padding: 23px;
}

body.trainee-settings-page .trainee-settings-panel::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: #1f7a4d;
}

body.trainee-settings-page .trainee-settings-profile {
  width: 100%;
  margin: 0;
}

body.trainee-settings-page .trainee-settings-profile__avatar-wrap {
  position: relative;
  width: 76px;
  margin-inline-start: auto;
  margin-inline-end: 8px;
}

body.trainee-settings-page .trainee-settings-profile__avatar {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 1px solid #d5e9db;
  background: #e8f3ec;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body.trainee-settings-page .trainee-settings-profile__avatar img {
  width: 34px;
  height: 34px;
  display: block;
}

/* Real user photo fills the whole circle (the icon fallback keeps the 34px rule above) */
body.trainee-settings-page .trainee-settings-profile__avatar img.trainee-settings-profile__avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

/* Loader shown inside the avatar while a new photo uploads */
body.trainee-settings-page .trainee-settings-profile__avatar .spinner-border {
  width: 34px;
  height: 34px;
  color: #1b8354;
}

body.trainee-settings-page .trainee-settings-profile__badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: grid;
  place-items: center;
  background: #1f7a4d;
  color: #ffffff;
}

body.trainee-settings-page .trainee-settings-profile__badge img {
  width: 13px;
  height: 13px;
  display: block;
}

body.trainee-settings-page .trainee-settings-profile__info {
  width: 463px;
  max-width: 100%;
}

body.trainee-settings-page .trainee-settings-profile__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
}

body.trainee-settings-page .trainee-settings-profile__row + .trainee-settings-profile__row {
  margin-top: 8px;
}

body.trainee-settings-page .trainee-settings-profile__row h2 {
  margin: 0;
  color: #111613;
  font-size: 18px !important;
  line-height: 27px !important;
  font-weight: 700 !important;
  text-align: right;
}

body.trainee-settings-page .trainee-settings-profile__row p {
  margin: 0;
  color: #7a8581;
  font-size: 13px !important;
  line-height: 19.5px !important;
  text-align: right;
}

body.trainee-settings-page .trainee-settings-link {
  display: inline-block;
  height: auto;
  padding: 0;
  color: #006c35;
  text-decoration: none;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

body.trainee-settings-page .trainee-settings-link:hover {
  text-decoration: underline;
}

body.trainee-settings-page .trainee-settings-panel__title {
  margin: 0 0 14px;
  color: #111613;
  font-size: 15px !important;
  line-height: 22.5px !important;
  font-weight: 700 !important;
  text-align: right;
}

body.trainee-settings-page .trainee-settings-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.trainee-settings-page .trainee-settings-form__field {
  min-width: 0;
  text-align: right;
  direction: rtl;
}

body.trainee-settings-page .trainee-settings-form .form-label {
  display: block;
  width: 100%;
  text-align: right;
  direction: rtl;
  color: #3b4340;
  font-size: 12.5px;
  line-height: 19px;
  font-weight: 500;
  margin-bottom: 6px;
}

body.trainee-settings-page .trainee-settings-form .form-control {
  height: 40px;
  border: 1px solid #e6e8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #111613;
  font-size: 14px;
  line-height: 20px;
  direction: rtl;
  padding: 0 12px;
  text-align: right;
}

body.trainee-settings-page .trainee-settings-form .form-control:focus {
  border-color: #1b8354;
  box-shadow: 0 0 0 3px rgba(11, 106, 67, 0.12);
}

body.trainee-settings-page .trainee-settings-panel .password-input-group {
  position: relative;
}

body.trainee-settings-page .trainee-settings-panel .password-input-group .form-control {
  padding-left: 2.9rem;
}

body.trainee-settings-page .trainee-settings-panel .password-input-group .form-control.is-invalid,
body.trainee-settings-page .trainee-settings-panel .password-input-group .form-control.is-valid,
body.trainee-settings-page .trainee-settings-panel .was-validated .password-input-group .form-control:invalid,
body.trainee-settings-page .trainee-settings-panel .was-validated .password-input-group .form-control:valid {
  padding-left: 2.9rem;
  background-image: none;
}

body.trainee-settings-page .trainee-settings-panel .password-input-group .form-control[type="password"]::-ms-reveal,
body.trainee-settings-page .trainee-settings-panel .password-input-group .form-control[type="password"]::-ms-clear {
  display: none;
}

body.trainee-settings-page .trainee-settings-panel .password-toggle {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: #6f7d78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

body.trainee-settings-page .trainee-settings-panel .password-toggle:hover {
  color: #1b8354;
}

body.trainee-settings-page .trainee-settings-panel .password-toggle:focus-visible {
  outline: 2px solid rgba(11, 106, 67, 0.22);
  outline-offset: 2px;
  border-radius: 999px;
}

body.trainee-settings-page .trainee-settings-panel .password-input-group.has-invalid + .invalid-feedback {
  display: block;
}

body.trainee-settings-page .trainee-settings-panel .password-input-group.has-valid + .invalid-feedback {
  display: none;
}

body.trainee-settings-page .trainee-settings-panel .invalid-feedback {
  width: 100%;
  text-align: right;
  direction: rtl;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

body.trainee-settings-page .trainee-settings-panel__footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #eef0ee;
  display: flex;
  justify-content: flex-start;
}

body.trainee-settings-page .trainee-settings-submit {
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1f7a4d;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  gap: 8px;
}

body.trainee-settings-page .trainee-settings-submit:hover {
  background: #18673f;
}

body.trainee-settings-page .breadcrumb-bar nav {
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

body.trainee-settings-page .breadcrumb-bar nav a {
  color: #6b7280;
  font-weight: 400;
  text-decoration: none;
}

body.trainee-settings-page .breadcrumb-bar nav a:hover {
  color: #6b7280;
}

body.trainee-settings-page .breadcrumb-bar nav .sep {
  color: #9ca3af;
  font-weight: 400;
}

body.trainee-settings-page .breadcrumb-bar nav span[aria-current="page"] {
  color: #000000;
  font-weight: 400;
}

@media (max-width: 1199.98px) {
  body.trainee-settings-page .trainee-settings-main {
    padding: 28px 0 24px;
  }

  body.trainee-settings-page .trainee-settings-main .trainee-shell {
    padding: 0 18px 0 16px;
  }

  body.trainee-settings-page .trainee-page-head h1 {
    font-size: 34px;
    line-height: 46px;
  }

  body.trainee-settings-page .trainee-settings-panel {
    padding: 18px 16px;
  }
}

@media (max-width: 767.98px) {
  body.trainee-settings-page .trainee-page-head {
    margin-bottom: 20px;
  }

  body.trainee-settings-page .trainee-page-head h1 {
    font-size: 32px;
    line-height: 40px;
  }

  body.trainee-settings-page .trainee-settings-form-card {
    padding: 16px 12px;
  }

  body.trainee-settings-page .trainee-settings-panel {
    padding: 18px 16px;
  }

  body.trainee-settings-page .trainee-settings-profile__row {
    grid-template-columns: 1fr;
    justify-items: end;
    row-gap: 4px;
    column-gap: 0;
  }

  body.trainee-settings-page .trainee-settings-profile__row h2,
  body.trainee-settings-page .trainee-settings-profile__row p {
    width: 100%;
  }

  body.trainee-settings-page .trainee-settings-panel__footer {
    justify-content: stretch;
  }

  body.trainee-settings-page .trainee-settings-submit {
    width: 100%;
    justify-content: center;
  }
}
