.cpmx-events {
  --cpmx-events-navy: #071a67;
  --cpmx-events-blue: #0758c9;
  --cpmx-events-sky: #1595de;
  --cpmx-events-ink: #111827;
  --cpmx-events-muted: #56657a;
  --cpmx-events-line: #d8e6f7;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--cpmx-events-ink);
  font-family: inherit;
  scroll-margin-top: 32px;
}

.cpmx-events *,
.cpmx-events *::before,
.cpmx-events *::after {
  box-sizing: border-box;
}

.cpmx-events__list {
  display: grid;
  width: 100%;
  gap: clamp(18px, 2.3vw, 28px);
}

.cpmx-events__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid var(--cpmx-events-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(21, 149, 222, .09), transparent 25%),
    #ffffff;
  box-shadow: 0 14px 38px rgba(7, 26, 103, .07);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.cpmx-events__card::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--cpmx-events-navy), var(--cpmx-events-blue), var(--cpmx-events-sky));
  content: "";
}

.cpmx-events__card:hover {
  border-color: rgba(7, 88, 201, .35);
  box-shadow: 0 20px 46px rgba(7, 26, 103, .12);
  transform: translateY(-3px);
}

.cpmx-events__card-content {
  position: relative;
  z-index: 1;
  padding: clamp(25px, 3.5vw, 42px) clamp(24px, 4.2vw, 52px);
}

.cpmx-events__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 17px;
  padding: 5px 13px;
  border: 1px solid rgba(7, 88, 201, .15);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cpmx-events-navy), var(--cpmx-events-blue));
  box-shadow: 0 7px 18px rgba(7, 26, 103, .16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
}

.cpmx-events__title {
  max-width: 1020px;
  margin: 0;
  color: var(--cpmx-events-navy);
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.cpmx-events__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.cpmx-events__title a:hover,
.cpmx-events__title a:focus-visible {
  color: var(--cpmx-events-blue);
}

.cpmx-events__title a:focus-visible,
.cpmx-events__page:focus-visible {
  outline: 3px solid rgba(21, 149, 222, .34);
  outline-offset: 4px;
}

.cpmx-events__summary {
  max-width: 1040px;
  margin: 15px 0 0;
  color: var(--cpmx-events-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.cpmx-events__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 24px;
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 230, 247, .9);
  color: #607087;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

.cpmx-events__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cpmx-events__meta-item svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: var(--cpmx-events-blue);
}

.cpmx-events__meta-item strong {
  color: var(--cpmx-events-navy);
  font-weight: 750;
}

.cpmx-events__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: clamp(34px, 5vw, 58px) 0 0;
}

.cpmx-events__page {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--cpmx-events-line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(7, 26, 103, .06);
  color: var(--cpmx-events-navy);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  place-items: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

a.cpmx-events__page:hover,
a.cpmx-events__page:focus-visible,
.cpmx-events__page.is-current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cpmx-events-navy), var(--cpmx-events-blue));
  box-shadow: 0 10px 24px rgba(7, 88, 201, .22);
  color: #ffffff;
}

a.cpmx-events__page:hover {
  transform: translateY(-2px);
}

.cpmx-events__page--arrow {
  font-size: 20px;
}

.cpmx-events__page.is-disabled {
  box-shadow: none;
  color: #aab4c2;
  cursor: not-allowed;
  opacity: .65;
}

.cpmx-events__ellipsis {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 25px;
  color: var(--cpmx-events-muted);
  font-weight: 750;
}

.cpmx-events__empty {
  display: grid;
  width: 100%;
  min-height: 210px;
  padding: 38px 24px;
  border: 1px solid var(--cpmx-events-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fcff, #eef6ff);
  color: var(--cpmx-events-muted);
  place-content: center;
  text-align: center;
}

.cpmx-events__empty strong {
  color: var(--cpmx-events-navy);
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.25;
}

.cpmx-events__empty span {
  max-width: 680px;
  margin-top: 10px;
  line-height: 1.65;
}

.cpmx-events__screen-reader {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tableta */
@media (min-width: 641px) and (max-width: 1024px) {
  .cpmx-events__card-content {
    padding: 31px 34px;
  }
}

/* Celular */
@media (max-width: 640px) {
  .cpmx-events__list {
    gap: 17px;
  }

  .cpmx-events__card {
    border-radius: 16px;
  }

  .cpmx-events__card::before {
    right: 0;
    bottom: auto;
    width: auto;
    height: 5px;
  }

  .cpmx-events__card-content {
    padding: 25px 20px 23px;
  }

  .cpmx-events__badge {
    margin-bottom: 14px;
  }

  .cpmx-events__title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .cpmx-events__summary {
    margin-top: 12px;
    line-height: 1.6;
  }

  .cpmx-events__meta {
    display: grid;
    gap: 10px;
    margin-top: 17px;
    padding-top: 16px;
  }

  .cpmx-events__pagination {
    gap: 7px;
    margin-top: 34px;
  }

  .cpmx-events__page {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpmx-events__card,
  .cpmx-events__title a,
  .cpmx-events__page {
    transition-duration: .01ms !important;
  }
}

