.benefit {
    width: 100%;
    padding: 35px;
    box-sizing: border-box;
    text-align: center;
}

.benefit h2, .benefit h1 {
    text-align: center;
    justify-content: center;
    align-items: center;
    color: var(--theme);
    font-weight: bold;
    font-size: 35px;
    display: flex;
    width: 100%;
    background-color: rgba(0,0,0,0);
}

.benefit p {
    text-align: center;
    font-size: 18px;
    display: block;
    width: 100%;
}

.benefit-line {
    border: 1px solid gray;
    border-radius: 25px;
    margin: 25px;
    width: 18%;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0px 0px 3px gray;
    vertical-align: top;
    transition: all 0.5s;
}

.benefit-line.select-cursor * {
    cursor: pointer;
}

.benefit-line:hover {
    border: 1px solid var(--theme);
    border-radius: 0px;
    box-shadow: 0px 10px 25px black;
}

.benefit-line .img-content {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
}

.benefit-line .img-content img {
    z-index: -10;
    width: 100%;
    height: 100%;
    transition: all 0.5s;
}

.benefit-line:hover img {
    filter: grayscale(1);
    margin-left: -20%;
    margin-top: -20%;
    width: 140%;
    height: 140%;
}

.benefit-line h2, .benefit-line div p {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    z-index: 10;
    text-align: center;
    padding: 10px;
    font-size: 18px;
}

.benefit-line h2 label {
    transition: all 1s;
    border-radius: 25px;
    border: 3px solid var(--theme);
    color: var(--theme);
    padding: 3px;
    font-weight: bold;
    margin-left: 5px;
}

.benefit-line:hover h2 label {
    border-radius: 0px;
    background-color: var(--theme);
    color: white;
}

.benefit-line div p {
    overflow-y: scroll;
    transition: all 0.5s;
    position: absolute;
    height: 250px;
    width: 100%;
    top: 100%;
}

.benefit-line div p::-webkit-scrollbar {
    width: 0px;
}

.benefit-line:hover div p {
    top: 0%;
}

.btn-benefit {
    transition: all 0.5s;
    padding: 10px;
    border: 3px solid gray;
    font-weight: bold;
    background-color: rgba(0,0,0,0);
    border-radius: 10px;
    box-shadow: 0px 0px 5px gray;
}

.btn-benefit:hover {
    box-shadow: 0px 0px 5px black;
    border-radius: 0px;
    background-color: gray;
    color: white;
}

.btn-benefit.btn-primary {
    border: 3px solid var(--theme);
    color: var(--theme);
}

.btn-benefit.btn-primary:hover {
    background-color: var(--theme);
    color: white;
}

@media only screen and (max-width: 1669px) {
    .benefit-line {
        width: 23%;
    }
}

@media only screen and (max-width: 1443px) {
    .benefit {
        padding-top: 35px;
        padding-bottom: 35px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .benefit-line {
        width: 26%;
    }
}

@media only screen and (max-width: 1190px) {
    .benefit-line {
        width: 30%;
        margin: 20px;
    }
}

@media only screen and (max-width: 1000px) {
    .benefit-line {
        width: 35%;
        margin: 15px;
    }
}

@media only screen and (max-width: 847px) {
    .benefit-line {
        width: 40%;
    }
}

@media only screen and (max-width: 695px) {
    .benefit-line {
        width: 45%;
        margin: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .benefit-line {
        width: 53%;
    }
}

@media only screen and (max-width: 500px) {
    .benefit-line {
        width: 400px;
    }
}

@media only screen and (max-width: 450px) {
    .benefit-line {
        width: 300px;
        height: auto;
    }
}

@media only screen and (max-width: 350px) {
    .benefit-line {
        width: 250px;
    }
}