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 0;
    /* padding: 10vh 10vw; */
    line-height: 2rem;
}

.promise {
    width: 40vw;
    height: fit-content;
    position: relative;
    padding-left: 2.5vw;
    margin-left: 10vw;
}

.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));
}
main h3 {
    font-size: 2rem;
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

main h3:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 5px;
    background-image: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
}

.products {
    padding: 10vh 10vw;
    background-color: rgba(0, 0, 0, 0.05);
    height: fit-content;
}
.products > div {
    margin-top: 5rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}
.p-header {  
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.p-header h4 {
    position: relative;
    display: block;
    margin: 0;
    padding-left: 1rem;
    font-size: 1.6rem;
    line-height: 1.6rem;
}
.p-header h4::before {
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgb(50, 115, 230), rgb(3, 19, 66));
}
.search_input {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.icn_search {
    width: 16px;
    height: 16px;
    background-image: url(../assets/Icons/search.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    margin-left: 10px;
}
.search_input input[type='text'] {
    font-size: 1.4rem;
    padding: 8px;
    width: 20rem;
    margin: 0;
    color: #000019;
    caret-color: #000019;
    border: none;
    
}
.search_input input[type='text']:focus {
    outline: none;
}
.p-main {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    padding: 4rem 0;
    position: relative;
    gap:2.5vw
}
.p-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 5vw);
    width: 10vw;
    height: 5px;
    background: linear-gradient(to right, #2243e5, #2e6be5);
}

.p-main .list {
    width: 20%;
}

.p-main .list ul li {
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    width: calc(100% - 1rem);
}
.p-main .list ul li:before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 5px;
    height: 50%;
    background: linear-gradient(to bottom, rgb(50, 115, 230), rgb(30, 80, 225));
}
.p-main .list ul li:hover:before {
    background: rgba(255, 255, 255, 0.9);
    z-index: 3;
}
.p-main .list ul li:after {
    content: '';
    position: absolute;
    top:calc(50% - 0.5rem);
    right: 1rem;
    width: 1rem;
    height: 1rem;
    background: url(../assets/Icons/right.svg) no-repeat center;
    background-size: 100%;
}

.p-main .list ul li:hover:after {
    background-image: url(../assets/Icons/right-white.svg);
    z-index: 3;
}

.p-main .list a {
    position: relative;
    display: block;
    padding: 0.8rem;
    padding-left: 1.6rem;
    color: #000019;
    z-index: 2;
}
.p-main .list a:hover {
    color: rgba(255, 255, 255, 0.9);
}
.p-main .list a:after {
    content: '';
    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: -1;
}
.p-main .list ul li a:hover:after {
    width: 100%;
}

.p-main .content {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem
}
.card {
    width: calc((100% - 3rem - 8rem) / 4);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 1rem;
}
.card:hover {
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.card strong > span {
    display: block;
    width: fit-content;
    margin: 0.5rem auto;
    position: relative;
    color: #000019;
}
.card strong > span:before {
    content: '';
    width: 60%;
    height: 2px;
    background-color: #2243e5;
    position: absolute;
    top: 0px;
    left: 20%;
}
.card img {
    width: calc(100%);
    aspect-ratio: 1/1;
    border-radius: 1rem;
}
.card p {
    line-height: 1rem;
}
.card .title,.card .sub-title {
    display: block;
    color: #000019;
}
.card .second-text {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
    
}


@media only screen and (max-width: 1023px) {
    main {
        padding-bottom: 0;
    }
    .page-title h3 {
        display: none;
    }

    .promise {
        margin-left: 5vw;
        text-align: justify;
        margin-top: 3rem;
        padding: 0 5vw;
        padding-left: 1rem;
        width: calc(100% - 15vw - 1rem);
    }
    .products {
        padding: 10vh 0;
    }
    .p-main {
        flex-direction: column;
    }
    .p-main .list {
        width: 100%;
    }
    .p-main .content {
        width: 100%;
        flex-direction: column;
    }
    
    .card {
        width: calc(100% - 2rem);
    }

}