
.list {
    margin-top: 50px;
    position: relative;
}

.list h2 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
        
.list ul {
    position: relative;
}

.list ul li {
    position: relative;
    left: 0;
    color: #d4c092;
    list-style: none;
    margin: 4px 0;
    border-left: 2px solid #d4c092;
    transition: 0.5s;
    cursor: pointer;
    font-size: 24px;
    margin-bottom: 30px;
}

.list ul li span {
    position: relative;
    padding: 8px;
    padding-left: 12px;
    display: inline-block;
    z-index: 1;
    transition: 0.5s;
}

.list ul li:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #d4c092;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.5s;
}

.li-message {
  font-size: 24px;
  text-align: justify;
  color: #555;
  margin: 5px 0 15px 20px;
  opacity: 0;
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
}

.li-message.show {
  opacity: 1;
  max-height: 200px; /* Adjust as needed */
  visibility: visible;
}


@media only screen and (max-width: 800px) and (min-width: 300px){
    .list ul {
        padding-left: 0;
    }

    .li-message {
        font-size: 18px;
    }
}

@media (min-width: 800px) {
    .list ul li:hover span {
        color: #ffffff;
    }

    .list ul li:hover:before {
        transform: scaleX(1);
    }

    .list ul li:hover {
        left: 10px;
    }
}