/* why-md-img component */

.why-md-img {
  padding: 48px 0;
}

/* ── Inner layout ────────────────────────────────── */

.why-md-img__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Left column ─────────────────────────────────── */

.why-md-img__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.why-md-img__decor {
  display: none;
  width: 430px;
  max-width: 90%;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

.why-md-img__decor--rotated {
  transform: rotate(180deg);
}

/* ── Text (heading + subheading) ─────────────────── */

.why-md-img__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-md-img__heading {
  font-family: "Carmen Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  color: #0D1532;
  white-space: nowrap;
}

.why-md-img__subheading {
  font-family: "Carmen Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  color: #0D1532;
}

/* ── Right column: country map ───────────────────── */

.why-md-img__right {
  position: relative;
  width: 100%;
}

.why-md-img__map {
  position: relative;
}

.why-md-img__country {
  width: 100%;
  height: auto;
  display: block;
}

.why-md-img__map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 50, 0.65);
  -webkit-mask-image: url('country.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('country.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  pointer-events: none;
}

/* ── Callouts ────────────────────────────────────── */

.why-md-img__callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.why-md-img__callout--1 {
  top: 13%;
  left: 28%;
  max-width: min(clamp(140px, 22vw, 260px), 56%);
}

.why-md-img__callout--2 {
  top: 26%;
  left: 40%;
  max-width: min(clamp(140px, 22vw, 270px), 80%);
}

.why-md-img__callout--3 {
  top: 38%;
  left: 61%;
  max-width: min(clamp(140px, 22vw, 270px), 74%);
}

.why-md-img__callout--4 {
  top: 51%;
  left: 60%;
  max-width: min(clamp(140px, 22vw, 270px), 82%);
}

/* ── Shared pill / callout styles ────────────────── */

.why-md-img__callout-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-light, #FBFBFB);
  border-radius: 100px;
  padding: 4px 10px;
  box-shadow: -2px 2px 2.7px rgba(0, 0, 0, 0.3);
  color: var(--color-primary, #2C2E83);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
}

.why-md-img__callout-desc {
  display: none;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-light, #FBFBFB);
  text-align: center;
  padding: 0 8px;
  overflow-wrap: break-word;
}

/* Tooltip behavior (below 1200px) */
@media (max-width: 1199px) {
  .why-md-img__callout-label {
    cursor: pointer;
  }

  .why-md-img__callout-desc {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--color-primary, #2C2E83);
    border-radius: 8px;
    width: max-content;
    max-width: 250px;
    min-width: 140px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .why-md-img__callout-desc.is-active {
    display: block;
  }

  .why-md-img__callout:has(.why-md-img__callout-desc.is-active) {
    z-index: 10;
  }
}

.why-md-img__pin-above {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #2C2E83);
  width: 26px;
  height: 32px;
}

/* ── Desktop (>=768px) ───────────────────────────── */

@media (min-width: 768px) {
  .why-md-img {
    padding: 72px 0;
  }

  .why-md-img__inner {
    position: relative;
    /*padding: 0 30px;*/
  }

  .why-md-img__left {
    gap: clamp(12px, 2vw, 24px);
    position: absolute;
    left: 30px;
    top: 58%;
    transform: translateY(-50%);
    width: max-content;
    max-width: 22%;
    z-index: 3;
    align-items: flex-start;
  }

  .why-md-img__right {
    width: 80%;
    margin-left: auto;
  }

  .why-md-img__decor {
    display: block;
    width: clamp(227px, 25.2vw, 403px);
    max-width: none;
  }

  .why-md-img__heading {
    font-size: clamp(1.8rem, 3vw, 3rem);
  }

  .why-md-img__subheading {
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  }

  .why-md-img__callout-label {
    padding: 6px 16px;
  }
}

/* ── Mobile callout position overrides ───────────── */

@media (max-width: 767px) {
  .why-md-img__heading {
    white-space: normal;
  }

  .why-md-img__callout--1 { left: 35%; }
  .why-md-img__callout--2 { left: 46%; }
  .why-md-img__callout--3 { left: 62%; }
  .why-md-img__callout--4 { top: 47%; left: 61%; }
}

/* ── Wide desktop (>=1200px): inline desc ────────── */

@media (min-width: 1200px) {
  .why-md-img__callout-desc {
    display: block;
    max-width: 280px;
  }
}
