/* Capital Pioneer Awards 2027: "Innovation Marketer of the Year" banner for the Financial Promoter home page.
   Replaces the Opinium sponsor strip in the same position. Capital Pioneer colours: the strip flashes
   red, white, navy and grey, swapping text and button colours on each beat; the photo and the awards
   logo (on its navy panel) stay put. Every rule is scoped to .cpa-im, so nothing else on the site changes. */
.cpa-im {
  display: block;
  text-decoration: none;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: #BB2535;
  color: #FFFFFF;
  animation: cpa-im-bg 2.4s steps(1, end) infinite;
  overflow: hidden;
  position: relative;
}
.cpa-im__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 0 0;
  display: flex;
  align-items: stretch;
  gap: 26px;
  min-height: 132px;
}
.cpa-im__pic {
  flex: 0 0 auto;
  width: 170px;
  position: relative;
  border-right: 4px solid #BB2535;
}
.cpa-im__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
.cpa-im__text {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 0;
}
.cpa-im__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  animation: cpa-im-label 2.4s steps(1, end) infinite;
}
.cpa-im__arrow { flex: none; width: 13px; height: 13px; }
.cpa-im__arrow path { fill: currentColor; }
.cpa-im__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cpa-im__sub {
  font-size: 14px;
  line-height: 1.4;
  max-width: 70ch;
  opacity: .92;
}
.cpa-im__side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.cpa-im__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  background: #FFFFFF;
  color: #BB2535;
  animation: cpa-im-cta 2.4s steps(1, end) infinite;
  transition: transform .2s ease;
}
.cpa-im:hover .cpa-im__cta, .cpa-im:focus-visible .cpa-im__cta { transform: translateY(-2px); text-decoration: underline; text-underline-offset: 4px; }
.cpa-im__badge {
  display: block;
  padding: 9px 11px;
  background: #191D33;
  border-radius: 4px;
}
.cpa-im__badge img { display: block; height: 64px; width: auto; }
.cpa-im:focus-visible { outline: 3px solid #F0687E; outline-offset: -3px; }

/* Four beats of 0.6s each: below the three-flashes-a-second safety limit */
@keyframes cpa-im-bg {
  0%   { background: #BB2535; color: #FFFFFF; }  /* red   */
  25%  { background: #FFFFFF; color: #252A45; }  /* white */
  50%  { background: #252A45; color: #FFFFFF; }  /* navy  */
  75%  { background: #A6ABBF; color: #252A45; }  /* grey  */
}
@keyframes cpa-im-label {
  0%   { color: #FFFFFF; }
  25%  { color: #BB2535; }
  50%  { color: #F0687E; }
  75%  { color: #252A45; }
}
@keyframes cpa-im-cta {
  0%   { background: #FFFFFF; color: #BB2535; }
  25%  { background: #BB2535; color: #FFFFFF; }
  50%  { background: #FFFFFF; color: #252A45; }
  75%  { background: #252A45; color: #FFFFFF; }
}

@media (max-width: 980px) {
  .cpa-im__sub { display: none; }
  .cpa-im__badge { display: none; }
  .cpa-im__title { font-size: 22px; }
}
@media (max-width: 600px) {
  .cpa-im__in { gap: 14px; padding-right: 14px; min-height: 0; flex-wrap: wrap; }
  .cpa-im__pic { width: 96px; min-height: 104px; }
  .cpa-im__text { padding: 12px 0; flex: 1 1 0%; }
  .cpa-im__title { font-size: 19px; }
  .cpa-im__label { font-size: 12px; }
  .cpa-im__side { flex-basis: 100%; padding: 0 0 12px 110px; margin-top: -4px; }
  .cpa-im__cta { font-size: 15px; padding: 10px 16px; }
}

/* The opening wipe: at the start of every rotation a navy panel with the Capital Pioneer logo and
   "A new marketing award to win..." sweeps across from the left, holds, then sweeps away to reveal
   the banner. One rotation is 9.6 seconds: wipe in 0.6s, hold 2.4s, wipe out 0.6s, banner 6s. */
.cpa-im__intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #191D33;
  color: #FFFFFF;
  clip-path: inset(0 100% 0 0);
  animation: cpa-im-wipe 9.6s linear infinite;
  pointer-events: none;
}
.cpa-im__intro::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  margin-left: -6px;
  background: #BB2535;
  opacity: 0;
  animation: cpa-im-edge 9.6s linear infinite;
}
.cpa-im__intro-in {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.cpa-im__intro-in img { display: block; height: 40px; width: auto; flex: none; }
.cpa-im__intro-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  padding-left: 28px;
  border-left: 2px solid rgba(201, 210, 232, .35);
  white-space: nowrap;
}
@keyframes cpa-im-wipe {
  0%     { clip-path: inset(0 100% 0 0); }
  6.25%  { clip-path: inset(0 0 0 0); }
  31.25% { clip-path: inset(0 0 0 0); }
  37.5%  { clip-path: inset(0 0 0 100%); }
  100%   { clip-path: inset(0 0 0 100%); }
}
@keyframes cpa-im-edge {
  0%     { left: 0;    opacity: 1; }
  6.25%  { left: 100%; opacity: 1; }
  6.3%   { left: 100%; opacity: 0; }
  31.2%  { left: 0;    opacity: 0; }
  31.25% { left: 0;    opacity: 1; }
  37.5%  { left: 100%; opacity: 1; }
  37.55% { left: 100%; opacity: 0; }
  100%   { left: 100%; opacity: 0; }
}
@media (max-width: 980px) {
  .cpa-im__intro-in img { height: 30px; }
  .cpa-im__intro-text { font-size: 22px; }
}
@media (max-width: 600px) {
  .cpa-im__intro-in { flex-direction: column; gap: 10px; }
  .cpa-im__intro-in img { height: 24px; }
  .cpa-im__intro-text { font-size: 18px; border-left: 0; padding-left: 0; white-space: normal; text-align: center; }
}

/* Visitors who ask their device for less motion see a steady navy banner */
@media (prefers-reduced-motion: reduce) {
  .cpa-im, .cpa-im__label, .cpa-im__cta { animation: none; }
  .cpa-im__intro { display: none; }
  .cpa-im { background: #252A45; color: #FFFFFF; }
  .cpa-im__label { color: #F0687E; }
  .cpa-im__cta { background: #BB2535; color: #FFFFFF; transition: none; }
}
