@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================
   BASIS / FONT
   ========================= */

html, body, app-root, app-root *,
novo-form, novo-form *,
app-sidebar-filter, app-sidebar-filter * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.cx-hide {
  display: none !important;
}

/* Powered by weg */
a[href*="bullhorn"],
[class*="powered"],
[id*="powered"] {
  display: none !important;
}

/* =========================
   HEADER
   ========================= */

header.novo-header,
header.novo-header.condensed {
  background-color: #021b4e !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 18px !important;
}

header.novo-header section,
header.novo-header.condensed section {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}

/* =========================
   OVERZICHTSTITEL
   ========================= */

.open-positions-text {
  color: #021b4e !important;
  font-weight: 600 !important;
  font-size: 18px !important;
}

/* =========================
   SIDEBAR
   ========================= */

/* Oude Bullhorn filter headers verbergen */
app-sidebar-filter .filter-header,
app-sidebar-filter .filter-header span {
  display: none !important;
}

/* Hele linker kolom */
app-sidebar,
app-sidebar .filters,
app-sidebar-filters,
aside {
  background: #dcebff !important;
  padding: 18px 16px !important;
}

/* Interne decoratie / rare shapes neutraliseren */
app-sidebar *,
app-sidebar-filter *,
app-sidebar-filters * {
  background-image: none !important;
}

/* Filterblokken */
app-sidebar-filter {
  display: block !important;
  background: rgba(255,255,255,0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(2, 27, 78, 0.04) !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin: 0 0 14px !important;
}

/* Filtertitels */
.cx-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #021b4e !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Uitlijning categorie-heading */
app-sidebar-filter .cx-heading {
  padding-left: 0 !important;
}

app-sidebar-filter[field="publishedCategory(id,name)"] .cx-heading {
  padding-left: 24px !important;
}

/* Filteropties */
app-sidebar-filter label,
app-sidebar-filter .novo-checkbox-container,
app-sidebar-filter .novo-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Tekst filteropties */
app-sidebar-filter label,
app-sidebar-filter .novo-checkbox-label,
app-sidebar-filter span {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #31425f !important;
  line-height: 1.4 !important;
}

/* Checkboxen */
input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(2, 27, 78, 0.25) !important;
  accent-color: #021b4e !important;
  cursor: pointer !important;
}

/* =========================
   ZOEKVELD SIDEBAR
   ========================= */

aside input[placeholder*="Zoek"],
aside input[placeholder*="Search"],
aside .novo-search input,
aside .search input,
aside app-sidebar-search input {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

aside input[placeholder*="Zoek"]::placeholder,
aside input[placeholder*="Search"]::placeholder {
  color: rgba(2, 27, 78, 0.42) !important;
}

/* =========================
   VACATURE CARDS
   ========================= */

div.job-card {
  margin-bottom: 16px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20) !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

div.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35) !important;
  border-color: rgba(2,27,78,0.18) !important;
}

div.job-card .list-item {
  padding: 10px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Titel zonder pill/kader */
div.job-card item-title,
div.job-card item-title * {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

div.job-card item-title a,
novo-list-item item-title a {
  color: #021b4e !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

div.job-card:hover item-title a,
novo-list-item item-title a:hover {
  text-decoration: underline !important;
}

/* Badges */
div.job-card item-header-end span,
div.job-card item-header-end .novo-chip,
div.job-card item-header-end [class*="chip"],
div.job-card item-header-end [class*="badge"] {
  background: #CFE3FF !important;
  color: #021b4e !important;
  border: 1px solid rgba(2, 27, 78, 0.12) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

div.job-card item-header-end * + * {
  margin-left: 8px !important;
}

/* Tekst in cards */
div.job-card .category {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(2, 27, 78, 0.55) !important;
}

div.job-card .description,
div.job-card p {
  font-size: 14px !important;
  color: rgba(2, 27, 78, 0.70) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* =========================
   MOBILE CARD LAYOUT FIXES
   ========================= */

@media (max-width: 768px) {

  novo-list-item .job-card .cx-card-wrap {
    display: block !important;
    width: 100% !important;
  }

  novo-list-item .job-card .cx-card-wrap item-title,
  novo-list-item .job-card .cx-card-wrap .cx-title-fallback {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
  }

  novo-list-item .job-card .cx-card-wrap item-title a,
  novo-list-item .job-card .cx-card-wrap .cx-title-fallback a {
    display: inline-block !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  novo-list-item .job-card .cx-card-wrap item-header-end {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 12px 0 12px 0 !important;
  }

  novo-list-item .job-card .cx-card-wrap item-header-end * + * {
    margin-left: 0 !important;
  }

  novo-list-item .job-card .cx-card-wrap .cx-desc,
  novo-list-item .job-card .cx-card-wrap span.description,
  novo-list-item .job-card .cx-card-wrap .description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    white-space: normal !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  novo-list-item .job-card .cx-card-wrap .cx-readmore {
    display: inline-block !important;
    margin-top: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #1a5fd0 !important;
  }

  novo-list-item span.description {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  novo-list-item .job-card .cx-card-wrap .cx-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    white-space: normal !important;
  }

  header.novo-header section,
  header.novo-header.condensed section {
    font-size: 22px !important;
  }

  app-sidebar-filter {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
  }

  .cx-heading {
    font-size: 15px !important;
  }

  app-sidebar-filter label,
  app-sidebar-filter .novo-checkbox-label,
  app-sidebar-filter span {
    font-size: 13px !important;
  }
}

.cx-heading {
  min-height: 20px;
}

/* =========================
   SOLLICITATIE POPUP HEADER FIX
   ========================= */

header.apply-modal-header.novo-header {
  position: relative !important;
  display: block !important;
  text-align: center !important;
  padding: 16px 56px 10px 56px !important;
  box-sizing: border-box !important;
  min-height: 96px !important;
  overflow: hidden !important;
}

/* wrapper neutraliseren */
header.apply-modal-header.novo-header .flex-wrapper,
header.apply-modal-header.novo-header .header-title,
header.apply-modal-header.novo-header .header-titles,
header.apply-modal-header.novo-header section {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  position: static !important;
}

/* titel echt exact in het midden */
header.apply-modal-header.novo-header .header-titles h1 {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: calc(100% - 140px) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  z-index: 2 !important;
}

/* subregels onder de titel */
header.apply-modal-header.novo-header .header-titles > :not(h1) {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  position: relative !important;
  top: 34px !important;
  color: #ffffff !important;
}

/* kruisje echt rechtsboven */
header.apply-modal-header.novo-header .bhi-times {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  font-size: 18px !important;
  color: #ffffff !important;
  z-index: 3 !important;
  cursor: pointer !important;
}

/* mobiel */
@media (max-width: 768px) {
  header.apply-modal-header.novo-header {
    padding: 16px 44px 10px 44px !important;
    min-height: 88px !important;
  }

  header.apply-modal-header.novo-header .header-titles h1 {
    font-size: 18px !important;
    max-width: calc(100% - 110px) !important;
  }

  header.apply-modal-header.novo-header .bhi-times {
    top: 12px !important;
    right: 12px !important;
  }
}
novo-modal .modal-header,
novo-modal .application-header,
novo-dialog .header,
novo-dialog .modal-header,
novo-dialog .application-header,
[role="dialog"] .header,
[role="dialog"] .modal-header,
[role="dialog"] .application-header {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-align: center !important;
  padding: 26px 56px 10px 56px !important;
}

/* Wrapper in header niet laten storen */
.flex-wrapper {
  display: block !important;
  position: static !important;
  width: 100% !important;
  text-align: center !important;
}

/* Titelregel */
novo-modal h1,
novo-modal h2,
novo-modal .title,
novo-modal .job-title,
novo-modal .posting-title,
novo-modal .application-title,
novo-modal .modal-title,
novo-dialog h1,
novo-dialog h2,
novo-dialog .title,
novo-dialog .job-title,
novo-dialog .posting-title,
novo-dialog .application-title,
novo-dialog .modal-title,
[role="dialog"] h1,
[role="dialog"] h2,
[role="dialog"] .title,
[role="dialog"] .job-title,
[role="dialog"] .posting-title,
[role="dialog"] .application-title,
[role="dialog"] .modal-title {
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto 10px auto !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Alles onder de titel ook netjes centreren */
novo-modal .header > *,
novo-modal .modal-header > *,
novo-modal .application-header > *,
novo-dialog .header > *,
novo-dialog .modal-header > *,
novo-dialog .application-header > *,
[role="dialog"] .header > *,
[role="dialog"] .modal-header > *,
[role="dialog"] .application-header > * {
  width: 100% !important;
  text-align: center !important;
}

/* Subtitel / meta regel */
novo-modal .header p,
novo-modal .header span,
novo-modal .header div,
novo-modal .modal-header p,
novo-modal .modal-header span,
novo-modal .modal-header div,
novo-modal .application-header p,
novo-modal .application-header span,
novo-modal .application-header div,
novo-dialog .header p,
novo-dialog .header span,
novo-dialog .header div,
novo-dialog .modal-header p,
novo-dialog .modal-header span,
novo-dialog .modal-header div,
novo-dialog .application-header p,
novo-dialog .application-header span,
novo-dialog .application-header div,
[role="dialog"] .header p,
[role="dialog"] .header span,
[role="dialog"] .header div,
[role="dialog"] .modal-header p,
[role="dialog"] .modal-header span,
[role="dialog"] .modal-header div,
[role="dialog"] .application-header p,
[role="dialog"] .application-header span,
[role="dialog"] .application-header div {
  text-align: center !important;
}

/* Het echte close icoon */
.bhi-times {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  font-size: 18px !important;
  color: #ffffff !important;
  z-index: 999 !important;
  cursor: pointer !important;
}

/* Iets groter klikgebied */
.bhi-times::before {
  display: inline-block;
  padding: 6px;
}

/* Mobiel */
@media (max-width: 768px) {
  novo-modal .header,
  novo-modal .modal-header,
  novo-modal .application-header,
  novo-dialog .header,
  novo-dialog .modal-header,
  novo-dialog .application-header,
  [role="dialog"] .header,
  [role="dialog"] .modal-header,
  [role="dialog"] .application-header {
    padding: 20px 40px 8px 40px !important;
  }

  novo-modal h1,
  novo-modal h2,
  novo-modal .title,
  novo-modal .job-title,
  novo-modal .posting-title,
  novo-modal .application-title,
  novo-modal .modal-title,
  novo-dialog h1,
  novo-dialog h2,
  novo-dialog .title,
  novo-dialog .job-title,
  novo-dialog .posting-title,
  novo-dialog .application-title,
  novo-dialog .modal-title,
  [role="dialog"] h1,
  [role="dialog"] h2,
  [role="dialog"] .title,
  [role="dialog"] .job-title,
  [role="dialog"] .posting-title,
  [role="dialog"] .application-title,
  [role="dialog"] .modal-title {
    font-size: 18px !important;
    max-width: 100% !important;
  }

  .bhi-times {
    top: 12px !important;
    right: 12px !important;
  }
}

/* =========================
   FINAL HEADER CENTER FIX
   ========================= */

/* De container van de titel resetten */
.modal-header .header-title,
.modal-header .header-titles {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
}

/* Titel exact centreren */
.modal-header .header-titles h1 {
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto 10px auto !important;
  text-align: center !important;
}

/* Subtekst exact onder titel centreren */
.modal-header .header-titles + * {
  width: 100% !important;
  text-align: center !important;
}

/* Zorg dat parent geen flex-beperkingen oplegt */
.modal-header section {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}