/* Card Container */
.card {
    position: relative;
    height: 200px;
    /* Adjust card height */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Card Hover Effect */
.card:hover {
    transform: scale(1.05);
}

/* Card Image */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the card area */
    display: block;
    border-radius: 8px;
}

/* Text Container (Overlay) */
.card-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text */
    color: #fff;
    padding: 10px;
    text-align: center;
    transition: max-height 0.3s ease;
    max-height: 40px;
    /* Initial height showing only title */
    overflow: hidden;
}

/* Card Title */
.card-title {
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Card Description (Initially Hidden) */
.card-description {
    margin: 10px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    color: #fff;
    /* Offset for animation */
}

/* Expand Text on Hover */
.card:hover .card-text {
    max-height: 100px;
    /* Allow the container to grow dynamically */
}

.card:hover .card-description {
    opacity: 1;
    /* Fade in description */
    transform: translateY(0);
    /* Smooth animation */
}