/* MvM Theme 1.0 — Elementor Pro integration */

.elementor-widget-mvm-postx-section,
.elementor-widget-mvm-section-heading,
.mvm-elementor-section,
.mvm-elementor-section * {
  box-sizing: border-box;
}

.mvm-elementor-section {
  width: 100%;
  color: var(--mvm-ink, #17212b);
}

.mvm-elementor-section__inner {
  width: min(var(--mvm-content, 1280px), 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--mvm-radius-xl, 22px);
}

.mvm-elementor-section--plain .mvm-elementor-section__inner {
  padding-inline: 0;
}

.mvm-elementor-section--soft .mvm-elementor-section__inner {
  background: var(--mvm-surface-soft, #f5f8fb);
  border: 1px solid var(--mvm-border, #dce6ef);
}

.mvm-elementor-section--community .mvm-elementor-section__inner {
  background: linear-gradient(135deg, var(--mvm-blue-050, #eef6fc), var(--mvm-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--mvm-blue, #1966AE) 22%, var(--mvm-border, #dce6ef));
}

.mvm-elementor-section--accent .mvm-elementor-section__inner {
  background: var(--mvm-blue, #1966AE);
  color: #fff;
  border: 1px solid var(--mvm-blue, #1966AE);
}

.mvm-elementor-section__head {
  max-width: 820px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.mvm-elementor-section__head--standalone {
  margin-bottom: 0;
}

.mvm-elementor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--mvm-blue, #1966AE);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mvm-elementor-section__head h2 {
  margin: 0;
  color: var(--mvm-ink, #17212b);
  font-family: inherit;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.mvm-elementor-section__head p {
  margin: 9px 0 0;
  color: var(--mvm-muted, #687786);
  font-size: 1rem;
  line-height: 1.6;
}

.mvm-elementor-section--accent .mvm-elementor-eyebrow,
.mvm-elementor-section--accent .mvm-elementor-section__head h2,
.mvm-elementor-section--accent .mvm-elementor-section__head p {
  color: #fff;
}

.mvm-elementor-section--accent .mvm-elementor-section__head p {
  opacity: .85;
}

.mvm-elementor-postx {
  min-width: 0;
}

.mvm-elementor-empty {
  padding: 22px;
  border: 1px dashed var(--mvm-border, #dce6ef);
  border-radius: var(--mvm-radius-md, 14px);
  background: var(--mvm-surface-soft, #f5f8fb);
  color: var(--mvm-muted, #687786);
  text-align: center;
}

/* Elementor controls should inherit the same soft geometry. */
body.elementor-editor-active .mvm-elementor-section,
.elementor-editor-preview .mvm-elementor-section {
  min-height: 24px;
}

/* PostX rendered inside Elementor still follows the MvM component layer. */
.mvm-elementor-postx .mvm-postx-block,
.mvm-elementor-postx [class*="ultp-block"] {
  font-family: inherit;
}

.mvm-elementor-postx :is(.ultp-block-item, [class*="post-grid-item"], [class*="post-list-item"]) {
  border-radius: var(--mvm-radius-lg, 18px);
}

.mvm-elementor-postx img {
  max-width: 100%;
  height: auto;
}

body.dark .mvm-elementor-section--community .mvm-elementor-section__inner,
body[data-mvm-theme="dark"] .mvm-elementor-section--community .mvm-elementor-section__inner {
  background: linear-gradient(135deg, var(--mvm-blue-050, #152d43), var(--mvm-surface, #18222c));
}

/* Native MvM Pagebuilder widgets. */
.mvm-elementor-local {
  width: 100%;
  color: var(--mvm-ink, #17212b);
}

.mvm-elementor-agenda__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mvm-elementor-event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--mvm-border, #dce6ef);
  border-radius: 18px;
  background: var(--mvm-surface, #fff);
  box-shadow: 0 8px 24px rgba(23,33,43,.055);
}

.mvm-elementor-event__date {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mvm-blue-050, #eef6fc);
  color: var(--mvm-blue, #1966AE);
}

.mvm-elementor-event__date strong {
  font-size: 1.95rem;
  line-height: .95;
}

.mvm-elementor-event__date span {
  margin-top: 7px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mvm-elementor-event__body {
  min-width: 0;
  padding: 16px;
}

.mvm-elementor-event__body small,
.mvm-elementor-action-card small,
.mvm-elementor-discover small {
  color: var(--mvm-blue, #1966AE);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mvm-elementor-event h3,
.mvm-elementor-action-card h3,
.mvm-elementor-discover h3 {
  margin: 5px 0 8px;
  color: var(--mvm-ink, #17212b);
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 820;
  line-height: 1.28;
}

.mvm-elementor-event h3 a,
.mvm-elementor-action-card h3 a,
.mvm-elementor-discover h3 a {
  color: inherit;
  text-decoration: none;
}

.mvm-elementor-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--mvm-muted, #687786);
  font-size: .78rem;
}

.mvm-elementor-dorpsplein__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mvm-elementor-action-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--mvm-border, #dce6ef);
  border-radius: 18px;
  background: var(--mvm-surface, #fff);
}

.mvm-elementor-action-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: var(--mvm-blue-050, #eef6fc);
  font-size: 1.2rem;
}

.mvm-elementor-action-card p,
.mvm-elementor-discover p {
  margin: 0;
  color: var(--mvm-muted, #687786);
  font-size: .92rem;
  line-height: 1.55;
}

.mvm-elementor-card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--mvm-blue, #1966AE);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.mvm-elementor-local__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.mvm-elementor-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--mvm-blue, #1966AE);
  color: #fff !important;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}

.mvm-elementor-discover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 18px;
}

.mvm-elementor-discover__photo {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 20px;
  background: #0f2434;
}

.mvm-elementor-discover__photo > a,
.mvm-elementor-discover__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.mvm-elementor-discover__photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.mvm-elementor-discover__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5,18,29,.82));
  pointer-events: none;
}

.mvm-elementor-discover__photo > div {
  position: absolute;
  z-index: 1;
  inset: auto 20px 18px;
}

.mvm-elementor-discover__photo small,
.mvm-elementor-discover__photo h3,
.mvm-elementor-discover__photo h3 a {
  color: #fff;
}

.mvm-elementor-discover__stories {
  display: grid;
  gap: 14px;
}

.mvm-elementor-discover__stories article {
  padding: 20px;
  border: 1px solid var(--mvm-border, #dce6ef);
  border-radius: 18px;
  background: var(--mvm-surface, #fff);
}

body[data-mvm-theme="dark"] .mvm-elementor-event,
body[data-mvm-theme="dark"] .mvm-elementor-action-card,
body[data-mvm-theme="dark"] .mvm-elementor-discover__stories article {
  border-color: #30404e;
  background: #18222c;
  box-shadow: none;
}

.mvm-elementor-hero {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.mvm-elementor-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
}

.mvm-elementor-hero--soft {
  border: 1px solid var(--mvm-border, #dce6ef);
  background: linear-gradient(135deg, var(--mvm-blue-050, #eef6fc), var(--mvm-surface, #fff));
}

.mvm-elementor-hero--plain {
  border: 1px solid var(--mvm-border, #dce6ef);
  background: var(--mvm-surface, #fff);
}

.mvm-elementor-hero--blue {
  background: linear-gradient(135deg, var(--mvm-blue, #1966AE), #0f4f88);
  color: #fff;
}

.mvm-elementor-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--mvm-ink, #17212b);
  font-family: inherit;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
}

.mvm-elementor-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--mvm-muted, #687786);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.62;
}

.mvm-elementor-hero--blue h1,
.mvm-elementor-hero--blue p,
.mvm-elementor-hero--blue .mvm-elementor-eyebrow {
  color: #fff;
}

.mvm-elementor-hero--blue p {
  opacity: .88;
}

.mvm-elementor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mvm-elementor-button--secondary {
  border: 1px solid var(--mvm-border, #dce6ef);
  background: transparent;
  color: var(--mvm-blue, #1966AE) !important;
}

.mvm-elementor-hero--blue .mvm-elementor-button--secondary {
  border-color: rgba(255,255,255,.46);
  color: #fff !important;
}

.mvm-elementor-hero__mark {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--mvm-blue, #1966AE) 20%, transparent);
  border-radius: 28px;
  background: color-mix(in srgb, var(--mvm-blue, #1966AE) 8%, transparent);
  color: var(--mvm-blue, #1966AE);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 950;
  letter-spacing: -.08em;
}

.mvm-elementor-hero--blue .mvm-elementor-hero__mark {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.mvm-elementor-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--mvm-blue, #1966AE) 26%, var(--mvm-border, #dce6ef));
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mvm-blue-050, #eef6fc), var(--mvm-surface, #fff));
}

.mvm-elementor-cta h2 {
  margin: 2px 0 6px;
  color: var(--mvm-ink, #17212b);
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.mvm-elementor-cta p {
  margin: 0;
  color: var(--mvm-muted, #687786);
}

body[data-mvm-theme="dark"] .mvm-elementor-hero--soft,
body[data-mvm-theme="dark"] .mvm-elementor-hero--plain,
body[data-mvm-theme="dark"] .mvm-elementor-cta {
  border-color: #30404e;
  background: #18222c;
}

@media (max-width: 980px) {
  .mvm-elementor-agenda__grid,
  .mvm-elementor-dorpsplein__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mvm-elementor-discover__grid,
  .mvm-elementor-hero__inner {
    grid-template-columns: 1fr;
  }

  .mvm-elementor-hero__mark {
    max-width: 280px;
  }

  .mvm-elementor-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .mvm-elementor-section__inner {
    padding: 20px;
    border-radius: var(--mvm-radius-lg, 18px);
  }

  .mvm-elementor-section--plain .mvm-elementor-section__inner {
    padding-inline: 0;
  }

  .mvm-elementor-agenda__grid,
  .mvm-elementor-dorpsplein__grid {
    grid-template-columns: 1fr;
  }

  .mvm-elementor-event {
    grid-template-columns: 68px minmax(0, 1fr);
    border-radius: 16px;
  }

  .mvm-elementor-event__date {
    min-height: 104px;
  }

  .mvm-elementor-action-card,
  .mvm-elementor-discover__stories article {
    padding: 18px;
    border-radius: 16px;
  }

  .mvm-elementor-discover__photo {
    min-height: 280px;
    border-radius: 16px;
  }

  .mvm-elementor-local__footer {
    justify-content: stretch;
  }

  .mvm-elementor-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mvm-elementor-section *,
  .mvm-elementor-section *::before,
  .mvm-elementor-section *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Brand consistency: the single legacy divider on Over Mierlo used #2861CC. */
body.page-id-828 .elementor-element-95bc4d3 .elementor-divider-separator {
  border-block-start-color: var(--mvm-blue, #1966AE) !important;
  border-top-color: var(--mvm-blue, #1966AE) !important;
}
