.category-banner-element {
    font-family: "Open Sans", sans-serif;
    position: relative;
    overflow: hidden;
}
.category-banner-element--contained {
    background: #f8fafc;
    padding: 96px 50px 0 50px;
}
.category-banner-element--contained .category-banner-element__container{

    background-image: url("../../assets/img/wave-bg.jpg"), radial-gradient(93.43% 401.28% at 50% 50%, #007AFF 0%, #121926 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: overlay;
}
@media (max-width: 768px) {
    .category-banner-element--contained {
        padding: 48px 20px 0 20px;
    }
}
@media (max-width: 480px) {
    .category-banner-element--contained {
        padding: 0;
    }
}
.category-banner-element__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.category-banner-element__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
}

.category-banner-element__container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1440px;
    padding: 96px 50px 120px 50px;
    margin: 0 auto;
    background: radial-gradient(93.43% 401.28% at 50% 50%, #007AFF 0%, #121926 100%);
}
.category-banner-element--contained .category-banner-element__container {
    border-radius: 4px;
}

@media (max-width: 480px) {
    .category-banner-element--contained .category-banner-element__container {
        border-radius: 0;
    }
}
@media (max-width: 992px) {
    .category-banner-element__container {
        flex-direction: column;
        padding: 48px 20px;
    }
}
.category-banner-element {
}
.category-banner-element__title {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    color: #fff;
}
@media (max-width: 992px) {
    .category-banner-element__title {
        font-size: 24px;
        line-height: 32px;
    }
}
.category-banner-element__column--text {
    max-width: 810px;
    width: 100%;
}

@media (max-width: 992px) {
    .category-banner-element__column--text {
        text-align: center;
    }
}
.category-banner-element__breadcrumbs .rank-math-breadcrumb {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #cdd5df;
}
.category-banner-element__breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 992px) {
    .category-banner-element__breadcrumbs .rank-math-breadcrumb p {
        justify-content: center;
    }
}

.category-banner-element__breadcrumbs .rank-math-breadcrumb a {
    color: #cdd5df;
}
.category-banner-element__breadcrumbs .rank-math-breadcrumb .last {
    color: #ffffff;
}
.category-banner-element__text {
    font-size: 16px;
    line-height: 24px;
    color: #cdd5df;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .category-banner-element__text {
        font-size: 14px;
        line-height: 20px;
    }
}
.category-banner-element__column--image {
    position: relative;
    padding: 120px 0;
    margin-bottom: -80px;
}
@media (max-width: 992px) {
    .category-banner-element__column--image {
        padding: 0;
    }
    .category-banner-element--contained .category-banner-element__column--image {
        display: none;
    }
}
@media (max-width: 992px) {
    .category-banner-element--contained .category-banner-element__column--image {
        display: none;
    }
}

.category-banner-element__column--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner-element__column--image {
    max-width: 530px;
    width: 100%;
}

.category-banner-element__column--image .image-left {
    position: absolute;
    width: 288px;
    height: 288px;
    left: 0;
    top: 0;
    transform: rotate(346deg) translateX(20px) translateY(-60px);
}
.category-banner-element__column--image .image-right {
    position: absolute;
    max-width: 280px;
    max-height: 400px;
    transform: rotate(8deg) translateY(-85px) translateX(100px);
    left: 0;
}

@media (max-width: 992px) {
    .category-banner-element__column--image {
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
    .category-banner-element__column--image .image-right {
        max-width: 170px;
        max-height: 248px;
        transform: rotate(8deg) translateY(85px) translateX(-50px);
    }
    .category-banner-element__column--image .image-left {
        max-width: 180px;
        max-height: 180px;
        transform: rotate(346deg) translateX(20px) translateY(30px);
    }
    .category-banner-element__column--image .image-left,
    .category-banner-element__column--image .image-right {
        position: relative;
    }
}

.hero-block__subcategories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -20px auto 60px auto;
    padding: 0 15px;
    /* margin: 80px auto 0 auto; */
    z-index: 11;
    position: relative;
    background: transparent;
}
.category-banner-element--contained .hero-block__subcategories-list {
    margin: 0 auto;
}
@media (max-width: 992px) {
    .category-banner-element--contained .hero-block__subcategories-list {
        margin-top: -20px;
        max-width: 80%;
    }
    .hero-block__subcategories-list {
        max-width: 80%;
    }
}
@media (max-width: 480px) {
     .hero-block__subcategories-list {
        max-width: 100%;
    }
}
.hero-block__subcategories {
}
.category-banner-element + * {
    margin-top: -25px;
}
.hero-block__subcategory-item {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 24px 0px;
    width: 100%;
    max-width: 261px;
}

.category-banner-element--contained .hero-block__subcategory-item {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 40px 0px;
    list-style: none;
    max-width: 198px;
    width: 100%;
}
@media (max-width: 768px) {
    .hero-block__subcategory-item {
        padding: 20px 40px;
    }
    .category-banner-element--contained .hero-block__subcategory-item {
    }
}
.hero-block__subcategory-link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hero-block__subcategory-image {
    max-width: 56px;
    width: 100%;
}
@media (max-width: 768px) {
    .hero-block__subcategory-image {
        max-width: 47px;
    }
}
.hero-block__subcategory-image img {
    width: 100%;
    object-fit: cover;
}

.hero-block__subcategory-name {
    margin-top: 16px;
    color: #121926;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
}
.category-banner-element--contained .hero-block__subcategory-name {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
}
/* @media (max-width: 992px) {
    .category-banner-element--contained .hero-block__subcategory-name {
        font-size: 18px;
        line-height: 24px;
    }
    
} */
@media (max-width: 768px) {
    .hero-block__subcategory-name {
        font-size: 14px;
        line-height: 20px;
    }
}
.category-banner-element__logo {
    max-width: 85px;
    width: 100%;
    margin-bottom: 16px;
}
@media (max-width: 992px) {
    .category-banner-element__logo {
        margin: 0 auto 16px auto;
    }
}
.category-banner-element__logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .hero-block__subcategory-name {
        font-size: 14px;
        line-height: 20px;
    }

    /* Make the last item full width when odd number of items */
    .hero-block__subcategories-list:has(:nth-child(odd):last-child) > .hero-block__subcategory-item:last-child {
        width: 100%;
        max-width: 100%;
    }

    /* Set consistent width for subcategory items on mobile */
    .hero-block__subcategory-item {
        width: calc(50% - 6px); /* Half width minus half the gap */
    }

    /* Center the content of the full-width last item */
    .hero-block__subcategories-list:has(:nth-child(odd):last-child)
        > .hero-block__subcategory-item:last-child
        .hero-block__subcategory-link {
        max-width: 200px;
        margin: 0 auto;
    }
}
