/**
 * Andalali - Career & Learning Network
 * Custom design layer (loaded after style.min.css)
 * Every component is namespaced with .al- to avoid clashing with Sngine core.
 */

:root {
  --al-primary: #5426ef;
  --al-primary-soft: #f0ecff;
  --al-primary-dark: #3f18c9;
  --al-accent: #169363;
  --al-accent-soft: #e8f9f2;
  --al-warn: #bc7311;
  --al-warn-soft: #fff6e8;
  --al-danger: #ed4266;
  --al-danger-soft: #fff0f2;
  --al-ink: #10112f;
  --al-bg: #f7f9fd;
  --al-card: #ffffff;
  --al-border: #eceefa;
  --al-text: #10112f;
  --al-muted: #646581;
  --al-radius: 12px;
  --al-shadow: 0 1px 2px rgba(16, 17, 47, .04), 0 1px 3px rgba(16, 17, 47, .03);
  --al-shadow-lg: 0 12px 32px rgba(16, 17, 47, .10);
}

body.al-theme {
  background: var(--al-bg);
  color: var(--al-text);
}

/* ==========================================================================
   Header
   ========================================================================== */

.al-header {
  background: #fff !important;
  border-bottom: 1px solid var(--al-border);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.al-header .al-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.al-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--al-text) !important;
}

.al-brand .al-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--al-primary), #6f8cff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex: 0 0 auto;
}

.al-brand img {
  max-height: 34px;
  width: auto;
}

.al-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  overflow: hidden;
}

.al-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #55617a !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.al-nav a:hover {
  background: var(--al-primary-soft);
  color: var(--al-primary) !important;
}

.al-nav a.active {
  background: var(--al-primary-soft);
  color: var(--al-primary) !important;
}

.al-nav a svg,
.al-nav a i {
  width: 16px;
  height: 16px;
}
/* standalone nav bar (site-wide career navigation) */
.al-navbar {
  background: #fff;
  border-bottom: 1px solid var(--al-border);
}

.al-navbar .al-nav {
  min-height: 46px;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.al-navbar .al-nav::-webkit-scrollbar {
  display: none;
}

.al-navbar .al-nav a {
  padding: 7px 11px;
  font-size: 13px;
}

.al-navbar .al-nav a span {
  white-space: nowrap;
}



.al-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.al-search {
  position: relative;
  width: 230px;
}

.al-search input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--al-border);
  background: #f7f9fd;
  padding: 0 14px 0 38px;
  font-size: 13.5px;
  color: var(--al-text);
  outline: none;
  transition: border-color .15s, background .15s;
}

.al-search input::placeholder {
  color: #9aa5ba;
}

.al-search input:focus {
  background: #fff;
  border-color: var(--al-primary);
}

.al-search .al-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa5ba;
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.al-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--al-border);
  background: #fff;
  color: #55617a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.al-icon-btn:hover {
  background: var(--al-primary-soft);
  color: var(--al-primary);
}

.al-icon-btn .al-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--al-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.al-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--al-border);
  background: #fff;
  text-decoration: none !important;
  color: var(--al-text) !important;
}

.al-user-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.al-user-chip .al-user-chip-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-user-chip .al-user-chip-role {
  font-size: 11px;
  color: var(--al-muted);
  line-height: 1.1;
}

.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, background .15s, color .15s;
}

.al-btn svg,
.al-btn i {
  width: 16px;
  height: 16px;
}

.al-btn-primary {
  background: var(--al-primary);
  color: #fff !important;
}

.al-btn-primary:hover {
  filter: brightness(1.07);
}

.al-btn-dark {
  background: #17233c;
  color: #fff !important;
}

.al-btn-dark:hover {
  filter: brightness(1.35);
}

.al-btn-ghost {
  background: #fff;
  border-color: var(--al-border);
  color: var(--al-text) !important;
}

.al-btn-ghost:hover {
  border-color: var(--al-primary);
  color: var(--al-primary) !important;
}

.al-btn-soft {
  background: var(--al-primary-soft);
  color: var(--al-primary) !important;
}

.al-btn-block {
  width: 100%;
}

.al-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.al-btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 8px;
}

.al-header-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--al-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Dashboard shell / columns
   (column ratios, gaps & breakpoints follow the reference UI design)
   ========================================================================== */

/* full width :: the page runs edge to edge, no left/right gutter */
.al-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 0 48px;
}

.al-dashboard {
  display: grid;
  /* jobs | candidates | feed | profile | extra
     (width ratios taken from the reference UI design, feed widened a touch) */
  grid-template-columns:
    minmax(172px, 0.86fr) minmax(188px, 0.92fr) minmax(410px, 2.2fr) minmax(212px, 1.05fr) minmax(205px, 0.98fr);
  gap: 9px;
  align-items: start;
}

.al-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.al-sticky {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* the design stacks the column blocks with the 10px gap, not with card margins */
.al-dashboard .al-card,
.al-dashboard .al-promo {
  margin-bottom: 0;
}

.al-card {
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.al-card:last-child {
  margin-bottom: 0;
}

.al-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.al-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--al-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-card-title svg,
.al-card-title i {
  width: 16px;
  height: 16px;
  color: var(--al-primary);
}

.al-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--al-primary) !important;
  text-decoration: none !important;
}

.al-card-body {
  padding: 6px 16px 16px;
}

.al-card-pad {
  padding: 16px;
}

.al-muted {
  color: var(--al-muted) !important;
}

.al-text-sm {
  font-size: 12.5px;
}

.al-text-xs {
  font-size: 11.5px;
}

.al-strong {
  font-weight: 600;
  color: var(--al-text);
}

.al-divider {
  height: 1px;
  background: var(--al-border);
  margin: 10px 0;
  border: 0;
}

.al-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--al-muted);
  font-size: 12.5px;
}

/* category list (All Jobs) */
.al-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.al-cat-list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #4c5871 !important;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}

.al-cat-list li a:hover {
  background: #f5f7fc;
  color: var(--al-primary) !important;
}

.al-cat-list li a.active {
  background: var(--al-primary);
  color: #fff !important;
}

.al-cat-list li a.active .al-cat-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.al-cat-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-cat-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f0f3fa;
  color: var(--al-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* dark promo card */
.al-promo {
  background: linear-gradient(150deg, #12305e 0%, #1a5cff 100%);
  border-radius: var(--al-radius);
  padding: 16px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--al-shadow);
}

.al-promo-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}

.al-promo-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 14px;
}

.al-toggle {
  display: flex;
  background: rgba(255, 255, 255, .14);
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 14px;
}

.al-toggle button {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.al-toggle button.active {
  background: #fff;
  color: #12305e;
}

.al-stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.al-stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
}

.al-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.al-mini-row:first-of-type {
  border-top: 0;
}

.al-mini-row b {
  color: #fff;
}

/* candidate / people rows */
.al-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--al-border);
}

.al-person:last-child {
  border-bottom: 0;
}

.al-person img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.al-person-info {
  flex: 1 1 auto;
  min-width: 0;
}

.al-person-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--al-text) !important;
  text-decoration: none !important;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-person-role {
  font-size: 11.5px;
  color: var(--al-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-match {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--al-accent-soft);
  color: #0a8a63;
}

/* ==========================================================================
   Feed column
   ========================================================================== */

.al-feed {
  min-width: 0;
}

.al-hero {
  position: relative;
  border-radius: var(--al-radius);
  overflow: hidden;
  background: linear-gradient(100deg, #0a0d24 0%, #131a33 48%, #26312e 100%);
  color: #fff;
  padding: 26px 24px;
  margin-bottom: 16px;
  box-shadow: var(--al-shadow);
}

.al-hero:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.al-hero:before {
  content: "";
  position: absolute;
  right: 90px;
  top: -110px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.al-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.al-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

/* right hand stat tiles inside the hero */
.al-hero-side {
  display: grid;
  gap: 6px;
  min-width: 118px;
  z-index: 2;
}

.al-hero-side a {
  display: block;
  background: rgba(255, 255, 255, .96);
  color: var(--al-text) !important;
  border-radius: 9px;
  padding: 6px 10px;
  text-decoration: none !important;
  transition: transform .15s;
}

.al-hero-side a:hover {
  transform: translateY(-1px);
}

.al-hero-side b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--al-primary);
}

.al-hero-side span {
  font-size: 10px;
  color: var(--al-muted);
}

.al-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 10px;
}

.al-hero h1 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
}

.al-hero p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 18px;
  line-height: 1.55;
}

.al-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.al-hero-actions .al-btn {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff !important;
}

.al-hero-actions .al-btn:hover {
  background: rgba(255, 255, 255, .26);
}

.al-hero-actions .al-btn.al-btn-solid {
  background: #fff;
  border-color: #fff;
  color: #12305e !important;
}

.al-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.al-hero-stat b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.al-hero-stat span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
}

/* composer */
.al-composer {
  background: #fff;
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.al-composer-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.al-composer-top img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.al-composer-fake {
  flex: 1 1 auto;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--al-border);
  background: #f7f9fd;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13.5px;
  color: #98a3b8;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}

.al-composer-fake:hover {
  background: #fff;
  border-color: var(--al-primary);
}

.al-composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--al-border);
}

.al-composer-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #55617a;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.al-composer-tool:hover {
  background: #f5f7fc;
  color: var(--al-primary);
}

.al-composer-tool svg,
.al-composer-tool i {
  width: 17px;
  height: 17px;
}

.al-composer-tool.al-t-photo svg {
  color: #00b884;
}

.al-composer-tool.al-t-video svg {
  color: #ff9f0a;
}

.al-composer-tool.al-t-job svg {
  color: #1a5cff;
}

.al-composer-tool.al-t-course svg {
  color: #8b5cf6;
}

/* feed tabs (reference design: white bar with an underline on the active tab) */
.al-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 7px;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.al-tabs::-webkit-scrollbar {
  display: none;
}

.al-tabs a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: #55617a !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.al-tabs a:hover,
.al-tabs a.active {
  color: var(--al-primary) !important;
  border-bottom-color: var(--al-primary);
}

.al-feed-stream {
  min-width: 0;
}

/* ---------------------------------------------------------------------------
   The shared newsfeed panel (announcements, stories, composer, widgets) and
   the post stream live inside the feed column: they keep the design's 10px
   rhythm instead of the theme's stacked card margins.
   --------------------------------------------------------------------------- */

.al-feed>*,
.al-feed-stream>* {
  margin-bottom: 0;
}

.al-feed .publisher {
  margin-bottom: 0;
}

/* theme cards coming from the newsfeed panel follow the reference design */
.al-feed .card,
.al-feed .post {
  margin-bottom: 10px;
  border-radius: 7px;
}

.al-feed .card-header {
  border-radius: 7px 7px 0 0 !important;
}

.al-feed .card-footer {
  border-radius: 0 0 7px 7px !important;
}

.al-feed .post:last-child,
.al-feed .card:last-child {
  margin-bottom: 0;
}

.al-feed-stream ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Right hand asides
   ========================================================================== */

.al-profile-head {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--al-border);
}

.al-profile-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 10px;
}

.al-profile-avatar img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--al-primary-soft);
}

.al-profile-avatar .al-profile-online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--al-accent);
  border: 2px solid #fff;
}

.al-profile-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--al-text) !important;
  text-decoration: none !important;
  display: block;
}

.al-profile-headline {
  font-size: 12px;
  color: var(--al-muted);
  margin: 0 0 3px;
}

.al-profile-loc {
  font-size: 11.5px;
  color: #98a3b8;
}

.al-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--al-accent-soft);
  color: #0a8a63;
}

.al-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--al-border);
  text-align: center;
}

.al-profile-stats a {
  padding: 11px 4px;
  text-decoration: none !important;
  border-left: 1px solid var(--al-border);
}

.al-profile-stats a:first-child {
  border-left: 0;
}

.al-profile-stats b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--al-text);
  line-height: 1.1;
}

.al-profile-stats span {
  font-size: 10.5px;
  color: var(--al-muted);
}

/* intro video */
.al-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16/10;
  margin-bottom: 10px;
}

.al-video video,
.al-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

img.al-list-icon {
  object-fit: cover;
}

.al-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, .12), rgba(15, 23, 42, .55));
  cursor: pointer;
  border: 0;
  width: 100%;
}

.al-video-play span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12305e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.al-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(45deg, #16233c, #16233c 12px, #1b2b48 12px, #1b2b48 24px);
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  text-align: center;
  padding: 14px;
}

/* progress */
.al-progress {
  height: 8px;
  border-radius: 999px;
  background: #eef2f9;
  overflow: hidden;
  margin: 8px 0 6px;
}

.al-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--al-primary), #6f8cff);
}

.al-progress.al-progress-green span {
  background: linear-gradient(90deg, #00b884, #4dd6ab);
}

/* job match rows */
.al-job {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--al-border);
  border-radius: 11px;
  margin-bottom: 8px;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}

.al-job:hover {
  border-color: var(--al-primary);
  box-shadow: var(--al-shadow);
}

.al-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.al-job-title {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--al-text) !important;
  line-height: 1.25;
}

.al-job-company {
  font-size: 11.5px;
  color: var(--al-muted);
  margin-top: 1px;
}

.al-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.al-tag {
  font-size: 10.8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f2f5fb;
  color: #64708a;
}

.al-tag-blue {
  background: var(--al-primary-soft);
  color: var(--al-primary);
}

.al-tag-green {
  background: var(--al-accent-soft);
  color: #0a8a63;
}

/* courses */
.al-course {
  display: block;
  text-decoration: none !important;
  margin-bottom: 12px;
}

.al-course:last-child {
  margin-bottom: 0;
}

.al-course-thumb {
  width: 100%;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f9;
  margin-bottom: 8px;
  display: block;
}

.al-course-title {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--al-text) !important;
  line-height: 1.3;
  margin-bottom: 4px;
}

.al-course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--al-muted);
}

/* group rows */
.al-group-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none !important;
}

.al-group-row img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

/* events */
.al-event {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--al-border);
  text-decoration: none !important;
}

.al-event:last-child {
  border-bottom: 0;
}

.al-event-date {
  flex: 0 0 auto;
  width: 40px;
  border-radius: 9px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  text-align: center;
  padding: 5px 0 6px;
}

.al-event-date b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.al-event-date span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.al-event-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--al-text) !important;
  line-height: 1.3;
}

.al-event-sub {
  font-size: 11px;
  color: var(--al-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Shared helpers
   ========================================================================== */

.al-card-sub {
  font-size: 11.5px;
  color: var(--al-muted);
  line-height: 1.5;
  margin: 0;
}

.al-head-block {
  padding: 14px 16px 0;
}

.al-section-hint {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--al-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ==========================================================================
   Category rows (All Jobs / specialisations)
   ========================================================================== */

.al-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #f5f5fa;
  text-decoration: none !important;
  border-radius: 8px;
}

.al-cat-row:last-of-type {
  border-bottom: 0;
}

.al-cat-row:hover {
  background: #f7f4ff;
}

.al-cat-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-cat-icon svg,
.al-cat-icon i {
  width: 18px;
  height: 18px;
}

.al-cat-row:nth-of-type(3n+2) .al-cat-icon {
  background: var(--al-accent-soft);
  color: var(--al-accent);
}

.al-cat-row:nth-of-type(3n+3) .al-cat-icon {
  background: var(--al-warn-soft);
  color: var(--al-warn);
}

.al-cat-row:nth-of-type(5n+4) .al-cat-icon {
  background: var(--al-danger-soft);
  color: var(--al-danger);
}

.al-cat-text {
  flex: 1 1 auto;
  min-width: 0;
}

.al-cat-text .al-cat-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--al-text) !important;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-cat-text small {
  display: block;
  font-size: 10.5px;
  color: var(--al-muted);
}

.al-cat-arrow {
  flex: 0 0 auto;
  color: #c3c8dc;
  font-size: 15px;
  line-height: 1;
}

/* ==========================================================================
   Call to action cards
   ========================================================================== */

.al-cta {
  position: relative;
  border-radius: var(--al-radius);
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--al-shadow);
}

.al-cta h6 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 5px;
  letter-spacing: -.2px;
}

.al-cta p {
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.al-cta .al-btn {
  position: relative;
  z-index: 1;
}

.al-cta-employer {
  background: #ece8ff;
  color: var(--al-primary);
}

.al-cta-employer p {
  color: #5b4bb5;
}

.al-cta-employer .al-btn-ghost {
  background: #fff;
  border-color: #ddd4ff;
  color: var(--al-primary) !important;
}

.al-cta-candidate {
  background: linear-gradient(135deg, #4f29dc 0%, #3015ad 100%);
  color: #fff;
}

.al-cta-candidate p {
  color: rgba(255, 255, 255, .82);
}

.al-cta-candidate .al-btn {
  background: #fff;
  border-color: #fff;
  color: #3015ad !important;
}

.al-cta-art {
  position: absolute;
  right: -4px;
  bottom: -10px;
  font-size: 62px;
  line-height: 1;
  opacity: .14;
  z-index: 0;
}

.al-cta-candidate .al-cta-art {
  opacity: .22;
}

/* ==========================================================================
   In-card filter controls
   ========================================================================== */

.al-seg {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--al-border);
  margin: 6px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.al-seg::-webkit-scrollbar {
  display: none;
}

.al-seg button {
  border: 0;
  background: none;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--al-muted);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}

.al-seg button.active {
  color: var(--al-primary);
  box-shadow: inset 0 -2px 0 var(--al-primary);
}

.al-checks {
  display: grid;
  gap: 7px;
  margin: 8px 0 16px;
}

.al-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11.5px;
  color: var(--al-muted);
  cursor: pointer;
}

.al-checks input {
  margin: 0;
  accent-color: var(--al-primary);
}

.al-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}

.al-chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f0f1f8;
  color: #4d5871 !important;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}

.al-chip:hover {
  background: var(--al-primary-soft);
  color: var(--al-primary) !important;
}

.al-chip.al-chip-active {
  background: var(--al-primary);
  color: #fff !important;
}

/* ==========================================================================
   Profile strength / checklists
   ========================================================================== */

.al-strength-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.al-strength-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--al-text);
  line-height: 1;
}

.al-strength-val small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--al-muted);
  letter-spacing: .3px;
}

.al-checklist {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.al-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: #4d5871;
  line-height: 1.4;
}

.al-checklist li a {
  color: #4d5871 !important;
  text-decoration: none !important;
}

.al-checklist li a:hover {
  color: var(--al-primary) !important;
}

.al-check-done {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--al-accent);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}

.al-check-pending {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #c9cfe0;
}

/* ==========================================================================
   List rows with icon tiles / badges
   ========================================================================== */

.al-list-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--al-border);
  text-decoration: none !important;
}

.al-list-row:last-of-type {
  border-bottom: 0;
}

.al-list-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #142e5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-list-icon svg,
.al-list-icon i {
  width: 17px;
  height: 17px;
}

.al-list-body {
  flex: 1 1 auto;
  min-width: 0;
}

.al-list-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--al-text) !important;
  line-height: 1.3;
}

.al-list-title a {
  color: var(--al-text) !important;
  text-decoration: none !important;
}

.al-list-sub {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
  line-height: 1.5;
}

.al-list-sub.al-list-sub-green {
  color: var(--al-accent);
  font-weight: 600;
}

.al-new {
  position: absolute;
  right: 0;
  top: 8px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.al-list-row.has-badge .al-list-title {
  padding-right: 42px;
}

/* ==========================================================================
   Premium / upgrade card
   ========================================================================== */

.al-premium {
  position: relative;
  border-radius: var(--al-radius);
  padding: 16px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(120deg, #4925dd 0%, #8b62dd 100%);
  box-shadow: var(--al-shadow);
}

.al-premium h6 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}

.al-premium p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 8px;
}

.al-premium ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .94);
}

.al-premium .al-btn {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
  color: #fff !important;
}

.al-premium .al-btn:hover {
  background: rgba(255, 255, 255, .3);
}

/* ==========================================================================
   Quick tools strip
   ========================================================================== */

.al-tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.al-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: var(--al-radius);
  box-shadow: var(--al-shadow);
  text-decoration: none !important;
  transition: border-color .15s, transform .15s;
}

.al-tool:hover {
  border-color: var(--al-primary);
  transform: translateY(-1px);
}

.al-tool .al-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.al-tool b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--al-text) !important;
  line-height: 1.25;
}

.al-tool small {
  display: block;
  font-size: 10px;
  color: var(--al-muted);
}

/* ==========================================================================
   Feed embedded job card
   ========================================================================== */

.al-job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--al-border);
  border-radius: 11px;
  padding: 8px 10px;
  margin-top: 8px;
}

.al-job-card .al-list-icon {
  background: #172949;
}

.al-job-apply {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e4ddff;
  background: var(--al-primary-soft);
  color: var(--al-primary) !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.al-job-apply:hover {
  background: var(--al-primary);
  color: #fff !important;
}

/* ==========================================================================
   Sign up - account type picker
   ========================================================================== */

.al-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

/* compact account type picker (sign up forms) */
.al-type-grid-compact {
  gap: 8px;
  margin-bottom: 4px;
}

.al-type-grid-compact .al-type-box {
  padding: 11px 6px;
}

.al-type-grid-compact .al-type-box span {
  font-size: 10px;
}

/* conditional fields (company / institute name) */
.al-type-field {
  margin-top: 10px;
}

.al-type-field input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--al-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--al-text);
  background: #fff;
  outline: none;
}

.al-type-field input:focus {
  border-color: var(--al-primary);
}

.al-type {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}

.al-type input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.al-type-box {
  display: block;
  border: 1.5px solid var(--al-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
  height: 100%;
}

.al-type-box svg,
.al-type-box i {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: #8b97ae;
}

.al-type-box b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--al-text);
}

.al-type-box span {
  display: block;
  font-size: 10.5px;
  color: var(--al-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.al-type input:checked+.al-type-box {
  border-color: var(--al-primary);
  background: var(--al-primary-soft);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, .1);
}

.al-type input:checked+.al-type-box svg,
.al-type input:checked+.al-type-box i {
  color: var(--al-primary);
}

.al-type-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--al-text);
  margin-bottom: 7px;
}

.al-type input:checked+.al-type-box b:after {
  content: "";
}

.al-type-box:hover {
  border-color: #cfc4ff;
}

.al-type-hint {
  display: block;
  font-size: 10.5px;
  color: var(--al-muted);
  text-align: center;
  margin: 2px 0 14px;
}

/* ==========================================================================
   Auth cards (sign in / sign up)
   ========================================================================== */

.al-auth {
  max-width: 560px;
  margin: 24px auto;
  padding: 24px 22px 20px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 18px;
  box-shadow: var(--al-shadow-lg);
}

.al-auth.al-auth-wide {
  max-width: 640px;
}

.al-auth-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.al-auth-head .al-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--al-primary), #8b62dd);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  flex: 0 0 auto;
}

.al-auth-head b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--al-text);
  line-height: 1.2;
  letter-spacing: -.3px;
}

.al-auth-head small {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
}

.al-auth h2,
.al-auth .fr_welcome_title {
  font-size: 19px;
  font-weight: 800;
  color: var(--al-text);
  letter-spacing: -.3px;
  margin: 0 0 4px;
}

.al-auth-sub {
  font-size: 12px;
  color: var(--al-muted);
  margin: 0 0 16px;
}

/* elengine based fields inside the Andalali auth card */
.al-auth .fr_welcome_field {
  position: relative;
  margin-bottom: 10px;
}

.al-auth .fr_welcome_field input,
.al-auth .fr_welcome_field select {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--al-border);
  border-radius: 12px;
  background: #fff;
  color: var(--al-text);
  font-size: 13.5px;
  padding: 0 44px 0 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.al-auth .fr_welcome_field input::placeholder {
  color: #9aa5ba;
}

.al-auth .fr_welcome_field input:focus,
.al-auth .fr_welcome_field select:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 3px rgba(84, 38, 239, .10);
}

.al-auth .fr_welcome_field>svg {
  position: absolute;
  right: 14px;
  top: calc(50% + 11px);
  margin: 0;
  width: 17px;
  height: 17px;
  color: #9aa5ba;
  opacity: 1;
  pointer-events: none;
}

.al-auth .fr_welcome_field .js_toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
  cursor: pointer;
  line-height: 0;
}

.al-auth .fr_welcome_field .js_toggle-password svg {
  width: 18px;
  height: 18px;
  margin: 0;
  fill: #9aa5ba;
  opacity: .75;
  cursor: pointer;
}

.al-auth .fr_welcome_btn,
.al-auth .btn-primary {
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--al-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.al-auth .fr_welcome_btn:hover,
.al-auth .btn-primary:hover {
  background: var(--al-primary-dark);
}

.al-auth .form-control,
.al-auth .form-select {
  height: 46px;
  border: 1.5px solid var(--al-border);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--al-text);
}

.al-auth .form-control:focus,
.al-auth .form-select:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 3px rgba(84, 38, 239, .10);
}

.al-auth .al-type-field {
  margin: 0 0 10px;
}

.al-auth .al-type-field input {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--al-border);
  font-size: 13.5px;
  padding: 0 14px;
}

.al-auth .al-type-field input:focus {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 3px rgba(84, 38, 239, .10);
}

.al-auth .al-type-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--al-text);
  margin-bottom: 5px;
}

.al-auth .al-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--al-text);
  margin-bottom: 5px;
}

.al-auth .fr_welcome_field>svg,
.al-auth .fr_welcome_field .js_toggle-password {
  top: calc(50% + 11px);
}

.al-auth-head b {
  text-transform: capitalize;
}

.al-auth .alert {
  border-radius: 12px;
  font-size: 12.5px;
}

.al-auth .fr_welcome_switch {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--al-muted);
  text-align: center;
}

.al-auth .al-auth-switch a,
.al-auth .fr_welcome_switch a {
  color: var(--al-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.al-auth .form-check-label {
  font-size: 12px;
  color: var(--al-muted);
}

.al-auth .js_hidden-section .form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--al-text);
}

/* ==========================================================================
   Responsive
   (columns re-flow exactly like the reference UI design)
   ========================================================================== */

/* 1600px and up :: the design bumps the type scale */
@media (min-width: 1600px) {
  .al-hero h1 {
    font-size: 27px;
  }

  .al-cat-row {
    min-height: 52px;
  }

  .al-cat-text .al-cat-name,
  .al-list-title {
    font-size: 12px;
  }
}

/* 1390px and down :: 4 columns, the 5th column drops under the feed */
@media (max-width: 1390px) {
  .al-dashboard {
    grid-template-columns: 180px 205px minmax(390px, 1fr) 240px;
  }

  .al-col-extra {
    grid-column: 2 / 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .al-col-extra>.al-sticky {
    display: contents;
  }

  .al-hero h1 {
    font-size: 21px;
  }

  .al-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 1100px and down :: 3 columns, jobs + candidates stack in the first one */
@media (max-width: 1100px) {
  .al-dashboard {
    grid-template-columns: 190px minmax(350px, 1fr) 235px;
  }

  .al-col-jobs {
    grid-column: 1;
    grid-row: 1;
  }

  .al-col-candidates {
    grid-column: 1;
    grid-row: 2;
  }

  .al-feed {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .al-col-profile {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .al-col-extra {
    grid-column: 1 / 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 800px and down :: 2 columns (jobs/candidates beside the feed) */
@media (max-width: 800px) {
  .al-dashboard {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .al-feed {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .al-col-profile {
    grid-column: 1 / 3;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .al-col-profile>.al-sticky {
    display: contents;
  }

  .al-col-extra {
    grid-column: 1 / 3;
  }

  .al-hero {
    padding: 20px 14px;
  }

  .al-hero-inner {
    max-width: 260px;
  }

  .al-hero h1 {
    font-size: 20px;
    white-space: normal;
    max-width: 230px;
  }

  .al-hero-side {
    display: none;
  }

  .al-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 580px and down :: one column, the feed comes first */
@media (max-width: 580px) {
  .al-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .al-col {
    width: 100%;
  }

  .al-feed {
    order: 0;
  }

  .al-col-jobs {
    order: 1;
  }

  .al-col-candidates {
    order: 2;
  }

  .al-col-profile {
    order: 3;
    display: flex;
  }

  .al-col-extra {
    order: 4;
    display: flex;
  }

  .al-hero {
    padding: 24px 16px;
  }

  .al-hero h1 {
    font-size: 23px;
  }

  .al-cat-row {
    min-height: 48px;
  }
}

/* the site header keeps its own mobile behaviour */
@media (max-width: 860px) {
  .al-nav,
  .al-search {
    display: none;
  }

  .al-header-mobile-toggle {
    display: inline-flex;
  }

  .al-shell {
    padding: 10px 8px 40px;
  }

  .main-header.al-topbar>.container,
  .main-header.al-topbar>.container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 520px) {
  .al-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .al-auth {
    margin: 14px auto;
    padding: 18px 14px 16px;
    border-radius: 14px;
  }

  .al-cat-text .al-cat-name {
    font-size: 12px;
  }

  .al-type-box {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .al-type-box svg,
  .al-type-box i {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .al-composer-tool span {
    display: none;
  }
}


/* ==========================================================================
   Auth (sign in / sign up) - professional card, picker & field system
   ========================================================================== */

.al-auth {
  width: 100%;
  max-width: 470px;
  margin: 30px auto;
  padding: 30px 28px 24px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(16, 17, 47, .10);
}

.al-auth.al-auth-signup {
  max-width: 640px;
}

/* head ------------------------------------------------------------------- */

.al-auth-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--al-border);
}

.al-auth-head .al-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--al-primary), #8b62dd);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(84, 38, 239, .26);
}

.al-auth-head-text {
  min-width: 0;
}

.al-auth-head b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--al-text);
  line-height: 1.25;
  letter-spacing: -.3px;
  text-transform: capitalize;
}

.al-auth-head small {
  display: block;
  font-size: 11.5px;
  color: var(--al-muted);
  margin-top: 1px;
}

/* title ------------------------------------------------------------------ */

.al-auth-title {
  margin-bottom: 20px;
}

.al-auth h2,
.al-auth .fr_welcome_title {
  font-size: 21px;
  font-weight: 800;
  color: var(--al-text);
  letter-spacing: -.4px;
  line-height: 1.3;
  margin: 0 0 5px;
}

/* account type picker ---------------------------------------------------- */

.al-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.al-type {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.al-type input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.al-type-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  padding: 18px 14px 16px;
  background: #fff;
  border: 1.5px solid var(--al-border);
  border-radius: 16px;
  text-align: center;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.al-type-box:hover {
  border-color: #cec3fa;
  background: #fdfcff;
}

.al-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #f2f4fb;
  color: #7a869c;
  flex: 0 0 auto;
  transition: background .16s, color .16s, box-shadow .16s;
}

.al-type-icon svg,
.al-type-icon i {
  width: 21px;
  height: 21px;
  margin: 0;
  color: inherit;
}

.al-type-text {
  display: block;
  min-width: 0;
}

.al-type-text b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--al-text);
  letter-spacing: -.2px;
}

.al-type-text small {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--al-muted);
  margin-top: 3px;
}

.al-type-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #dde2f2;
  background: #fff;
  transition: border-color .16s, background .16s;
}

.al-type-check:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--al-primary);
  transform: scale(0);
  transition: transform .16s;
}

.al-type input:checked+.al-type-box {
  border-color: var(--al-primary);
  background: linear-gradient(180deg, #f8f6ff, #fff);
  box-shadow: 0 0 0 4px rgba(84, 38, 239, .10);
}

.al-type input:checked+.al-type-box .al-type-icon {
  background: var(--al-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(84, 38, 239, .26);
}

.al-type input:checked+.al-type-box .al-type-check {
  border-color: var(--al-primary);
}

.al-type input:checked+.al-type-box .al-type-check:after {
  transform: scale(1);
}

.al-type input:focus-visible+.al-type-box {
  box-shadow: 0 0 0 4px rgba(84, 38, 239, .18);
}

.al-type-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #98a3ba;
  margin-bottom: 12px;
}

.al-type-hint {
  display: block;
  font-size: 11.5px;
  color: var(--al-muted);
  text-align: center;
  line-height: 1.5;
  margin: 12px 0 20px;
}

.al-auth-sub {
  font-size: 12.5px;
  color: var(--al-muted);
  line-height: 1.5;
  margin: 0;
}

/* section labels --------------------------------------------------------- */

.al-form-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.al-form-section:first-child {
  margin-top: 0;
}

.al-form-section span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #98a3ba;
  white-space: nowrap;
}

.al-form-section:after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--al-border);
}

/* fields ----------------------------------------------------------------- */

.al-field {
  margin-bottom: 15px;
}

/* scoped so it wins over the legacy auth rules above */
.al-auth .al-field-label,
.al-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2b2c46;
  letter-spacing: .1px;
  margin-bottom: 7px;
}

.al-input {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  min-height: 50px;
  background: #fff;
  border: 1.5px solid #e5e9f4;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}

.al-input.has-action {
  grid-template-columns: 48px minmax(0, 1fr) 46px;
}

.al-input:hover {
  border-color: #d5dbf0;
}

.al-input:focus-within {
  border-color: var(--al-primary);
  box-shadow: 0 0 0 4px rgba(84, 38, 239, .10);
}

.al-input-icon {
  display: grid;
  place-items: center;
  color: #94a0b8;
  background: #f8f9fd;
  border-inline-end: 1px solid #eef0f8;
  transition: color .16s, background .16s;
}

.al-input-icon svg,
.al-input-icon i {
  width: 18px;
  height: 18px;
  margin: 0;
}

.al-input:focus-within .al-input-icon {
  color: var(--al-primary);
  background: var(--al-primary-soft);
}

.al-input input,
.al-input select,
.al-input textarea {
  width: 100%;
  min-width: 0;
  height: auto;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--al-text);
  font-size: 14px;
  font-family: inherit;
  padding: 14px 15px;
  margin: 0;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
}

.al-input input::placeholder,
.al-input textarea::placeholder {
  color: #9aa5ba;
}

.al-input select {
  cursor: pointer;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a869c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 15px !important;
}

.al-input textarea {
  resize: vertical;
  min-height: 96px;
}

.al-input-action {
  display: grid;
  place-items: center;
  border: 0;
  border-inline-start: 1px solid #eef0f8;
  background: transparent;
  color: #94a0b8;
  cursor: pointer;
  padding: 0;
  transition: color .16s, background .16s;
}

.al-input-action:hover {
  color: var(--al-primary);
  background: #f8f9fd;
}

.al-input-action svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  fill: currentColor;
}

.al-input-action svg.eye-icon-slash {
  fill: currentColor;
}

/* two column rows -------------------------------------------------------- */

.al-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.al-field-help {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
  line-height: 1.5;
  margin-top: 6px;
}

.al-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--al-muted);
  line-height: 1.55;
  background: #f8f9fd;
  border: 1px solid var(--al-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 4px 0 18px;
}

.al-inline-note svg,
.al-inline-note i {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--al-primary);
}



/* consent rows ----------------------------------------------------------- */

.al-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fbfcff;
  border: 1.5px solid #eef0f8;
  border-radius: 14px;
  margin-bottom: 10px;
  transition: border-color .16s, background .16s;
}

.al-consent:hover {
  border-color: #dfe4f5;
}

.al-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--al-primary);
  cursor: pointer;
}

.al-consent .form-check-label,
.al-consent label {
  font-size: 12px;
  line-height: 1.55;
  color: #5b6379;
  cursor: pointer;
  margin: 0;
}

.al-consent a {
  color: var(--al-primary) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.al-consent a:hover {
  text-decoration: underline !important;
}

/* submit ----------------------------------------------------------------- */

.al-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0 !important;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--al-primary), #6b3ff2);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 12px 24px rgba(84, 38, 239, .24);
  cursor: pointer;
  transition: filter .16s, box-shadow .16s, transform .16s;
}

.al-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(84, 38, 239, .3);
  color: #fff !important;
}

.al-submit:active {
  transform: translateY(1px);
}

.al-submit:disabled {
  opacity: .78;
  cursor: not-allowed;
}

.al-submit .spinner-grow {
  width: 13px;
  height: 13px;
}

.al-form-actions {
  margin-top: 22px;
}

/* social logins ---------------------------------------------------------- */

.al-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
}

.al-auth .al-social-grid .btn-social {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 14px;
  background: #fff !important;
  border: 1.5px solid #e5e9f4 !important;
  border-radius: 14px !important;
  color: var(--al-text) !important;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: none !important;
  transition: border-color .16s, background .16s;
}

.al-auth .al-social-grid .btn-social:hover {
  border-color: #d5dbf0 !important;
  background: #fbfcff !important;
}

.al-auth .al-social-grid .btn-social svg,
.al-auth .al-social-grid .btn-social img {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

.al-auth .hr-heading {
  margin: 18px 0;
}

/* the "or" divider of the social login include must span the whole grid */
.al-social-grid>.hr-heading {
  grid-column: 1 / -1;
}

.al-auth .al-social-grid .btn-social .svg-container {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  line-height: 0;
  flex: 0 0 auto;
}

.al-auth .hr-heading-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--al-muted);
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* card footer / switch --------------------------------------------------- */

.al-auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--al-border);
  font-size: 12.5px;
  color: var(--al-muted);
  text-align: center;
}

.al-auth-switch a {
  color: var(--al-primary) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.al-auth-switch a:hover {
  text-decoration: underline !important;
}


/* inline toggle row (remember me / forgotten password) ------------------- */

.al-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
}

.al-toggle-row .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  margin: 0;
  padding: 0;
}

.al-toggle-row .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--al-primary);
}

.al-toggle-row .form-check-label {
  font-size: 12px;
  color: #5b6379;
  margin: 0;
  cursor: pointer;
}

.al-toggle-row a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--al-primary) !important;
  text-decoration: none !important;
}

.al-toggle-row a:hover {
  text-decoration: underline !important;
}

/* alerts ----------------------------------------------------------------- */

.al-auth .alert {
  border: 0;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.al-auth .alert-danger {
  background: var(--al-danger-soft);
  color: #a3223f;
}

.al-auth .alert-success {
  background: var(--al-accent-soft);
  color: #0f6b49;
}

.al-auth .alert-warning {
  background: var(--al-warn-soft);
  color: #8a5308;
}

/* night mode ------------------------------------------------------------- */

body.night-mode .al-auth {
  background: #14162b;
  border-color: #262a45;
}

body.night-mode .al-auth-head,
body.night-mode .al-auth-switch {
  border-color: #262a45;
}

body.night-mode .al-auth-head b,
body.night-mode .al-auth h2,
body.night-mode .al-type-text b,
body.night-mode .al-field-label {
  color: #eef1ff;
}

body.night-mode .al-input,
body.night-mode .al-type-box,
body.night-mode .al-auth .al-social-grid .btn-social {
  background: #1b1e37 !important;
  border-color: #2b3052 !important;
}

body.night-mode .al-input-icon {
  background: #202444;
  border-inline-end-color: #2b3052;
}

body.night-mode .al-input-action {
  border-inline-start-color: #2b3052;
}

body.night-mode .al-input input,
body.night-mode .al-input select {
  color: #eef1ff !important;
  background-color: transparent !important;
}

body.night-mode .al-type-box:hover,
body.night-mode .al-input:hover {
  border-color: #3a4070 !important;
}

body.night-mode .al-consent,
body.night-mode .al-inline-note {
  background: #1a1d34;
  border-color: #2b3052;
}

body.night-mode .al-consent .form-check-label,
body.night-mode .al-toggle-row .form-check-label {
  color: #aeb6d4;
}

body.night-mode .al-type-check {
  background: #1b1e37;
  border-color: #3a4070;
}

/* rtl -------------------------------------------------------------------- */

html[dir="RTL"] .al-input select {
  background-position: left 13px center !important;
  padding-inline-end: 15px;
  padding-inline-start: 38px;
}

/* responsive ------------------------------------------------------------- */

@media (max-width: 760px) {
  .al-auth,
  .al-auth.al-auth-signup {
    max-width: 100%;
    margin: 18px auto;
    padding: 24px 20px 20px;
    border-radius: 18px;
  }
}

@media (max-width: 700px) {
  .al-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .al-type-box {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 48px 13px 14px;
  }

  .al-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .al-type-text {
    text-align: start;
  }

  .al-type-text small {
    margin-top: 2px;
  }

  .al-type-check {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
  }
}

@media (max-width: 640px) {
  .al-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 420px) {
  .al-auth,
  .al-auth.al-auth-signup {
    padding: 20px 16px 18px;
  }

  .al-auth h2,
  .al-auth .fr_welcome_title {
    font-size: 19px;
  }

  .al-input {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .al-input.has-action {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .al-submit {
    min-height: 50px;
    font-size: 14px;
  }
}


/* field layout variants -------------------------------------------------- */

.al-input.al-input-plain {
  grid-template-columns: minmax(0, 1fr);
}

.al-form-row.al-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.al-field-group-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2b2c46;
  letter-spacing: .1px;
  margin-bottom: 7px;
}

/* icon inside input groups is an inline stroke svg */
.al-input-icon svg,
.al-type-icon svg,
.al-inline-note svg {
  stroke-width: 1.9;
}

@media (max-width: 560px) {
  .al-form-row.al-cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   Site header — converted from the reference design
   (.topbar / .brand / .navigation / .search / .account)
   ========================================================================== */

.main-header.al-topbar {
  background: #fff !important;
  border-bottom: 1px solid var(--al-border);
  box-shadow: none;
  /* the core RTL stylesheet reserves 75px on the inline start at >=1200px
     (chat sidebar gutter); this topbar spans the full width in both directions */
  padding-left: 0;
  padding-right: 0;
}

/* the topbar box follows the full width page shell (no centred 1320px box) */
.main-header.al-topbar>.container,
.main-header.al-topbar>.container-fluid {
  width: 100%;
  max-width: none;
  padding-left: 14px;
  padding-right: 14px;
}

body.night-mode .main-header.al-topbar {
  background: #14162b !important;
  border-bottom-color: #262a45;
}

.main-header.al-topbar .al-topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 70px;
}

/* brand ------------------------------------------------------------------- */

.main-header .logo-wrapper.al-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 235px;
  height: auto;
  padding-left: 0;
  overflow: visible;
  word-break: normal;
  position: relative;
}

.al-brand .al-brand-mark {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: var(--al-primary);
  transform: skew(-12deg);
  text-shadow: 5px 0 #c4b7ff;
}

.al-brand .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.main-header .al-brand .logo img {
  max-height: 44px;
  width: auto;
}

.al-brand .al-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.al-brand .al-brand-text b {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--al-ink);
  text-transform: lowercase;
}

.al-brand .al-brand-text small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--al-muted);
  white-space: nowrap;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.night-mode .al-brand .al-brand-text b {
  color: #eef1ff;
}

body.night-mode .al-brand .al-brand-text small {
  color: #9aa0c2;
}

/* mobile menu toggle ------------------------------------------------------ */

.main-header .al-topbar-toggle.menu-icon {
  position: static;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #55617a;
  flex: 0 0 auto;
}

.main-header .al-topbar-toggle.menu-icon:hover {
  background: var(--al-primary-soft);
  color: var(--al-primary);
}

.main-header .al-topbar-toggle.menu-icon .header-icon,
.main-header .al-topbar-toggle.menu-icon .header-icon * {
  width: 20px;
  height: 20px;
}

body.night-mode .main-header .al-topbar-toggle.menu-icon {
  color: #c1c8e3;
}

/* navigation -------------------------------------------------------------- */

.main-header .al-navigation {
  display: flex;
  align-items: stretch;
  gap: 27px;
  white-space: nowrap;
  flex: 0 1 auto;
  position: relative;
  z-index: 5;
  /* IMPORTANT: never turn this into a scroll container.
     Bootstrap positions the mega menus with Popper *inside* this element,
     so overflow would clip every panel (and silently cut the last items). */
  overflow: visible;
  flex-wrap: nowrap;
}

.al-navigation .al-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.al-navigation .al-nav-item>a,
.al-navigation .al-nav-item>button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  color: var(--al-ink);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}

.al-navigation .al-nav-item>a:hover,
.al-navigation .al-nav-item>button:hover {
  color: var(--al-primary);
}

.al-navigation .al-nav-item>a.active {
  color: var(--al-primary);
}

.al-navigation .al-nav-item>a.active:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--al-primary);
}

.al-navigation .al-nav-item>a svg,
.al-navigation .al-nav-item>button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.al-navigation .al-nav-item .al-nav-label-short {
  display: none;
}

.al-navigation .al-nav-item .al-nav-caret {
  width: 11px;
  height: 11px;
  opacity: .5;
  transition: transform .15s;
}

.al-navigation .al-nav-item.show .al-nav-caret {
  transform: rotate(180deg);
}

.al-navigation .al-nav-item.al-nav-cta>a,
.al-navigation .al-nav-item.al-nav-cta>button {
  color: var(--al-primary);
}

body.night-mode .al-navigation .al-nav-item>a,
body.night-mode .al-navigation .al-nav-item>button {
  color: #d3d8f2;
}

/* navigation panels (mega menus) ------------------------------------------ */

.al-navigation .al-nav-item>.dropdown-menu.al-nav-panel {
  margin: 12px 0 0;
  padding: 12px;
  width: 330px;
  max-width: calc(100vw - 24px);
  min-width: 0;
  border: 1px solid var(--al-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--al-shadow-lg);
  z-index: 1080;
  white-space: normal;
}

.al-navigation .al-nav-item>.al-nav-panel.al-nav-panel-wide {
  width: 560px;
}

.al-nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 4px;
}

.al-nav-panel-head h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--al-ink);
  letter-spacing: -.2px;
}

.al-nav-panel-head a {
  font-size: 11px;
  font-weight: 600;
  color: var(--al-primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.al-nav-panel-sub {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
  padding: 0 2px 8px;
}

.al-nav-panel-body {
  max-height: 330px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.al-nav-panel-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.al-nav-panel-foot {
  display: block;
  margin-top: 10px;
  padding: 8px 9px;
  border: 1px solid #e4ddff;
  border-radius: 6px;
  background: #fff;
  color: var(--al-primary) !important;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
}

.al-nav-panel-foot:hover {
  background: #f0ebff;
}

/* panel rows -------------------------------------------------------------- */

.al-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid #f5f5fa;
  background: none;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
}

.al-nav-panel-body .al-nav-row:last-child {
  border-bottom: 0;
}

.al-nav-row:hover {
  background: #f7f4ff;
}

.al-nav-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  flex: 0 0 auto;
}

.al-nav-row-icon svg {
  width: 16px;
  height: 16px;
}

.al-nav-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.al-nav-row-text strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--al-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-nav-row-text small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--al-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-nav-row-chevron {
  margin-inline-start: auto;
  color: #b9bccf;
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
}

.al-nav-row img.al-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.al-nav-row img.al-nav-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.al-nav-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 6px;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--al-muted);
  border-bottom: 1px solid var(--al-border);
}

.al-nav-section-title + .al-nav-row {
  border-bottom-color: #f5f5fa;
}

body.night-mode .al-nav-section-title {
  color: #9aa0c2;
  border-bottom-color: #262a45;
}

.al-nav-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--al-accent-soft);
  color: var(--al-accent);
  font-size: 9px;
  font-weight: 700;
  vertical-align: middle;
}

.al-nav-empty {
  padding: 14px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--al-muted);
}

body.night-mode .al-navigation .al-nav-item>.dropdown-menu.al-nav-panel {
  background: #1b1e36;
  border-color: #262a45;
}

body.night-mode .al-nav-panel-head h6,
body.night-mode .al-nav-row-text strong {
  color: #eef1ff;
}

body.night-mode .al-nav-row {
  border-bottom-color: #23273f;
}

body.night-mode .al-nav-row:hover {
  background: #22264a;
}

body.night-mode .al-nav-row-icon {
  background: #272b4d;
  color: #b9a8ff;
}

body.night-mode .al-nav-panel-foot {
  background: #1b1e36;
  border-color: #2f3260;
}

body.night-mode .al-nav-panel-foot:hover {
  background: #22264a;
}

/* search ------------------------------------------------------------------ */

.al-topbar-search {
  position: relative;
  flex: 0 1 280px;
  min-width: 180px;
  margin-inline-start: auto;
}

.al-topbar-search .search-wrapper {
  position: relative;
  width: 100%;
}

.al-topbar-search .search-wrapper .form-control {
  width: 100%;
  height: 40px;
  border: 1px solid var(--al-border);
  border-radius: 8px;
  background: #f9f9ff;
  padding: 0 14px 0 38px;
  font-size: 12.5px;
  color: var(--al-text);
  box-shadow: none;
  outline: none;
}

.al-topbar-search .search-wrapper .form-control:focus {
  background: #fff;
  border-color: var(--al-primary);
  box-shadow: none;
}

.al-topbar-search .search-wrapper .form-control::placeholder {
  color: #9aa5ba;
}

.al-topbar-search .search-input-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa5ba;
  line-height: 0;
  pointer-events: none;
}

.al-topbar-search .search-input-icon svg {
  width: 17px;
  height: 17px;
}

html[dir="RTL"] .al-topbar-search .search-wrapper .form-control {
  padding: 0 38px 0 14px;
}

html[dir="RTL"] .al-topbar-search .search-input-icon {
  inset-inline-start: auto;
  inset-inline-end: 12px;
}

body.night-mode .al-topbar-search .search-wrapper .form-control {
  background: #1b1e36;
  border-color: #262a45;
  color: #e6e9f7;
}

/* account (messages, notifications, requests, user) ---------------------- */

.main-header .navbar-wrapper.al-account {
  position: static;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto;
}

.main-header .al-account>ul {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .al-account>ul>li {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.main-header .al-account>ul>li>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  line-height: 1;
  border-radius: 9px;
  color: #55617a;
}

.main-header .al-account>ul>li>a:hover,
.main-header .al-account>ul>li.show>a {
  background: var(--al-primary-soft);
}

.main-header .al-account .counter {
  top: -1px;
  inset-inline-end: -1px;
  inset-inline-start: auto;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 16px;
}

.main-header .al-account .user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 6px;
  border-radius: 10px;
  line-height: 1.15;
  text-decoration: none !important;
}

.main-header .al-account .user-menu>img {
  width: 34px;
  height: 34px;
  margin-top: 0;
  border-radius: 50%;
  object-fit: cover;
}

.main-header .al-account .user-menu .title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.main-header .al-account .al-account-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--al-ink);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-header .al-account .al-account-role {
  font-size: 9.5px;
  color: var(--al-muted);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* guest "join" pill */
.main-header .al-account .al-account-guest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--al-primary);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.main-header .al-account .al-account-guest:hover {
  filter: brightness(1.07);
}

.main-header .al-account .al-account-guest svg {
  width: 17px;
  height: 17px;
}

body.night-mode .main-header .al-account>ul>li>a {
  color: #c1c8e3;
}

body.night-mode .main-header .al-account .al-account-name {
  color: #eef1ff;
}

body.night-mode .main-header .al-account .al-account-role {
  color: #9aa0c2;
}

/* nav buttons (dropdown toggles) ----------------------------------------- */

.al-navigation .al-nav-item>button.dropdown-toggle::after {
  display: none;
}

.al-navigation .al-nav-item>button.active {
  color: var(--al-primary);
}

.al-navigation .al-nav-item>button.active:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--al-primary);
}

/* header search used to be hidden below 768px by the core theme */
@media (max-width: 767.98px) {
  .main-header.al-topbar .al-topbar-search {
    display: none;
  }
}

/* responsive (mirrors the reference design breakpoints) ------------------ */

@media (min-width: 1600px) {
  .main-header.al-topbar .al-topbar-inner {
    gap: 20px;
  }

  .main-header .logo-wrapper.al-brand {
    min-width: 240px;
  }

  .main-header .al-navigation {
    gap: 18px;
  }

  .al-topbar-search {
    min-width: 160px;
    max-width: 240px;
  }

  .main-header .al-account {
    gap: 12px;
  }
}

@media (max-width: 1390px) {
  .main-header.al-topbar .al-topbar-inner {
    gap: 15px;
  }

  .main-header .logo-wrapper.al-brand {
    min-width: 185px;
  }

  .main-header .al-navigation {
    gap: 16px;
  }

  .main-header .al-account {
    gap: 10px;
  }

  .main-header .al-account>ul {
    gap: 10px;
  }

  .al-topbar-search {
    min-width: 150px;
    max-width: 190px;
  }

  /* the reference design hides the account name & role under 1390px */
  .main-header .al-account .al-account-name,
  .main-header .al-account .al-account-role {
    display: none;
  }
}

@media (max-width: 1100px) {
  .main-header .logo-wrapper.al-brand {
    min-width: 0;
  }

  .main-header .al-brand .al-brand-text small {
    display: none;
  }

  .main-header .al-navigation {
    gap: 13px;
  }

  .al-topbar-search {
    min-width: 140px;
    max-width: 180px;
  }

  .main-header .al-account {
    gap: 6px;
  }

  .main-header .al-account>ul {
    gap: 4px;
  }
}

/* keep the six sections inside the header row on narrow desktops/laptops */
@media (max-width: 1199.98px) {
  .main-header .al-navigation {
    gap: 10px;
  }

  .main-header .al-navigation .al-nav-item {
    flex: 0 1 auto;
    min-width: 0;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
  }

  /* last resort: a label may ellipsize, it can never spill out of the header */
  .main-header .al-navigation .al-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* compact desktop nav: the eight items wrap into two tidy rows of four.
   With a search box, the brand and a full (logged-in) account, eight inline
   items simply cannot fit on 992px-1599px laptops - the header row used to
   overflow and clip the account icons, so the nav now uses a small grid. */
@media (min-width: 992px) and (max-width: 1599.98px) {
  .main-header .al-navigation {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .main-header .al-navigation .al-nav-item {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    min-width: 0;
    max-width: 100%;
    padding: 12px 0;
    justify-content: center;
    font-size: 11.5px;
    letter-spacing: -.1px;
  }

  .main-header .al-navigation .al-nav-item>a.active:before,
  .main-header .al-navigation .al-nav-item>button.active:before {
    bottom: -1px;
    height: 2px;
  }

  /* the brand gives way first so the nav labels stay readable */
  .main-header .logo-wrapper.al-brand {
    flex: 0 1 auto;
    min-width: 0;
    flex-shrink: 5;
  }

  /* the tagline goes before any nav label has to be cut */
  .main-header .al-brand .al-brand-text small {
    display: none;
  }

  .main-header .al-brand .al-brand-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .main-header .al-brand .al-brand-text b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* last resort: a nav label may ellipsize, it can never spill out */
  .main-header .al-navigation .al-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .al-navigation .al-nav-item>.dropdown-menu.al-nav-panel {
    margin-top: 8px;
    max-width: calc(100vw - 24px);
  }

  /* a shorter search box pays for the inline nav row */
  .main-header.al-topbar .al-topbar-search {
    flex-basis: 170px;
    min-width: 140px;
    max-width: 200px;
  }
}

/* 992px-1199.98px: a tighter row + shorter search keeps the brand readable */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-header.al-topbar .al-topbar-inner {
    gap: 10px;
  }

  .main-header .al-navigation {
    gap: 8px;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    font-size: 11px;
  }

  .main-header.al-topbar .al-topbar-search {
    flex-basis: 160px;
    min-width: 130px;
    max-width: 170px;
  }
}

/* two rows: (menu + brand + search + account) then the career navigation */
@media (max-width: 991.98px) {
  body {
    padding-top: 104px;
  }

  body.n_activated,
  body.n_live {
    padding-top: 154px;
  }

  .main-header.al-topbar {
    height: 104px;
  }

  .main-header.al-topbar .al-topbar-inner {
    flex-wrap: wrap;
    align-content: space-between;
    height: 104px;
    min-height: 0;
    padding: 0;
    gap: 0 10px;
  }

  .main-header .al-topbar-toggle.menu-icon {
    display: inline-flex;
    order: 0;
  }

  .main-header .logo-wrapper.al-brand {
    order: 1;
    margin-inline-end: auto;
  }

  .main-header .al-topbar-search {
    order: 2;
    margin-inline-start: 0;
    flex: 0 1 220px;
  }

  .main-header .al-account {
    order: 3;
  }

  .main-header .al-navigation {
    order: 4;
    width: 100%;
    height: 42px;
    min-height: 42px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid var(--al-border);
  }

  body.night-mode .main-header .al-navigation {
    border-top-color: #262a45;
  }

  .main-header .al-navigation .al-nav-item {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    padding: 11px 0;
    font-size: 11.5px;
    justify-content: center;
  }

  .main-header .al-navigation .al-nav-item .al-nav-caret {
    width: 9px;
    height: 9px;
  }

  .main-header .al-navigation .al-nav-item>a.active:before,
  .main-header .al-navigation .al-nav-item>button.active:before {
    bottom: 2px;
  }

  /* "post a job" becomes a compact icon button (keeps all six sections visible) */
  .main-header .al-navigation .al-nav-item.al-nav-cta>a,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 9px;
    background: var(--al-primary-soft);
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a span,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button span {
    display: none;
  }

  /* panels always stay inside the viewport on tablets/phones */
  .al-navigation .al-nav-item>.dropdown-menu.al-nav-panel {
    margin-top: 8px;
    max-width: calc(100vw - 20px);
  }

  .al-nav-panel-body {
    max-height: 46vh;
  }
}

/* phones & small tablets: row 1 = menu + brand + account, row 2 = the career
   navigation. Every section stays on ONE row and the labels scale down. */
@media (max-width: 767.98px) {
  /* the header grows by one compact nav row (62px + 50px) */
  body {
    padding-top: 112px;
  }

  body.n_activated,
  body.n_live {
    padding-top: 162px;
  }

  .main-header.al-topbar {
    height: 112px;
  }

  .main-header.al-topbar .al-topbar-inner {
    height: 112px;
    gap: 0 6px;
  }

  /* the brand grows/shrinks inside row 1 instead of pushing the account
     onto a second line (flex line breaking uses the brand's content width) */
  .main-header .logo-wrapper.al-brand {
    flex: 1 1 0%;
    min-width: 0;
  }

  .main-header .al-navigation {
    height: 50px;
    min-height: 50px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .main-header .al-navigation .al-nav-item {
    flex: 0 1 auto;
    min-width: 0;
    height: 50px;
    justify-content: center;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    height: 50px;
    padding: 4px 2px;
    justify-content: center;
    gap: 3px;
    /* the six sections always stay in this row: the labels scale with the width */
    font-size: clamp(9px, 2.7vw, 11.2px);
    letter-spacing: -.1px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .main-header .al-navigation .al-nav-item .al-nav-caret {
    display: none;
  }

  .main-header .al-navigation .al-nav-item>a.active:before,
  .main-header .al-navigation .al-nav-item>button.active:before {
    left: 28%;
    right: 28%;
    bottom: 2px;
    height: 2px;
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button {
    width: 34px;
    height: 34px;
    margin: 8px auto;
  }
}

/* phones: brand & account compact + single column megamenus */
@media (max-width: 575.98px) {
  .main-header .al-brand .al-brand-mark {
    font-size: 30px;
  }

  /* the brand may shrink so the account icons always stay inside the header */
  .main-header .logo-wrapper.al-brand {
    flex: 1 1 0%;
    min-width: 0;
    gap: 8px;
  }

  .main-header .al-brand .al-brand-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .main-header .al-brand .al-brand-text b {
    display: block;
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-header .al-account>ul {
    gap: 2px;
  }

  .main-header .al-topbar-toggle.menu-icon {
    width: 34px;
    height: 34px;
  }

  .main-header .al-account>ul>li>a {
    width: 34px;
    height: 34px;
  }

  .main-header .al-account .user-menu {
    height: 40px;
    padding: 0 2px;
  }

  .main-header .al-account .user-menu>img {
    width: 30px;
    height: 30px;
  }

  .al-nav-panel-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .al-navigation .al-nav-item>.al-nav-panel.al-nav-panel-wide {
    width: 330px;
  }
}




/* small phones: the mark alone is cleaner than a 2-3 letter stub of the name */
@media (max-width: 419.98px) {
  .main-header .al-brand .al-brand-text {
    display: none;
  }
}



/* only an item that carries a short form swaps its longest label where the row
   is tight (small phones and inline laptops). Every section keeps a visible
   label - the row must never degrade into bare carets. */
@media (max-width: 539.98px), (min-width: 992px) and (max-width: 1399.98px) {
  .main-header .al-navigation .al-nav-has-short .al-nav-label-full {
    display: none;
  }

  .main-header .al-navigation .al-nav-has-short .al-nav-label-short {
    display: inline;
  }
}

/* phones: the six career sections + the CTA fill the whole header row edge to
   edge and the labels scale with the viewport, so every button stays readable
   on one line. "Home" is left out here: the logo, the drawer and the mobile
   tab-bar already take you there. */
@media (max-width: 575.98px) {
  .main-header .al-navigation {
    width: calc(100% + 24px);
    margin-inline: -12px;
    gap: 2px;
    justify-content: center;
  }

  .main-header .al-navigation .al-nav-item.al-nav-home {
    display: none;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    padding: 4px 1px;
    gap: 2px;
    font-size: clamp(8.5px, 2.7vw, 12px);
    letter-spacing: -.2px;
  }

  /* last resort on the narrowest phones: a label may ellipsize, it can never
     push the row into a second line or spill out of the header */
  .main-header .al-navigation .al-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button {
    width: 32px;
    height: 32px;
    margin: 9px auto;
  }
}

/* very small phones: shrink the row labels one last step so nothing is cut */
@media (max-width: 359.98px) {
  .main-header .al-navigation {
    gap: 1px;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    padding: 4px 0;
    font-size: clamp(8.5px, 2.6vw, 10px);
    letter-spacing: -.3px;
  }
}

/* 992px-1399.98px (small laptops): the eight labels stay visible, so the
   carets give way, the CTA turns into the compact icon button and the row
   tightens up - nothing is ever clipped or pushed to a second line */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-header .al-navigation {
    gap: 4px;
  }

  .main-header .al-navigation .al-nav-item .al-nav-caret {
    display: none;
  }

  .main-header .al-navigation .al-nav-item>a,
  .main-header .al-navigation .al-nav-item>button {
    padding: 12px 0;
    gap: 4px;
    font-size: 11px;
    letter-spacing: -.1px;
  }

  /* a hair of slack: a sub-pixel overflow would otherwise paint a whole
     "…" and cut a full character off a label that actually fits */
  .main-header .al-navigation .al-nav-label {
    padding-inline-end: 1px;
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    border-radius: 9px;
    background: var(--al-primary-soft);
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a span,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button span {
    display: none;
  }

}

/* 992px-1199.98px: the tightest desktop row - the shorter search box is what
   pays for the brand and for labels that are never cut */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-header.al-topbar .al-topbar-search {
    flex-basis: 130px;
    min-width: 110px;
    max-width: 150px;
  }
}

/* 1200px-1399.98px: there is room again, so the CTA gets its label back */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .main-header .al-navigation {
    gap: 10px;
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button {
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 0;
    background: none;
    border-radius: 0;
  }

  .main-header .al-navigation .al-nav-item.al-nav-cta>a span,
  .main-header .al-navigation .al-nav-item.al-nav-cta>button span {
    display: inline;
  }
}

/* ==========================================================================
   Category / company / institute grids (Jobs, Courses, Companies, Network)
   ========================================================================== */

.al-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 10px;
}

.al-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--al-border);
  border-radius: 10px;
  background: var(--al-card);
  text-decoration: none !important;
  transition: border-color .15s, background .15s;
}

.al-cat-card:hover {
  border-color: var(--al-primary);
  background: var(--al-primary-soft);
}

.al-cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.al-cat-card-name {
  display: block;
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--al-text) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-cat-card-sub {
  display: block;
  font-size: 10.5px;
  color: var(--al-muted);
}

/* companies page cards */
.al-company-grid {
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  align-items: start;
}

.al-company-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  padding: 14px;
}

.al-company-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.al-company-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.al-company-id {
  flex: 1 1 auto;
  min-width: 0;
}

.al-company-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--al-text) !important;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.al-company-name:hover {
  color: var(--al-primary) !important;
}

.al-company-meta {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
}

.al-company-jobs {
  display: block;
}

/* network rows (people / pages / groups) */
.al-net-row {
  align-items: center;
  padding: 8px 0;
}

.al-net-avatar,
.al-net-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f1f8;
}

.al-net-thumb {
  border-radius: 10px;
}

.al-net-row .al-list-body {
  min-width: 0;
}

.al-net-row .al-list-title,
.al-net-row .al-list-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* phones: one column of companies, two columns of categories */
@media (max-width: 575.98px) {
  .al-company-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .al-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  }
}


/* ==========================================================================
   Profile :: job seeker panels (employment, skills & CV)
   ========================================================================== */

.al-entry {
  padding: 12px 0;
  border-top: 1px solid var(--al-border);
}

.al-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.al-entry-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.al-entry-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--al-primary-soft);
  color: var(--al-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-entry-icon svg {
  width: 16px;
  height: 16px;
}

.al-entry-text {
  display: block;
  min-width: 0;
}

.al-entry-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--al-text);
  line-height: 1.3;
}

.al-entry-sub {
  display: block;
  font-size: 11px;
  color: var(--al-muted);
  line-height: 1.5;
}

.al-entry-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--al-muted);
  line-height: 1.6;
}

.al-entry .al-tag {
  display: inline-block;
  margin-top: 8px;
}

.al-entry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.al-inline-form {
  margin: 0;
}

.al-skill-add {
  display: flex;
  align-items: center;
  gap: 6px;
}

.al-skill-add .form-control {
  min-width: 0;
}

.al-chip-x {
  border: 0;
  background: none;
  margin: 0 0 0 6px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  color: inherit;
  opacity: .6;
}

.al-chip-x:hover {
  opacity: 1;
  color: var(--al-danger);
}

/* keep the job seeker panels spaced inside the classic profile column */
.col-lg-4 > .al-card + .al-card {
  margin-top: 14px;
}

/* ==========================================================================
   Chat rail (overlay, no layout lane)
   The rail is a fixed strip pinned to the right edge, it is not part of the
   page grid, so instead of reserving a padding lane (which used to shift the
   header, the top bar and the shell on every page) it now parks outside the
   viewport and slides in on hover / keyboard focus. Nothing is clickable
   while it is parked, so it never steals clicks from the last column.
   ========================================================================== */

@media (min-width: 1200px) {
  .chat-sidebar {
    right: -50px;
    width: 68px;
    z-index: 1025;
    padding: 6px 0 8px;
    border-radius: 16px 0 0 16px;
    background: var(--al-card);
    box-shadow: -8px 0 26px rgba(13, 31, 61, .12);
    transition: right .22s ease, box-shadow .22s ease;
  }

  body.night-mode .chat-sidebar {
    background: var(--card-dark-color, #1f2430);
  }

  /* the grab handle that stays visible when the rail is parked */
  .chat-sidebar::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 38px;
    margin-top: -19px;
    border-radius: 3px;
    background: var(--al-muted);
    opacity: .4;
    transition: opacity .18s ease;
  }

  .chat-sidebar:hover,
  .chat-sidebar:focus-within {
    right: 10px;
    box-shadow: -12px 0 32px rgba(13, 31, 61, .18);
  }

  .chat-sidebar:hover::after,
  .chat-sidebar:focus-within::after {
    opacity: 0;
  }

  .chat-sidebar .chat-sidebar-content,
  .chat-sidebar .chat-sidebar-footer {
    transition: opacity .18s ease, visibility .18s ease;
  }

  /* parked :: hidden from sight and from the pointer */
  .chat-sidebar:not(:hover):not(:focus-within) .chat-sidebar-content,
  .chat-sidebar:not(:hover):not(:focus-within) .chat-sidebar-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

