/* ============================================================
   Category List For Archive - category-list.css
   Line-art icons with soft peach circle blob behind
   ============================================================ */

/* Carousel outer wrap: arrows are absolutely positioned over the track */
.cla-carousel-wrap {
    position: relative;
}

/* Row wrapper / carousel track */
.cla-row-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cla-row-wrap::-webkit-scrollbar {
    display: none;
}

/* Arrow buttons - overlaid on the track, not beside it */
.cla-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #ea4335!important;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity:0.7;
}

.cla-arrow:hover{
    opacity:1!important;
}

.cla-arrow-prev {
    left: -4px;
}

.cla-arrow-next {
    right: -4px;
}

.cla-arrow:hover:not(:disabled) {
    background: #fff;
}

.cla-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Hide arrows entirely when the row doesn't overflow (all items fit) */
.cla-carousel-wrap.cla-no-overflow .cla-arrow {
    display: none;
}

/* Each item */
.cla-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 80px;
    text-align: center;
    padding:10px 0px;
}

.cla-item:hover {
    transform: translateY(-4px);
    text-decoration: none !important;
}

/* Icon container - positions blob and icon */
.cla-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Peach blob behind the icon (offset top-right) */

.cla-item:hover .cla-blob {
    transform: scale(1.08);
}

/* The line-art icon */
.cla-icon-img {
    position: relative;
    width: 90px;
    display: block;
}

/* Title label */
.cla-title {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    transition: color 0.25s ease;
}



/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
    .cla-row-wrap {
        gap: 24px;
    }
    .cla-icon-img {
        width: 70px;
        height: 70px;
    }
}

/* Tablet ≤ 768px - horizontal scroll */
@media (max-width: 768px) {
    .cla-row-wrap {
        gap: 20px;
    }
    .cla-item {
        min-width: 75px;
    }
    
    .cla-icon-img {
        width: 70px;
        height: 70px;
    }
    .cla-title {
        font-size: 14px;
    }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
    .cla-arrow {
        width: 32px;
        height: 32px;
    }
    .cla-arrow svg {
        width: 18px;
        height: 18px;
    }
    .cla-arrow-prev {
        left: -8px;
    }
    .cla-arrow-next {
        right: -8px;
    }
    .cla-row-wrap {
        gap: 16px;
    }
    .cla-blob {
        top: -3px;
        right: -3px;
    }
    .cla-icon-img {
        width: 70px;
        height: 70px;
    }
    .cla-title {
        font-size: 14px;
    }
}
