main{

    *{
        box-sizing: border-box;
    }

    .card-container{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
        margin-top: 60px;
    }
    .card{
        width: 325px;
        background-color: hsla(0, 0%, 0%, 0.502);
        border-radius: 10px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        transition: transform 0.6s ease;
    }
    .card p{
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-height: 16px;
        max-height: 64px; /* Limiting to 2 lines */
        -webkit-line-clamp: 4; /* Specify the number of lines */
        -webkit-box-orient: vertical;
    }
    .card:hover{
        transform: translateY(-20px);
    }
    .card img{
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .card-content{
        padding: 0 20px 20px 20px;
    }
    .card-content h1{
        font-size: 24px;
        margin-bottom: 10px;
    }
    .card-content p{
        font-size: 15px;
        color: antiquewhite;
        margin-bottom: 20px;
    }
    .card-button{
        display: inline-block;
        background-color: rgb(220, 18, 65);
        color: rgb(251, 251, 251);
        text-decoration: none;
        border-radius: 5px;
        padding: 8px 16px;
    }
}