.infographic h2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.infographic h2 span {
    width: fit-content;
}

.infographic h2 span:not(span.main-title) {
    position: absolute;
    top: 21px;
    right: 125px;
    width: 376px;
    color: #48788c;
}

.infographic h2 span.main-title:nth-child(2) {
    margin-left: -450px;
}

.infographic h2 span.main-title:last-of-type {
    margin-right: -450px;
}

.infographic-container {
    position: relative;
}

.infographic-carousel {
    position: relative;
    width: 398px;
    height: 350px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.infographic-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 24px;
    background: #F4EEE7;
    border-radius: 24px;
    box-shadow: 8px 8px 40px 0 #26252529;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.infographic-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    z-index: 3;
}

.infographic-item.prev {
    opacity: 0.3;
    transform: translate(-100%, -70%) scale(0.9) rotate(0deg);
    z-index: 2;
}

.infographic-item.next {
    opacity: 0.3;
    transform: translate(0%, -30%) scale(0.9) rotate(0deg);
    z-index: 2;
}

.infographic-item.hidden {
    opacity: 0;
    z-index: 1;
}

.infographic-item .date {
    color: #48788c;
}

.infographic-item .title {
    font-weight: 500;
    font-size: 80px;
}

.infographic-container button {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    padding: 16px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    font-weight: 500;
    text-transform: uppercase;
}

.infographic-container button.prevBtn {
    left: 0;
}

.infographic-container button.nextBtn {
    right: 0;
}

.infographic-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination-dot {
    width: 24px;
    height: 2px;
    background: #F4EEE7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: #48788c;
    width: 48px;
}

@media screen and (max-width: 1365px) {
    .infographic h2 span:not(span.main-title) {
        right: 50px;
    }
}

@media screen and (max-width: 1199px) {
    .infographic h2 {
        align-items: flex-start;
    }

    .infographic h2 span:not(span.main-title) {
        position: unset;
        margin-left: auto;
        text-align: right;
    }

    .infographic h2 span.main-title:nth-child(2),
    .infographic h2 span.main-title:last-of-type {
        margin: 0;
    }

    .infographic h2 span:not(span.main-title) {
        right: 0;
    }

    .infographic-item.prev {
        transform: translate(-90%, -70%) scale(0.9) rotate(0deg);
    }

    .infographic-item.next {
        transform: translate(-10%, -30%) scale(0.9) rotate(0deg);
    }
}

@media screen and (max-width: 992px) {
    .infographic-item.prev {
        transform: translate(-70%, -65%) scale(0.9) rotate(0deg);
    }

    .infographic-item.next {
        transform: translate(-30%, -35%) scale(0.9) rotate(0deg);
    }

}

@media screen and (max-width: 767px) {
    .infographic h2 {
        margin-bottom: 24px;
    }

    .infographic h2 span:not(span.main-title) {
        font-size: 12px;
        max-width: 269px;
    }

    .infographic-container {
        padding-top: 40px;
    }

    .infographic-carousel {
        width: 254px;
        height: 250px;
        margin: 0 auto 24px;
    }

    .infographic-item {
        padding: 16px;
        border-radius: 16px;
        gap: 8px;
    }

    .infographic-item .date,
    .infographic-item .text{
        font-size: 12px;
    }

    .infographic-item .title {
        font-size: 50px;
    }

    .infographic-container button {
        font-size: 12px;
        padding: 12px;
        bottom: unset;
    }

    .pagination-dot {
        width: 12px;
    }

    .pagination-dot.active {
        width: 24px;
    }
}