.description-container {
    position: relative;
    max-width: 100%;
}

.description-wrapper {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    /* Adjust this for the height of each line */
    max-height: calc(1.5em * 5);
    /* Matches the number of lines */
    white-space: normal;
}


.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    /* Smaller font size */
    padding: 8px 16px;
    /* Padding for a small, rounded button */
    font-weight: 600;
    /* Slightly bolder font */
    color: #ffffff;
    /* White text color */
    background-color: #4f4eea;
    /* Bright blue background similar to the image */
    border: none;
    /* No border */
    border-radius: 50px;
    /* Fully rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.toggle-label:hover {
    background-color: #007bff;
    color: #ffffff;
}

.toggle-checkbox:checked~.description-wrapper {
    max-height: none;
    /* Show full content when expanded */
}

.toggle-checkbox:checked+.description-wrapper+.toggle-label::after {
    content: ' Show less';
}

.toggle-label::after {
    content: ' Read more';
    /* Default text when collapsed */
    display: inline;
    font-weight: normal;
}