/* ============================================================
   Card Fix v3 - 카드 전용 스타일 (다른 요소에 영향 없음)
   ============================================================ */

/* 카드 전체: 높이 100% + flex 레이아웃 */
.company-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.company-card:hover {
    box-shadow: 0 10px 25px -3px rgba(0,0,0,.08);
    transform: translateY(-5px);
    border-color: transparent;
}
.company-card.is-premium {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffef5 0%, #fff 30%);
}
.company-card.is-premium::before {
    content: 'PREMIUM';
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 36px;
    letter-spacing: 1px;
    z-index: 2;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* 카드 이미지: 여백 없이 꽉 채움 */
.company-card .card-image {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    padding: 0;
    margin: 0;
    line-height: 0;
    flex-shrink: 0;
}
.company-card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.company-card:hover .card-image img {
    transform: scale(1.06);
}

/* 카드 본문 */
.company-card .card-body {
    padding: 16px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 업체명: 1줄 */
.company-card .card-company-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 슬로건: 1줄 고정 */
.company-card .card-slogan {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 18px;
}

/* 태그: 1줄, 넘치면 숨김 */
.company-card .card-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    height: 24px;
}
.company-card .card-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 메타: 하단 고정 */
.company-card .card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* 로고 오버레이 */
.company-card .card-logo {
    position: absolute;
    bottom: -18px;
    left: 16px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 3px solid #fff;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    line-height: normal;
}

/* 반응형 */
@media (max-width: 767px) {
    .company-card .card-image { height: 130px; }
    .company-card .card-body { padding: 12px !important; }
    .company-card .card-company-name { font-size: 13px; }
}
