/**
 * MUI V2 Events page styles.
 * Scoped to the MUI V2 Events template to avoid Elementor/theme overrides.
 */

body.mui-v2-events-template {
  background: #ffffff;
  color: #1d1d1f;
}

body.mui-v2-events-template #mui-v2-page-root,
body.mui-v2-events-template #mui-v2-events {
  box-sizing: border-box;
}

body.mui-v2-events-template #mui-v2-events *,
body.mui-v2-events-template #mui-v2-events *::before,
body.mui-v2-events-template #mui-v2-events *::after {
  box-sizing: border-box;
}

body.mui-v2-events-template #mui-v2-events {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 3rem 1rem 6rem !important;
  font-family: BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  body.mui-v2-events-template #mui-v2-events {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

body.mui-v2-events-template #mui-v2-events a {
  color: inherit !important;
  text-decoration: none !important;
}

body.mui-v2-events-template #mui-v2-events img {
  display: block;
  max-width: 100%;
}

body.mui-v2-events-template .mui-v2-events-header {
  margin-bottom: 4rem;
}

body.mui-v2-events-template .mui-v2-events-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0267b2;
}

body.mui-v2-events-template .mui-v2-events-header h1 {
  margin: 0;
  max-width: 56rem;
  color: #1d1d1f;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.mui-v2-events-template .mui-v2-events-header > p:not(.mui-v2-events-eyebrow) {
  margin: 1rem 0 0;
  max-width: 48rem;
  color: #6e6e73;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.028em;
}

body.mui-v2-events-template .mui-v2-events-featured-section,
body.mui-v2-events-template .mui-v2-events-past-section {
  padding-top: 3rem;
  border-top: 1px solid #e5e5e7;
}

body.mui-v2-events-template .mui-v2-events-past-section {
  margin-top: 4rem;
}

body.mui-v2-events-template .mui-v2-events-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

body.mui-v2-events-template .mui-v2-events-section-heading h2,
body.mui-v2-events-template .mui-v2-events-past-section > h2 {
  margin: 0;
  color: #1d1d1f !important;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}

body.mui-v2-events-template .mui-v2-events-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-live-badge i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #10b981;
  animation: mui-v2-events-pulse 1.5s ease-in-out infinite;
}

@keyframes mui-v2-events-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

body.mui-v2-events-template .mui-v2-events-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(229, 229, 231, 0.72);
}

body.mui-v2-events-template .mui-v2-events-featured-image,
body.mui-v2-events-template .mui-v2-events-secondary-image,
body.mui-v2-events-template .mui-v2-events-past-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: rgba(245, 245, 247, 0.72);
  border: 1px solid #e5e5e7;
}

body.mui-v2-events-template .mui-v2-events-featured-image {
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
}

body.mui-v2-events-template .mui-v2-events-secondary-image,
body.mui-v2-events-template .mui-v2-events-past-image {
  border-radius: 0.85rem;
  aspect-ratio: 16 / 9;
}

body.mui-v2-events-template .mui-v2-events-featured-image img,
body.mui-v2-events-template .mui-v2-events-secondary-image img,
body.mui-v2-events-template .mui-v2-events-past-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-in-out !important;
  will-change: transform;
}

body.mui-v2-events-template .mui-v2-events-featured-card:hover .mui-v2-events-featured-image img,
body.mui-v2-events-template .mui-v2-events-secondary-card:hover .mui-v2-events-secondary-image img,
body.mui-v2-events-template .mui-v2-events-past-card:hover .mui-v2-events-past-image img,
body.mui-v2-events-template .mui-v2-events-featured-image:hover img,
body.mui-v2-events-template .mui-v2-events-secondary-image:hover img,
body.mui-v2-events-template .mui-v2-events-past-image:hover img {
  transform: scale(1.05);
}

body.mui-v2-events-template .mui-v2-events-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: linear-gradient(135deg, #f5f5f7 0%, #e9f4fc 100%);
  color: #0267b2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.mui-v2-events-template .mui-v2-events-featured-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.mui-v2-events-template .mui-v2-events-featured-copy {
  display: grid;
  gap: 0.75rem;
}

body.mui-v2-events-template .mui-v2-events-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 0.38rem;
  padding: 0.32rem 0.62rem;
  background: rgba(2, 103, 178, 0.08);
  color: #0267b2 !important;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-pill.is-small {
  padding: 0.26rem 0.5rem;
  font-size: 0.6875rem;
}

body.mui-v2-events-template .mui-v2-events-featured-card h3,
body.mui-v2-events-template .mui-v2-events-secondary-card h3,
body.mui-v2-events-template .mui-v2-events-past-card h3 {
  margin: 0;
  color: #1d1d1f !important;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:visited,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:visited,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:visited {
  color: #1d1d1f !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:focus-visible,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:focus-visible,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:focus-visible {
  color: #1d1d1f !important;
}

body.mui-v2-events-template .mui-v2-events-featured-card h3 {
  max-width: 38rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.12;
}

body.mui-v2-events-template .mui-v2-events-secondary-card h3,
body.mui-v2-events-template .mui-v2-events-past-card h3 {
  font-size: 1.125rem;
  line-height: 1.18;
}

body.mui-v2-events-template .mui-v2-events-secondary-card h3 a:hover,
body.mui-v2-events-template .mui-v2-events-past-card h3 a:hover {
  color: #1d1d1f !important;
}

body.mui-v2-events-template .mui-v2-events-featured-meta {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.5rem;
  color: #6e6e73;
  font-size: 0.9375rem;
  line-height: 1.58;
}

body.mui-v2-events-template .mui-v2-events-featured-meta p {
  margin: 0;
}

body.mui-v2-events-template .mui-v2-events-featured-meta strong {
  color: #1d1d1f !important;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-countdown-block {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 229, 231, 0.72);
}

body.mui-v2-events-template .mui-v2-events-countdown-label,
body.mui-v2-events-template .mui-v2-events-countdown-mini-label {
  color: #86868b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.mui-v2-events-template .mui-v2-events-countdown {
  display: flex;
  align-items: flex-start;
}

body.mui-v2-events-template .mui-v2-events-countdown-large {
  gap: 1rem;
}

body.mui-v2-events-template .mui-v2-events-countdown-unit {
  text-align: center;
}

body.mui-v2-events-template .mui-v2-events-countdown-unit p {
  margin: 0;
  color: #1d1d1f !important;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

body.mui-v2-events-template .mui-v2-events-countdown-unit.is-accent p {
  color: #0267b2;
}

body.mui-v2-events-template .mui-v2-events-countdown-unit span {
  display: block;
  margin-top: 0.25rem;
  color: #6e6e73;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.mui-v2-events-template .mui-v2-events-countdown i {
  padding-top: 0.1rem;
  color: #e5e5e7;
  font-style: normal;
  font-size: 1.5rem;
  font-weight: 300;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:visited {
  background: #0267b2 !important;
  color: #ffffff !important;
  padding: 0.92rem 1.75rem !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:focus-visible {
  background: #2d99e4 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:visited {
  border: 1px solid #e5e5e7 !important;
  color: #1d1d1f !important;
  padding: 0.65rem 1rem !important;
  background: transparent !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:focus-visible {
  background: #f5f5f7 !important;
  border-color: #d8d8dc !important;
  color: #1d1d1f !important;
}

body.mui-v2-events-template .mui-v2-events-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding-top: 2rem;
}

body.mui-v2-events-template .mui-v2-events-benefits-grid {
  padding-top: 1.5rem;
}

body.mui-v2-events-template .mui-v2-events-secondary-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem;
  align-items: start;
}

body.mui-v2-events-template .mui-v2-events-secondary-content {
  display: grid;
  gap: 1rem;
}

body.mui-v2-events-template .mui-v2-events-secondary-copy,
body.mui-v2-events-template .mui-v2-events-past-main {
  display: grid;
  gap: 0.75rem;
}

body.mui-v2-events-template .mui-v2-events-inline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #6e6e73;
  font-size: 0.75rem;
  line-height: 1.3;
}

body.mui-v2-events-template .mui-v2-events-secondary-card p,
body.mui-v2-events-template .mui-v2-events-past-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.84rem;
  line-height: 1.55;
  padding-bottom: 1rem;
}

body.mui-v2-events-template .mui-v2-events-countdown-mini {
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body.mui-v2-events-template .mui-v2-events-countdown-mini strong {
  color: #1d1d1f !important;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-countdown-mini strong.is-accent {
  color: #0267b2;
}

body.mui-v2-events-template .mui-v2-events-past-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  margin-top: 2rem;
}

body.mui-v2-events-template .mui-v2-events-past-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

body.mui-v2-events-template .mui-v2-events-resource-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  /*padding-top: 0.6rem;*/
  border-top: 1px solid rgba(229, 229, 231, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border-radius: 0.4rem;
  transition: color 180ms ease, opacity 180ms ease;
}

body.mui-v2-events-template .mui-v2-events-resource-link.is-active:first-child {
  color: #0267b2;
}

body.mui-v2-events-template .mui-v2-events-resource-link.is-active:first-child:hover,
body.mui-v2-events-template .mui-v2-events-resource-link.is-active:first-child:focus-visible {
  color: #2d99e4;
}

body.mui-v2-events-template .mui-v2-events-resource-link.is-active:not(:first-child) {
  color: #1d1d1f;
}

body.mui-v2-events-template .mui-v2-events-resource-link.is-active:not(:first-child):hover,
body.mui-v2-events-template .mui-v2-events-resource-link.is-active:not(:first-child):focus-visible {
  color: #0267b2;
}

body.mui-v2-events-template .mui-v2-events-resource-link.is-disabled {
  color: #a1a1a6 !important;
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

body.mui-v2-events-template .mui-v2-events-resource-divider {
  color: #e5e5e7;
}

body.mui-v2-events-template .mui-v2-events-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(229, 229, 231, 0.72);
}

body.mui-v2-events-template .mui-v2-events-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e5e5e7;
  border-radius: 999px;
  padding: 0 0.8rem;
  color: #1d1d1f !important;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.mui-v2-events-template .mui-v2-events-pagination .page-numbers.current {
  border-color: #0267b2;
  background: #0267b2;
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.mui-v2-events-template .mui-v2-events-pagination a.page-numbers:hover,
body.mui-v2-events-template .mui-v2-events-pagination a.page-numbers:focus-visible {
  background: #f5f5f7;
  border-color: #d8d8dc;
}

body.mui-v2-events-template .mui-v2-events-empty-state {
  border: 1px dashed #d8d8dc;
  border-radius: 1.25rem;
  padding: 2rem;
  background: rgba(245, 245, 247, 0.4);
  text-align: center;
}

body.mui-v2-events-template .mui-v2-events-empty-state h3 {
  margin: 0;
  color: #1d1d1f !important;
  font-size: 1rem;
  font-weight: 700;
}

body.mui-v2-events-template .mui-v2-events-empty-state p {
  margin: 0.5rem auto 0;
  max-width: 30rem;
  color: #6e6e73;
  font-size: 0.875rem;
  line-height: 1.55;
}


/* Hard lock against global Elementor/theme link styles on event card titles. */
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:visited,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:visited {
  color: #1d1d1f !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:visited {
  color: #0267b2 !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:focus-visible {
  color: #2d99e4 !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child),
body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):visited {
  color: #1d1d1f !important;
}

body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):hover,
body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):focus-visible {
  color: #0267b2 !important;
}

html.dark body.mui-v2-events-template,
html.dark body.mui-v2-events-template #mui-v2-events {
  background: #0f0f11;
  color: #e5e5e7;
}

html.dark body.mui-v2-events-template .mui-v2-events-eyebrow {
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-live-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-pill {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-header h1,
html.dark body.mui-v2-events-template .mui-v2-events-section-heading h2,
html.dark body.mui-v2-events-template .mui-v2-events-past-section > h2,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:visited,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:visited,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:visited,
html.dark body.mui-v2-events-template .mui-v2-events-featured-meta strong,
html.dark body.mui-v2-events-template .mui-v2-events-countdown-unit p,
html.dark body.mui-v2-events-template .mui-v2-events-countdown-mini strong,
html.dark body.mui-v2-events-template .mui-v2-events-empty-state h3 {
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-featured-card h3 a:focus-visible,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-secondary-card h3 a:focus-visible,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-past-card h3 a:focus-visible {
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-header > p:not(.mui-v2-events-eyebrow),
html.dark body.mui-v2-events-template .mui-v2-events-featured-meta,
html.dark body.mui-v2-events-template .mui-v2-events-featured-meta p,
html.dark body.mui-v2-events-template .mui-v2-events-inline-meta,
html.dark body.mui-v2-events-template .mui-v2-events-secondary-card p,
html.dark body.mui-v2-events-template .mui-v2-events-past-card p,
html.dark body.mui-v2-events-template .mui-v2-events-countdown-unit span,
html.dark body.mui-v2-events-template .mui-v2-events-empty-state p {
  color: #a1a1a6 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-countdown-label,
html.dark body.mui-v2-events-template .mui-v2-events-countdown-mini-label {
  color: #98989d !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-countdown i {
  color: #48484a !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-countdown-unit.is-accent p,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-countdown-mini strong.is-accent {
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:visited {
  background: #0284c7 !important;
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-primary-button:focus-visible {
  background: #38bdf8 !important;
  color: #0f172a !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:visited {
  border: 1px solid #3a3a3c !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-outline-button:focus-visible {
  background: #2c2c2e !important;
  border-color: #545458 !important;
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:visited {
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:first-child:focus-visible {
  color: #60a5fa !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child),
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):visited {
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):hover,
html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-resource-link.is-active:not(:first-child):focus-visible {
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-resource-link.is-disabled {
  color: #636366 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-resource-divider {
  color: #3a3a3c !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-pagination .page-numbers,
html.dark body.mui-v2-events-template .mui-v2-events-pagination a.page-numbers {
  border-color: #3a3a3c !important;
  color: #ffffff !important;
  background: transparent !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-pagination a.page-numbers:hover,
html.dark body.mui-v2-events-template .mui-v2-events-pagination a.page-numbers:focus-visible {
  background: #2c2c2e !important;
  border-color: #545458 !important;
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template #mui-v2-events .mui-v2-events-pagination .page-numbers.current {
  border-color: #0284c7 !important;
  background: #0284c7 !important;
  color: #ffffff !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-featured-section,
html.dark body.mui-v2-events-template .mui-v2-events-past-section,
html.dark body.mui-v2-events-template .mui-v2-events-featured-card,
html.dark body.mui-v2-events-template .mui-v2-events-countdown-block,
html.dark body.mui-v2-events-template .mui-v2-events-resource-actions,
html.dark body.mui-v2-events-template .mui-v2-events-pagination {
  border-color: #2c2c2e !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-featured-image,
html.dark body.mui-v2-events-template .mui-v2-events-secondary-image,
html.dark body.mui-v2-events-template .mui-v2-events-past-image {
  border-color: #2c2c2e !important;
  background: rgba(28, 28, 30, 0.6) !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-image-placeholder {
  background: linear-gradient(135deg, #1c1c1e 0%, #0f172a 100%) !important;
  color: #38bdf8 !important;
}

html.dark body.mui-v2-events-template .mui-v2-events-empty-state {
  border-color: #3a3a3c !important;
  background: rgba(28, 28, 30, 0.4) !important;
}

@media (max-width: 1023px) {
  body.mui-v2-events-template #mui-v2-events {
    padding-top: 2.5rem !important;
  }

  body.mui-v2-events-template .mui-v2-events-featured-card {
    grid-template-columns: 1fr;
  }

  body.mui-v2-events-template .mui-v2-events-secondary-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body.mui-v2-events-template .mui-v2-events-past-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.mui-v2-events-template #mui-v2-events {
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  body.mui-v2-events-template .mui-v2-events-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body.mui-v2-events-template .mui-v2-events-secondary-card {
    grid-template-columns: 1fr;
  }

  body.mui-v2-events-template .mui-v2-events-countdown-large {
    gap: 0.55rem;
  }

  body.mui-v2-events-template .mui-v2-events-past-grid {
    grid-template-columns: 1fr;
  }

  body.mui-v2-events-template .mui-v2-events-resource-actions {
    gap: 0.45rem;
  }
}
