
/* === Card Container === */
.container_card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* spacing between cards */
  justify-content: center; /* center align rows */
  margin: 40px auto;
  max-width: 1200px;
}
/* Card grid */
.card-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

/* Individual card */
.card {
    position: relative;
    flex: 1 1 calc(33.333% - 40px); /* 3 cards per row */
    max-width: 325px;
    min-width: 280px;
    height: 500px;
    background: #fff;
    margin: 10px;
    box-shadow: 0 5px 25px rgb(1 1 1 / 20%);
    border-radius: 10px;
    overflow: hidden;
}

/* Hide & show for pagination */
.card.hide {
    display: none;
}
.card.show {
    display: block;
    animation: show .5s ease;
}

@keyframes show {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card image */
.card-image {
    max-height: 200px;
}
.card-image img {
    width: 100%;
    height: auto;
}

/* Card info */
.card-info {
    position: relative;
    color: #222;
    padding: 5px 20px 20px;
}
.card-info h3 {
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 5px;
}
.card-info p {
    font-size: small;
    margin-bottom: 5px;
}

/* Button */
.btn {
    font-size: small;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgb(117, 170, 150);
    width: 100px;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
}
.btn:hover {
    background-color: rgb(90, 107, 101);
}

/* Pagination */
.pagination {
    width: 100%;
    margin-top: 30px; /* adds space above */
    padding: 15px;
    box-shadow: 0 5px 25px rgb(1 1 1 / 10%);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff; /* matches card background */
    border-radius: 10px;
}
.pagination .page {
    color: gray;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pagination .maxpage {
    color: gray;
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.pagination .prev,
.pagination .next {
    color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    font-size: 15px;
    padding: 7px 15px;
    cursor: pointer;
    box-shadow: 0 5px 25px rgb(1 1 1 / 10%);
    background-color: white;
    transition: background-color 0.3s ease;
}
.pagination .next:hover,
.pagination .prev:hover {
    background-color: #9eced7;
}
.pagination .prev.disabled,
.pagination .next.disabled {
    border-color: gray;
    color: gray;
    pointer-events: none;
    background-color: #fff;
}
