/* Market Section Styles */

.market-section-blocks {
    padding: 60px 0;
    background-color: #fff;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.market-item {
    text-align: center;
    cursor: pointer;
}

.market-item-title {
    color: #0088cc;
    /* Match the blue from the screenshot/theme */
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.market-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    /* Enforce a consistent aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    /* Fallback */
}

.market-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    display: block;
}

/* Hover Effects */
.market-item:hover .market-img {
    transform: scale(1.08);
}

.market-item:hover .market-item-title {
    color: #0056b3;
    /* Darker blue on hover */
    text-decoration: underline;
}

/* Responsive Breakpoints */

/* Tablet (Landscape) */
@media (max-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet (Portrait) */
@media (max-width: 991px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .market-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}