:root {
    --mainheight: 100vh;
}

.mainhero3 {
    position: relative;
    height: var(--mainheight);
    display: flex;
    align-items: center;
    z-index: 0;
}

.hero3back {
    margin-bottom: calc(var(--mainheight-offset));
    width: 45%;
}

.mainimgs3 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--mainheight);
}

img.fullright {
    width: 100%;
    height: var(--mainheight);
    object-fit: cover;
    left: 0;
    top: 0;
}

.background3 {
    background: #000000;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .4;
    top: 0;
    z-index: 2;
}

.relativeindexup {
    position: relative;
    z-index: 3;
}

.hero3back h2 {
    font-family: var(--font2);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 3px;
}

.hero3back h1 {
    font-size: 58px;
    color: white;
    font-weight: 700;
    line-height: 1;
    width: 1100px;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 100%;
}

.hero3back p {
    color: white;
    font-size: 18px;
    color: white;
    font-weight: 400;
    line-height: 1;
    width: 1000px;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.hero3back .btn {
    margin: 30px auto 0;
}

.mainarrow3 {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: black;
    right: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.mainarrow3.left {
    left: 0px;
    right: initial;
}

.mainarrow3.slick-disabled {
    cursor: initial !important;
    opacity: .5;
}


.textslider3, .mainimgs3 {
    visibility: hidden;
}

.gridcardsmainhero5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0px;
    transform: translateY(-50%);
    width: 1200px;
    max-width: 100%;
    margin: 0 auto -100px;
}

.mainhero5card {
    position: relative;
    overflow: hidden;
    height: 100%;
    aspect-ratio: 1/1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ececec;
    padding: 30px;
    opacity: 1;
    box-shadow: 3px 3px 10px #0000001c;
}

.mainhero5card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 0;
}

.mainhero5card:hover img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.mainhero5card.hovered123 img {
    opacity: 1;
}

.mainhero5card .btn {
    margin: auto;
}

.insideout {
    position: relative;
    z-index: 1;
}

.icon i {
    font-weight: 500;
    font-size: 40px;
    color: var(--primary);
    transition: all 0.3s ease-in-out;
}

.insideout p {
    text-transform: uppercase;
    font-weight: 500;
    margin: 25px 0 0;
    transition: all 0.3s ease-in-out;
}

.insideout h3 {
    margin: 20px auto 30px;
    font-size: 28px;
    transition: all 0.3s ease-in-out;
}

.mainhero5card .shadow567 {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: black;
    opacity: 0;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.mainhero5card:hover .insideout p,
.mainhero5card.hovered123 .insideout p {
    color: white;
}

.mainhero5card:hover .insideout h3,
.mainhero5card.hovered123 .insideout h3 {
    color: white;
}

.mainhero5card:hover .insideout .icon i,
.mainhero5card.hovered123 .insideout .icon i {
    color: white;
}

/* .mainhero5card:hover .insideout .btn,
.mainhero5card.hovered123 .insideout .btn {
    background: white;
    color: var(--primary);
} */

.mainhero5card:hover .shadow567,
.mainhero5card.hovered123 .shadow567 {
    opacity: .5;
}



@media (max-width:1199px) {
    .background3 {
        background: var(--primary);
        opacity: 1;
    }

    .mainimgs3 {
        position: relative;
        width: 100%;
        height: var(--mainheight);
        aspect-ratio: 16/9;
        z-index: 3;
    }

    img.fullright {
        height: initial;
        aspect-ratio: 16/9;
    }

    .hero3back {
        margin-bottom: 0;
        width: 100%;
        display: block;
        position: relative;
        padding: 40px 0;
    }

    .mainimgs3 ul.slick-dots {
        display: none;
    }

    :root {
        --mainheight: initial;
        --mainheight-offset: initial;
    }

    .mainarrow3 {
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    .mainarrow3.left {
        left: 0;
        right: initial;
    }

    .hero3back h1 {
        font-size: 40px;
        width: 100%;
    }

    .background3 {
        height: 100%;
    }

    .mainhero3 {
        display: block;
    }


}



/* cards */

@media (max-width:1199px) {
    .gridcardsmainhero5 {
        grid-template-columns: repeat(1, 1fr);
        transform: none;
        grid-gap: 30px;
        margin-top: 30px;
        margin: 30px 0 30px;
    }

    .mainhero5card {
        padding: 20px;
        max-height: 450px;
    }

    .mainhero5card .btn {
        margin: 20px auto 0;
    }

    .mainhero5card .shadow567 {
        opacity: .5;
    }

    .mainhero5card .btn {
        margin: auto;
    }

    .insideout p {
        margin: 15px 0 0;
        color: white;
    }

    .insideout h3 {
        margin: 15px auto 20px;
        font-size: 30px;
        color: white;
    }

    .icon i {
        font-size: 30px;
        color: white;
    }

    .mainhero5card img {
        opacity: 1;
    }

    .mainhero5card .shadow567 {
        opacity: .5 !important;
    }

    .mainhero5card:hover img {
        opacity: 1;
    }



}