/* HAF Design Carousel - horizontal slider with sized tiles */
.haf-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.haf-carousel {
    --haf-visible: 7;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.haf-carousel::-webkit-scrollbar {
    display: none;
}

.haf-carousel-tile {
    flex: 0 0 calc((100% - (var(--haf-visible) - 1) * 16px) / var(--haf-visible));
    max-width: none;
    min-width: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.haf-card-art {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
}

.haf-card-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.haf-card-cta {
    display: inline-block;
    margin: 12px 0 16px;
    padding: 10px 24px;
    background: #39FF14;
    color: #000;
    font-weight: bold;
    text-decoration: none !important; /* WP global link styles underline links; beat them */
    border-radius: 4px;
    font-size: 14px;
}

.haf-card-cta:hover {
    background: #2dd60f;
    color: #000;
}

.haf-carousel-prev,
.haf-carousel-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #39FF14 !important;
    font-size: 56px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    text-shadow: 0 0 12px rgba(57,255,20,.8) !important;
}

.haf-carousel-prev {
    left: 0;
}

.haf-carousel-next {
    right: 0;
}

.haf-carousel-prev:hover,
.haf-carousel-next:hover {
    background: transparent !important;
    color: #39FF14 !important;
    text-shadow: 0 0 18px rgba(57,255,20,1) !important;
}

@media (max-width: 1024px) {
    .haf-carousel {
        --haf-visible: 5;
    }
    /* Button must fit a ~172px tile in one line — shrink it (was 14px/24px, wrapped to 2 lines). */
    .haf-card-cta {
        font-size: 13px;
        padding: 9px 18px;
    }
}

@media (max-width: 768px) {
    .haf-carousel-wrapper {
        padding: 0 40px;
    }
    .haf-carousel {
        --haf-visible: 4;
    }
    /* Button must fit a ~160px tile in one line. */
    .haf-card-cta {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .haf-carousel {
        --haf-visible: 3;
    }
    /* Tiles are only ~95px wide on a phone — a 14px button wrapped to 3 lines and
       became a ~95px-tall green block. Shrink it so it wraps to at most 2 lines. */
    .haf-card-cta {
        font-size: 11px;
        padding: 7px 10px;
        line-height: 1.3;
    }
}
