/*
    Created on : Mar 4, 2024, 12:02:58 PM
    Author     : Ariel.Malka
*/

.category-image-container {
    position: relative;
    overflow: hidden;
}

#category_image,
.img_category {
    display: block;
    width: 100%;
    height: auto;
}

.category_item {
    margin-left: 3%;
    float: left;
    margin-bottom: 25px;
    height: 100%;
}

.category-item-full-hover {
    margin-left: 3%;
    float: left;
    margin-bottom: 25px;
    height: 100%;
}

.hover_text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #253B98;
    padding: 25px;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    line-height: 1.3;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    box-sizing: border-box;
}

.category-image-container:hover .hover_text {
    opacity: 1;
}

.active {
    display: block;
}

.category_item p {
    display: block;
    text-align: center;
    color: #253B98;
    font-weight: bold;
    line-height: 1.2;
}

.category_item_row-1 {
    width: calc((96% - 3% * (1 - 1)) / 1);
}

.categories_container {
    height: 100%;
    margin-top: 4%;
}

.category_item_row-2 {
    width: calc((96% - 3% * (2 - 1)) / 2);
}

.category_item_row-3 {
    width: calc((96% - 3% * (3 - 1)) / 3);
}

.category_item_row-4 {
    width: calc((96% - 3% * (4 - 1)) / 4);
}

.category_item_row-5 {
    width: calc((96% - 3% * (5 - 1)) / 5);
}

.category_item_row-6 {
    width: calc((96% - 3% * (6 - 1)) / 6) !important;
}

.category_item_row-7 {
    width: calc((96% - 3% * (7 - 1)) / 7);
}

.category_item_row-8 {
    width: calc((96% - 3% * (8 - 1)) / 8);
}

.text-image-container {
    justify-content: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category_label {
    text-align: center;
    color: #ff9900;
    letter-spacing: .1rem;
    cursor: pointer;
}

.category-text-label {
    text-align: left;
    color: #ff9900;
    letter-spacing: .1rem;
    cursor: pointer;
}

.category-text-label:hover {
    color: #125aa9;
}

.category_label:hover {
    color: #125aa9;
}

.active-category {
    color: #1859ea;
}

.category-paragaraph > p {
    display: block;
    text-align: left;
    color: #253B98;
    line-height: 1.2;
    font-weight: lighter;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .text-image-container .hover_text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hover_text {
        opacity: 1;
        font-size: 1.5rem;
        padding: 45px 45px 60px;
    }

    .category_item {
        margin-left: 0%;
        margin-bottom: 25px;
        height: 110%;
        width: 100%;
    }

    .text-image-container {
        justify-content: center;
        display: flex;
    }

    .category_item p {
        padding: 10%;
        line-height:  0.9;
        font-weight:normal;
    }
    


    .hide_on_mobile {
        display: none;
    }

    .topOnMobile {
        display: block;
    }

    .top {
        display: none;
    }

    .categories_container {
        display: flex;
        flex-direction: column;
        height: 100%;
        align-items: center;
    }

    .category_item_row-1,
    .category_item_row-2,
    .category_item_row-3,
    .category_item_row-4,
    .category_item_row-5,
    .category_item_row-6,
    .category_item_row-7,
    .category_item_row-8 {
        width: 100%;
    }
}