:root {
  --vrsm-navy: #0b2447;
  --vrsm-blue: #1658a7;
  --vrsm-sky: #eaf4ff;
  --vrsm-green: #79b82a;
  --vrsm-gold: #f6b819;
  --vrsm-ink: #17243a;
  --vrsm-muted: #617089;
  --vrsm-paper: #f5f8fc;
  --vrsm-white: #fff;
  --vrsm-radius: 22px;
  --vrsm-shadow: 0 18px 50px rgba(11, 36, 71, .11);
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  color: var(--vrsm-ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(121, 184, 42, .08), transparent 25rem),
    var(--vrsm-paper);
  font-family: Poppins, system-ui, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--vrsm-green) 0 34%, var(--vrsm-gold) 34% 55%, #2d79c7 55% 100%);
}

.vrsm-topbar {
  color: rgba(255,255,255,.78);
  background: #071a34;
  font-size: .75rem;
}

.vrsm-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1500px;
  margin: auto;
  padding: 5px 28px;
}

.vrsm-topbar nav { display: flex; gap: 22px; }
.vrsm-topbar a { color: white; text-decoration: none; }
.vrsm-topbar a:hover { color: var(--vrsm-gold); }

a { text-underline-offset: .2em; }
img { transition: transform .45s ease; }

.wp-site-blocks { overflow: clip; }
.wp-site-blocks > * { position: relative; }

/* Header */
.wp-site-blocks > .wp-block-template-part:first-child {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 36, 71, .95);
  box-shadow: 0 10px 35px rgba(4, 20, 43, .22);
  backdrop-filter: blur(14px);
}

.wp-site-blocks > .wp-block-template-part:first-child > .wp-block-group {
  max-width: 1500px;
  min-height: 82px;
  margin: auto !important;
  padding: 10px 28px !important;
  background: transparent !important;
  box-shadow: none !important;
  flex-wrap: nowrap !important;
}

.wp-site-blocks > .wp-block-template-part:first-child .custom-logo {
  width: 62px;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.2));
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-site-title {
  max-width: 310px;
  margin-left: 12px;
  font-family: Jost, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  font-weight: 800;
  line-height: 1.15;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-site-title a,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item__content {
  color: white !important;
  text-decoration: none;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation {
  margin-left: auto;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item__content {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
}

/* Keep every main navigation entry visually consistent. */
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  min-height: 42px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: white !important;
  background: #2778c6;
  line-height: 1.15;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item__content:hover {
  color: var(--vrsm-navy) !important;
  background: var(--vrsm-gold);
  transform: translateY(-1px);
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item.has-child:hover > .wp-block-navigation-item__content,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
  color: var(--vrsm-navy) !important;
  background: var(--vrsm-gold) !important;
}

/* Desktop navigation: reveal dropdowns on pointer hover and keyboard focus. */
@media (min-width: 901px) and (hover: hover) {
  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
    visibility: visible !important;
    box-sizing: border-box;
    width: min(240px, calc(100vw - 32px)) !important;
    min-width: min(240px, calc(100vw - 32px)) !important;
    max-width: min(240px, calc(100vw - 32px)) !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
    top: 100% !important;
    left: 0 !important;
  }

  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .has-child > .wp-block-navigation__submenu-container {
    top: 0 !important;
    right: calc(100% - 48px) !important;
    left: auto !important;
    width: min(240px, calc(100vw - 32px)) !important;
    min-width: min(240px, calc(100vw - 32px)) !important;
    max-width: min(240px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 130px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.3 !important;
  }
}

.wp-site-blocks > .wp-block-template-part:first-child .current-menu-item > .wp-block-navigation-item__content,
.wp-site-blocks > .wp-block-template-part:first-child .current-menu-ancestor > .wp-block-navigation-item__content {
  color: var(--vrsm-navy) !important;
  background: var(--vrsm-gold);
}

.wp-navigation__responsive-container-open,
.wp-navigation__responsive-container-close { color: white !important; }

.wp-block-navigation__submenu-container {
  box-sizing: border-box;
  width: min(240px, calc(100vw - 32px)) !important;
  min-width: 240px !important;
  max-width: min(240px, calc(100vw - 32px)) !important;
  padding: 8px !important;
  border: 1px solid rgba(11, 36, 71, .1) !important;
  border-radius: 14px !important;
  background: white !important;
  box-shadow: var(--vrsm-shadow) !important;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid #e7edf5;
  background: transparent !important;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child {
  border-bottom: 0;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 11px 12px !important;
  border-radius: 8px;
  color: var(--vrsm-navy) !important;
  background: transparent !important;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-site-blocks > .wp-block-template-part:first-child .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  color: var(--vrsm-blue) !important;
  background: var(--vrsm-sky) !important;
  transform: none;
}

/* Hero and section rhythm */
main.wp-block-group,
.wp-site-blocks > .wp-block-group { background: transparent; }

body main.wp-block-group {
  width: 100% !important;
  max-width: none !important;
}

.vrsm-hero {
  width: min(1600px, calc(100% - 80px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.wp-block-cover {
  overflow: hidden;
  border-radius: clamp(18px, 2.5vw, 32px);
  box-shadow: var(--vrsm-shadow);
}

body.home main > .wp-block-cover:first-child,
body.home .wp-site-blocks > .wp-block-cover:first-of-type {
  min-height: min(640px, 72vh);
  margin-top: 26px !important;
}

.vrsm-hero .wp-block-cover__inner-container { position: relative; }
.vrsm-eyebrow {
  margin: 0 0 14px !important;
  color: var(--vrsm-gold) !important;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vrsm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vrsm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: white !important;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.vrsm-btn:hover { transform: translateY(-2px); }
.vrsm-btn--primary { color: var(--vrsm-navy) !important; border-color: var(--vrsm-gold); background: var(--vrsm-gold); }
.vrsm-btn--ghost { background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }

.vrsm-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.vrsm-hero-stats div { display: grid; }
.vrsm-hero-stats strong { color: white; font: 800 1.55rem/1 Jost, sans-serif; }
.vrsm-hero-stats span { margin-top: 5px; color: rgba(255,255,255,.7); font-size: .72rem; }

.vrsm-hero-slider {
  position: relative;
  display: block !important;
  width: 100%;
  min-height: clamp(360px, 36vw, 560px);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(4,20,43,.35);
  box-shadow: 0 18px 46px rgba(4,20,43,.22);
  isolation: isolate;
}

.vrsm-hero-slider > .vrsm-hero-slide {
  position: absolute !important;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity .75s ease, transform 1.1s ease;
}

.vrsm-hero-slider > .vrsm-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.vrsm-hero-slider > .vrsm-hero-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.vrsm-slider-controls {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.vrsm-slider-dots {
  display: flex;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(4,20,43,.58);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.vrsm-slider-arrow,
.vrsm-slider-dot {
  display: grid !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3) !important;
  color: white !important;
  background: rgba(4,20,43,.62) !important;
  box-shadow: none !important;
  pointer-events: auto;
}

.vrsm-slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  font: 500 2rem/1 system-ui, sans-serif !important;
  backdrop-filter: blur(10px);
}

.vrsm-slider-dot {
  width: 9px;
  height: 9px;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.48) !important;
}

.vrsm-slider-dot.is-active {
  width: 24px;
  border-radius: 999px !important;
  background: var(--vrsm-gold) !important;
}

.vrsm-slider-arrow:hover,
.vrsm-slider-arrow:focus-visible {
  color: var(--vrsm-navy) !important;
  background: var(--vrsm-gold) !important;
  transform: none !important;
}

.vrsm-slider-dot:focus-visible,
.vrsm-slider-arrow:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.wp-block-cover__background {
  background: linear-gradient(115deg, rgba(5, 27, 57, .94), rgba(11, 56, 107, .7) 58%, rgba(121, 184, 42, .28)) !important;
  opacity: 1 !important;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
  color: white;
  text-shadow: 0 3px 24px rgba(0,0,0,.28);
}

.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container p,
.wp-block-cover .wp-block-cover__inner-container strong { color: white; }

/* Inner-page title banner: echo the deeper homepage palette. */
body:not(.home) .wp-site-blocks > .wp-block-cover.alignfull {
  width: min(1600px, calc(100% - 80px)) !important;
  min-height: clamp(170px, 18vw, 230px) !important;
  margin: 24px auto 56px !important;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: clamp(20px, 2vw, 30px) !important;
  background: #0b2a5b;
  box-shadow: 0 22px 55px rgba(11,36,71,.16);
}

body:not(.home) .wp-site-blocks > .wp-block-cover.alignfull > .wp-block-cover__image-background {
  opacity: .16 !important;
  filter: saturate(.7) contrast(1.05);
}

body:not(.home) .wp-site-blocks > .wp-block-cover.alignfull > .wp-block-cover__background {
  background:
    radial-gradient(circle at 88% 20%, rgba(121,184,42,.18), transparent 28%),
    linear-gradient(120deg, #071f46 0%, #123d7d 60%, #496fa7 100%) !important;
}

body:not(.home) .wp-site-blocks > .wp-block-cover.alignfull .wp-block-post-title {
  max-width: 1100px;
  margin-inline: auto;
  color: white !important;
  font-size: clamp(2.25rem, 4vw, 4rem) !important;
  line-height: 1.08;
  text-wrap: balance;
}

h1, h2, h3, h4, .wp-block-post-title {
  color: var(--vrsm-navy);
  font-family: Jost, system-ui, sans-serif;
  letter-spacing: -.025em;
  line-height: 1.16;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

.wp-block-group.alignwide,
.wp-block-columns.alignwide,
.wp-block-query.alignwide,
.wp-block-cover.alignwide,
.wp-block-gallery.alignwide { width: min(1600px, calc(100% - 80px)) !important; max-width: none !important; margin-inline: auto; }

.wp-block-gallery { gap: 12px !important; }
.wp-block-gallery figure { overflow: hidden; border-radius: 16px; }
.wp-block-gallery figure:hover img { transform: scale(1.045); }

/* Homepage information architecture */
.vrsm-quicklinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1600px, calc(100% - 80px)) !important;
  max-width: none !important;
  margin: 28px auto 78px;
  margin-bottom: 16px !important;
  padding-inline: 0;
}
.vrsm-quicklinks > a {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 13px;
  min-height: 122px;
  padding: 22px;
  border: 1px solid rgba(22,88,167,.1);
  border-radius: 18px;
  color: var(--vrsm-ink);
  background: white;
  box-shadow: 0 8px 28px rgba(11,36,71,.07);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vrsm-quicklinks > a:hover { transform: translateY(-5px); border-color: rgba(22,88,167,.3); box-shadow: var(--vrsm-shadow); }
.vrsm-quicklinks__icon {
  grid-row: 1 / 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--vrsm-blue);
  font-size: 1.3rem;
}
.vrsm-quicklinks strong { align-self: end; color: var(--vrsm-navy); font-family: Jost, sans-serif; font-size: 1.05rem; }
.vrsm-quicklinks small { color: var(--vrsm-muted); font-size: .72rem; line-height: 1.4; }
.vrsm-quicklinks b { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--vrsm-blue); }

.vrsm-home-section { width: min(1600px, calc(100% - 80px)); max-width: none; margin-inline: auto !important; padding-block: 70px !important; }
.vrsm-home-section > h6 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--vrsm-blue);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vrsm-home-section > h6::before { content: ""; width: 42px; height: 2px; background: var(--vrsm-gold); }
.vrsm-home-section > h2 { margin: 8px auto 38px !important; text-align: center; }

.vrsm-news-section {
  max-width: none;
  padding-top: 120px !important;
  padding-inline: 24px !important;
  background: linear-gradient(180deg, rgba(234,244,255,.8), rgba(255,255,255,.55));
}
.vrsm-news-section > *,
.vrsm-news-section > .wp-block-group > * { width: min(1600px, calc(100% - 80px)); max-width: none !important; margin-inline: auto !important; }
.vrsm-news-section h2 { width: 100% !important; max-width: none !important; text-align: center; white-space: normal; }
.vrsm-news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.vrsm-news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(22,88,167,.1);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 32px rgba(11,36,71,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vrsm-news-card:hover { transform: translateY(-6px); box-shadow: var(--vrsm-shadow); }
.vrsm-news-card__media { display: block; overflow: hidden; aspect-ratio: 16/10; background: #dfeaf7; }
.vrsm-news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vrsm-news-card:hover .vrsm-news-card__media img { transform: scale(1.045); }
.vrsm-news-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(11,36,71,.35); font: 800 1.6rem Jost,sans-serif; }
.vrsm-news-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.vrsm-news-card time { color: var(--vrsm-blue); font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.vrsm-news-card h3 { margin: 9px 0 12px; font-size: 1.22rem; }
.vrsm-news-card h3 a { color: var(--vrsm-navy); text-decoration: none; }
.vrsm-news-card p { display: -webkit-box; overflow: hidden; margin: 0 0 18px; color: var(--vrsm-muted); font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.vrsm-news-card__more { margin-top: auto; color: var(--vrsm-blue); font-size: .83rem; font-weight: 800; text-decoration: none; }
.vrsm-news-section > a:last-child {
  display: table;
  margin: 34px auto 0;
  padding: 12px 20px;
  border: 1px solid #bfd0e5;
  border-radius: 999px;
  color: var(--vrsm-blue);
  background: white;
  font-weight: 700;
  text-decoration: none;
}
.vrsm-map-section { padding-top: 84px !important; }
.vrsm-partners-section { padding-top: 50px !important; padding-bottom: 10px !important; }
.vrsm-partners-section .wp-block-gallery,
.vrsm-partners-section .wp-block-columns { align-items: center; filter: saturate(.8); }
.vrsm-partners-section h2 { text-align: center; }
.vrsm-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(1600px, calc(100% - 80px));
  margin: 34px auto 0;
}
.vrsm-partner-grid a {
  display: grid;
  min-height: 180px;
  padding: 24px;
  place-items: center;
  border: 1px solid #e1e9f2;
  border-radius: 18px;
  color: var(--vrsm-muted);
  background: white;
  box-shadow: 0 8px 25px rgba(11,36,71,.07);
  text-align: center;
  text-decoration: none;
}
.vrsm-partner-grid img { display: block; width: 100%; max-width: 190px; height: 90px; object-fit: contain; }
.vrsm-partner-grid img.is-broken { display: none; }
.vrsm-partner-grid span { margin-top: 12px; font-size: .78rem; font-weight: 700; }

/* Cards and news */
.wp-block-post-template {
  gap: 26px !important;
}

.wp-block-post-template .wp-block-post {
  overflow: hidden;
  padding: 0 0 24px !important;
  border: 1px solid rgba(22, 88, 167, .1);
  border-radius: var(--vrsm-radius);
  background: var(--vrsm-white);
  box-shadow: 0 10px 32px rgba(11, 36, 71, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.wp-block-post-template .wp-block-post:hover {
  transform: translateY(-7px);
  box-shadow: var(--vrsm-shadow);
}

.wp-block-post-template .wp-block-post-featured-image {
  overflow: hidden;
  margin: 0 0 20px !important;
  aspect-ratio: 16/10;
  background: var(--vrsm-sky);
}

.wp-block-post-template .wp-block-post-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.wp-block-post-template .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.wp-block-post-template .wp-block-post-title,
.wp-block-post-template .wp-block-post-date,
.wp-block-post-template .wp-block-post-excerpt { margin-inline: 24px !important; }
.wp-block-post-template .wp-block-post-title { font-size: 1.35rem !important; }
.wp-block-post-template .wp-block-post-title a { color: var(--vrsm-navy); text-decoration: none; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--vrsm-blue); }
.wp-block-post-date { color: var(--vrsm-blue); font-size: .79rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wp-block-post-excerpt { color: var(--vrsm-muted); font-size: .94rem; }

/* Category and archive pages */
body.archive main > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 38px !important;
  width: min(1600px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto !important;
  padding: 64px 0 !important;
}
body.archive main > .wp-block-columns > .wp-block-column { min-width: 0; }
body.archive .wp-block-query .wp-block-post-template {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.archive .wp-block-query .wp-block-post { min-width: 0; }

@media (max-width: 900px) {
  body:not(.home) .wp-site-blocks > .wp-block-cover.alignfull {
    width: calc(100% - 32px) !important;
    min-height: 150px !important;
    margin: 16px auto 36px !important;
  }

  body.archive main > .wp-block-columns { width: 100%; grid-template-columns: 1fr; padding-inline: 20px !important; }
  body.archive .wp-block-query .wp-block-post-template { grid-template-columns: 1fr !important; }
}

.is-style-bk-box-shadow:not(header *):not(.wp-site-blocks > .wp-block-template-part:first-child *) {
  border: 1px solid rgba(22, 88, 167, .09);
  border-radius: var(--vrsm-radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--vrsm-shadow) !important;
}

/* Buttons and interactive controls */
.wp-element-button,
.wp-block-button__link,
button:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
input[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  color: white !important;
  background: linear-gradient(135deg, var(--vrsm-blue), #2778c6) !important;
  box-shadow: 0 8px 20px rgba(22, 88, 167, .22);
  font-weight: 700 !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 88, 167, .3); }

input:not([type="submit"]), select, textarea {
  border: 1px solid #ced9e7 !important;
  border-radius: 12px !important;
  background: white !important;
}

input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22, 88, 167, .16); border-color: var(--vrsm-blue) !important; }

/* Map plugin */
.map-component,
.vrsm-map,
[class*="map-container"] {
  overflow: hidden;
  border: 1px solid rgba(22, 88, 167, .13);
  border-radius: 26px;
  background: white;
  box-shadow: var(--vrsm-shadow);
}

.leaflet-container { font-family: Poppins, sans-serif !important; background: #dceaf8 !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--vrsm-shadow) !important; }
.leaflet-control-zoom { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: 0 6px 20px rgba(11,36,71,.16) !important; }

/* Articles and common content */
.wp-block-post-content { color: #324057; }
.wp-block-post-content > *:not(.alignwide):not(.alignfull) {
  width: min(1280px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
}
.wp-block-post-content p { margin-bottom: 1.25em; }
.wp-block-post-content a { color: var(--vrsm-blue); font-weight: 600; }
.wp-block-post-content blockquote {
  margin-block: 30px;
  padding: 20px 26px;
  border-left: 5px solid var(--vrsm-green);
  border-radius: 0 16px 16px 0;
  background: var(--vrsm-sky);
}

table { overflow: hidden; border-radius: 14px; background: white; box-shadow: 0 6px 22px rgba(11,36,71,.07); }
th { color: white; background: var(--vrsm-navy); }
th, td { padding: 12px 15px; border-color: #e3eaf3 !important; }

/* Footer */
.wp-site-blocks > .wp-block-template-part:last-child {
  margin-top: 70px;
  color: rgba(255,255,255,.84);
  background:
    radial-gradient(circle at 85% 20%, rgba(121,184,42,.16), transparent 24rem),
    var(--vrsm-navy);
}

.wp-site-blocks > .wp-block-template-part:last-child > .wp-block-group {
  max-width: 1600px;
  margin-inline: auto !important;
  padding: 52px 28px !important;
  background: transparent !important;
}

.wp-site-blocks > .wp-block-template-part:last-child h1,
.wp-site-blocks > .wp-block-template-part:last-child h2,
.wp-site-blocks > .wp-block-template-part:last-child h3,
.wp-site-blocks > .wp-block-template-part:last-child a { color: white !important; }
.wp-site-blocks > .wp-block-template-part:last-child a:hover { color: var(--vrsm-gold) !important; }

@media (max-width: 900px) {
  .wp-site-blocks > .wp-block-template-part:first-child { position: relative; }
  .wp-site-blocks > .wp-block-template-part:first-child > .wp-block-group { min-height: 72px; padding-inline: 18px !important; }
  .wp-site-blocks > .wp-block-template-part:first-child .custom-logo { width: 52px; }
  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-site-title { max-width: 220px; }
  .wp-navigation__responsive-container.is-menu-open { color: white; background: var(--vrsm-navy) !important; padding: 28px !important; }
  .wp-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.1rem; }
  body.home main > .wp-block-cover:first-child,
  body.home .wp-site-blocks > .wp-block-cover:first-of-type { min-height: 500px; margin-top: 16px !important; }
  .vrsm-quicklinks { grid-template-columns: repeat(2, 1fr); margin-inline: 20px; }
  .vrsm-news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vrsm-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --vrsm-radius: 17px; }
  body::before { height: 4px; }
  .wp-site-blocks > .wp-block-template-part:first-child .wp-block-site-title { font-size: .9rem; }
  .wp-block-cover { border-radius: 18px; }
  .vrsm-topbar { display: none; }
  .vrsm-hero-actions { flex-direction: column; align-items: stretch; }
  .vrsm-btn { justify-content: center; }
  .vrsm-hero-stats { gap: 14px; justify-content: space-between; }
  .vrsm-hero-stats strong { font-size: 1.2rem; }
  .vrsm-hero-stats span { max-width: 80px; }
  .vrsm-hero-slider { min-height: 360px; border-radius: 18px; }
  .vrsm-slider-controls { right: 12px; bottom: 12px; left: 12px; }
  .vrsm-slider-arrow { width: 40px; height: 40px; }
  .vrsm-quicklinks { grid-template-columns: 1fr; margin: 20px 16px 50px; }
  .vrsm-home-section { padding-block: 48px !important; }
  .vrsm-news-section { padding-inline: 16px !important; }
  .vrsm-news-section { padding-top: 80px !important; }
  .vrsm-news-cards { grid-template-columns: 1fr; }
  .vrsm-partner-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vrsm-partner-grid a { min-height: 135px; padding: 14px; }
  .wp-block-post-template { gap: 18px !important; }
  .wp-site-blocks > .wp-block-template-part:last-child { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
