/* ============================================================
 * 목록 페이지 전용
 * ============================================================ */

.card-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.card-link,
.card-link:hover {
    text-decoration: none !important;
}

.customer-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
    transition: transform 0.2s ease;
    margin-bottom: 50px;
    height: 362px;
}
.customer-card:hover {
    transform: translateY(-4px);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    z-index: 2;
    background-color: #f5f5f5;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.card-body {
    padding: 8px 12px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
    color: #000;
    font-weight: 600;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-text {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 0;
    color: #666;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-link-only {
    color: #3f2b80;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 3;
}
.text-small-title {
    color: #3f2b80;
    font-weight: 500;
}

/* 카드 오버레이 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    border-radius: 8px;
    z-index: 1;
    text-decoration: none;
}
.card-link:hover .card-overlay {
    background-color: rgba(0, 0, 0, 0.08);
}
.card-link:hover .text-link-only {
    color: #3f2b80;
    text-decoration: none !important;
}

/* ============================================================
 * 페이지네이션 스타일
 * ============================================================ */
#experience-pagination {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0 60px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #3f2b80;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background-color: #f5f5f5;
    border-color: #3f2b80;
    color: #2e2060;
}

.page-item.active .page-link {
    background-color: #3f2b80;
    border-color: #3f2b80;
    color: #fff;
    cursor: default;
}

.page-item.disabled .page-link {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    background-color: #fafafa;
}

.page-item.disabled .page-link:hover {
    background-color: #fafafa;
    border-color: #eee;
}

#experience-pagination .text-center {
    margin-top: 16px;
    font-size: 0.9rem;
}

/* ============================================================
 * 반응형 스타일
 * ============================================================ */
@media (max-width: 768px) {
    .pagination {
        gap: 4px;
    }
    .page-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.9rem;
    }
    #experience-pagination {
        margin: 30px 0 40px;
    }

    .img-wrapper {
        height: 180px;
    }
}