/* consulting-list.css — 서비스안내 목록 페이지 전용 스타일 (정적 파일로 이관: src/utils.ts showConsultingList) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 10px 170px 10px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* PC 화면용 그리드 (기본 표시) */
.posts-grid-desktop {
    display: grid;
}

/* 모바일 화면용 그리드 (기본 숨김) */
.posts-grid-mobile {
    display: none;
}
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 968px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 기본(공통) 카드 스타일 ───────────────────────────── */
.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* 레이아웃 (PC) */
@media (min-width: 768px) {
    .post-card {
        width: 300px;
        height: 200px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
}

.post-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
}
.post-content {
    padding: 25px;
}
.post-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ── 모바일 전용 오버라이드 ─────────────────────────────
 *   - 767.98px 를 경계로 데스크톱(>=768px) 미디어 쿼리와 겹치지 않음.
 *   - 위에 선언된 '기본(공통) 카드 스타일' 보다 뒤(아래)에 위치하므로
 *     모바일 뷰포트에서는 이 블록의 규칙이 우선 적용됨.
 *     → 공지사항/FAQ 와 동일한 2D 플랫 스타일 (그림자 없음, 직각 모서리).
 */
@media (max-width: 767.98px) {
    /* PC 그리드 숨김 */
    .posts-grid-desktop {
        display: none;
    }

    /* 모바일 그리드 표시 - 공지사항 스타일과 동일한 컨테이너 */
    .posts-grid-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0;
        background: white;
        border-radius: 0;
        overflow: hidden;
    }

    .container {
        padding: 40px 0 60px;
        margin: 0 0 80px 0;
        max-width: 100%;
    }

    /* 카드를 2D 플랫 스타일로 완전 재선언
     *   그림자/모서리/호버 모두 제거하여 공지·FAQ 와 동일한 룩앤필.
     */
    .post-card {
        width: 100%;
        height: auto;
        padding: 15px 14px;
        background: white;
        box-shadow: none;
        box-sizing: border-box;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #eee;
        margin: 0;
        transition: background 0.2s;
    }

    /* 모바일에서 클릭(탭) 시 피드백은 공지사항과 동일하게 */
    .post-card:active {
        background: #f8f9fa;
    }

    .post-image {
        display: none;
    }

    .post-content {
        display: block;
        padding: 0;
    }

    .post-title {
        font-size: 16px;
        margin: 0;
    }
}
.empty-state {
    width: 100%;
    text-align: center;
    padding: 100px 20px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    background: white;
}
.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}
.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}
