#whatNext{
    position: relative;
    background-color: white
    /* background: url('../../images/marketcover.png') no-repeat center center/cover; */
}

.next-cover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 248, 248, 0.479);
    opacity: 0.3;
    z-index: 1;
}

.next {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 5em;
    padding-top: 0;
    z-index: 2;
    /* background-color: white; */
}
.next-title {
    color: rgb(62, 62, 62);
    position: relative;
    display: grid;
    padding: 20px;
    text-align: center;
    /* background-color: white; */
    padding-bottom: 0.7em;
    font-family: 'Open Sans', sans-serif;
    z-index: 2;
}

.next-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    max-width: 1200px;
    width: 100%;
}

.next .card {
    position: relative;
    display: flex;
    flex-direction: row;
    border: none;
    border-radius: 8px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    background-color: white;
    transition: transform 0.3s ease;
    padding: 0.5em;
}

/* Add hover effect */
.next .card:hover {
    /* transform: scale(1.05); */
}

.next .card img {
    width: 30%;
    height: 50%;
    display: block;
    margin: auto auto;

}

/* Content styling */
.next .card-content {
    padding: 16px;
}

.next .card-content h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 8px;
}

.next .card-content p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Footer styling */
.next .card-footer {
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .next-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .next, .next-container, .card {
        grid-template-columns: 1fr;
    }
    
    .next-container, .card{
        padding: 0 !important;
    }
    
    .next{
        padding: 2em;
    }
    
    .next h1, h3{
        font-size: 14px;
        padding: 0em;
    }
    
     .next-container .card {
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    .next .card img {
        height: 50%;
        margin: auto auto;
    }
    
    p{
        font-size: 12px;
    }
}