#contents h1,
#contents p {
    color: rgb(49, 49, 49);
}

#contents .content-card {
    padding: 0px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    box-shadow: 3px 3px 7px rgb(0 0 0 / 16%);
    transition: transform 0.3s ease;
    position: relative;

}

#contents .content-card:hover {
    transform: translateY(-5px);
}

#contents .content-card .content-img {
    position: relative;
}

#contents .content-card img {
    width: 100%;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
}

/* Light overlay at bottom */
#contents .content-card .content-img::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50%;
    width: 100%;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent); */
    z-index: 1;
}


/* Centered meta overlay */
#contents .content-meta {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
}

#contents .content-meta h5 {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

#contents .badge {
    background-color: var(--primary-color);
    padding: .5rem 1rem;
}

.content-description {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
background: linear-gradient(359deg, rgb(0 0 0), rgb(0 0 0 / 0%));

}

.content-description h5 {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Call-to-action button */
#contents button {
    background-color: var(--primary-color);
    color: white;
    width: 90%;
    border-radius: 8px;
    padding: 0.6rem;
    font-weight: 500;
    margin: 0 auto 1rem auto;
    display: block;
    transition: background-color 0.2s ease;
}

#contents button:hover {
    background-color: #125aa3;
}

#contents button p {
    margin: 0;
}