/* ============================================================
   employers.css
   1. PAGE WRAPPER + TWO-COLUMN LAYOUT
   Reuses the same main/sidebar grid as the states template.
   ============================================================ */
/* Hero search label — sized down for the longer "Search topics..." phrase */
.bch-employers-page .interior-hero h2.bch-hero-search-label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

/* Hero search box + dropdown (fcra.css isn't loaded here, so define locally) */
.bch-employers-page .bch-custom-select {
  position: relative;
  max-width: 350px;
}

.bch-employers-page .bch-custom-select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 8px;
  transform: translateY(-50%);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f418d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.bch-employers-page .bch-custom-select input {
  width: 100%;
  height: 45px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  padding: 0 46px 0 18px;
  box-shadow: 0 8px 18px rgba(15, 65, 141, 0.06);
}

.bch-employers-page .bch-custom-select input::placeholder {
  color: var(--muted);
}

.bch-employers-page .bch-custom-select input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 138, 122, 0.12);
}

.bch-employers-page .bch-custom-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(15, 65, 141, 0.16);
  z-index: 9999;
  text-align: left;
}

.bch-employers-page .bch-custom-options a {
  display: block;
  padding: 9px 16px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

.bch-employers-page .bch-custom-options a:hover {
  background: var(--soft-teal);
  color: var(--teal);
}

.bch-employers-page .bch-custom-select.open .bch-custom-options {
  display: block;
}

.bch-employers-page .bch-custom-options .bch-no-results {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* The page reuses .bch-sidebar-wrap / .bch-sidebar-layout from sidebar.css,
   so the two-column grid is already defined there. We only need to let the
   main column shrink so the wide carousels scroll internally instead of
   pushing the sidebar below. */
.bch-employers-page .bch-main-content {
  min-width: 0;
}

.bch-employers-page .bch-emp-carousel,
.bch-employers-page .bch-emp-carousel-track {
  min-width: 0;
}

/* ============================================================
   2. SHARED SECTION CARD (the big white bordered boxes)
   Screening Solutions, Compliance, etc. sit in these.
   ============================================================ */

.bch-emp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px rgba(7, 31, 63, 0.05);
}

/* Extra space above the Compliance and Directory boxes,
   and less padding above their titles inside */
#compliance.bch-emp-card,
#resources-directory.bch-emp-card {
  margin-top: 28px;
  padding-top: 18px;
}

/* Open section: no box, just content with spacing */
.bch-emp-card.bch-emp-open {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 4px;
  margin-bottom: 8px;
}

/* Light divider between Screening Solutions and Compliance */
.bch-emp-open-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 100%;
  margin: 20px 0 28px;
}

/* Section heading — TEAL by default */
.bch-emp-card > h2 {
  color: var(--navy);
  font-size: 26px;
  margin: 0 0 4px;
}
.bch-emp-card > p.bch-emp-card-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Centered sub-section titles (e.g. "Browse by Industry") — TEAL */
.bch-emp-subtitle {
  text-align: center;
  color: var(--navy);
  font-size: 19px;
  margin: 34px 0 18px;
}

/* Thin divider rule used between sub-sections */
.bch-emp-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}


/* ============================================================
   3. FEDERAL / FCRA MODIFIER  (turns a card blue)
   Add class "bch-emp-card--federal" to any section that should
   carry the federal signal: the Compliance block.
   ============================================================ */

.bch-emp-card--federal > h2,
.bch-emp-card--federal .bch-emp-subtitle {
  color: var(--navy);
}

/* ============================================================
   4. ICON CAROUSEL  (Browse by Industry / Screening Components)
   Horizontal scroll strip with chevron buttons on each side.
   JS lives in template-employers.php.
   ============================================================ */

.bch-emp-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bch-emp-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 12px 10px 2px;
  flex: 1;
  scrollbar-width: none; /* Firefox: hide the native bar, chevrons drive it */
}

.bch-emp-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Kill default button chrome behind the image chevrons */
.bch-employers-page .bch-emp-carousel button {
  border: none;
  background: none;
  padding: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.bch-emp-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 38px 0 8px;
}

.bch-emp-route {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(7, 31, 63, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.bch-emp-route:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 31, 63, .1);
}

.bch-emp-route:hover h3 {
  color: var(--teal);
}

.bch-emp-route img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 12px;
}

.bch-emp-route h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.bch-emp-route p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 700px) {
  .bch-emp-routes {
    grid-template-columns: 1fr;
  }
}

/* 4-across variant. Must stay below the 3-across rules above: same
   specificity, so source order decides which one wins. */
.bch-emp-routes-4 {
  grid-template-columns: repeat(4, 1fr);
}

.bch-emp-routes-4 .bch-emp-route {
  padding: 20px 14px;
}

.bch-emp-routes-4 .bch-emp-route img {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .bch-emp-routes-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bch-emp-routes-4 {
    grid-template-columns: 1fr;
  }
}

/* Individual icon tile */
.bch-emp-tile {
  flex: 0 0 calc((100% - 70px) / 6);
  min-height: 88px;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  text-decoration: none;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  transition: transform .15s ease;
}

.bch-emp-tile img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.bch-emp-tile:hover {
  transform: translateY(-3px);
}

/* Popular Components: static 6-up row, no scroll or chevrons */
.bch-emp-tile-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 4px 2px 10px;
}

.bch-emp-tile-row-more {
  text-align: center;
}

@media (max-width: 700px) {
  .bch-emp-tile-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   5. COMPLIANCE CARDS  (Your FCRA Responsibilities) — NAVY
   Row of icon cards inside the federal Compliance block.
   ============================================================ */

.bch-emp-resp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.bch-emp-resp-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px 18px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bch-emp-resp-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .bch-emp-resp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   6. FCRA HIRING PROCESS TRACKER  (5 steps) — NAVY
   Numbered circles with connector lines. Longer labels wrap
   under each circle; each step reserves equal width so the
   circles stay aligned.
   ============================================================ */

.bch-emp-process {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  margin: 8px 0 22px;
}

.bch-emp-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 6px;
}

/* Connector line between circles (drawn to the LEFT of each step,
   skipped on the first step) */

.bch-emp-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 21px;                 /* vertically centered on the 44px circle */
  left: calc(-50% + 40px);   /* start after the previous circle */
  width: calc(72% - 40px);  /* stop before this circle: end spacing */
  height: 0;
  border-top: 3px dotted var(--navy2);
  z-index: 0;
}

.bch-emp-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lightblue);
  color: var(--navy);
  border: 1px solid rgba(15, 65, 141, 0.35);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.bch-emp-step-label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 130px;
}

/* On mobile, stack the steps vertically so long labels stay readable */
@media (max-width: 640px) {
  .bch-emp-process {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .bch-emp-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    width: 100%;
    padding: 0;
  }
  .bch-emp-step:not(:first-child)::before {
    display: none; /* no horizontal connectors when stacked */
  }
  .bch-emp-step-num {
    margin-bottom: 0;
  }
  .bch-emp-step-label {
    max-width: none;
  }
}

/* ============================================================
   7. PRIMARY BUTTONS
   Teal by default; --federal modifier turns it navy.
   ============================================================ */

.bch-emp-btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}

.bch-emp-btn:hover {
  background: var(--teal2);
}

.bch-emp-btn--federal {
  background: var(--navy);
}

.bch-emp-btn--federal:hover {
  background: var(--navy2);
}

.bch-emp-btn-center {
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   8. TWO-COLUMN LISTS  (Common Questions / Common Mistakes) — TEAL
   ============================================================ */

.bch-emp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .bch-emp-two-col {
    grid-template-columns: 1fr;
  }
}

.bch-emp-statebox {
  margin-top: 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--soft-teal);
  border-radius: 8px;
}

.bch-emp-statebox h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--navy);
}

.bch-emp-statebox p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.bch-emp-statebox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bch-emp-statebox-row .bch-custom-select {
  flex: 0 1 320px;
}

.bch-emp-list-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 17px;
  margin: 0 0 14px;
}

.bch-emp-list-box h3 img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bch-emp-accordion {
  border-bottom: 1px solid var(--border);
}

.bch-emp-accordion:last-of-type {
  border-bottom: none;
}

.bch-emp-accordion summary {
  position: relative;
  padding: 10px 0px 10px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.bch-emp-accordion summary::-webkit-details-marker {
  display: none;
}

.bch-emp-accordion summary::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--teal);
  font-weight: 600;
  font-size: 20px;
  transition: transform .15s ease;
}

.bch-emp-accordion[open] summary::before {
  transform: rotate(90deg);
}

.bch-emp-accordion summary:hover {
  color: var(--navy);
}

.bch-emp-accordion p {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.bch-emp-list-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bch-emp-list-box li {
  position: relative;
  padding: 0 0 12px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.bch-emp-list-box li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 20px;
}

/* ============================================================
   9. "WHY BACKGROUND CHECKS MATTER" — TEAL check list
   ============================================================ */

.bch-emp-why h2 {
  color: var(--navy);
  font-size: 24px;
  margin: 0 0 16px;
}

.bch-emp-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bch-emp-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.bch-emp-why-list li img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.bch-emp-why-list li strong {
  color: var(--navy);
}


/* ============================================================
   10. RESOURCES DIRECTORY  (icon + "Explore →" grid) — TEAL
   ============================================================ */

.bch-emp-dir-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.bch-emp-dir-grid::-webkit-scrollbar {
  display: none;
}

.bch-emp-dir-item {
  flex: 0 0 calc((100% - 64px) / 5);
}

.bch-emp-dir-item {
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bch-emp-dir-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.bch-emp-dir-item .bch-emp-dir-label {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.bch-emp-dir-item .bch-emp-dir-explore {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.bch-emp-dir-item:hover .bch-emp-dir-explore {
  color: var(--navy);
}

@media (max-width: 900px) {
  .bch-emp-dir-item {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 480px) {
  .bch-emp-dir-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

/* ============================================================
   12. SIDEBAR — Government Agencies gets the FEDERAL (navy) signal
   All other side cards inherit teal links from sidebar.css.
   ============================================================ */

.bch-side-card.bch-side-federal h3 {
  color: var(--navy);
}

.bch-side-card.bch-side-federal a {
  color: var(--navy);
}

.bch-side-card.bch-side-federal a:hover {
  color: var(--teal);
}

/* Keyboard-highlighted option in the hero search dropdown */
.bch-custom-options a.bch-kb-active {
  background: var(--soft-teal);
  color: var(--teal);
}
