/* Position the scroller container */
.category-scroller {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 60px;
    border-radius: 8px;
    display:flex;
    justify-content: flex-start;
}

/* Ensure items are in a row */
.category-scroller-inner {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}




.category-item {
    flex: 0 0 auto;
    width: 400px; /* Adjust width as needed */
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden; /* Ensures no content spills out */
}

.category-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 10px 0;
    overflow: hidden;
    word-wrap: break-word; /* Break long words */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limits to 3 lines */
    max-height: 4.5em; /* Adjust height to match line-clamp */
    text-overflow: ellipsis;
    white-space: normal; /* Ensures wrapping */
}

.category-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-read-more {
    display: block;
    margin-top: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.category-read-more:hover {
    text-decoration: underline;
}

/* Hide scrollbar */
.category-scroller-inner::-webkit-scrollbar {
    display: none;
}
.category-scroller-inner {
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.category-thumbnail {
    width: 100%; /* Ensures responsiveness */
    aspect-ratio: 4 / 2.17; /* Maintains 16:9 aspect ratio */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Style for left & right scroll arrows */
.scroller-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
	padding:0px;
}



/* Position the arrows */
.scroller-left {
    left: 1em;
}

.scroller-right {
    right: 1em;
}

.scroller-arrow img {
    width: 60px; /* Adjust size as needed */
    height: auto;
    transition: filter 0.1s ease-in-out;
}

/* Change from black (#000000) to red (#e10f14) on hover */
.scroller-arrow:hover img {
    filter: invert(13%) sepia(92%) saturate(5805%) hue-rotate(357deg) brightness(90%) contrast(120%);
}

/* here we go with media quries*/


@media screen and (max-width: 768px){


    .scroller-arrow {
        display: none;
    }
    .category-scroller{
        padding: 0px;
        justify-content: flex-start;
    }

    .category-scroller-inner {
        padding: 0px;
        justify-content: flex-start;
      }
      
   
}

@media screen and (min-width: 1024px) {
    /* Center items on big screens */
    .category-scroller-inner {
        justify-content: center;
    }

    .category-scroller {
        justify-content: center;
    }
}