.card {
    background-color: transparent;
    color: initial;
    cursor: initial;
    transform: initial;
    transition: all 0.3s ease 0.1s; /* Add a 0.1s delay before starting the transition */
    text-decoration: none;
}

.trending-cards,
.latest-cards {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.image-overlay {
    position: relative;
    max-width: 400px;
    max-height: 300px;
    overflow: hidden;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.card:hover {
    background-color: rgba(237, 167, 32, 0.7);
    cursor: pointer;
    transform: scale(1.03);
    transition: all 0.3s ease;
}

.card-container {
    max-width: 350px;
    max-height: 250px;
    overflow: hidden; /* Hide any overflow from content */
}

.thumbnail-container {
    width: 100%;
    height: 200px; /* Set a fixed height for the thumbnail */
    overflow: hidden; /* Hide any overflow from the thumbnail */
    position: relative;
}

.thumbnail-img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and cover the container */
}

@media screen and (max-width: 768px) {
    .image-overlay {
        max-width: 100%; /* Adjust the max-width to 100% for smaller screens */
    }
}

/* Add any additional styling you need */
