#categories{
    margin-top: 67px;
}

#categories .container {
    --content-width: 1310px;
}

#categories .title{
    font-size: 3.5em;
    margin-bottom: 12px;
}

#categories .title img {
    margin-left: 3px;
}

#categories .title + a {
    width: 191px;
    height: 39px;
    border-radius: 20px;
    font-size: 1.25em;
}
#categories .swiper {
    width: 100%;
    padding-top: 55px;
    --swiper-navigation-sides-offset: 0;
}
#categories .swiper .swiper-slide {
    display: flex !important;
}
#categories .swiper .swiper-button-next:after, 
#categories .swiper .swiper-button-prev:after {
    display: none;
}
.categories-item {
    transition: all 200ms ease-out;
    text-decoration: none !important;
}
.categories-item .image {
    height: 175px;
    width: 175px;
    border: 3.5px solid transparent;
    background-color: var(--middle-gray);
}
.categories-item img {
    transition: all 200ms ease-out;
}
.categories-item:hover img {
    transform: scale(1.1);
    transform-origin: center;
}
.categories-item p {
    width: fit-content;
    margin: 17px auto 0 auto;
    padding: 3px 10px;
    font-size: 1.5em;
    border: 2px solid transparent;
}
.categories-item p::after {
    content: '';
    position: relative;
    margin-left: 6px;
    width: 8px;
    height: 15px;
    background-image: url("../../../images/2024/icons/icon-arrow.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.categories-item:hover p:after {
    filter: brightness(0) saturate(100%) invert(20%) sepia(45%) saturate(6171%) hue-rotate(342deg) brightness(90%) contrast(94%);
}
.categories-item:hover p {
    color: var(--red);
    text-decoration: none;
    border-color: var(--red);
}

.categories-item .categories-image img {
    max-width: 100%;
    object-fit: cover;
}

@media screen and (min-width: 992px ) {
    #categories .swiper {
        overflow: visible;
        padding: 55px 68.5px 0;
    }
    #categories .swiper-wrapper {
        column-gap: 30px;
        justify-content: space-between;
    }
    #categories .swiper .swiper-slide {
        width: auto;
    }
}
@media screen and (max-width: 991px ) {
    #categories .swiper {
        width: calc(100% + 30px);
        margin: 0 -15px;
    }
}
@media screen and (min-width: 568px) {
    .categories-item:hover .image {
        border-color: var(--red);
    }
    .categories-item:after {
        content: '';
        display: block;
        transform: scale(0);
        opacity: 0;
        transition: all 0.5s;
    }
    .categories-item:hover:after {
        opacity: 1;
        transform: scale(1);
        width: 109px;
        height: 82px;
        position: absolute;
        right: -14px;
        top: -38px;
        z-index: -1;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-image: url('../../../images/2025/home/stars.png');
        background-image: image-set(url('../../../images/2025/home/stars.png') 1x, url('../../../images/2025/home/stars@2x.png') 2x);
    }
}
@media screen and (max-width: 567px ) {
    #categories {
        margin-top: 62px;
    }
    #categories .title {
        font-size: 2.5em;
        flex-direction: column;
        margin-bottom: 18px;
    }
    #categories .title img {
        display: block;
        margin-top: -10px;
    }

    #categories .title + a {
        width: 155px;
        height: 32px;
        border-radius: 16px;
        font-size: 1em;
    }
    #categories .swiper {
        padding-top: 60px;
    }
    .categories-item .image {
        height: 165px;
        width: 165px;
    }
    .swiper-slide-active .categories-item .image {
        border-color: var(--red);
    }
    .swiper-slide-active .categories-item:after {
        content: '';
        display: block;
        position: absolute;
        width: 79px;
        height: 59px;
        right: -9px;
        top: -15px;
        z-index: -1;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-image: url('../../../images/2025/home/stars-m.png');
        background-image: image-set(url('../../../images/2025/home/stars-m.png') 1x, url('../../../images/2025/home/stars-m@2x.png') 2x);
    }    
    .categories-item p {
        margin: 8px auto 0 auto;
        padding: 4px 9px;
        font-size: 1em;
    }
    .categories-item p::after {
        width: 5px;
        height: 9px;
    }
}