/* =========================================================
   PCO REGISTRATIONS – GRID LAYOUT
========================================================= */
.pco-reg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Tablet */
@media (max-width: 900px) {
  .pco-reg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .pco-reg-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PCO REGISTRATIONS – CARD STRUCTURE
========================================================= */

.pco-reg-card {
  display: block;
  text-decoration: none !important;
  color: var(--wpex-palette-255-color); /* default: dark section */
}

/* Image container */
.pco-reg-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1px; /* client requirement */
  background: #eee;
}

/* Image */
.pco-reg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* Subtle zoom on hover */
.pco-reg-card:hover .pco-reg-image img {
  transform: scale(1.04);
}


/* =========================================================
   PCO REGISTRATIONS – TEXT (DARK MODE DEFAULT)
========================================================= */

.pco-reg-body {
  padding-top: 12px;
}

.pco-reg-body strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--wpex-palette-255-color);
}

.pco-reg-date {
  font-size: 0.9rem;
  color: rgba(248, 244, 233, 0.7);
}


/* =========================================================
   PCO REGISTRATIONS – AUTO LIGHT MODE (THEME-AWARE)
========================================================= */

.wpex-light .pco-reg-card,
.has-light-background .pco-reg-card {
  color: var(--wpex-palette-252-color);
}

.wpex-light .pco-reg-body strong,
.has-light-background .pco-reg-body strong {
  color: var(--wpex-palette-252-color);
}

.wpex-light .pco-reg-date,
.has-light-background .pco-reg-date {
  color: rgba(0, 0, 0, 0.6);
}


/* =========================================================
   PCO REGISTRATIONS – MANUAL LIGHT MODE (EXPLICIT OVERRIDE)
   Add `.pco-reg--light` to the SECTION if needed
========================================================= */

.pco-reg--light .pco-reg-card {
  color: var(--wpex-palette-252-color);
}

.pco-reg--light .pco-reg-body strong {
  color: var(--wpex-palette-252-color);
}

.pco-reg--light .pco-reg-date {
  color: rgba(0, 0, 0, 0.6);
}


/* =========================================================
   PCO REGISTRATIONS – FOOTER CTA
   (ALL EVENT REGISTRATIONS)
========================================================= */

.pco-reg-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================
   PCO REGISTRATIONS – SECTION LIGHT MODE (PCO-SPECIFIC)
========================================================= */

.pco-light .pco-reg-card {
  color: var(--wpex-palette-252-color);
}

.pco-light .pco-reg-body strong {
  color: var(--wpex-palette-252-color);
}

.pco-light .pco-reg-date {
  color: rgba(0, 0, 0, 0.6);
}


/* =========================================================
   CTA BUTTON – HARD OVERRIDE (VCEX SAFE)
========================================================= */

.pco-events-cta {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  background-color: #127d63 !important;
  color: #f8f4e9 !important;

  border-radius: 1px !important; /* client requirement */
  height: 48px;
  padding: 10px 24px;

  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 28px;

  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;

  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Kill ALL underline / pseudo underline attempts */
.pco-events-cta,
.pco-events-cta:hover,
.pco-events-cta:focus,
.pco-events-cta::before,
.pco-events-cta::after,
.pco-events-cta:hover::before,
.pco-events-cta:hover::after {
  text-decoration: none !important;
  box-shadow: none !important;
  content: none !important;
}


/* =========================================================
   CTA BUTTON – INNER + ICON BEHAVIOR
========================================================= */

.pco-events-cta .vcex-button-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon spacing + motion (matches VCEX settings) */
.pco-events-cta .vcex-button-icon {
  margin-left: 50px;
  display: inline-flex;
  align-items: center;

  transition: transform 0.15s ease;
  will-change: transform;
}

/* SVG icon */
.pco-events-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Hover behavior */
.pco-events-cta:hover {
  background-color: #0f6953 !important;
  color: #f8f4e9 !important;
}

.pco-events-cta:hover .vcex-button-icon {
  transform: translateX(5px);
}