/* REGIONAL BG SVG MAP */

.region-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #f5f7fc;
}

/*
  The content container can be wider than the text itself.
  This lets the text remain on the left while the map occupies the right.
*/
.region-content {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 40px), 980px);
  min-height: 640px;

  margin-inline: auto;
  padding-block: 120px;

  display: flex;
  align-items: center;
}

.region-copy {
  width: min(100%, 510px);
}

/* Small blue heading */

.text-blue-minititle {
  margin: 0 0 18px !important;

  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1.5px;

  color: #2563eb;
}

/* Main heading */

.region-title {
  max-width: 500px;
  margin: 0 !important;
  /* margin-top: 8px; */
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #111827;
}

/* Subtitle */

.text-gray-subtitle {
  max-width: 520px;
  margin: 16px 0 0;

  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;

  color: #64748b;
}

/* Statistics grid */

.region-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 70px;
  row-gap: 36px;

  max-width: 390px;
  margin-top: 52px;
}

.region-stat {
  min-width: 0;
}

.region-stat-country {
  margin: 0 0 8px;

  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1px;

  color: #353940;
}

.region-stat-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.region-stat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 25px;
  height: 25px;
  padding-inline: 6px;

  border-radius: 3px;
  background: #2563eb;

  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  color: #ffffff;
}

.region-stat-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;

  color: #2563eb;
}

/* SVG map */

.europe-map {
  position: absolute;
  z-index: 1;

  top: 50%;
  right: -170px;

  width: min(1050px, 70vw);
  height: auto;

  transform: translateY(-50%);
  pointer-events: none;
}

.europe-map path {
  fill: #e8ecf7;
  stroke: #f5f7fc;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;

  transition:
    fill 250ms ease,
    opacity 250ms ease;
}

/* Highlighted countries */

.europe-map path.is-active {
  fill: #b7c5e8;
}

/* Or target countries directly */

.europe-map #lt,
.europe-map #lt path,
.europe-map #lv,
.europe-map #lv path,
.europe-map #ee,
.europe-map #ee path,
.europe-map #pl,
.europe-map #pl path {
  fill: #2563eb;
}

/* Tablet */

@media (max-width: 900px) {
  .region-content {
    padding-block: 90px;
  }

  .region-copy {
    width: min(100%, 470px);
  }

  .europe-map {
    right: -400px;
    width: 950px;
    opacity: 0.75;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .region-section {
    min-height: auto;
  }

  .region-content {
    min-height: auto;
    /* padding-block: 70px 330px; */
    padding-block: unset;
    align-items: flex-start;
    padding: 50px 20px;
  }

  .region-title {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 8px;
  }

  .region-stats {
    column-gap: 30px;
    row-gap: 30px;
    margin-top: 40px;
    grid-template-columns:repeat(1, minmax(0, 1fr));
  }

  .europe-map {
    top: -50px;
    right: -275px;
    bottom: -250px;
    width: 800px;
    max-width: none;
    transform: none;
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* Very small screens */

@media (max-width: 400px) {
  .region-stats {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .region-section,
  .region-content {
    min-height: 900px;
  }
}