/* MCA Events: design tokens read from the live MCA Elementor pages (Events page, June 2026). */
:root {
  --mca-primary: #005FFF;
  --mca-primary-hover: #044CC5;
  --mca-navy: #0A1F4D;
  --mca-text: #4C4C4C;
  --mca-text-dark: #000000;
  --mca-muted: #A3B3FF;
  --mca-bg-soft: #F2F2F2;
  --mca-bg-tint: #F3F8FF;
  --mca-radius-card: 8px;
  --mca-radius-btn: 4px;
  --mca-shadow-card: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* Fact cards in the single event strip */
.mca-fact-card .elementor-widget-single-event-field,
.mca-fact-card .wpem-single-event-field {
  color: var(--mca-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.mca-fact-card .elementor-widget-single-event-field a { color: var(--mca-navy); text-decoration: none; }
.mca-fact-card .elementor-widget-single-event-field a:hover { color: var(--mca-primary); }

/* Plugin single event output: the hero already shows the title, so hide the duplicate and the view counter */
.wpem-main.wpem-single-event-page .wpem-event-title,
.wpem-main.wpem-single-event-page .wpem-viewed-event { display: none; }
.wpem-main .wpem-event-single-image img[src*="placeholder"] { display: none; }

/* Type scale and colours inherit the site */
.wpem-main .wpem-heading-text,
.wpem-main h1, .wpem-main h2, .wpem-main h3, .wpem-main h4 { color: var(--mca-navy); font-weight: 700; }
.wpem-main .wpem-single-event-body h2,
.wpem-main .wpem-single-event-body h3 { color: var(--mca-primary); }
.wpem-main, .wpem-main p, .wpem-main li { color: var(--mca-text); font-size: 16px; line-height: 1.6; }
.wpem-main a { color: var(--mca-primary); }

/* Buttons match the site's primary button */
.wpem-main .wpem-theme-button,
.wpem-main a.wpem-theme-button,
.wpem-main button.wpem-theme-button,
.wpem-main .wpem-registration-button,
.wpem-main input[type="submit"] {
  background: var(--mca-primary);
  border: 2px solid var(--mca-primary);
  color: #FFFFFF;
  border-radius: var(--mca-radius-btn);
  font-weight: 600;
  padding: 12px 24px;
  transition: background .2s ease;
}
.wpem-main .wpem-theme-button:hover,
.wpem-main a.wpem-theme-button:hover,
.wpem-main button.wpem-theme-button:hover,
.wpem-main .wpem-registration-button:hover,
.wpem-main input[type="submit"]:hover { background: var(--mca-primary-hover); border-color: var(--mca-primary-hover); color: #FFFFFF; }

/* Listing cards */
.wpem-main .wpem-event-box-col .wpem-event-infomation,
.wpem-main .wpem-event-list-col .wpem-event-infomation,
.wpem-main .wpem-event-layout-wrapper .wpem-event-infomation {
  border-radius: var(--mca-radius-card);
  box-shadow: var(--mca-shadow-card);
  border: 0;
  overflow: hidden;
}
.wpem-main .wpem-event-title h3,
.wpem-main .wpem-event-title h3 a { color: var(--mca-navy); font-weight: 700; }
.wpem-main .wpem-event-date .wpem-from-date,
.wpem-main .wpem-event-type .wpem-event-type-text,
.wpem-main .wpem-event-location .wpem-event-location-text { color: var(--mca-primary); }
.wpem-main .wpem-event-type-text { border-radius: var(--mca-radius-btn); }

/* Filters and forms */
.wpem-main .wpem-form-wrapper .wpem-form-group input,
.wpem-main .wpem-form-wrapper .wpem-form-group select,
.wpem-main .wpem-form-wrapper .wpem-form-group textarea { border-radius: var(--mca-radius-btn); }

/* Alerts: keep the plugin's semantic colours but round the corners */
.wpem-main .wpem-alert { border-radius: var(--mca-radius-btn); }

/* Small screens: keep the plugin's grids inside the viewport */
@media (max-width: 767px) {
  .wpem-main .wpem-row { margin-left: 0; margin-right: 0; }
  .wpem-main .wpem-single-event-body .wpem-col-xs-12 { padding-left: 0; padding-right: 0; }
  .wpem-main table { display: block; overflow-x: auto; max-width: 100%; }
}
