/* Icon Grid Container */
.icon-grid-container {
    width: 100%;
    padding: 40px 0;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    gap: 50px;
    max-width: 1400px;
    margin: 0;
    padding: 0 40px;
}

/* Icon Grid Item */
.icon-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Icon Box - Zelfde stijl als carrousel */
.icon-grid-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.icon-grid-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.icon-grid-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.icon-grid-box:hover img {
    transform: scale(0.85);
}

/* Icon Label */
.icon-grid-label {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    max-width: 180px;
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
    .icon-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .icon-grid-container {
        padding: 30px 0;
    }
    
    .icon-grid {
        gap: 30px;
        padding: 0 20px;
    }
    
    #<?php echo $grid_id; ?> .icon-grid-box {
        width: 130px !important;
        height: 130px !important;
    }
    
    .icon-grid-label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .icon-grid {
        gap: 20px;
        padding: 0 20px;
    }
    
    .icon-grid-item {
        gap: 10px;
    }
    
    #<?php echo $grid_id; ?> .icon-grid-box {
        width: 140px !important;
        height: 140px !important;
    }
    
    .icon-grid-label {
        font-size: 16px;
        max-width: 140px;
    }
}

/* Optional: Stagger Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-grid-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

/* Stagger effect voor meerdere items */
.icon-grid-item:nth-child(1) { animation-delay: 0.05s; }
.icon-grid-item:nth-child(2) { animation-delay: 0.1s; }
.icon-grid-item:nth-child(3) { animation-delay: 0.15s; }
.icon-grid-item:nth-child(4) { animation-delay: 0.2s; }
.icon-grid-item:nth-child(5) { animation-delay: 0.25s; }
.icon-grid-item:nth-child(6) { animation-delay: 0.3s; }
.icon-grid-item:nth-child(7) { animation-delay: 0.35s; }
.icon-grid-item:nth-child(8) { animation-delay: 0.4s; }
.icon-grid-item:nth-child(9) { animation-delay: 0.45s; }
.icon-grid-item:nth-child(10) { animation-delay: 0.5s; }
.icon-grid-item:nth-child(11) { animation-delay: 0.55s; }
.icon-grid-item:nth-child(12) { animation-delay: 0.6s; }
