.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

select {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    /* 👉 이 줄을 추가해야 줄바꿈 됩니다 */
}

.card {
    width: calc(33% - 20px);
    aspect-ratio: 1000 / 920;
    /* 비율 적용 (약 1.088) */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 애니메이션 적용 */
}

.card:hover {
    transform: scale(1.05);
    /* ✅ 살짝 확대 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    /* ✅ 그림자 진해짐 */
}

.card-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;

    background-repeat: no-repeat;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.logo-wrapper {
    box-sizing: border-box;
    flex-shrink: 1;
    padding: 1px;
    max-height: 160px;
    /* overflow: hidden; */
}

.card-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    top: 0;
    left: 0;
}

.overlay {
    padding: 12px;
    color: white;
    flex-grow: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.badge-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 5px;
    margin-bottom: 8px;
    ;
}

.badge.black {
    display: inline-block;
    /* ✅ 글자 길이에 맞게 */
    /* background-color: rgba(0, 0, 0, 0.5);*/
    /* ✅ 반투명하게 (0.5 ~ 0.7 정도 추천) */
    /* padding: 4px 10px; */
    font-size: 16px;
    font-weight: 900;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 100%;
    /* 긴 텍스트도 줄넘김 방지 */
    text-overflow: ellipsis;
    overflow: hidden;
}

.description {
    font-size: 14px;
    line-height: 1.4;
    max-height: none;
    /* 높이 제한 제거 */
    overflow: visible;
    text-overflow: unset;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    margin-left: 5px;
}

@media (max-width: 1000px) {
    .card {
        width: calc(50% - 20px);
        /* 2개씩 */
    }
}

@media (max-width: 600px) {
    .card {
        width: 100%;
        /* 1개씩 */
    }
}

@media (max-width: 1024px) {
    .description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .description {
        font-size: 12px;
    }
}

/* Hover Effects by Row */
.card-row:nth-of-type(1) .card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-row:nth-of-type(2) .card:hover .card-image {
    transform: scale(1.05);
}

.card-row:nth-of-type(3) .card:hover {
    transform: perspective(600px) rotateX(6deg);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-2px);
    }

    40%,
    80% {
        transform: translateX(2px);
    }
}

.card-row:nth-of-type(4) .card:hover {
    animation: shake 0.4s ease;
}

.card-row:nth-of-type(5) .card:hover {
    transform: perspective(600px) rotateY(12deg);
}

.loading-indicator {
    text-align: center;
    margin: 30px 0 60px;
    color: #555;
    font-size: 15px;
}

.loading-indicator .spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}