/* Card Carousel Styles */
.card-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: transparent;
    box-sizing: border-box;
    overflow: hidden;
}

/* Filter Tabs */
.carousel-filters {
    width: 600px;
    height: 35px;
    position: relative;
    background-color: #ded5c2;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ffffff;
    margin: 0 auto 40px auto;
}

.carousel-filters .board-text {
    position: absolute;
    top: 3px;
    left: 21px;
    width: 169px;
    height: 29px;
    z-index: 1;
    background-image: url('../images/Board Text.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: left 0.3s ease;
    pointer-events: none;
}

.filter-tab {
    position: absolute;
    top: 10px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-family: "ABFlockText", "ABFlockHeadline-Regular", Arial, sans-serif;
    font-weight: 400;
    color: #7b4211;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    z-index: 2;
}

.filter-tab[data-filter="ALL"] {
    left: 95px;
}

.filter-tab[data-filter="INDOOR"] {
    top: calc(50% - 8px);
    left: calc(50% - 23px);
}

.filter-tab[data-filter="OUTDOOR"] {
    left: 474px;
}

.filter-tab.active {
    color: #ffffff;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.carousel-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-prev {
    left: 0;
}

.carousel-prev img {
    transform: none;
}

.carousel-next {
    right: 0;
}

.carousel-next img {
    transform: scaleX(-1);
}

/* Carousel Track */
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    overflow: hidden;
    width: 100%;
}

/* Carousel Cards */
.carousel-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    background: transparent;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.carousel-card.hidden {
    display: none;
}

.carousel-card .card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 88%; /* 350x308 aspect ratio */
    overflow: visible;
    border-radius: 0;
    background: transparent;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}


.carousel-card .card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    z-index: 0;
}

.carousel-card .card-title {
    margin: 0;
    padding: 20px 15px;
    font-size: 24px;
    font-weight: bold;
    color: #7b4211;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fdf8ed;
    border-radius: 0 0 20px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #666;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}


.pagination-dot.active {
    background-color: #ff0000;
    width: 14px;
    height: 14px;
}

/* Explore More Button */
.carousel-explore-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.explore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-image: url('../images/Board Text (1).svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    padding: 12px 30px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    font-family: "ABFlockText", "ABFlockHeadline-Regular", Arial, sans-serif;
    text-transform: lowercase;
    position: relative;
    min-width: 200px;
    height: 40px;
}


.explore-btn img {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .carousel-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
    
    .carousel-container {
        padding: 0 50px;
    }
}

@media screen and (max-width: 768px) {
    .card-carousel-wrapper {
        padding: 15px;
    }
    
    .carousel-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .carousel-container {
        padding: 0 15px;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
    }
    
    .carousel-filters {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .filter-tab {
        padding: 10px 12px;
        font-size: 13px;
        min-width: auto;
    }
    
    .filter-tab[data-filter="ALL"] {
        left: 8px;
    }
    
    .filter-tab[data-filter="INDOOR"] {
        left: calc(50% - 25px);
    }
    
    .filter-tab[data-filter="OUTDOOR"] {
        right: 8px;
        left: auto;
    }
    
    .carousel-filters .board-text {
        left: 3px;
        width: calc(33.33% - 6px);
    }
}

