/* Carousel Layout */
.editor-picks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.carousel-nav {
    display: flex;
    gap: 1rem;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Carousel Container */

.carousel-items {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem; /* Space for scrollbar */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-items::-webkit-scrollbar {
    display: none;
}

/* Carousel Items */
.carousel-item {
    flex: 0 0 calc((100% - 6rem) / 3); /* 3 items with 3rem gap between */
    max-width: calc((100% - 6rem) / 3);
    padding: 1rem;
    background: var(--bg);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Small Tablet: 2 items */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc((100% - 3rem) / 2); /* 2 items with 3rem gap between */
        max-width: calc((100% - 3rem) / 2);
    }
}

/* Mobile: 1 item */
@media (max-width: 500px) {
    .carousel-item {
        flex: 0 0 100%; /* Single item takes full width */
        max-width: 100%;
    }
}
