/* Optimized Explore Categories Grid for Sub Dukan */
.explore-container {
    width: 100%;
    max-width: 1240px; 
    margin: 20px auto;
    padding: 0 10px;
}

.explore-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-align: left; 
    font-family: 'Poppins', sans-serif;
}

/* Grid Layout: Desktop - 8 items per row */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    gap: 12px;
}

/* Card Styling */
.explore-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #f4a51c; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 165, 28, 0.2);
}

.explore-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.explore-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .explore-container {
        padding: 0 8px;
    }
    
    .explore-grid {
        /* Show exactly 4 items in a row on mobile */
        grid-template-columns: repeat(4, 1fr); 
        gap: 8px;
    }
    
    /* HIDE IDs: 1, 6, 7, 8 on mobile as requested */
    .explore-card[data-id="1"],
    .explore-card[data-id="6"],
    .explore-card[data-id="7"],
    .explore-card[data-id="8"] {
        display: none;
    }

    .explore-card {
        border-width: 1px;
        border-radius: 8px;
    }

    .explore-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
}