﻿.back-history {
    transform: translateY(-3rem);
    cursor: pointer;

    span {
        font-weight: bold;
        font-size: 1rem;
        color: var(--button-color);
    }

    svg {
        width: 18px;
        stroke: var(--button-color);
    }

    @media(max-width:1140px) {
        top: 6rem;
    }
}

.chart-cat-page {
    background: url('/Portals/0/Images/chart-bg.svg') repeat-x top left;
    padding-top: 7rem;
    min-height: 96vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .sec-title {
        display: block;
        text-align: center;
        font-size: 1.4rem;
        margin-bottom: 1.1rem;
    }

    .subtitle {
        text-align: center;
        font-size: 1.2rem;
    }

    .chart-cats-section {
        padding-top: 5rem;
        width: 1167px;
        max-width: 100%;
        margin: auto;
        padding-bottom: 2rem;

        .main-cat {
            .navigation {
                position: absolute;
                top: calc(50% - 26px);
                display: flex;
                align-items: center;
                justify-content: center;
                width: 54px;
                height: 54px;
                margin: 0 5px;
                border: solid 1px #F3EFE9;
                background-color: #FBFBFB;
                border-radius: 50%;
                cursor: pointer;

                svg {
                    position: relative;
                    width: 16px;
                    stroke: #8f8f8f;
                }

                &.swiper-button-disabled {
                    opacity: 0.5;
                    cursor: default;

                }

                &.next-btn {
                    left: 0;
                }

                &.prev-btn {
                    right: 0;
                }
            }

            .chart-cat-slider {
                width: 80%;
                max-width: calc(100% - 9rem);

                .item {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: #F5F5F5;
                    border: solid 1px transparent;
                    padding: 1.5rem 1rem;
                    border-radius: 43px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    -webkit-transition: all 0.3s ease;
                    -moz-transition: all 0.3s ease;
                    -ms-transition: all 0.3s ease;
                    -o-transition: all 0.3s ease;

                    &:hover {
                        background-color: rgba(0, 124, 189, 0.4);
                        border-color: #2D3743;
                    }
                }
            }
        }

        .sub-cat {
            .navigation {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 54px;
                height: 54px;
                margin: 0 5px;
                border: solid 1px #F3EFE9;
                background-color: #FBFBFB;
                border-radius: 50%;
                cursor: pointer;

                svg {
                    position: relative;
                    width: 16px;
                    stroke: #8f8f8f;
                }

                &.swiper-button-disabled {
                    opacity: 0.5;
                    cursor: default;

                }

                &.next-btn {
                    left: 0;
                }

                &.prev-btn {
                    right: 0;
                }
            }

            .chart-subcat-slider {
                .swiper-slide {
                    padding: 4rem 1rem;
                }

                .item {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.5rem;
                    background-color: #fff;
                    border: solid 1px #F5F5F5;
                    padding: 0.7rem;
                    border-radius: 43px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    -webkit-transition: all 0.3s ease;
                    -moz-transition: all 0.3s ease;
                    -ms-transition: all 0.3s ease;
                    -o-transition: all 0.3s ease;
                    box-shadow: 0px 0px 22px -13px #000;

                    .img-box {
                        width: 62px;
                        min-width: 62px;
                        background-color: #F5F5F5;
                        height: 62px;
                        border-radius: 50%;
                        -webkit-border-radius: 50%;
                        -moz-border-radius: 50%;
                        -ms-border-radius: 50%;
                        -o-border-radius: 50%;
                        overflow: hidden;

                        img {
                            height: 100%;
                            object-fit: cover;
                        }
                    }

                    .title {
                        width: 100%;
                        text-align: center;
                    }

                }
            }
        }

    }

}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
}

@media(max-width:960px) {
    .swiper-slide {
        width: max-content;
    }

    .chart-cat-page {
        .chart-cats-section {

            .main-cat {
                .chart-cat-slider {
                    width: 100%;
                    max-width: calc(100% - 5rem);
                }

                .navigation {
                    top: calc(50% - 1rem);
                    width: 2rem;
                    height: 2rem;
                }
            }
        }
    }
}