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

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

/* Solid white background so employer PNGs with baked-in white boxes blend cleanly. */
#employers.employer-showcase--float {
  background-color: #ffffff;
  background-image: none;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  overflow: hidden;
}

#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;
}

#employers.employer-showcase--float .employer-showcase__subtitle--mobile {
  display: none;
}

/* Mobile logo marquee (built by js/employer-marquee.js) */
.employer-marquee {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.employer-marquee__row {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.employer-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: employer-marquee-ltr 50s linear infinite;
}

.employer-marquee__row--rtl .employer-marquee__track {
  animation-direction: reverse;
}

.employer-marquee:hover .employer-marquee__track,
.employer-marquee:focus-within .employer-marquee__track {
  animation-play-state: paused;
}

.employer-marquee__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.employer-marquee__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 2px;
}

.employer-marquee__row--spotlight .employer-marquee__logo {
  height: 42px;
}

.employer-marquee__logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 108px;
  object-fit: contain;
  object-position: center;
}

.employer-marquee__row--spotlight .employer-marquee__logo img {
  max-width: 132px;
  max-height: 42px;
}

@keyframes employer-marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .employer-marquee__row {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .employer-marquee__row::-webkit-scrollbar {
    display: none;
  }
  .employer-marquee__track {
    animation: none;
    padding: 0 16px;
  }
  .employer-marquee__set:last-child {
    display: none;
  }
  .employer-marquee__logo {
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  #employers.employer-showcase--float .employer-showcase__subtitle--full {
    display: none;
  }

  #employers.employer-showcase--float .employer-showcase__subtitle--mobile {
    display: block;
    margin-bottom: 10px;
  }

  #employers.employer-showcase--float .employer-showcase__accent {
    margin-top: 10px;
  }

  #employers.employer-showcase--float .employer-logo-wall {
    display: none !important;
  }

  .employer-marquee:not([hidden]) {
    display: flex;
    margin-inline: -18px;
  }

  #employers.employer-showcase--float .employer-logo-footnote {
    display: none;
  }

  #employers.employer-showcase--float .employer-logo-plus {
    margin-top: 14px;
    font-size: 0.78rem;
  }
}

/* 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;
  }
}
