

/* ========== RESPONSIVE: mobile + tablet + desktop ========== */
html, body { overflow-x: hidden; max-width: 100vw; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 64px; box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }

/* Desktop default */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.55fr);
  gap: 28px;
  align-items: end;
  min-height: 0;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0B2A4A 0%, #143a63 55%, #0B2A4A 100%) !important;
  border-bottom: 4px solid #C9A227;
  box-shadow: 0 16px 40px rgba(11,42,74,.22);
}
.hero h1 { font-size: clamp(1.55rem, 3.2vw, 2.75rem); line-height: 1.15; color: #fff; word-break: break-word; }
.hero .hero-copy, .hero p { font-size: clamp(.92rem, 1.6vw, 1.05rem); max-width: 36rem; }
.filters, .filter-row, .tier-band { display: flex; flex-wrap: wrap; gap: 8px; }
.filter, button.filter {
  min-height: 44px;
  padding: 10px 16px;
  font-size: .88rem;
  border-radius: 999px;
  touch-action: manipulation;
}

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .scoreboard { max-width: 100%; }
  .jobs { grid-template-columns: 1fr; }
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .brand-strip {
    grid-template-columns: 1fr auto !important;
    gap: 10px 12px;
  }
  .brand-scope { grid-column: 1 / -1; text-align: left; }
}

/* Phone */
@media (max-width: 600px) {
  .page { width: calc(100% - 20px); padding: 12px 0 48px; }
  .brand-strip {
    grid-template-columns: 1fr !important;
    position: sticky;
    top: 0;
    gap: 8px;
    padding: 8px 0;
  }
  .brand-name { font-size: 1.05rem; }
  .language-picker {
    width: 100%;
    justify-content: space-between;
  }
  .language-picker select {
    min-height: 44px;
    flex: 1;
    max-width: none;
    width: auto;
  }
  .hero {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
    min-height: 0 !important;
    border-radius: 14px;
  }
  .hero h1 { font-size: 1.45rem !important; }
  .scoreboard { width: 100%; }
  .jobs { grid-template-columns: 1fr !important; gap: 14px; }
  .job { padding: 16px; }
  .bc-grid { grid-template-columns: 1fr !important; }
  .bc-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 10px 8px;
  }
  .bc-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: .82rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .filter, button.filter { min-height: 44px; font-size: .84rem; }
  .howto-steps, .tier-band, .category-band { grid-template-columns: 1fr !important; }
  /* assessments / quizzes */
  .ba-card, #bulale-assessment { padding: 14px !important; }
  .ba-controls .ba-btn, .ba-btn { min-height: 44px; flex: 1 1 auto; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.28rem !important; }
  .page { width: calc(100% - 14px); }
}

/* Desktop wide */
@media (min-width: 1100px) {
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

