@charset "utf-8";
/* 인증현황(cert) 게시판 스킨 - Figma 6549:2053 인증서 갤러리 */

.cert-list{font-family:'Pretendard',sans-serif}
.cert-top{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex-wrap:wrap}
.cert-top__head .cert-head__title{margin:0;font-size:38px;font-weight:600;line-height:1.3;letter-spacing:-.76px;color:#111}
.cert-top__head .cert-head__sub{margin:12px 0 0;font-size:18px;font-weight:400;line-height:1.5;letter-spacing:-.36px;color:#555}
.cert-top__tools{display:flex;align-items:flex-end;gap:20px;flex-shrink:0}
.cert-total{display:flex;align-items:center;gap:11px;font-size:18px;color:#333;white-space:nowrap}
.cert-total em{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;background:#e6e6e6;border-radius:3px;font-style:normal;font-size:15px;color:#333}
.cert-search{display:flex;align-items:center;width:337px;max-width:46vw;border-bottom:1px solid #919191}
.cert-search input{flex:1;min-width:0;border:0;background:transparent;padding:12px 4px 12px 15px;font-size:16px;color:#333;outline:none;font-family:'Pretendard',sans-serif}
.cert-search input::placeholder{color:#8d8d8d}
.cert-search button{border:0;background:transparent;color:#555;font-size:18px;padding:0 6px;cursor:pointer}

.cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:45px 30px;margin:56px 0 0;padding:0;list-style:none}
.cert-grid--3{grid-template-columns:repeat(3,1fr)}
.cert-grid--5{grid-template-columns:repeat(5,1fr)}
.cert-cell{position:relative;min-width:0}
.cert-card{display:block;background:#fff;border:1px solid #ddd;border-radius:15px;padding:40px 20px 0;text-align:center;color:inherit;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.cert-card__img{height:306px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cert-card__img img{max-width:100%;max-height:306px;object-fit:contain}
.cert-card__tit{margin:0;padding:22px 6px 26px;font-size:18px;font-weight:500;line-height:1.5;color:#252525;word-break:keep-all}
.cert-card--link{cursor:pointer}
.cert-card--link:hover{border-color:#bbb}
.cert-empty{grid-column:1/-1;text-align:center;padding:80px 0;color:#888}

/* 페이징 (그누보드 pg_wrap 재정의) */
.cert-paging{margin-top:50px;text-align:center}
.cert-paging .pg_wrap{display:inline-block}
.cert-paging .pg{display:inline-flex;gap:8px;align-items:center}
.cert-paging .pg_page,.cert-paging .pg_current{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #ccc;border-radius:2px;font-size:15px;color:#555;text-decoration:none;background:#fff}
.cert-paging .pg_current{background:#7d7d7d;border-color:#7d7d7d;color:#fff;font-weight:400}
.cert-paging .pg_page:hover{border-color:#f42500;color:#f42500}
.cert-paging .pg_start,.cert-paging .pg_prev,.cert-paging .pg_next,.cert-paging .pg_end{border-color:transparent}

.cert-btns{display:flex;justify-content:center;gap:10px;margin-top:36px}
.cert-btn{display:inline-flex;align-items:center;padding:12px 26px;border-radius:6px;background:#f42500;color:#fff;font-size:15px;text-decoration:none}
.cert-btn--sub{background:#555}

@media (max-width:1024px){
    .cert-top__head .cert-head__title{font-size:30px}
    .cert-grid{grid-template-columns:repeat(3,1fr);gap:32px 24px;margin-top:40px}
}
@media (max-width:768px){
    .cert-top{flex-direction:column;align-items:stretch;gap:18px}
    .cert-top__tools{flex-direction:column;align-items:stretch;gap:14px}   /* Total ↑ / 검색 ↓ */
    .cert-top__head .cert-head__title{font-size:24px}
    .cert-search{width:100%;max-width:none}
    .cert-grid{grid-template-columns:1fr;gap:24px 16px}   /* 모바일: 1개씩 */
    .cert-card{padding:24px 12px 0}
    .cert-card__img{height:auto}
    .cert-card__img img{width:100%;height:auto;max-height:none}   /* 모바일: 이미지 폭 100% */
    .cert-card__tit{font-size:15px;padding:16px 4px 20px}
}
@media (max-width:460px){
    .cert-grid{grid-template-columns:1fr;gap:16px 12px}   /* 모바일: 1개씩 */
}

/* ---- 인증서 뷰페이지 ---- */
.cert-view{max-width:860px;margin:0 auto}
.cert-view__head{text-align:center;padding-bottom:22px;border-bottom:2px solid #111;margin-bottom:36px}
.cert-view__tit{margin:0;font-size:28px;font-weight:600;letter-spacing:-.5px;color:#111}
.cert-view__meta{margin-top:14px;display:flex;justify-content:center;gap:18px;color:#888;font-size:15px}
.cert-view__meta i{color:#f42500}
.cert-view__imgs{display:flex;flex-direction:column;gap:20px;align-items:center}
.cert-view__img img{max-width:100%;height:auto;border:1px solid #eee;border-radius:8px}
.cert-view__con{margin-top:30px;font-size:16px;line-height:1.7;color:#333}
.cert-nb{margin-top:40px;border-top:1px solid #eee;list-style:none;padding:0}
.cert-nb li{display:flex;gap:16px;padding:16px 4px;border-bottom:1px solid #eee}
.cert-nb li span{flex:0 0 46px;color:#f42500;font-weight:600}
.cert-nb li a{color:#333;text-decoration:none}
.cert-nb li a:hover{color:#f42500}
.cert-btn--line{background:#fff;border:1px solid #ccc;color:#333}
.cert-btn--line:hover{border-color:#f42500;color:#f42500}

/* ---- 인증서 글쓰기 ---- */
.cert-write{max-width:900px;margin:0 auto}
.cert-write__h{margin:0 0 26px;font-size:26px;font-weight:600;color:#111;padding-bottom:18px;border-bottom:2px solid #111}
.cert-fld{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid #eee;align-items:center}
.cert-fld--top{align-items:flex-start}
.cert-fld > label{flex:0 0 140px;font-size:16px;font-weight:600;color:#111;padding-top:2px}
.cert-fld__in{flex:1;min-width:0}
.cert-fld__row{display:flex;gap:10px;flex-wrap:wrap}
.cert-inp{width:100%;max-width:480px;padding:11px 14px;border:1px solid #ddd;border-radius:6px;font-size:15px;font-family:'Pretendard',sans-serif;outline:none;box-sizing:border-box}
.cert-inp:focus{border-color:#f42500}
.cert-fld__row .cert-inp{width:auto;max-width:220px}
.cert-file{font-size:14px}
.cert-filedel{display:inline-block;margin-left:8px;font-size:13px;color:#888}
.cert-opt{display:flex;gap:16px;list-style:none;margin:0;padding:0}
.cert-write select{padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-family:'Pretendard',sans-serif}
.cert-write .cert-btns{margin-top:30px}

@media (max-width:768px){
  .cert-view__tit{font-size:22px}
  .cert-fld{flex-direction:column;align-items:stretch;gap:8px}
  .cert-fld > label{flex:none}
  .cert-inp{max-width:none}
}
