#markets{
    position: relative;
    /* background: url('../../images/services.png') no-repeat center center/cover; */
}

.market-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;
}

.markets {
    /*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; */
}
.markets-title {
    color: black;
    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;
}

.markets .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 5em;
    max-width: 1200px;
    /*width: 100%;*/
    /*background-color:blue;*/
}

.markets .card-container .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 0.5em;
    /*background-color: red;*/
}


.markets .card img {
    width: 40%;
    height: auto;
    display: block;
    margin: auto;
}

/* Content styling */
.markets .card-content {
    padding: 16px;
}

.markets .card-content h3 {
    font-size: 18px;
    color: rgb(75, 75, 75);
    margin-bottom: 8px;
}

.markets .card-content p {
    font-size: 14px;
    color: rgb(75, 75, 75);;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Footer styling */
.markets .card-footer {
    font-size: 12px;
    /* color: #4CAF50; */
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .markets, .card-container, .card {
        grid-template-columns: 1fr;
    }
    
    .card-container, .card-container .card{
        padding: 0 !important;
    }
    .services .service{
        padding: 0 !important;
    }
    .markets .card img {
        width: 25%;
        height: auto;
        display: block;
        margin: auto;
    }
    #markets{
        padding: 1em;
    }
    
    .markets .card img {
        margin: 0;
        padding-left: 0.5em;
    }

}