/* Ensure all boxes are the same size */
.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out content evenly */
    align-items: center;
    text-align: center;
    height: 300px; /* Fixed height for all boxes */
    width: 100%; /* Ensure boxes adapt to the column size */
    padding: 20px;
    overflow: hidden; /* Prevent overflowing content */
    box-sizing: border-box; /* Include padding in dimensions */
}

/* Handle long text gracefully */
.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevent text from wrapping */
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden; /* Hide extra text */
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

/* Read More button styling */
.read-more {
    margin-top: auto; /* Push to the bottom of the box */
    color: #007bff;
    text-decoration: none;
}
.service-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.service-slider {
    display: flex;
    gap: 15px; /* Space between boxes */
    transition: transform 0.3s ease-in-out;
}

.service-item {
    flex: 0 0 calc(100% / 4); /* Adjust number of visible boxes, e.g., 4 in a row */
    box-sizing: border-box;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev-arrow, .next-arrow {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
}

.prev-arrow:hover, .next-arrow:hover {
    background-color: #333;
}
