.cards-container {
    width: 100%;
    max-width: 1400px;
    padding-top: 180px;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 auto;

    display: grid;

    /* 5 CARDS PER ROW */
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.35s ease;
    border: 1px solid #e6e6e6;
    cursor: pointer;

    /* IMPORTANT */
    display: flex;
    flex-direction: column;

    opacity: 0;

    transform:
        translateY(80px);

    transition:
        opacity 0.8s cubic-bezier(.22,1,.36,1),
        transform 0.8s cubic-bezier(.22,1,.36,1),
        box-shadow 0.35s ease;

    will-change:
        opacity,
        transform;
}

.card.revealed {

    opacity: 1;

    transform:
        translateY(0);
}

.card.revealed:hover {
    transform:
        translateY(-8px)
        scale(1.02);

    box-shadow:
        0 14px 28px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card-content {
    padding: 16px;

    /* IMPORTANT */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;

    margin-bottom: 14px;
    line-height: 1.3;

    /* LIMIT TO 2 LINES */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;
}


.info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #444;
    font-size: 0.8rem;
}

.info i {
    color: #777;
    width: 16px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* PUSH BUTTONS TO BOTTOM */
    margin-top: auto;

    padding-top: 18px;
}

.details-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid #1c4fb6;
    background: white;
    color: #1c4fb6;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

/* BUTTON HOVER EFFECT */
.details-btn:hover {
    background: #1c4fb6;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(28, 79, 182, 0.3);
}

.star {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: #f3f3f3;
    border: 1px solid #d6d6d6;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.3s ease;
}

.star i {
    color: #9b9b9b;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

/* HOVER */
.star:hover {
    transform: rotate(15deg) scale(1.1);
    background: #ffe08a;
    border-color: #f0d58a;
}

.star:hover i {
    color: #d4a017;
}

/* CLICKED / FAVORITED */
.star.active {
    background: #ffe08a;
    border-color: #f0d58a;
}

.star.active i {
    color: #d4a017;
}