﻿/* === ICON CAROUSEL === */
.section.top-icon {
    padding: 30px 0;
    background: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carousel-wrapper.dragging {
        cursor: grabbing;
    }

.carousel-track {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    min-height: 180px;
    flex-wrap: nowrap;
}

.carousel-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

    .carousel-item:hover {
        transform: translateY(-2px);
    }

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-image-button {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #0033A1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 15px rgba(0, 51, 161, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

    .icon-image-button img {
        width: 55%;
        height: 55%;
        object-fit: contain;
        pointer-events: none;
        transition: filter 0.3s ease;
    }

    .icon-image-button:hover {
        border-color: #888;
        background-color: #0033A1;
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 51, 161, 0.3);
    }

        .icon-image-button:hover img {
            filter: brightness(0) saturate(100%) invert(75%) sepia(29%) saturate(621%) hue-rotate(125deg) brightness(95%) contrast(92%);
        }

.icon-label {
    font-family: 'Roboto', sans-serif;
    color: #0033A1;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 10px;
        justify-content: flex-start;
    }

    .carousel-track {
        gap: 20px;
        min-height: 160px;
        padding: 15px 0;
        justify-content: flex-start;
    }

    .icon-image-button {
        width: 75px;
        height: 75px;
        border-width: 3px;
    }

    .icon-label {
        font-size: 11px;
        max-width: 85px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .carousel-track {
        gap: 15px;
        min-height: 140px;
        padding: 10px 0;
        justify-content: flex-start;
    }

    .icon-image-button {
        width: 65px;
        height: 65px;
        border-width: 3px;
        margin-bottom: 8px;
    }

        .icon-image-button img {
            width: 50%;
            height: 50%;
        }

    .icon-label {
        font-size: 10px;
        font-weight: 500;
        max-width: 75px;
        line-height: 1.2;
    }
}

@media (max-width: 320px) {
    .carousel-wrapper {
        padding: 0 5px;
        justify-content: flex-start;
    }

    .carousel-track {
        gap: 12px;
        padding: 8px 0;
        justify-content: flex-start;
    }

    .icon-image-button {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .icon-label {
        font-size: 9px;
        max-width: 65px;
    }
}

@media screen and (min-width: 769px) {
    .carousel-track {
        min-width: max-content;
        margin: 0 auto;
    }
}
