/* ==========================================================================
   WorkAbilities — style.css
   Cleaned, modular, mobile-first, accessible
   ========================================================================== */
   :root {
    /* Colors */
    --color-primary:     #1e3a8a;  /* deep blue */
    --color-primary-600: #16306a;
    --color-secondary:   #f59e0b;  /* warm amber */
    --color-accent:      #10b981;  /* emerald */
    --color-bg:          #f9fafb;
    --color-surface:     #ffffff;
    --text-primary:      #0f1724;
    --text-secondary:    #4b5563;
    --muted:             #e5e7eb;
    --danger:            #dc2626;
  
    /* Layout */
    --container-max:     1140px;
    --nav-height:        64px;
    --radius:            10px;
    --ui-gap:            1rem;
  
    /* Elevation */
    --shadow-sm:         0 4px 12px rgba(17,24,39,0.06);
    --shadow-lg:         0 10px 30px rgba(16,24,40,0.08);
  
    /* Typography */
    --base-font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --brand-font:        "Poppins", var(--base-font);
    --base-size:         15px;
  }
  
  /* -------------------------
     Base / Reset
     ------------------------- */
  *,
  *::before,
  *::after { box-sizing: border-box; }
  
  html { font-size: var(--base-size); -webkit-text-size-adjust: 100%; }
  
  body {
    margin: 0;
    min-height: 100%;
    font-family: var(--base-font);
    color: var(--text-primary);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    font-size: 1rem;
    font-weight: 400; /* make body text regular */
  }
  
  /* Respect container width but allow Bootstrap container utilities to remain */
  .container, .container-lg { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
  
  /* Accessible focus visible */
  :focus {
    outline: 3px solid rgba(30,58,138,0.12);
    outline-offset: 2px;
  }
  
  /* Small utility classes */
  .text-muted { color: var(--text-secondary) !important; }
  .small { font-size: .9rem; font-weight: 400; }
  .rounded-lg { border-radius: var(--radius); }
  
  /* -------------------------
     Skip link for keyboard users
     ------------------------- */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
  }
  .skip-link:focus,
  .skip-link:active {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: var(--color-surface);
    color: var(--text-primary);
    border-radius: .5rem;
    box-shadow: var(--shadow-sm);
  }
  
  /* -------------------------
     Navbar / Header
     ------------------------- */
  .navbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--muted);
    padding: .5rem 0;
    min-height: var(--nav-height);
    transition: box-shadow .28s ease, backdrop-filter .28s ease, background-color .28s;
  }
  
  /* Scrolled state */
  .navbar.scrolled {
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(4px);
  }
  
  /* Brand */
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 300;
    font-family: var(--brand-font);
    color: var(--color-primary);
    text-decoration: none;
  }
  .brand-badge {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 300;
    font-size: .95rem;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(13,110,253,0.12);
  }
  
  /* Navbar links */
  .navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 400; /* regular */
    padding: .45rem .6rem;
  }
  .navbar .nav-link:hover,
  .navbar .nav-link:focus,
  .navbar .nav-link.active {
    color: var(--color-primary);
    text-decoration: none;
  }
  
  /* Right controls container */
  .nav-controls,
  .d-flex.align-items-center.gap-2 {
    display:flex;
    align-items:center;
    gap:.5rem;
  }
  
  /* Buttons */
  .btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 300;
  }
  .btn-outline-primary:hover,
  .btn-outline-primary:focus {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-600);
  }
  .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--muted);
    font-weight: 400;
  }
  .btn-outline-secondary:hover,
  .btn-outline-secondary:focus {
    color: var(--color-primary);
    border-color: var(--color-primary);
  }
  
  /* Login link button */
  .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: .3rem .5rem;
    font-weight: 400;
  }
  .btn-link:hover,
  .btn-link:focus {
    color: var(--color-primary);
    text-decoration: none; /* 🔥 removed underline */
  }
  
  .btn .bi { vertical-align: -0.125em; }
  
  /* Dropdowns */
/* your existing dropdown styles */
.dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--muted);
  box-shadow: var(--shadow-lg);
}
.dropdown-item { 
  color: var(--text-secondary); 
  font-weight: 400; 
}
.dropdown-item:hover { 
  background: var(--color-bg); 
  color: var(--color-primary);
}

/* === show dropdown on cursor hover (only for pointer/hover-capable devices) === */
@media (hover: hover) and (pointer: fine) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;       /* show dropdown on hover */
  }

  /* keep alignment same as Bootstrap */
  .nav-item.dropdown:hover > .nav-link {
    /* no color changes — left blank intentionally */
  }

  /* optional: prevent sudden jump if Bootstrap uses margin-top */
  .nav-item.dropdown > .dropdown-menu {
    margin-top: 0;
  }
}

  /* Hamburger */
  .navbar-toggler { border: none; }
  .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(30,58,138,0.12); }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  
  /* -------------------------
     Language switch
     ------------------------- */
  .lang-btn {
    min-width: 44px;
    height: 34px;
    padding: 0 .5rem;
    border-radius: .35rem;
    font-size: .85rem;
    font-weight: 400;
  }
  .lang-btn[aria-pressed="true"] {
    background-color: rgba(13,110,253,0.08);
    border-color: rgba(13,110,253,0.12);
  }

/* ===== Filter Bar ===== */
.filter-bar { background: #f8fafc; }
.searchable-dropdown { position: relative; display: flex; align-items: center; }
.searchable-dropdown .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: 0.95rem; pointer-events: none;
}
.searchable-dropdown .filter-input {
  width: 100%; height: 42px;
  padding: 10px 40px 10px 36px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: .95rem; background: #fff;
}
.searchable-dropdown .filter-input::placeholder { color: #9ca3af; }
.searchable-dropdown .filter-input:focus {
  outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 0.18rem rgba(30,58,138,.15);
}
.searchable-dropdown .dropdown-toggle-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 28px; width: 28px; border: none; background: transparent;
  color: #6b7280; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; cursor: pointer;
}
.searchable-dropdown .dropdown-toggle-btn:hover { background: #f3f4f6; }
.searchable-dropdown.is-open .dropdown-toggle-btn i { transform: rotate(180deg); transition: transform .18s ease; }

/* dropdown */
.sd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050;
  display: none; max-height: 260px; overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17,24,39,.10);
}
.sd-menu.sd-show { display: block; } /* use sd-show to avoid other .show conflicts */
.sd-menu li { padding: 10px 10px; border-radius: 8px; font-size: .95rem; color: #111827; cursor: pointer; outline: none; }
.sd-menu li:hover, .sd-menu li[aria-selected="true"], .sd-menu li.active { background: #f3f4f6; }
.sd-menu li .match { font-weight: 300; color: #1e3a8a; }
.sd-menu .no-results { color: #6b7280; cursor: default; }

.search-btn { height: 42px; border-radius: 8px; font-size: .95rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }

/* ensure input text is visible */
.filter-input {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  font-size: inherit !important;
}

/* If a floating placeholder overlay exists, hide it when wrapper has .has-value */
.searchable-dropdown.has-value .placeholder-overlay,
.searchable-dropdown.has-value .floating-label {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
@media (max-width: 576px) { .searchable-dropdown { margin-bottom: 0.5rem; } }
/* --- popup close-edge position (desktop) & bounce --- */
#popupCloseEdge { position: absolute; right: 8px; top: 8px; width:34px;height:34px;border-radius:999px;background:rgba(0,0,0,0.14);color:#fff;border:1px solid rgba(255,255,255,0.06);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,0.22); z-index: 30; }

/* subtle bounce when visible */
@keyframes popupBounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  70% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.hero-popup[aria-hidden="false"] { animation: popupBounce 2.4s ease-in-out 0.6s infinite; }

/* adjust small-screen popup close-edge */
@media (max-width: 768px) {
  #popupCloseEdge { display:none; } /* desktop-only close-edge */
}
/* Background */
.hero{position:relative;min-height:var(--hero-height);overflow:visible}
.hero-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:contrast(0.95) saturate(0.95);z-index:0}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,10,16,0.35),rgba(6,10,16,0.6));z-index:1}

/* Floating sticky card */
.hero-floating{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;padding:4rem 1rem}
.hero-card{position:sticky;top:20px;max-width:1100px;width:100%;background:var(--glass);backdrop-filter:blur(8px) saturate(1.05);border-radius:14px;padding:28px;box-shadow:0 10px 30px rgba(2,6,23,0.6);border:1px solid rgba(255,255,255,0.06)}

/* Inline banner (mobile) - base replaced by WhatsApp block styles below */
/* hero-inline-banner styles (mobile inline WhatsApp contact) */
.hero-inline-banner{
  display:none; /* controlled by media queries below */
  align-items:center;
  justify-content:space-between;
  padding:12px;
  border-radius:10px;
  margin-bottom:12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.04);
  position:relative;
  gap: 12px;
  overflow: visible;
  animation: slideInUp .48s cubic-bezier(.2,.9,.2,1) both;
}
.hero-inline-banner[hidden]{ display:none !important; }

.hero-inline-banner .banner-left{
  display:flex;
  gap:10px;
  align-items:center;
  min-width: 36%;
}
.hero-inline-banner .wa-icon{
  width:44px;height:44px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background: #25D366;color:#fff;font-size:20px;
  box-shadow: 0 6px 18px rgba(37,211,102,0.12);
}
.hero-inline-banner .banner-text strong{ font-size: .95rem; display:block; color: #fff; }
.hero-inline-banner .banner-desc{ font-size:.82rem; color: rgba(255,255,255,0.95); opacity: .95; }

.hero-inline-banner .banner-form{ min-width: 42%; display:flex; flex-direction: column; gap:6px; }
.hero-inline-banner .wa-input{
  padding: 8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06); color:#fff; font-size:.92rem;
}
.hero-inline-banner .wa-input::placeholder{ color: rgba(255,255,255,0.7); }
.hero-inline-banner .wa-error{ color: #ffdede; font-size:.85rem; margin-left:2px; }

.hero-inline-banner .banner-actions{ display:flex; gap:8px; align-items:center; }
.hero-inline-banner .wa-btn{
  background: linear-gradient(90deg,#00A86B,#25D366);
  color: #fff; border: 0; padding: 8px 12px; border-radius: 8px;
  display:inline-flex; align-items:center; gap:8px; font-weight:600; box-shadow: 0 8px 20px rgba(2,6,23,0.12);
  transition: transform .12s ease, opacity .12s ease;
}
.hero-inline-banner .wa-btn[disabled]{ opacity:.65; transform: scale(.995); pointer-events:none; }
.hero-inline-banner .btn-link { color: rgba(255,255,255,0.9); opacity: .95; }

/* Cancel floating at edge */
.hero-inline-close{
  position:absolute; right:-10px; top:8px; width:36px; height:36px;
  border-radius:999px; border:1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18); color:#fff; display:inline-flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25); cursor:pointer;
  transition: transform .12s ease, opacity .12s ease;
}

/* slide-in animation */
@keyframes slideInUp {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Top row badges & nav buttons */
.hero-top{margin-bottom:8px}
.hero-badges .badge{display:inline-block;background:rgba(255,255,255,0.06);padding:6px 10px;border-radius:999px;margin-right:8px;font-size:0.85rem}
.hero-badges .pulse{animation:badgePulse 2.6s infinite}
@keyframes badgePulse{0%{transform:scale(1)}50%{transform:scale(1.06)}100%{transform:scale(1)}}

/* nav buttons */
.hero-links .btn{padding:.35rem .6rem;font-size:.85rem}
.hero-links .btn-outline-light{background:transparent;border:1px solid rgba(255,255,255,0.12);color:white}

/* Headline + sub */
.lead-in{font-size:clamp(1.35rem,2.4vw,2rem);line-height:1.05;margin-bottom:.6rem}
.lead-in .muted{font-weight:600;color:rgba(255,255,255,0.92)}
.sub{opacity:0.95;margin-bottom:1rem}

/* CTAs */
.hero-ctas .btn{min-width:160px}
.btn-primary{background:linear-gradient(90deg,#004AAD,#0069FF);border:0;color:white}
.btn-outline-light{border:1px solid rgba(255,255,255,0.18);background:transparent;color:white}
.btn-cta{background:var(--accent);border:none;padding:.9rem 1rem;border-radius:8px;margin-left:.5rem}

/* Search: keep big, make submit very visible */
.search-wrap{max-width:840px;margin:0 auto}
.search-inner{display:flex;gap:.5rem;align-items:center}
.form-control{flex:1;padding:.85rem;border-radius:8px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.02);color:white}
.form-control::placeholder{color:rgba(255,255,255,0.6)}
.get-job-btn{padding:.85rem 1rem;border-radius:8px}

/* Suggestions */
.suggestions{position:relative;list-style:none;margin:6px 0 0;padding:6px;border-radius:8px;max-width:840px;background:rgba(2,6,23,0.9);border:1px solid rgba(255,255,255,0.04);display:none}
.suggestions li{padding:8px 12px;border-radius:6px;cursor:pointer}
.suggestions li[aria-selected="true"]{outline:2px solid rgba(255,255,255,0.12)}

/* Stats */
.hero-stats{display:flex;gap:18px;justify-content:center;margin-top:8px}
.stat{font-size:.95rem;color:rgba(255,255,255,0.95)}
.stat strong{display:block;font-size:1.25rem}

/* Desktop popup (hidden on small screens) */
.hero-popup{position:fixed;right:18px;bottom:22px;width:320px;background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.02));border-radius:12px;padding:12px;border:1px solid rgba(255,255,255,0.06);backdrop-filter:blur(6px);box-shadow:0 8px 24px rgba(2,6,23,0.6);transform:translateY(12px) scale(.98);opacity:0;pointer-events:none;transition:transform .36s cubic-bezier(.2,.9,.2,1),opacity .36s}
.hero-popup[aria-hidden="false"]{transform:none;opacity:1;pointer-events:auto}
.popup-inner{display:flex;align-items:center;justify-content:space-between;gap:8px}
.popup-body p{margin:0;font-size:.9rem;opacity:.95}
.popup-actions{display:flex;gap:8px}

/* Responsive adjustments for mobile to reduce blur & prevent overlaying */
@media (max-width:920px){
  .hero-card{backdrop-filter:blur(5px) saturate(1.02);padding:20px}
}@media (max-width:768px){
  .hero-card{
    backdrop-filter:none;
    background:rgba(17,24,39,0.7);
    padding:16px;
    border-radius:12px;
  }

  .hero-top .hero-links{
    display:flex;
  }

  .hero-stats{
    flex-direction:column;
    gap:6px;
  }

  /* IMPORTANT: hide desktop CV popup on mobile */
  .hero-popup{
    display:none !important;
    pointer-events:none !important;
  }

  /* show mobile inline banner instead */
  .hero-inline-banner{
    display:grid !important;
    grid-template-columns:1fr;
    gap:.85rem;
  }

  .hero{min-height:64vh}

  .lead-in{font-size:1.15rem}

  .hero-ctas .btn{
    min-width:120px;
    padding:.6rem .9rem;
  }

  .search-inner{
    flex-direction:row;
    gap:.5rem;
  }

  .form-control{padding:.75rem}

  .get-job-btn{padding:.75rem .9rem}
}

/* -------------------------
   Scroll-to-top button
   ------------------------- */
.scroll-top{
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg,#004AAD,#0069FF);
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px rgba(2,6,23,0.16);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .28s;
  z-index: 3000;
}
.scroll-top.visible{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top i{ font-size: 16px; }

/* -------------------------
   Cookie consent banner
   ------------------------- */
.cookie-consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  display: none;
  background: linear-gradient(180deg, #fff, #fafafa);
  border-top: 1px solid rgba(17,24,39,0.06);
  box-shadow: 0 -10px 30px rgba(2,6,23,0.06);
  padding: 12px 0;
}
.cookie-consent[aria-hidden="false"]{ display: block; }
.cookie-inner{ display:flex; align-items:center; gap:12px; justify-content:space-between; max-width:1200px; margin: 0 auto; padding: 0 16px; }
.cookie-text p{ margin: 0; color: var(--text-secondary); font-size:.95rem; }
.cookie-actions{ display:flex; gap:8px; align-items:center; }

/* -------------------------
   Jobs / rest of your CSS (unchanged below)
   ------------------------- */

/* =========================
   JOBS SECTION (scoped CSS)
   ========================= */
   #jobsSection * { 
    box-sizing: border-box; 
  }
  
  #jobsSection img { 
    max-width: 100%; 
    display: block; 
  }
  
  #jobsSection {
    font-family: var(--base-font);
    color: var(--text-primary);
    background: var(--color-bg);
    padding: clamp(24px, 4vw, 48px) 0;
  }
  
  /* container spacing */
  #jobsSection .container {
    max-width: 1180px; /* tighter than full-width */
    margin: 0 auto;
    padding: 0 16px;
  }
  
  /* Grid layout: main + aside */
  #jobsSection .jobs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }
  
  @media (max-width: 980px) {
    #jobsSection .jobs-grid { 
      grid-template-columns: 1fr; 
    }
  }
  
  /* Header */
  #jobsSection .jobs-header { 
    margin-bottom: 20px; 
  }
  
  #jobsSection #jobsHeading {
    margin: 0 0 6px;
    font: 700 clamp(1.4rem, 2vw, 1.8rem) var(--brand-font);
    letter-spacing: 1.2px;
  }
  
  #jobsSection .jobs-sub {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.96rem;
  }
  
  /* =========================
     FIX FOR MOBILE OVERLAP
     ========================= */
  @media (max-width: 768px) {
    #jobsSection {
      margin-top: 40vh;   /* 🚀 push down by 30% of screen height */
      position: relative;
      z-index: 1;
      clear: both;
    }
  }
  
   
   /* =========================
   JOBS FILTER — polished & accessible (full block)
   Replace previous filter-related CSS with this block.
   - Tweak caret size by changing --select-caret-size in :root
   ========================= */

:root {
  /* caret sizing & colors */
  --select-caret-size: 22px;    /* ← change this to 18px / 24px / 28px as desired */
  --select-caret-color: #343A40;/* used for visual reference; data-URI uses the same hex */
}

/* --- layout for the filter bar --- */
#jobsSection .filter-bar {
  display: grid;
  grid-template-columns: 1fr 200px 160px auto;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ensure each filter field can position absolute children */
#jobsSection .filter-field {
  position: relative;
}

/* text input styling (keyword) */
#jobsSection .filter-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  color: var(--text-primary);
  cursor: text;
}

/* -------------------------
   Native select (visible fallback)
   - styled closed control, custom caret via background-image
   - padding-right leaves room for caret
   ------------------------- */
#jobsSection .filter-field select:not(.native-hidden) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* inline SVG caret (percent-encoded). To change color, update the hex below and in :root */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23343A40' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: var(--select-caret-size);
  padding-right: calc(var(--select-caret-size) + 24px); /* room for caret + spacing */
}

/* --- filter actions (buttons) --- */
#jobsSection .filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;   /* corrected (was invalid 'left') */
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ===== Enhanced (portal) select control styles ===== */
/* Native select is hidden when enhanced: .native-hidden is added by JS */
#jobsFilter select.native-hidden {
  display: none !important;
}

/* wrapper that sits where the native select was */
.enhanced-select-wrapper {
  display: inline-block;
  width: 100%;
  position: relative; /* helpful if you later want to avoid portal behaviour */
}

/* trigger button that replaces the native select UI */
.enhanced-select-wrapper .enhanced-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-muted);
  background: #fff;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-primary);
  text-align: left;
  transition: box-shadow .12s ease, border-color .12s ease, transform .08s ease;
  line-height: 1;
  padding-right: calc(var(--select-caret-size) + 24px); /* ensure text doesn't underlap caret */
}

/* accessible focus style */
.enhanced-select-wrapper .enhanced-trigger:focus,
.enhanced-select-wrapper .enhanced-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14,165,164,0.08);
  border-color: var(--color-muted);
}

/* caret via pseudo element — sized by the variable */
/* Note: the SVG fill matches --select-caret-color; update both if you change color. */
.enhanced-select-wrapper .enhanced-trigger::after {
  content: "";
  display: inline-block;
  width: var(--select-caret-size);
  height: var(--select-caret-size);
  margin-left: 8px;
  flex: 0 0 var(--select-caret-size);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23343A40' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .18s ease;
  transform-origin: center;
}

/* rotate the caret when open — JS should toggle the .open class on the wrapper */
.enhanced-select-wrapper.open .enhanced-trigger::after {
  transform: rotate(180deg);
}

/* portal-based options panel (appended to body) — look & feel */
.enhanced-options {
  position: absolute; /* JS sets exact coords */
  display: none;
  max-height: 260px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--color-muted);
  box-shadow: 0 8px 20px rgba(2,6,23,0.12);
  background: #fff;
  z-index: 99999;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

/* each option row styling */
.enhanced-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enhanced-option:hover,
.enhanced-option[aria-selected="true"] {
  background: rgba(14,165,164,0.08);
}

/* small device responsiveness */
@media (max-width: 900px) {
  #jobsSection .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  #jobsSection .filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* authoritative fix: override any stray invalid rules */
#jobsSection .filter-actions { align-items: flex-start !important; }

/* End of JOBS FILTER CSS block */

   
   @media (max-width: 900px) {
     #jobsSection .filter-bar { grid-template-columns: 1fr 1fr; }
     #jobsSection .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
   }
   
   /* Job cards container */
   #jobsSection .job-cards {
     display: grid;
     gap: 16px;
   }
   
   /* Single job card */
   #jobsSection .job-card {
     background: var(--color-surface);
     border: 1px solid var(--color-muted);
     border-radius: 12px;
     padding: clamp(14px, 1.2vw, 18px);
     box-shadow: 0 2px 4px rgba(0,0,0,.05);
     display: flex;
     grid-template-columns: 1fr auto;
     gap: 14px;
   }
   
   @media (max-width: 640px) {
     #jobsSection .job-card { grid-template-columns: 1fr; }
   }
   
   #jobsSection .job-title {
     margin: 0 0 6px;
     font: 700 clamp(1.05rem, 1.7vw, 1.25rem) var(--brand-font);
   }
   #jobsSection .job-meta {
     margin: 0 0 8px;
     color: var(--text-secondary);
     font-size: .94rem;
     line-height: 1.5;
   }
   #jobsSection .job-summary {
     margin: 0;
     color: var(--text-primary);
     font-size: .95rem;
     line-height: 1.55;
   }
   
   /* CTA area (apply + save) */
   #jobsSection .job-cta {
     display:flex;
     align-items:center;
     gap:10px;
     justify-content:flex-end;
   }
   #jobsSection .job-cta .btn { min-width: 120px; }
   
   /* Save button (bookmark) */
   #jobsSection .save-btn {
     display:inline-flex; align-items:center; justify-content:center;
     width: 38px; height: 38px;
     border-radius: 8px;
     border:1px solid var(--color-muted);
     background:#fff; cursor:pointer;
     transition: background .2s, border-color .2s;
   }
   #jobsSection .save-btn svg { width: 18px; height: 18px; color: var(--text-secondary); }
   #jobsSection .save-btn[aria-pressed="true"] {
     border-color: #c7f2df;
     background: #ecfdf5;
   }
   #jobsSection .save-btn[aria-pressed="true"] svg {
     color: var(--color-accent);
   }
   
   /* Buttons */
   #jobsSection .btn {
     appearance: none;
     display: inline-flex; align-items: center; justify-content: center;
     padding: 10px 14px;
     border-radius: 8px;
     font: 400 0.95rem var(--base-font);
     cursor: pointer;
     transition: background .2s, border-color .2s;
   }
   #jobsSection .btn-primary {
     background: var(--color-primary);
     color: #fff;
     border: 1px solid var(--color-primary);
   }
   #jobsSection .btn-primary:hover {
     background: var(--color-primary-600);
     border-color: var(--color-primary-600);
   }
   #jobsSection .btn-outline {
     background: #fff;
     color: var(--color-primary);
     border: 1px solid #d1e3ff;
   }
   
   /* Pagination */
   #jobsSection .pagination {
     display: flex;
     gap: 8px;
     align-items: center;
     justify-content: center;
     margin-top: 18px;
   }
   #jobsSection .page-btn,
   #jobsSection .page-number {
     min-width: 40px;
     height: 40px;
     padding: 0 10px;
     display:inline-flex;
     align-items:center;
     justify-content:center;
     border-radius: 8px;
     border: 1px solid var(--color-muted);
     background:#fff;
     font: 700 .95rem var(--base-font);
     cursor: pointer;
   }
   #jobsSection .page-btn[disabled] { opacity: .45; cursor: not-allowed; }
   #jobsSection .page-number[aria-selected="true"] {
     background: var(--color-primary);
     color: #fff;
     border-color: var(--color-primary);
   }
   
   /* Sidebar */
   #jobsSection .jobs-aside { display: grid; gap: 18px; }
   
   /* Ad + Alert cards */
   #jobsSection .ad-card,
   #jobsSection .alert-card {
     background: #fff;
     border: 1px solid var(--color-muted);
     border-radius: 12px;
     box-shadow: 0 2px 4px rgba(0,0,0,.05);
   }
   
   /* Ad */
   #jobsSection .ad-card { position: relative; overflow: hidden; }
   #jobsSection .ad-badge {
     position: absolute;
     top: 10px; left: 12px;
     background: var(--color-secondary);
     color: #111;
     font: 700 .75rem var(--base-font);
     padding: 2px 8px;
     border-radius: 99px;
   }
   #jobsSection .ad-body { padding: 14px; }
   #jobsSection .ad-body h3 {
     margin: 0 0 4px;
     font: 700 1.05rem var(--brand-font);
   }
   #jobsSection .ad-body p {
     margin: 0 0 10px;
     color: var(--text-secondary);
   }
   
   /* Alerts */
   #jobsSection .alert-card { padding: 16px; }
   #jobsSection .alert-card h3 {
     margin: 0 0 6px;
     font: 700 1.05rem var(--brand-font);
   }
   #jobsSection .alert-sub {
     margin: 0 0 12px;
     color: var(--text-secondary);
   }
   #jobsSection .alert-form {
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 8px;
   }
   #jobsSection .alert-form input {
     padding: 10px 12px;
     border-radius: 8px;
     border: 1px solid var(--color-muted);
     font-size: .95rem;
   }
   #jobsSection .input-error {
     margin: 6px 0 0;
     color: var(--color-error);
     font-size: .88rem;
     min-height: 1.1em;
   }
   
   /* Toast */
   #jobsSection + .toast {
     position: fixed;
     left: 50%;
     transform: translateX(-50%) translateY(12px) scale(.98);
     bottom: 20px;
     background: #111827;
     color: #fff;
     border-radius: 8px;
     padding: 10px 14px;
     box-shadow: 0 12px 28px rgba(0,0,0,.28);
     display: flex; align-items: center; gap: 10px;
     opacity: 0;
     pointer-events: none;
     transition: opacity .25s, transform .25s;
     z-index: 3000;
   }
   #jobsSection + .toast[aria-hidden="false"] {
     opacity: 1;
     transform: translateX(-50%) translateY(0) scale(1);
     pointer-events: auto;
   }
   #jobsSection + .toast .toast-close {
     background: transparent; border: 0;
     color: #fff; font-weight: 700;
     cursor: pointer;
   }
   
   /* Skeleton loader */
   #jobsSection .skeleton {
     background: linear-gradient(90deg, #f1f5f9, #eaeef3, #f1f5f9);
     background-size: 200% 100%;
     animation: ske 1.4s infinite linear;
     border-radius: 6px;
     height: 14px;
     margin: 8px 0;
   }
   @keyframes ske {
     0% { background-position:200% 0 }
     100% { background-position:-200% 0 }
   }
   
   /* Accessibility */
   #jobsSection .visually-hidden {
     position:absolute !important; width:1px; height:1px;
     padding:0; margin:-1px; overflow:hidden;
     clip:rect(0,0,0,0); white-space:nowrap; border:0;
   }
   #jobsSection button:focus,
   #jobsSection .page-number:focus,
   #jobsSection .btn:focus,
   #jobsSection .save-btn:focus,
   #jobsSection select:focus,
   #jobsSection input:focus {
     outline: 3px solid rgba(30,58,138,.25);
     outline-offset: 2px;
   }
   
   /* ====== TILT & POP ENHANCEMENTS (appended only) ====== */
   /* Minimal, non-invasive styles to add a responsive pop-and-tilt on cursor movement. */
   /* These rules don't change layout or behavior except adding the tilt/hover visuals. */
   
   /* Prepare card for 3D transforms */
   #jobsSection .job-card {
     transform-style: preserve-3d;
     will-change: transform, box-shadow;
     transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms;
     cursor: pointer;
     position: relative;
     backface-visibility: hidden;
   }
   
   /* Slight default lift for non-JS fallback or keyboard focus */
   #jobsSection .job-card:hover,
   #jobsSection .job-card:focus-within {
     transform: translateY(-6px) scale(1.02);
     box-shadow: 0 18px 46px rgba(2,6,23,0.10);
     z-index: 2;
   }
   
   /* Keyboard focus support */
   #jobsSection .job-card:focus {
     outline: none;
     box-shadow: 0 18px 46px rgba(2,6,23,0.10);
     transform: translateY(-6px) scale(1.02);
   }
   
   /* Respect reduced-motion: no tilt, only subtle hover */
   @media (prefers-reduced-motion: reduce) {
     #jobsSection .job-card {
       transition: transform 200ms ease, box-shadow 200ms ease;
     }
     #jobsSection .job-card:hover,
     #jobsSection .job-card:focus-within {
       transform: translateY(-6px) scale(1.01) !important;
     }
   }
   
   /* Keep children crisp during transform */
   #jobsSection .job-card > * { transform: translateZ(0); }
   
   /* subtle shine */
   #jobsSection .job-card::after {
     content: "";
     pointer-events: none;
     position: absolute;
     inset: 0;
     background: linear-gradient(120deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
     opacity: 0;
     transition: opacity 420ms, transform 420ms;
     border-radius: inherit;
   }
   #jobsSection .job-card.is-tilting::after {
     opacity: 1;
     transform: translateZ(40px);
   }
   
   /* Avoid forcing hover/touch states on touch-first devices */
   @media (hover: none) and (pointer: coarse) {
     #jobsSection .job-card { transition: transform 220ms ease, box-shadow 220ms ease; }
     #jobsSection .job-card:hover { transform: none; box-shadow: 0 6px 14px rgba(2,6,23,0.06); }
   }
   

/* About Section */
.about-section {
  background: var(--color-bg);
  padding: 5rem 2rem;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: scale(1);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.about-content {
  text-align: justify;
  margin: 0 1rem;
}

.about-content h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 300;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: var(--color-primary-600);
}

/* Vision & Mission inline */
.vm-inline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.vm-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vm-icon {
  font-size: 2rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.vm-item h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.vm-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-content {
    text-align: justify;
    margin: 1rem 0;
  }
  .vm-item {
    justify-content: center;
    text-align: left;
  }
}
/* =========================
   FOOTER
   ========================= */

   .site-footer {
    background: var(--color-primary-600); /* deep blue background */
    color: #ffffff;
    padding: 3rem 1.25rem;
    font-family: inherit;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased; /* improve crispness */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* layout */
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 1.25rem 2.5rem;
    align-items: start;
  }
  
  /* brand column */
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
  }
  .footer-desc {
    color: rgba(255,255,255,0.88); /* slightly softened */
    max-width: 36rem;
    margin-top: 0.25rem;
    font-size: 0.95rem;
  }
  
  /* headings — less heavy and crisper (not glaring white) */
  .footer-title {
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    color: rgba(255,255,255,0.95); /* slight reduction so it isn't harsh */
    font-weight: 500; /* lighter than 700 */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  
  /* link lists */
  .footer-links ul,
  .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-links li,
  .footer-legal li {
    margin-bottom: .55rem;
  }
  
  /* link appearance: no underline on hover, color shift instead */
  .footer-links a,
  .footer-legal a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color .16s ease, transform .12s ease;
    outline: none;
  }
  .footer-links a:hover,
  .footer-legal a:hover,
  .footer-links a:focus,
  .footer-legal a:focus {
    color: var(--color-accent); /* color-change on hover instead of underline */
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: none;
  }
  
  /* Post job link: styled as a prominent link (NOT a button) */
  .cta-link {
    display: inline-block;
    padding: 0;                   /* remove button padding */
    background: transparent;      /* no background */
    color: var(--color-secondary);/* keep it noticeable */
    font-weight: 200;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transition: color .15s ease, transform .12s ease;
  }
  .cta-link:hover,
  .cta-link:focus {
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
  }
  
  /* social icons */
  .social-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .social-link {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    font-size: 0.95rem;
  }
  .social-link i { pointer-events: none; }
  .social-link:hover,
  .social-link:focus {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 20px rgba(2,6,23,0.18);
    outline: none;
  }
  
  /* footer bottom row */
  .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
    color: rgba(255,255,255,0.78);
    font-size: .9rem;
  }
  .footer-bottom a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-left: .6rem;
    transition: color .15s ease;
  }
  .footer-bottom a:hover,
  .footer-bottom a:focus { color: var(--color-accent); text-decoration: none; }
  
  /* small screens */
  @media (max-width: 992px) {
    .footer-inner {
      grid-template-columns: 1fr 1fr;
    }
    .footer-desc { max-width: 100%; color: rgba(255,255,255,0.88); }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; padding-top: 1rem; }
  }
  @media (max-width: 520px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
    .social-link { width: 36px; height: 36px; }
  }
  
  /* accessibility: visible focus */
  .footer-links a:focus-visible,
  .footer-legal a:focus-visible,
  .social-link:focus-visible,
  .footer-bottom a:focus-visible {
    outline: 3px solid rgba(255,255,255,0.12);
    outline-offset: 2px;
    border-radius: 6px;
  }
  
  /* end footer block */
  
  /* -------------------------
     Responsive
     ------------------------- */
  @media (max-width: 991.98px) {
    .hero { height: 50vh; }
    .navbar .nav-link { padding: .7rem 1rem; }
    .brand-badge { width: 40px; height: 40px; border-radius: 8px; font-size: .9rem; }
    .nav-controls { justify-content: flex-end; width: 100%; }
  }
  
  @media (max-width: 575.98px) {
    .hero .display-5 { font-size: 1.25rem; }
    .container, .container-lg { padding: 0 .75rem; }
    .hero-content { padding: 1.5rem .75rem; }
    .search-wrap .form-control { min-height: 48px; }
  }
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Mobile fix */
@media (max-width: 768px) {
  .navbar .dropdown-menu {
    position: static;       /* stack it within flow */
    width: 100%;            /* full width */
    max-height: 300px;      /* prevent covering whole screen */
    overflow-y: auto;       /* make scrollable if too tall */
    border-radius: 0;       /* cleaner look */
    box-shadow: none;       /* optional: remove shadow */
    margin-top: .5rem;      /* small spacing below button */
  }
}
/* =============================
   ADVERTISEMENT SECTION
   ============================= */
   .ad-section {
    padding: 1.5rem 0; /* same as py-4 in Bootstrap */
  }
  
  .ad-slot {
    width: 100%;
    max-width: 900px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .ad-slot:hover {
    opacity: 0.9; /* small hover effect */
    transition: opacity 0.3s ease;
  }
  
  .ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
  }
  
  /* -------------------------
     Utilities
     ------------------------- */
  .text-center { text-align: center; }
  .mb-2 { margin-bottom: .5rem !important; }
  .gap-2 { gap: .5rem !important; }
  .ad-media-link{
  display:block;
  text-decoration:none;
}

.ad-media-link img{
  display:block;
  width:100%;
  height:auto;
  border-radius:inherit;
}

.ad-media-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:160px;
  background:#f3f4f6;
  color:#111827;
  font-weight:600;
  border-radius:inherit;
}

/* =========================================================
   WORKABILITIES HOME — CV SUPPORT POPUP + MOBILE FIX
   Add this at the very bottom of assets/css/style.css
   ========================================================= */

/* Fix old conflicting popup styling */
.hero-popup {
  position: fixed !important;
  right: 22px !important;
  bottom: 24px !important;
  width: min(360px, calc(100vw - 32px)) !important;
  z-index: 3500 !important;

  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;

  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24) !important;
  backdrop-filter: blur(14px) !important;

  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-popup[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: none !important;
}

.hero-popup::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), #0ea5e9, #25d366);
}

.hero-popup .popup-inner {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "actions actions";
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
}

.hero-popup .popup-icon {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-600));
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.22);
}

.hero-popup .popup-body {
  grid-area: body;
  min-width: 0;
  padding-right: 1.6rem;
}

.hero-popup .popup-kicker {
  display: inline-flex;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero-popup .popup-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: #0f172a;
}

.hero-popup .popup-body p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.hero-popup .popup-actions {
  grid-area: actions;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.1rem;
}

.hero-popup .popup-actions .btn {
  border-radius: 999px;
  font-weight: 800;
  min-height: 38px;
  padding-inline: 0.9rem;
}

.hero-popup .popup-actions .btn-link {
  color: #64748b;
}

.hero-popup-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.hero-popup-close:hover,
.hero-popup-close:focus {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mobile inline banner should be a neat card, not squeezed horizontally */
.hero-inline-banner {
  border-radius: 18px !important;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
}

.hero-inline-banner .banner-text strong {
  font-size: 0.98rem !important;
  line-height: 1.25;
}

.hero-inline-banner .banner-desc {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.hero-inline-banner .wa-input {
  min-height: 44px;
  border-radius: 13px !important;
}

.hero-inline-banner .wa-btn {
  min-height: 42px;
  border-radius: 13px !important;
  font-weight: 800;
}

/* Proper mobile behavior */
@media (max-width: 768px) {
  .hero-floating {
    padding: 2rem 0.85rem !important;
  }

  .hero-card {
    padding: 1rem !important;
    border-radius: 20px !important;
  }

  /* Hide desktop popup on mobile */
  .hero-popup {
    display: none !important;
  }

  /* Show mobile banner as stacked card */
  .hero-inline-banner {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-inline-banner[hidden] {
    display: none !important;
  }

  .hero-inline-banner .banner-left {
    min-width: 0 !important;
    width: 100%;
    align-items: flex-start;
  }

  .hero-inline-banner .wa-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
  }

  .hero-inline-banner .banner-form {
    min-width: 0 !important;
    width: 100%;
  }

  .hero-inline-banner .banner-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-inline-banner .wa-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-inline-banner .btn-link {
    justify-self: end;
    padding-inline: 0.25rem;
  }

  .hero-inline-close {
    right: 0.65rem !important;
    top: 0.65rem !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(15, 23, 42, 0.35) !important;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hero-badges .badge {
    margin-right: 0 !important;
    font-size: 0.75rem;
  }

  .hero-main {
    text-align: left !important;
  }

  .lead-in {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  .sub {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-ctas {
    justify-content: stretch !important;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .search-inner {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .get-job-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-inline-banner {
    padding: 0.9rem !important;
  }

  .hero-inline-banner .banner-actions {
    grid-template-columns: 1fr;
  }

  .hero-inline-banner .btn-link {
    justify-self: center;
  }
}
/* =========================================================
   WORKABILITIES HOME — FINAL MOBILE + UI UPGRADE FIX
   Keep this block at the very bottom of assets/css/style.css
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

.hero,
.hero-floating,
.hero-card,
.hero-inline-banner,
#main {
  max-width: 100%;
}

.hero {
  width: 100%;
  overflow: hidden !important;
}

.hero-poster {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

/* Hidden state controlled by JS */
#heroInlineBanner[hidden],
#heroInlineBanner.is-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile CV/help banner */
#heroInlineBanner {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 18px !important;
  position: relative !important;
  z-index: 80 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.07)) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.24);
}

#dismissInlineBanner,
#heroInlineCloseEdge,
#waSendBtn {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

#heroInlineCloseEdge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: rgba(2, 6, 23, 0.46) !important;
  color: #fff !important;
  border-radius: 999px !important;
  z-index: 100 !important;
}

#heroInlineCloseEdge:hover,
#heroInlineCloseEdge:focus {
  background: rgba(2, 6, 23, 0.7) !important;
}

.hero-inline-banner .banner-text strong {
  font-size: 0.98rem !important;
  line-height: 1.25;
}

.hero-inline-banner .banner-desc {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.hero-inline-banner .wa-input {
  min-height: 44px;
  border-radius: 13px !important;
}

.hero-inline-banner .wa-btn {
  min-height: 42px;
  border-radius: 13px !important;
  font-weight: 800;
}

@media (max-width: 768px) {
  .container,
  .container-lg {
    max-width: 100% !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .hero {
    min-height: auto !important;
  }

  .hero-floating {
    width: 100% !important;
    padding: 1.35rem 0.75rem 1.75rem !important;
  }

  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1rem !important;
    border-radius: 20px !important;
    backdrop-filter: none !important;
    background: rgba(17,24,39,0.78) !important;
  }

  #heroPopup,
  .hero-popup {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #heroInlineBanner {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem !important;
    padding-top: 2.7rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-inline-banner .banner-left,
  .hero-inline-banner .banner-form,
  .hero-inline-banner .banner-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-inline-banner .banner-left {
    align-items: flex-start;
  }

  .hero-inline-banner .wa-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
  }

  .hero-inline-banner .banner-actions {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-inline-banner .wa-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-inline-banner .btn-link {
    justify-self: end;
    color: rgba(255,255,255,0.92) !important;
    padding-inline: 0.25rem;
  }

  .hero-top {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .hero-badges .badge {
    margin-right: 0;
  }

  .hero-links {
    width: 100%;
    justify-content: center;
  }

  .lead-in {
    font-size: clamp(1.45rem, 8vw, 2.15rem) !important;
    line-height: 1.12;
  }

  .sub {
    font-size: 0.98rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .search-inner {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .search-inner .form-control,
  .search-inner .get-job-btn {
    width: 100%;
  }

  #jobsSection {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .hero-inline-banner .banner-actions {
    grid-template-columns: 1fr;
  }

  .hero-inline-banner .btn-link {
    justify-self: center;
  }
}

/* =========================================================
   WORKABILITIES HOME — NEW PROFESSIONAL SECTIONS
   ========================================================= */

.wa-section {
  padding: clamp(2.4rem, 5vw, 4.5rem) 0;
  background: #fff;
}

.wa-section-soft {
  background: #f8fafc;
}

.wa-section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.wa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(30,58,138,0.08);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wa-section-head h2 {
  margin: 0.75rem 0 0.65rem;
  font-family: var(--brand-font);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.wa-section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.wa-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.wa-feature-card,
.wa-step-card,
.wa-support-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(15,23,42,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wa-feature-card:hover,
.wa-step-card:hover,
.wa-support-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(15,23,42,0.09);
  border-color: rgba(30,58,138,0.18);
}

.wa-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(30,58,138,0.09);
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.wa-feature-card h3,
.wa-step-card h3,
.wa-support-card h3 {
  font-family: var(--brand-font);
  font-size: 1.04rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.wa-feature-card p,
.wa-step-card p,
.wa-support-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.wa-steps {
  counter-reset: waStep;
}

.wa-step-card {
  position: relative;
  padding-top: 1.45rem;
}

.wa-step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.wa-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: center;
}

.wa-panel {
  background:
    radial-gradient(circle at top left, rgba(16,185,129,0.12), transparent 32%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  color: #fff;
  box-shadow: 0 22px 60px rgba(15,23,42,0.18);
}

.wa-panel h2 {
  font-family: var(--brand-font);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.wa-panel p {
  color: rgba(255,255,255,0.86);
  margin-bottom: 1.2rem;
}

.wa-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.wa-mini-list {
  display: grid;
  gap: 0.8rem;
}

.wa-mini-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
}

.wa-mini-item i {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(245,158,11,0.13);
  color: #b45309;
  flex: 0 0 36px;
}

.wa-mini-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.wa-mini-item span {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.wa-support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.wa-support-main {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 26px;
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: 0 14px 38px rgba(15,23,42,0.06);
}

.wa-support-main h2 {
  font-family: var(--brand-font);
  margin: 0 0 0.65rem;
  color: var(--text-primary);
}

.wa-support-main p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.wa-support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.wa-support-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.wa-support-list i {
  color: var(--color-accent);
}

.wa-support-side {
  display: grid;
  gap: 1rem;
}

.wa-support-card {
  min-height: 150px;
}

@media (max-width: 992px) {
  .wa-card-grid,
  .wa-split,
  .wa-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .wa-section {
    padding: 2.25rem 0;
  }

  .wa-feature-card,
  .wa-step-card,
  .wa-support-card,
  .wa-support-main,
  .wa-panel {
    border-radius: 20px;
  }

  .wa-panel-actions .btn {
    width: 100%;
  }
}
  /* -------------------------
     End of file
     ------------------------- */