.custom-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.custom-carousel {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex: 0 0 calc(25% - 15px); /* 4 in a row with spacing */
    display: flex;
    flex-direction: column;
    color: #222;


}
@media screen and (max-width: 782px){
.carousel-item {
    flex: 0 0 calc(100% - 15px); /* 4 in a row with spacing */
    display: flex;
    flex-direction: column;
    color: #222;


}	
	
}

.carousel-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.carousel-content {
  
    padding: 15px 0;
    flex-grow: 1;
}

.carousel-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.carousel-tag {
    background: #1da1f2;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

.carousel-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0; color:#222;
}

.carousel-meta {
    font-size: 12px;
    opacity: 0.8;
}

/* Navigation Arrows */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 5;
}
.carousel-prev {
    left: 0;
}
.carousel-next {
    right: 0;
}
