/* ====================================================
   Carousel (Reviews) - FIXED
   ==================================================== */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.carousel-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Arrows - Using Pseudo-elements to prevent duplication if HTML has issues, 
   but here we are styling the div itself. 
   If double arrows appear, check IF ::after is being used on top of text content. */
.carousel-nav-layer {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #8B4513;
    /* Standard Brown (SaddleBrown) */
    border: 2px solid #fff;
    /* White border for contrast */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    /* White Arrow */
    transition: all 0.3s;
    text-decoration: none;
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-nav-layer:hover {
    background: #fff;
    /* Invert on hover */
    color: #8B4513;
    border-color: #8B4513;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-layer.prev {
    left: 10px;
}

/* Ensure content is only added via CSS if the div is empty in HTML */
.carousel-nav-layer.prev::after {
    content: "←";
}

.carousel-nav-layer.next {
    right: 10px;
}

.carousel-nav-layer.next::after {
    content: "→";
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 80%;
    }

    .carousel-nav-layer {
        display: flex !important;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}