/* ===== Select2: ONLY on page ID 1033 ===== */
body.page-id-1033 .select2-container--open .select2-dropdown,
body.page-id-1033 .select2-container--open .select2-results__option {
  background: #fff !important;
  color: #000 !important;
}

body.page-id-1033 .select2-container--open
.select2-results__option--highlighted[aria-selected],
body.page-id-1033 .select2-container--open
.select2-results__option[aria-selected="true"] {
  background: #d758fb !important; /* your purple */
  color: #fff !important;
}

/* Closed state (the box you see before opening the dropdown) */
body.page-id-1033 .select2-container--default .select2-selection--single,
body.page-id-1033 .select2-container--default .select2-selection--multiple {
  background: #fff !important;
}

body.page-id-1033 .select2-container--default
.select2-selection__rendered {
  color: #000 !important;
}

/* (Optional safety) Let UM keep its own colours inside UM wrappers anywhere */
div.um :is(.um-form,.um-field) .select2-container--open .select2-results__option,
div.um :is(.um-form,.um-field) .select2-container--default .select2-selection__rendered {
  color: var(--color-field-text, #666) !important;
}

/* === Top nav: larger pale-purple pill on hover with ring + fade === */
:root{
  --pill-fill: rgba(130, 36, 227, .12);   /* pale purple */
  --pill-ring-color: rgba(130, 36, 227, .55);
  --pill-ring: 3px;                       /* ring thickness (try 4px) */
  --pill-expand-x: 10px;                  /* how much bigger the pill is left/right */
  --pill-expand-y: 6px;                   /* how much bigger the pill is top/bottom */
  --pill-fade: .18s;
}

/* Target header/top-level nav links (block themes + classic + Elementor) */
:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a) {
  position: relative;        /* needed for ::before */
  z-index: 0;                /* create stacking context */
  border-radius: 9999px;     /* pill shape */
  background: transparent !important;
}

/* The pill background layer (larger than the link) */
:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a)::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--pill-expand-y)) calc(-1 * var(--pill-expand-x));
  border-radius: inherit;
  background: var(--pill-fill);
  border: var(--pill-ring) solid var(--pill-ring-color);
  opacity: 0;
  transform: scale(.98);
  transition: opacity var(--pill-fade) ease, transform var(--pill-fade) ease;
  pointer-events: none;   /* don’t block clicks */
  z-index: -1;            /* sit behind the link text */
}

/* Show pill on hover and while pressed (same look) */
:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a):hover::before,
:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a):active::before {
  opacity: 1;
  transform: scale(1);
}

/* Keyboard focus: show the same pill instead of the dotted outline */
:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a):focus { outline: none !important; }

:where(header, .site-header)
  :is(.wp-block-navigation__container > li > a,
      .wp-block-navigation__container > li > .wp-block-navigation-item__content,
      .primary-menu > li > a,
      .main-navigation .menu > li > a,
      .menu > li > a,
      .elementor-nav-menu > li > a):focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  :where(header, .site-header)
    :is(.wp-block-navigation__container > li > a,
        .wp-block-navigation__container > li > .wp-block-navigation-item__content,
        .primary-menu > li > a,
        .main-navigation .menu > li > a,
        .menu > li > a,
        .elementor-nav-menu > li > a)::before {
    transition: none;
  }
}

/* Remove dots from any theme list styles */
.roles__grid{list-style:none;margin:0;padding:0}
.roles__grid > li{list-style:none;margin:0;padding:0;position:relative}
.roles__grid > li::marker{content:""}
.roles__grid > li::before{content:none !important}

/* Grid (unchanged) */
.roles__grid{
  max-width:1200px;margin:0 auto;
  display:grid;gap:18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width:992px){ .roles__grid{grid-template-columns:repeat(4,1fr)} }

/* Card with black bar under the image */
.roles__grid > .role{            /* CHANGED (was .role) */
  background:#0b0b14;            /* black bar */
  border-radius:24px;
  padding-bottom:16px;            /* height of the bar */
}

/* ----- KEY CHANGE: fixed card height + image fills it ----- */
/* Choose the card height here; tweak to taste */
:root{ --card-h: 240px; }                 /* mobile height */
@media (min-width:992px){ :root{ --card-h: 280px; } }  /* desktop height */

.roles__grid > .role > a{       /* CHANGED (was .role a) */
  display:block; position:relative;
  overflow:hidden; border-radius:24px;    /* clip to rounded corners */
  height:var(--card-h);                   /* fixed card height */
}

.roles__grid > .role img{       /* CHANGED (was .role img) */
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
  transform:scale(1.02);
  transition:transform .25s ease, filter .2s ease;
  filter:saturate(.92);
}

/* Overlay + hover (unchanged) */
.roles__grid > .role > a::after{        /* CHANGED (was .role a::after) */
  content:""; position:absolute; inset:0;
  background:rgba(0,0,0,.45); transition:background .22s ease;
}
.roles__grid > .role > a:hover::after{  /* CHANGED (was .role a:hover::after) */
  background:rgba(0,0,0,.30)
}
.roles__grid > .role > a:hover img{     /* CHANGED (was .role a:hover img) */
  transform:scale(1.05); filter:saturate(1)
}

/* Title (unchanged) */
.roles__grid .role__caption{            /* CHANGED (was .role__caption) */
  position:absolute; left:20px; bottom:20px; right:20px; z-index:2
}
.roles__grid .role__title{              /* CHANGED (was .role__title) */
  margin:0; font-weight:800; font-size:clamp(18px,2.2vw,28px); color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.6)
}

/* Full-width CTA banner under the grid */
.roles__cta{
  grid-column: 1 / -1;
  border-radius:24px;
  overflow:hidden;
  background:#0b0b14;
}
.roles__ctaLink{
  position:relative; display:block; border-radius:24px; overflow:hidden;
  aspect-ratio: 16 / 5;               /* adjust if you want it taller/shorter */
}
.roles__ctaImg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; filter:brightness(.78);
}
.roles__ctaOverlay{
  position:absolute; left:20px; right:20px; bottom:20px;
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
}
.roles__ctaText{
  color:#fff; font-weight:800; font-size:clamp(20px,3vw,36px);
  text-shadow:0 2px 14px rgba(0,0,0,.6);
}
.roles__ctaBtn{
  background:#a893ff; color:#0b0b14; font-weight:800;
  padding:10px 16px; border-radius:12px;
}
.roles__ctaLink:hover .roles__ctaImg{ filter:brightness(.88) }

/* ===== CTA banner: thinner + darker ===== */

/* much thinner banner; tweak ratios if you want */
.roles__ctaLink{ 
  aspect-ratio: 16 / 3.2;              /* desktop/tablet */
}
@media (max-width: 768px){
  .roles__ctaLink{ aspect-ratio: 16 / 4.6; }  /* extra thin on mobile */
}

/* darker image + overlay */
.roles__ctaImg{
  filter: brightness(.60) contrast(1.05);
}

/* solid dark overlay on top of image */
.roles__ctaLink{ position: relative; }
.roles__ctaLink::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.50);         /* make it darker/lighter here */
  z-index:1;
  border-radius:24px;
  transition: background .2s ease;
}

/* keep your text above the overlay */
.roles__ctaOverlay{ position:absolute; z-index:2; }

/* slight lighten on hover */
.roles__ctaLink:hover::after{ background: rgba(0,0,0,.40); }

/* ===== Borealis Company Dashboard (full-width bold pills) ===== */
.bc-dash { --bg:#0f0f2b; --bg2:#1c1c44; --text:#f7f7f7; --muted:#b9b9d6; --brand:#d9cafd; --pill:#2a2a66; --pillActive:#383888; --ring:#8f86ff; }
.bc-dash { background:var(--bg); color:var(--text); padding:28px; border-radius:16px; }
.bc-link { color:var(--brand); text-decoration:underline; }

/* Header */
.bc-head { display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--bg2); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:14px; margin-bottom:18px; }
.bc-title { margin:0 0 2px; font-size:24px; line-height:1.2; }
.bc-sub { margin:0; color:var(--muted); }
.bc-head-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* Buttons */
.bc-btn { display:inline-block; padding:10px 14px; border-radius:999px; text-decoration:none; color:#101022; background:#fff; border:1px solid transparent; }
.bc-btn:hover { filter:brightness(1.03); }
.bc-btn.ghost { background:transparent; color:var(--brand); border-color:rgba(255,255,255,.18); }
.bc-btn.ghost:hover { background:rgba(255,255,255,.06); }

/* Full-width equal pills */
.bc-pills {
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:8px;
  margin:18px 0 16px;
}
.bc-pill {
  width:100%;
  text-align:center;
  padding:12px 14px;
  border-radius:999px;
  background:var(--pill);
  color:var(--text);
  border:1px solid transparent;
  cursor:pointer;
  font-weight:700;             /* bold */
  font-size:16.5px;            /* larger text */
  line-height:1.1;
}
.bc-pill:hover { background:var(--pillActive); border-color:var(--ring); }
.bc-pill.is-active {
  background:linear-gradient(180deg,var(--pillActive),var(--bg2));
  border-color:var(--ring);
  box-shadow:0 0 0 3px rgba(143,134,255,.15);
}

/* Responsive layout for pills */
@media (max-width: 860px){
  .bc-pills { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .bc-pills { grid-template-columns: repeat(2, 1fr); }
}

/* Panels */
.bc-panel { display:none; background:var(--bg2); padding:18px; border-radius:14px; border:1px solid rgba(255,255,255,.08); }
.bc-panel.is-active { display:block; animation:bc-fade .15s ease-out; }
@keyframes bc-fade { from{opacity:0; transform:translateY(2px);} to{opacity:1; transform:translateY(0);} }

/* Inside panels */
.bc-toolbar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.bc-note { margin-top:10px; color:var(--muted); font-size:14px; }

/* Make embedded shortcodes feel native */
.bc-slot { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:14px; overflow:hidden; }

/* Ultimate Member tidy */
.bc-slot .um, .bc-slot .um-form { background:transparent !important; border:none !important; box-shadow:none !important; color:var(--text); }
.bc-slot .um .um-field-label label, 
.bc-slot .um .um-field-area, 
.bc-slot .um input, 
.bc-slot .um select, 
.bc-slot .um textarea { color:var(--text) !important; }
.bc-slot .um input, 
.bc-slot .um select, 
.bc-slot .um textarea { background:#0f0f2b !important; border:1px solid rgba(255,255,255,.12) !important; border-radius:10px !important; }
.bc-slot .um a { color:var(--brand); }

/* JobBoardWP tidy */
.bc-slot table { width:100%; border-collapse:separate; border-spacing:0; }
.bc-slot th, .bc-slot td { padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.08); }
.bc-slot thead th { background:rgba(255,255,255,.06); }
.bc-slot tr:hover td { background:rgba(255,255,255,.03); }
.bc-slot .button, .bc-slot .jb-button, .bc-slot a.button { border-radius:999px; }