.s-numbers {
    width: 100%;
    margin: 24px 0;
    position: relative;
}

.s-numbers .container {
    max-width: 1348px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.acf-block-preview .s-numbers h2,
.s-numbers h2 {
    margin: 0 0 20px;
}

.s-numbers .subtitle-legend {
    margin: 0 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.acf-block-preview .s-numbers .subtitle-legend h3,
.s-numbers .subtitle-legend h3 {
    margin: 0;
}

.acf-block-preview .s-numbers .subtitle-legend .legend,
.s-numbers .subtitle-legend .legend {
    margin: 20px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 60px;
    list-style: none;
}

@media screen and (min-width: 768px) { 
    .s-numbers .subtitle-legend .legend {
        margin: 0;
        justify-content: center;
        gap: 0 60px;
    }
}

.s-numbers .subtitle-legend .legend li {
    display: inline-flex;
    align-items: center;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

.s-numbers .subtitle-legend .legend li .dot {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    border-radius: 100%;
}

.s-numbers .subtitle-legend .legend li .dot--locations {
    background: #f37232;
}

.s-numbers .subtitle-legend .legend li .dot--global {
    background: #542e91;
}

.s-numbers .subtitle-legend .legend li .dot--regional {
    background: #099dd9;
}

.s-numbers .card-map {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 20px 0 40px;
}

.s-numbers .impact-card {
    background: #515151;
    min-height: 520px;
    margin: 20px 0 0;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 0 0 #f27232 inset;
    order: 2;
}

.s-numbers .impact-card--regional {
    box-shadow: 0 10px 0 0 #099dd9 inset;
}

.s-numbers .card-ctn {
    height: 0;
    overflow: hidden;
}

.s-numbers .card-ctn > * {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.s-numbers .card-ctn.card-active {
    height: auto;
    min-height: 495px;
}

.s-numbers .card-ctn.card-active > * {
    opacity: 1;
    transform: translate3d(0,0,0);
    transition: 0.3s;
}

.acf-block-preview .s-numbers .impact-card h3,
.s-numbers .impact-card h3 {
    margin: 0 0 30px;
}

.acf-block-preview .s-numbers .impact-card h3,
.acf-block-preview .s-numbers .impact-card span,
.acf-block-preview .s-numbers .impact-card p,
.s-numbers .impact-card h3,
.s-numbers .impact-card span,
.s-numbers .impact-card p {
    color: #FFF;
}

.s-numbers .impact-card span {
    display: block;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.acf-block-preview .s-numbers .impact-card img,
.s-numbers .impact-card img {
    margin: 20px 0;
    display: block;
    aspect-ratio: 16 / 9;
}

.impact-map {
    display: flex;
    align-items: start;
    justify-content: center;
    position: relative;
    width: calc(100% + 40px);
    margin-left: -60px;
    padding-top: 20px;
}

.acf-block-preview .pins,
.pins {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pin {
    background: #FFF;
    position: absolute;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    border-radius: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 0 0 0 2px;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0px 0px 1px 1px #0000001a;
    transition: 0.4s;
    animation: pulse-animation 2s infinite;
}

.pin.type-locations {
    border-color: #f37232;
}

.pin.type-regional {
    border-color: #099dd9;
}

.pin::before,
.pin::after {
    content: '';
    width: 14px;
    height: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transition: 0.3s;
    border-radius: 8px;
}

.pin.type-locations::before,
.pin.type-locations::after {
    background: #f37232;
}

.pin.type-regional::before,
.pin.type-regional::after {
    background: #099dd9;
}

.pin::before {
    transform: translate3d(-50%,-50%,0);
}

.pin::after {
    transform: translate3d(-50%,-50%,0) rotate(90deg);
}

.pin.pin-active {
    background: #f37232;
    animation: none;
    border: 2px solid #fff;
    box-shadow: none;
}

.pin.type-regional.pin-active {
    background: #099dd9;
}

.pin.pin-active::before,
.pin.pin-active::after {
    background: #FFF;
}

.pin.pin-active::after  {
    transform: translate3d(-50%,-50%,0);
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(0,0,0, 0.4);
    }

    100% {
        box-shadow: 0 0 0 14px rgba(0, 0, 0, 0);
    }
}

.pin--1 {
    left: 130px;
    top: 55px;
}

.pin--2 {
    left: 120px;
    top: 80px;
}

.pin--3 {
    left: 220px;
    top: 45px;
}

.pin--4 {
    left: 235px;
    top: 20px;
}

.pin--5 {
    left: 250px;
    top: 40px;
}

.pin--6 {
    left: 220px;
    top: 80px;
}

.pin--7 {
    left: 250px;
    top: 70px;
}

.pin--8 {
    left: 295px;
    top: 40px;
}

.pin--9 {
    left: 300px;
    top: 70px;
}

.pin--10 {
    left: 350px;
    top: 90px;
}

.pin--11 {
    left: 240px;
    top: 120px;
}

.impact-map svg {
    max-width: 385px;
    min-width: 385px;
    width: 385px;
    margin: 0 auto;
    height: auto;
}

.impact-map svg #US,
.impact-map svg .Canada,

.impact-map svg .Chile,
.impact-map svg .Argentina,
.impact-map svg #EC,
.impact-map svg #CR,
.impact-map svg #PA,
.impact-map svg #PE,
.impact-map svg #BR,
.impact-map svg #CO,

.impact-map svg .United.Kingdom,
.impact-map svg .Turkey,
.impact-map svg #IE,
.impact-map svg #BE,
.impact-map svg #FI,
.impact-map svg #EE,
.impact-map svg #LV,
.impact-map svg #CH,
.impact-map svg #SK,
.impact-map svg #ME,
.impact-map svg #AL,
.impact-map svg #MK,
.impact-map svg #PL,
.impact-map svg #MD,
.impact-map svg #UA,
.impact-map svg #SI,
.impact-map svg #BA,
.impact-map svg #HR,
.impact-map svg #RS,
.impact-map svg .Greece,
.impact-map svg #AT,
.impact-map svg .France,
.impact-map svg .Italy,
.impact-map svg #DE,
.impact-map svg #ES,
.impact-map svg #PT,
.impact-map svg #GE,
.impact-map svg #AM,

.impact-map svg #MN,
.impact-map svg #KZ,

.impact-map svg .Azerbaijan,
.impact-map svg .Angola,
.impact-map svg .Oman,
.impact-map svg #UZ,
.impact-map svg #PK,
.impact-map svg #AF,
.impact-map svg #IQ,
.impact-map svg #AE,
.impact-map svg #YE,
.impact-map svg #JO,
.impact-map svg #SA,
.impact-map svg #ZM,
.impact-map svg #NA,
.impact-map svg #BW,
.impact-map svg #ZA,
.impact-map svg #MZ,
.impact-map svg #KE,
.impact-map svg #TZ,
.impact-map svg #RW,
.impact-map svg #BI,
.impact-map svg #UG,
.impact-map svg #SO,
.impact-map svg #TD,
.impact-map svg #NG,
.impact-map svg #GH,
.impact-map svg #SL,
.impact-map svg #GN,
.impact-map svg #SN,
.impact-map svg #ML,
.impact-map svg #EG,
.impact-map svg #TN,
.impact-map svg #LY,
.impact-map svg #MA,
.impact-map svg #EH,
.impact-map svg #KG,
.impact-map svg #DZ,

.impact-map svg .Indonesia,
.impact-map svg .Australia,
.impact-map svg .Japan,
.impact-map svg .Philippines,
.impact-map svg #TW,
.impact-map svg #NP,
.impact-map svg #KR,
.impact-map svg #IN,
.impact-map svg #VN,
.impact-map svg #KH,
.impact-map svg #TH {
    fill: #6e50a1;
    stroke-width: 1px;
    stroke: #FFF;
}

.s-numbers-items {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
    justify-content: center;
}

.s-numbers-number {
    background: #f1f1f1;
    width: 100%;
    min-height: 190px;
    padding: 20px 16px 20px 36px;
    display: flex;
    flex-direction: column;
    box-shadow: 16px 0 0 0 #6e50a1 inset;
}

.s-numbers-number-top {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acf-block-preview .s-numbers-number-top h4,
.s-numbers-number-top h4 {
    margin: 0 16px 0 0;
}

.acf-block-preview .s-numbers-number-top img,
.s-numbers-number-top img {
    width: 40px;
    height: auto;
    display: block;
    margin: 0 0 auto;
}

.acf-block-preview .s-numbers-number .h1,
.s-numbers-number .h1 {
    display: flex;
    margin: auto 0 0;
    line-height: 1;
}

@media screen and (min-width: 768px) {
    .s-numbers {
        margin: 80px 0;
    }

    .s-numbers .card-map {
        grid-template-columns: 320px 1fr;
        margin: 20px 0 40px;
    }

    .s-numbers .impact-card { 
        order: 0;
        margin: 0;
        z-index: 2;
    }

    .impact-map {
        width: calc(100% + 80px);
        margin-left: -80px;
        padding-top: 40px;
        z-index: 1;
    }

    .pin {
        width: 30px;
        height: 30px;
    }

    .pin--1 {
        left: 306px;
        top: 160px;
    }

    .pin--2 {
        left: 275px;
        top: 220px;
    }

    .pin--3 {        
        left: 540px;
        top: 125px;
    }

    .pin--4 {
        left: 575px;
        top: 118px;
    }

    .pin--5 {
        left: 609px;
        top: 122px;
    }

    .pin--6 {
        left: 550px;
        top: 190px;
    }

    .pin--7 {
        left: 630px;
        top: 180px;
    }

    .pin--8 {
        left: 730px;
        top: 140px;
    }

    .pin--9 {
        left: 750px;
        top: 185px;
    }

    .pin--10 {
        left: 880px;
        top: 235px;
    }

    .pin--11 {
        left: 590px;
        top: 300px;
    }
    
    .impact-map svg {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        margin: 0 auto;
        height: auto;
    }
    
    .s-numbers-number {
        width: calc(33.33% - 40px);
        padding: 20px 16px 20px 36px;
    }

    .acf-block-preview .s-numbers-number-top img,
    .s-numbers-number-top img {
        width: 56px;
    }
}