

.scrolls2-containers {
    display: flex;
    align-items: center;
    position: relative;
}

.containers_2 {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 10px;
    width: 100%; /* Ensures container uses the full width of the parent */
    max-width: 1200px; /* Adjust the maximum width to hold more cards */
    /* Hide the scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.containers_2::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.cards {
    flex: 0 0 auto;
    width: 150px;
    height: 90px;
    margin-right: 20px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.cards h3 {
    margin: 10px 0;
}

.cards p {
    font-size: 12px;
    color: #555;
    margin: 0;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
}

.cards:hover {
    transform: scale(1.05);
}

.scrolls2-btns {
    /* Hide the buttons initially */
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.scrolls2-btns.left {
    left: 0;
}

.scrolls2-btns.right {
    right: 0;
}