header {
    height: 30vh;
    background: url(../assets/products.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

header .page-title {
    background-image: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
    width: 40vw;
    height: 15vh;
    position: absolute;
    bottom: -7.5vh;
    left: 0;
    padding-left: 10vw;
}

main {
    color: #000019;
    padding: 10vh 10vw;
    line-height: 2rem;
}

.promise {
    width: 40vw;
    height: fit-content;
    position: relative;
    padding-left: 2.5vw;
}

.promise:before {
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to bottom, rgb(50, 115, 230), rgb(3, 19, 66));
}
.products>div {
    display: flex;
    gap: 5vw
}

.products>div>div {
    width: calc((100% - 320px) / 3);
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    padding: 40px;
}

.products .headimg {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.5s ease;
    margin: -40px;
    margin-bottom: 20px;
}

.products>div>div .headimg:hover {
    transform: scale(1.1);
    transition: all 0.5s ease;
    cursor: pointer;
}

.products .headimg.onepro {
    background-image: url(../assets/emc.jpg);
}

.products .headimg.twopro {
    background-image: url(../assets/energyproducts.jpg);
}

.products .headimg.threepro {
    background-image: url(../assets/transformer.jpg);
}

.products>div>div h4 {
    color: #2864e6;
    font-size: 1rem;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* number of lines to display */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products>div>div h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 3px;
    background-image: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
}
.products>div>div h1 { 
    font-size: 1.5rem;
}
.products p {
    text-align: justify;
    line-height: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* number of lines to display */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 10rem;
}
.products p,
.products a {
    font-size: 1rem;
}

.products a {
    display: block;
    border-radius: 1rem;
    width: fit-content;
    height: fit-content;
    position: relative;
    transition: all 0.25s ease;
    transform-origin: left;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0 1rem;
}

.products span {
    color: #000019;
    z-index: 2;
    position: relative;
    text-align: center;
}

.products a:hover span {
    color: #fff;
}

.products a:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    max-width: none;
    max-height: none;
    top: initial;
    transition: all 0.25s ease;
    background: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
    transform-origin: left;
    border-radius: 1rem;
    z-index: 0;
}

.products a:hover {
    border: 1px solid rgba(0, 0, 0, 0);
}

.products a:hover:after {
    width: 100%;
}


@media only screen and (max-width: 1023px) {
    .page-title h3 {
        display: none;
    }
    .promise {
        text-align: justify;
        margin-top: 5rem;
        width: calc(100% - 10vw);
        padding-left: 5vw;
    }
    .products>div {
        flex-direction: column;
    }
    .products>div>div {
        width: calc(100% - 20vw);
    }
    .products .headimg {
        height: 30vh;
    }

}