/* ==========================================================================
   WebKeyIndia — "As featured in" press bar  (.wkpb, home-features.php)  2026-09-23h
   Replaces the flat strip picture (images/1.webp / 2.webp). The seven logos are
   separate files now, each on its own card, in a row that scrolls by itself and
   stops when the mouse is over it. No JavaScript: the row is printed twice and
   the track slides by exactly half.
   Six of the seven logos are each publication own colour artwork; a card can carry its
   own background colour through --tile (Business Today publishes its lockup on a black
   plate). Replacing a file in images/press/ with the same name is all a swap needs.
   ========================================================================== */
.wkpb {
  --p-ink:   #0E0F12;
  --p-muted: #6B7080;
  --p-line:  #E7EAF1;
  --p-grad:  linear-gradient(90deg, #FF7A1A 0%, #F0471E 55%, #E11D2A 100%);
  --p-font:  "Poppins","Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  --base:    26px;   /* logo height; --lh on a card nudges stacked logos up a little */
  position: relative; margin: 0; padding: 28px 0 26px;
  font-family: var(--p-font);
  background:
    radial-gradient(620px 180px at 12% 0%, rgba(255,122,26,.07), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F6FB 100%);
  border-bottom: 1px solid rgba(14,15,18,.05);
}
.wkpb *, .wkpb *::before, .wkpb *::after { box-sizing: border-box; }

.wkpb-bar { display: flex; align-items: center; gap: 24px; min-width: 0; max-width: 1180px; margin: 0 auto; }

/* the label keeps the wedge the old picture had, drawn in the brand gradient */
.wkpb-label {
  display: inline-flex; align-items: center; gap: 8px; flex: none; position: relative;
  padding-right: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--p-ink); white-space: nowrap;
}
.wkpb-label i { font-size: 14px; color: #FF7A1A; }
.wkpb-wedge {
  position: absolute; right: 0; top: 50%; width: 11px; height: 26px; margin-top: -13px;
  background: var(--p-grad);
  -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%, 0 78%, 62% 50%, 0 22%);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 0 78%, 62% 50%, 0 22%);
}

/* the moving row */
.wkpb-view {
  position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.wkpb-track { display: flex; width: max-content; animation: wkpb-slide 34s linear infinite; }
.wkpb-view:hover .wkpb-track, .wkpb-view:focus-within .wkpb-track { animation-play-state: paused; }
@keyframes wkpb-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wkpb-row {
  display: flex; align-items: stretch; gap: 14px;
  margin: 0 !important; padding: 0 14px 0 0 !important; list-style: none;
}
/* one card per publication */
.wkpb-logo {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 62px; padding: 0 22px; border-radius: 16px;
  background: #fff; border: 1px solid #EDF0F6;
  box-shadow: 0 1px 2px rgba(14,15,18,.03), 0 14px 28px -24px rgba(14,15,18,.5);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
/* a publication whose artwork needs a dark plate gets a card to match */
.wkpb-logo--dark { background: var(--tile, #000); border-color: var(--tile, #000); }
.wkpb-logo img {
  display: block; width: auto; height: auto; max-height: calc(var(--base) * var(--lh, 1)); max-width: none;
  transition: transform .25s ease;
}
@media (hover: hover) {
  .wkpb-logo:hover {
    transform: translateY(-3px); border-color: rgba(255,122,26,.4);
    box-shadow: 0 22px 36px -22px rgba(225,29,42,.42);
  }
  .wkpb-logo:hover img { transform: scale(1.04); }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .wkpb { padding: 24px 0 22px; }
  .wkpb-bar { gap: 18px; }
  .wkpb-label { font-size: 11.5px; letter-spacing: .12em; padding-right: 19px; }
  .wkpb { --base: 24px; }
  .wkpb-logo { height: 58px; padding: 0 18px; border-radius: 15px; }
}
@media (max-width: 767px) {
  .wkpb-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .wkpb-label { justify-content: center; padding-right: 0; }
  .wkpb-wedge { display: none; }
  .wkpb-label::after {
    content: ""; position: absolute; left: 50%; bottom: -8px; width: 46px; height: 3px; margin-left: -23px;
    border-radius: 999px; background: var(--p-grad);
  }
  .wkpb-row { gap: 12px; padding-right: 12px !important; }
  .wkpb { --base: 22px; }
  .wkpb-logo { height: 54px; padding: 0 16px; }
  .wkpb-track { animation-duration: 28s; }
}
@media (max-width: 575px) {
  .wkpb { padding: 20px 0 20px; }
  .wkpb { --base: 20px; }
  .wkpb-logo { height: 50px; padding: 0 14px; border-radius: 13px; }
}
/* stands still, wraps and centres for anyone who asks for less motion */
@media (prefers-reduced-motion: reduce) {
  .wkpb-view { -webkit-mask-image: none; mask-image: none; }
  .wkpb-track { width: 100%; animation: none; }
  .wkpb-track .wkpb-row:last-child { display: none; }
  .wkpb-row { flex-wrap: wrap; justify-content: center; row-gap: 12px; padding-right: 0 !important; }
  .wkpb-logo, .wkpb-logo img { transition: none; }
}
