.cards-container {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.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: 220px;
    object-fit: cover;
}

.card-content {
    padding: 22px 26px;

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

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

    margin-bottom: 16px;
    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: 12px;
    margin-bottom: 12px;
    color: #444;
    font-size: 1.05rem;
}

.info i {
    color: #777;
    width: 18px;
    flex-shrink: 0;
}

.info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

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

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

    padding-top: 16px;
}

.details-btn {
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid #1c4fb6;
    background: white;
    color: #1c4fb6;
    font-weight: 600;
    font-size: 1rem;
    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: 48px;
    height: 48px;
    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.2rem;
    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;
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .card-image {
        height: 180px;
    }
    .card-title {
        font-size: 1.4rem;
    }
    .card-content {
        padding: 18px 22px;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card-image {
        height: 160px;
    }
    .card-title {
        font-size: 1.25rem;
    }
    .card-content {
        padding: 14px 18px;
    }
    .info {
        font-size: 0.95rem;
    }
    .details-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .card-image {
        height: 200px;
    }
    .card-title {
        font-size: 1.4rem;
    }
    .card-content {
        padding: 18px 22px;
    }
}