.box {
    height: 421px;
    width: 100%;
    background-size: cover;
    position:relative;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s;
}

.box:after {
    content: "";
    width: 100%;
    height: 100%;
    position:absolute;
    left: 0;
    top: 0;
    background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.5s;
}

.box.no-overlay:after {
    display:none;
}

.box.no-overlay:hover img {
    scale: 1.05;
}

.box * {
    color: var(--white);
    
}

.box img {
    transition: all 0.5s;
    scale: 1;
}

.smallArrowWithCircle {
    border-radius: 100%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    position:absolute;
    right: 1rem;
}

.box:hover .smallArrowWithCircle {
    background: var(--white);
}

.box:hover .smallArrowWithCircle path {
    fill: var(--primary);
}

.box a {
    text-decoration: none;
}

.box:hover:after {
    background: linear-gradient(190deg, transparent 60%, rgba(232, 92, 31, 0.9) 10%);
}

.box:hover .hidden {
    display:block;
}

.listPagesBox {
    height: 621px;
    width: 100%;
    background-size: cover;
}

.listPagesBox * {
    color: var(--white);
    text-decoration: none;
}

.listPagesBox:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.5s;
}

.listPagesAsBoxes a > div > div {
    transition: background-color 0.5s;
}

.listPagesAsBoxes a:hover > div > div {
    background-color: var(--white);
}

.extraBoxes .extraBox {
    position:relative;
    background-position: center;
    background-size: cover;
    padding: 5rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.extraBoxes .extraBox:after {
    content: "";
    position:absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.extraBoxes .extraBox > div {
    position:relative;
    z-index: 1;
}

.extraBox a:after {
    content: url(/icons/roundArrow.svg);
    border: none;
    top: 6px;
    position:relative;
    margin-left: 1rem;
}

.branschBox:hover > div img {
    scale: 1.05;
}

.branschBox img {
    scale: 1;
    transition: all 0.5s;
}

.branschBox:hover * {
    /* color: var(--white) !important; */
}

@media (max-width:820px) {
    
    .box {
        height: 144px;
        margin-bottom: 1rem;
        background-position: center;
        height: auto !important;
    }
    
    .listPagesAsBoxes p.small {
            display: none;
    }
    
    .listPagesAsBoxes > a > div {
        display:flex;
    }
    
    .listPagesAsBoxes > a > div > div {
        width: 30px !important;
        height: 30px !important;
        margin-right: 0 !important;
        padding: 0.8rem !important;
    }
    
    .listPagesAsBoxes > a > div > div  svg {
        width: 15px !important;
    }
    
    .listPagesBox {
        height: 400px;
    }
}