/* Employer logo wall - compact float layout (light background, centered logos) */

#employers.employer-showcase {
  position: relative;
  isolation: isolate;
}

/* Subtle shop-panorama ghost wash behind the logo wall. The overlay stays
 * strong (92–97% white) so colored employer logos (Boeing blue, Pepsi red,
 * Fluke yellow, etc.) keep full contrast, while the photo adds a light
 * sense of place to tie the section into the rest of the page (which uses
 * the same gallery/section-bg/ pattern on #courses and #instructors). */
#employers.employer-showcase--float {
  background-color: #ffffff;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.88) 45%,
      rgba(248, 250, 253, 0.96) 100%
    ),
    url('gallery/section-bg/why-bg-shop-panorama.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  overflow: hidden;
}
@media (max-width: 640px) {
  #employers.employer-showcase--float {
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.93) 50%,
        rgba(248, 250, 253, 0.98) 100%
      ),
      url('gallery/section-bg/why-bg-shop-panorama.jpg');
    background-position: center center;
  }
}

#employers.employer-showcase--float .employer-showcase__inner {
  position: relative;
  z-index: 1;
  /* Match the shared section rhythm (72px 24px) so Employers reads with the
   * same vertical breathing room as Courses / Schedule / Instructors. */
  padding: 72px 24px 56px;
  max-width: 1160px;
  margin: 0 auto;
}

#employers.employer-showcase--float .employer-showcase__head {
  text-align: center;
  margin-bottom: 24px;
}

/* Type scale is inherited from the global .section-label / .section-title /
 * .section-subtitle so every section header on the homepage matches. We only
 * override what's specific to this section (text-shadow reset over the ghost
 * photo bg) and the orange accent line under the subtitle. */
#employers.employer-showcase--float .employer-showcase__head .section-label,
#employers.employer-showcase--float .employer-showcase__head .section-title,
#employers.employer-showcase--float .employer-showcase__head .section-subtitle {
  text-shadow: none;
}

#employers.employer-showcase--float .employer-showcase__accent {
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange, #ea580c), transparent);
}

/* Logos on open background (no card squares, no drop shadows - flat on white) */
#employers.employer-showcase--float .employer-logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: flex-start;
  gap: 14px 22px;
  row-gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 4px 4px;
}

#employers.employer-showcase--float .employer-logo-cell {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.25s ease;
}

#employers.employer-showcase--float .employer-logo-cell.tier-1 {
  flex: 1 1 17%;
  min-width: 100px;
  max-width: 200px;
  padding: 6px 10px 8px;
}

#employers.employer-showcase--float .employer-logo-cell.tier-2 {
  flex: 0 1 auto;
  width: clamp(62px, 8.5vw, 96px);
  min-height: 0;
  padding: 3px 5px;
}

#employers.employer-showcase--float .employer-logo-cell.tier-2.employer-logo-cell--featured {
  width: clamp(140px, 22vw, 240px);
  padding: 8px 12px;
}

/* Spotlight row: slight stagger */
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(1) {
  transform: translate(-4px, 3px) rotate(-1.2deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(2) {
  transform: translate(0, -2px) rotate(0.4deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(3) {
  transform: translate(4px, 2px) rotate(1deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(4) {
  transform: translate(-5px, 2px) rotate(-0.9deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(5) {
  transform: translate(4px, -2px) rotate(0.8deg);
}

#employers.employer-showcase--float .employer-logo-cell.tier-1:hover {
  transform: translate(-4px, 1px) rotate(-1.2deg) scale(1.03);
  z-index: 2;
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(2):hover {
  transform: translate(0, -4px) rotate(0.4deg) scale(1.03);
  z-index: 2;
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(3):hover {
  transform: translate(4px, 0) rotate(1deg) scale(1.03);
  z-index: 2;
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(4):hover {
  transform: translate(-5px, 0) rotate(-0.9deg) scale(1.03);
  z-index: 2;
}
#employers.employer-showcase--float .employer-logo-cell.tier-1:nth-child(5):hover {
  transform: translate(4px, -4px) rotate(0.8deg) scale(1.03);
  z-index: 2;
}

/* Secondary logos: first tier-2 is 6th child (after five spotlight figures) */
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 6) {
  transform: translate(-3px, 2px) rotate(-1.1deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 7) {
  transform: translate(4px, -2px) rotate(0.9deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 8) {
  transform: translate(-2px, -2px) rotate(-0.5deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 9) {
  transform: translate(3px, 2px) rotate(1.2deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 10) {
  transform: translate(-3px, -1px) rotate(-0.8deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 11) {
  transform: translate(2px, 3px) rotate(0.6deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 12) {
  transform: translate(-2px, 1px) rotate(-1deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 13) {
  transform: translate(3px, -3px) rotate(0.4deg);
}
#employers.employer-showcase--float .employer-logo-cell.tier-2:nth-child(9n + 14) {
  transform: translate(0, 2px) rotate(-0.3deg);
}

#employers.employer-showcase--float .employer-logo-cell.tier-2:hover img {
  transform: scale(1.07);
}

#employers.employer-showcase--float .employer-logo-cell.tier-2:hover {
  z-index: 2;
}

#employers.employer-showcase--float .employer-logo-cell img {
  width: 100%;
  max-height: 42px;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  filter: none;
  transition: transform 0.25s ease;
}

#employers.employer-showcase--float .employer-logo-cell.tier-1 img {
  max-height: 76px;
}

#employers.employer-showcase--float .employer-logo-cell.tier-2.employer-logo-cell--featured img {
  max-height: 52px;
}

#employers.employer-showcase--float .employer-logo-plus {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  margin: 10px auto 0;
  max-width: 36rem;
  line-height: 1.35;
  text-shadow: none;
}

#employers.employer-showcase--float .employer-logo-footnote {
  font-size: 0.65rem;
  color: #9ca3af;
  max-width: 640px;
  margin: 6px auto 0;
  line-height: 1.35;
  text-align: center;
  text-shadow: none;
}

#employers.employer-showcase--float .employer-logo-footnote + .employer-logo-footnote {
  margin-top: 2px;
}

#employers.employer-showcase--float .employer-showcase__mobile-hint {
  display: none;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin: 0 0 6px;
}

/* Premium homepage (index-premium.html) */
body.home-premium #employers.employer-showcase--float .hp-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--hp-orange, #ea580c);
  text-shadow: none;
}

body.home-premium #employers.employer-showcase--float .hp-employers__title {
  color: #1e3a5f;
  text-shadow: none;
}

body.home-premium #employers.employer-showcase--float .hp-employers__lead {
  color: #64748b;
  text-shadow: none;
  margin-left: auto;
  margin-right: auto;
}

body.home-premium #employers.employer-showcase--float .hp-employers-plus,
body.home-premium #employers.employer-showcase--float .hp-employers__note {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow: none;
}

body.home-premium #employers.employer-showcase--float .hp-employers-plus {
  color: #4b5563;
}

body.home-premium #employers.employer-showcase--float .hp-employers__note {
  max-width: 640px;
  color: #9ca3af;
}

@media (max-width: 899px) {
  #employers.employer-showcase--float .employer-showcase__mobile-hint {
    display: block;
  }

  #employers.employer-showcase--float .employer-logo-wall {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    row-gap: 14px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 6px 4px 4px;
    margin: 0 auto;
    max-width: 100%;
    scroll-snap-type: none;
  }

  #employers.employer-showcase--float .employer-logo-cell {
    scroll-snap-align: unset;
  }

  #employers.employer-showcase--float .employer-logo-cell.tier-1 {
    flex: 1 1 42%;
    min-width: 118px;
    max-width: 170px;
  }

  #employers.employer-showcase--float .employer-logo-cell.tier-2 {
    width: clamp(56px, 26vw, 88px);
  }

  #employers.employer-showcase--float .employer-logo-cell.tier-2.employer-logo-cell--featured {
    width: clamp(100px, 42vw, 200px);
  }

  #employers.employer-showcase--float .employer-logo-cell img {
    max-height: 28px;
  }

  #employers.employer-showcase--float .employer-logo-cell.tier-2.employer-logo-cell--featured img {
    max-height: 40px;
  }

  #employers.employer-showcase--float .employer-logo-cell.tier-1 img {
    max-height: 44px;
  }

  #employers.employer-showcase--float .employer-showcase__inner {
    padding: 14px 14px 16px;
  }
}
