/* ============================================================
   UMT Placement Portal — clean navy + gold theme
   Colors aligned with oclp.umt.edu.pk (deep navy + gold accent)
   ============================================================ */
:root {
  --portal-navy: #201c50;
  --portal-navy-2: #2b2668;
  --portal-gold: #f5b21e;
  --portal-ink: #23272e;
  --portal-muted: #6b7280;
  --portal-line: #e3e6ec;
}

/* hide any leftover legacy chrome if it ever renders */
.header, .footer, #horizontalmenu, .navbar, .job-search-grp { }

body {
  margin: 0;
  background: #ffffff;
  color: var(--portal-ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.portal-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- Top nav bar ---- */
.portal-topnav {
  background: var(--portal-navy);
  color: #fff;
}
.portal-topnav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
.portal-topnav-links li { position: relative; }
.portal-topnav-links li + li::before {
  content: "|";
  color: rgba(255, 255, 255, .35);
  padding: 0 2px;
}
.portal-topnav-links a {
  display: inline-block;
  padding: 11px 16px;
  color: #eef0f6;
  text-decoration: none;
  font-size: 13px;
}
.portal-topnav-links a:hover { color: var(--portal-gold); }

/* ---- Brand / title row ---- */
.portal-brand {
  background: #fff;
  border-bottom: 3px solid var(--portal-gold);
}
.portal-brand .portal-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.portal-logo img { height: 82px; display: block; }
.portal-title {
  flex: 1;
  background: none;
  color: var(--portal-navy);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--portal-gold);
  line-height: 1.15;
}

/* ---- Main ---- */
.portal-main { padding: 26px 0 60px; }

/* ---- Search bar ---- */
.portal-search {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 26px;
  box-shadow: 0 1px 3px rgba(32, 28, 80, .05);
}
.portal-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.portal-search .field { flex: 1 1 200px; min-width: 170px; }
.portal-search input.form-control,
.portal-search select.form-control {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd4dd;
  border-radius: 3px;
  background: #fff;
  color: var(--portal-ink);
  font-size: 14px;
  box-sizing: border-box;
}
.portal-search input.form-control::placeholder { color: #9aa1ac; }
.portal-btn-search {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 26px;
  background: var(--portal-gold);
  color: #201c50;
  border: none;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portal-btn-search:hover { filter: brightness(.96); }

/* ---- Listing header ---- */
.portal-jobs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.portal-jobs-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--portal-navy);
}
.portal-jobs-count {
  font-size: 13px;
  color: var(--portal-navy);
  background: #fdf3d9;
  border: 1px solid #f3dfa2;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- Job table (card style) ---- */
.portal-jobs { width: 100%; }
.portal-jobs table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(32, 28, 80, .06);
}
.portal-jobs thead th {
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: var(--portal-navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 13px 16px;
  white-space: nowrap;
}
.portal-jobs tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid #eef0f4;
  color: #3a3f47;
  font-size: 14px;
  vertical-align: middle;
}
.portal-jobs tbody tr:last-child td { border-bottom: none; }
.portal-jobs tbody tr:nth-child(even) td { background: #fafbfd; }
.portal-jobs tbody tr:hover td { background: #f4f1ff; }
.portal-jobs a.job-title {
  color: var(--portal-navy);
  font-weight: 700;
  text-decoration: none;
}
.portal-jobs a.job-title:hover { color: var(--portal-gold); }

/* cell accents */
.cell-company { color: #4a5160; }
.cell-loc { color: #4a5160; }
.cell-loc .fa { color: var(--portal-gold); margin-right: 3px; }
.badge-type {
  display: inline-block;
  background: #eef0fb;
  color: var(--portal-navy);
  border: 1px solid #d9ddf3;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cell-deadline { color: #c0392b; font-weight: 600; white-space: nowrap; }
.cell-posted { color: var(--portal-muted); white-space: nowrap; }

.portal-jobs .empty {
  padding: 40px 12px;
  color: var(--portal-muted);
  text-align: center;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  margin-top: -1px;
}

/* ---- Pager ---- */
.portal-jobs .pager {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-jobs .pager > span {
  font-size: 13px;
  color: var(--portal-muted);
}
.portal-jobs .pager .btn-group {
  display: inline-flex;
  gap: 6px;
}
.portal-jobs .pager .btn-group button.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--portal-line);
  background: #fff;
  color: var(--portal-navy);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.portal-jobs .pager .btn-group button.btn-icon:hover {
  background: var(--portal-navy);
  color: #fff;
  border-color: var(--portal-navy);
  box-shadow: 0 2px 6px rgba(32, 28, 80, .18);
}
.portal-jobs .pager .btn-group button.btn-icon:active { transform: translateY(1px); }
.portal-jobs .pager .btn-group button.btn-icon:focus { outline: none; box-shadow: 0 0 0 3px rgba(245, 178, 30, .35); }

@media (max-width: 720px) {
  .portal-jobs .pager { justify-content: center; }
}

/* ---- Footer ---- */
.portal-footer {
  border-top: 1px solid var(--portal-line);
  padding: 22px 0 30px;
  color: var(--portal-navy);
}
.portal-footer-name { font-weight: 700; font-size: 14px; }
.portal-footer-phone { color: var(--portal-muted); margin-top: 4px; font-size: 13px; }
.portal-footer-phone strong { color: var(--portal-navy); }

/* responsive */
@media (max-width: 720px) {
  .portal-brand .portal-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .portal-title { width: 100%; box-sizing: border-box; font-size: 20px; }
  .portal-jobs table, .portal-jobs tbody, .portal-jobs tr, .portal-jobs td { display: block; width: 100%; box-sizing: border-box; }
  .portal-jobs thead { display: none; }
  .portal-jobs table { box-shadow: none; border: none; background: none; }
  .portal-jobs tbody tr {
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(32, 28, 80, .06);
    margin-bottom: 14px;
    padding: 6px 0;
  }
  .portal-jobs tbody tr:nth-child(even) td,
  .portal-jobs tbody tr:hover td { background: transparent; }
  .portal-jobs tbody td {
    border: none;
    padding: 7px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .portal-jobs tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--portal-muted);
    font-weight: 700;
  }
  .portal-jobs tbody td[data-label="Job Title"] { border-bottom: 1px solid #eef0f4; padding-bottom: 11px; }
}

/* ============================================================
   Job Detail page
   (selectors scoped under .jd-page so they override content.css)
   ============================================================ */
.jd-page { padding: 4px 0 12px; color: var(--portal-ink); font-family: "Open Sans", Arial, sans-serif; }
.jd-page a { color: var(--portal-navy); }

/* app.css sets `h1,h2,h3,h4 { float:left; width:100% }` globally — neutralize it here
   so the flex header/cards lay out correctly instead of the headings floating. */
.jd-page h1, .jd-page h2, .jd-page h3, .jd-page h4 { float: none; width: auto; margin-top: 0; }

.jd-breadcrumb { font-size: 13px; color: var(--portal-muted); margin-bottom: 16px; }
.jd-breadcrumb a { color: var(--portal-navy); text-decoration: none; }
.jd-breadcrumb a:hover { color: var(--portal-gold); }
.jd-breadcrumb span { margin: 0 8px; color: #c3c8d2; }
.jd-breadcrumb .cur { color: var(--portal-muted); margin-left: 0; }

/* ---- Header ---- */
.jd-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-2) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 26px 30px;
  box-shadow: 0 6px 20px rgba(32, 28, 80, .18);
}
.jd-header-main { flex: 1 1 auto; min-width: 0; }
.jd-title { margin: 0 0 12px; font-size: 25px; font-weight: 700; color: #fff; line-height: 1.25; }
.jd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.jd-company {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--portal-gold);
  font-weight: 700;
  font-size: 15px;
}
.jd-company .fa { color: var(--portal-gold); opacity: .85; }
.jd-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dfe2ef;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.jd-loc .fa { color: var(--portal-gold); }
.jd-header-side { flex: 0 0 auto; margin-left: auto; }

/* apply button (clean class — no content.css baggage) */
.jd-apply {
  background: var(--portal-gold);
  color: #201c50;
  border: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}
.jd-apply:hover { filter: brightness(.95); }

/* expired: a status chip, not a button */
.jd-expired {
  background: rgba(231, 76, 60, .16);
  color: #ffb4ab;
  border: 1px solid rgba(231, 76, 60, .5);
  padding: 9px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: default;
  display: inline-block;
  white-space: nowrap;
  box-shadow: none;
}

.jd-error { color: #c0392b; margin: 14px 2px 0; font-weight: 600; }
.jd-error:empty { display: none; }

/* ---- Body layout ---- */
.jd-body { display: flex; gap: 22px; margin-top: 22px; align-items: flex-start; }
.jd-main { flex: 1 1 auto; min-width: 0; }
.jd-side { flex: 0 0 300px; }

.jd-card {
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(32, 28, 80, .05);
}

/* facts grid */
.jd-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
.jd-facts .fact { display: flex; flex-direction: column; gap: 3px; }
.jd-page .fk { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--portal-navy); font-weight: 800; line-height: 1.4; }
.jd-page .fv { font-size: 14.5px; color: var(--portal-ink); font-weight: 500; line-height: 1.45; }
.jd-deadline .fv { color: #c0392b; }

/* education / skills */
.jd-kv { margin-top: 20px; border-top: 1px dashed var(--portal-line); padding-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.jd-kv .kv { display: flex; flex-direction: column; gap: 5px; }
.jd-kv .fv { font-weight: 500; line-height: 1.6; }

/* description */
.jd-h3 { margin: 0 0 16px; font-size: 18px; color: var(--portal-navy); font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--portal-gold); display: inline-block; }
.jd-content { font-size: 14px; line-height: 1.75; color: #3a3f47; }
.jd-content p, .jd-content li, .jd-content span { font-size: 14px; line-height: 1.75; }
.jd-content ul, .jd-content ol { padding-left: 20px; }
.jd-note {
  margin-top: 20px;
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  border-left: 4px solid var(--portal-gold);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: #6a5a2a;
  text-align: center;
}
.jd-note strong { color: #6a5a2a; }

/* sidebar: organization */
.jd-org { text-align: center; }
.jd-org-logo { padding: 8px; }
.jd-org-logo img { max-width: 100%; max-height: 120px; display: inline-block; }
.jd-profile-link {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 20px;
  border: 1px solid var(--portal-navy);
  color: var(--portal-navy);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s ease, color .15s ease;
}
.jd-profile-link:hover { background: var(--portal-navy); color: #fff; }

/* sidebar: more jobs */
.jd-h4 { margin: 0 0 12px; font-size: 15px; color: var(--portal-navy); font-weight: 700; }
.jd-more-item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f4;
  color: var(--portal-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.jd-more-item:last-child { border-bottom: none; }
.jd-more-item:hover { color: var(--portal-gold); }

@media (max-width: 860px) {
  .jd-body { flex-direction: column; }
  .jd-side { flex: 1 1 auto; width: 100%; }
  .jd-facts { grid-template-columns: repeat(2, 1fr); }
  .jd-header { flex-direction: column; align-items: flex-start; }
  .jd-header-side { width: 100%; }
}
@media (max-width: 480px) {
  .jd-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   Auth pages (Job Seeker / Employer login)
   Scoped under .auth so they beat content.css / style.css
   (those load after portal.css) and neutralize app.css heading floats.
   ============================================================ */
.auth { padding: 18px 0 40px; display: flex; justify-content: center; }
.auth h2, .auth h3, .auth h4 { float: none; width: auto; margin: 0; }

.auth-card {
  display: flex;
  width: 100%;
  max-width: 880px;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(32, 28, 80, .12);
}
.auth-pane { flex: 1 1 0; padding: 34px 34px 38px; box-sizing: border-box; }

/* left: form */
.auth-form-pane { flex: 1.15 1 0; }
.auth-head { margin-bottom: 22px; }
.auth-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eef0fb;
  color: var(--portal-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.auth-title { font-size: 22px; font-weight: 700; color: var(--portal-navy); line-height: 1.2; }
.auth-sub { margin: 6px 0 0; font-size: 13px; color: var(--portal-muted); }

.auth .form { display: block; }
.auth-field { margin-bottom: 16px; }
.auth-field > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #6b7280;
  margin-bottom: 6px;
}
.auth .auth-field .input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd4dd;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth .auth-field .input:focus { border-color: var(--portal-navy); box-shadow: 0 0 0 3px rgba(32, 28, 80, .12); }

/* terms row */
.auth-terms { margin: 4px 0 18px; font-size: 13px; color: #3a3f47; }
.auth-terms input[type="checkbox"] { vertical-align: middle; margin-right: 7px; transform: scale(1.1); }
.auth-terms label { color: #3a3f47; }
.auth-terms a { color: var(--portal-navy); font-weight: 600; }

/* buttons */
.auth-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--portal-gold);
  color: #201c50;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 178, 30, .35);
  transition: filter .15s ease;
}
.auth-btn:hover { filter: brightness(.96); }
.auth-links { margin-top: 14px; text-align: center; }
.auth-links a { color: var(--portal-navy); font-size: 13px; text-decoration: none; font-weight: 600; }
.auth-links a:hover { color: var(--portal-gold); }

/* validation messages */
.auth .error li { color: #c0392b; font-size: 12px; }
.auth-error { color: #c0392b; font-weight: 600; font-size: 13px; margin: 0 0 14px; }
.auth-error:empty { display: none; }

/* right: promo panel */
.auth-promo {
  flex: .85 1 0;
  background: linear-gradient(150deg, var(--portal-navy) 0%, var(--portal-navy-2) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* content.css sets `.article p / .article ul li { color:#000 }` and loads after
   portal.css — bump specificity here so the promo text stays light on navy. */
.auth .auth-promo h3 { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 12px; }
.auth .auth-promo p { font-size: 14px; line-height: 1.6; color: #dfe2ef; margin-bottom: 14px; }
.auth .auth-promo ul { list-style: none; padding: 0; margin: 0 0 22px; }
.auth .auth-promo li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: #eaecf5;
  margin-bottom: 12px;
}
.auth-promo li::before {
  content: "\f00c"; /* fa-check */
  font-family: FontAwesome;
  position: absolute; left: 0; top: 1px;
  color: var(--portal-gold);
  font-size: 12px;
}
.auth-btn-ghost {
  align-self: flex-start;
  padding: 12px 26px;
  border: 2px solid var(--portal-gold);
  background: transparent;
  color: var(--portal-gold);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.auth-btn-ghost:hover { background: var(--portal-gold); color: #201c50; }

@media (max-width: 720px) {
  .auth-card { flex-direction: column; max-width: 460px; }
  .auth-pane { padding: 26px 24px 30px; }
}

/* ---- Registration (wider card + 2-column field grid) ---- */
.auth-lg .auth-card { max-width: 1000px; }
.auth-lg .auth-form-pane { flex: 1.7 1 0; }
.auth-lg .auth-promo { flex: .8 1 0; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 6px; }
.auth-grid .auth-field { margin-bottom: 0; }
.auth-field.full { grid-column: 1 / -1; }

/* dropdowns styled like inputs */
.auth .auth-field select {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd4dd;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth .auth-field select:focus { border-color: var(--portal-navy); box-shadow: 0 0 0 3px rgba(32, 28, 80, .12); }
.auth-lg .auth-btn { margin-top: 10px; }

/* single-column card (forgot password / logout) */
.auth-single .auth-card { max-width: 440px; }

/* centered content (logout / signed-out confirmation) */
.auth-center { text-align: center; }
.auth-center .auth-icon { margin: 0 auto 16px; }
.auth-icon-lg { width: 66px; height: 66px; font-size: 32px; background: #eafaf1; color: #27ae60; border-radius: 16px; }
.auth-btn-link {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 34px;
  background: var(--portal-gold);
  color: #201c50;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 178, 30, .35);
}
.auth-btn-link:hover { filter: brightness(.96); color: #201c50; }

@media (max-width: 720px) {
  .auth-lg .auth-card { max-width: 460px; }
  .auth-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Organization / Employer profile page
   Scoped under .org; neutralizes app.css heading floats.
   ============================================================ */
.org { padding: 4px 0 24px; color: var(--portal-ink); }
.org h1, .org h4 { float: none; width: auto; margin: 0; }

/* hero */
.org-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, var(--portal-navy) 0%, var(--portal-navy-2) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 6px 20px rgba(32, 28, 80, .18);
  margin-bottom: 26px;
}
.org-hero-logo {
  flex: 0 0 auto;
  width: 100px; height: 100px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  border: 2px solid rgba(245, 178, 30, .55);
}
.org-hero-logo img { max-width: 100%; max-height: 100%; }
.org-hero-main { min-width: 0; }
.org-title { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: .2px; }
.org-summary { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #dfe2ef; }
.org-summary * { color: #dfe2ef !important; }

/* section heading */
.org-h {
  font-size: 17px;
  font-weight: 700;
  color: var(--portal-navy);
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--portal-gold);
  display: inline-block;
}
.org-h .fa { color: var(--portal-gold); margin-right: 8px; }

/* card */
.org-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(32, 28, 80, .05);
  transition: box-shadow .18s ease, transform .18s ease;
}
.org-card:hover { box-shadow: 0 8px 24px rgba(32, 28, 80, .10); transform: translateY(-2px); }
.org-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--portal-navy);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-line);
}
.org-card-name:empty { display: none; }

.org-subhead {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--portal-navy);
  margin: 24px 0 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--portal-line);
}

/* definition grid — tile chips */
.org-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.org-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  background: #f5f6f9;
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  transition: background .15s ease;
}
.org-row:hover { background: #eef0f8; }
.org-k {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #8a92a0;
  font-weight: 700;
}
.org-v { font-size: 14px; color: var(--portal-ink); font-weight: 600; word-break: break-word; min-height: 18px; }
.org-v a { color: var(--portal-navy); font-weight: 600; text-decoration: none; }
.org-v a:hover { color: var(--portal-gold); text-decoration: underline; }

@media (max-width: 720px) {
  .org-hero { flex-direction: column; align-items: flex-start; text-align: left; }
  .org-dl { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .org-dl { grid-template-columns: 1fr; }
}
