@charset "UTF-8";
/* Resources (RES-01 ~ RES-04) */

/* ---------- shared : small pill buttons ---------- */
.res-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 100px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; transition: background .2s, color .2s; }
.res-btn--dark { background: var(--c-black); color: #fff; }
/* 공개 자료인데 파일이 아직 없을 때 (관리자에서 파일 업로드 전) */
.res-btn.is-pending { opacity: .5; cursor: default; }
.res-btn--dark:hover { background: #333; }
.res-btn--line { border: 1px solid var(--c-black); color: var(--c-black); }
.res-btn--line:hover { background: var(--c-black); color: #fff; }
.res-btn.en { font-weight: 600; }

/* ---------- shared : filter chips ---------- */
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.res-chip { padding: 8px 18px; border-radius: 20px; background: #f0f0f0; color: var(--c-body); font-size: 12px; font-weight: 700; line-height: 1.5; transition: background .2s, color .2s; }
.res-chip.en { font-weight: 600; }
.res-chip:hover { color: var(--c-black); }
.res-chip.is-active { background: var(--c-black); color: #fff; }

/* ---------- shared : search box ---------- */
.res-search { position: relative; height: 52px; }
.res-search input { width: 100%; height: 100%; padding: 0 52px 0 15px; border: 1px solid var(--c-black); border-radius: 6px; background: #fff; font-size: 15px; color: var(--c-black); outline: none; }
.res-search input::placeholder { color: #9a9a9a; }
.res-search input:focus { border-color: var(--c-green); }
.res-search button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; font-family: var(--f-en); font-size: 20px; line-height: 1; color: var(--c-black); }

/* ---------- shared : data table ---------- */
.res-table-wrap { position: relative; width: 100%; }
.res-table { table-layout: fixed; border-top: 2px solid var(--c-black); text-align: left; }
.res-table th { height: 57px; padding: 0; border-bottom: 1px solid var(--c-line); font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--c-sub); vertical-align: middle; }
.res-table td { padding: 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-en); font-size: 15px; line-height: 1.6; color: #444; vertical-align: middle; }
.res-table td.kr { font-family: var(--f-kr); }
.res-table .res-table__name { font-weight: 500; color: var(--c-black); }
.res-table .res-table__act { text-align: right; }
.res-table__empty td { height: 120px; text-align: center; font-family: var(--f-kr); color: var(--c-mute); }

/* ---------- RES-01 : library ---------- */
.lib-filter { display: flex; gap: 12px; }
.lib-filter select { flex: 0 0 180px; width: 180px; height: 52px; padding: 0 40px 0 15px; border: 1px solid #dadada; border-radius: 6px; background: #fff url("../images/common/ic-caret-dark.svg") right 22px center / 9px 5px no-repeat; font-size: 15px; color: #444; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; }
.lib-filter select:focus { border-color: var(--c-green); }
.lib-filter .res-search { flex: 1; }
.lib-count { margin: 32px 0 14px; font-size: 14px; font-weight: 700; color: var(--c-sub); }
.lib-table td { height: 75px; }
.lib-table col.c-name { width: 440px; }
.lib-table col.c-type { width: 180px; }
.lib-table col.c-mat { width: 140px; }
.lib-table col.c-lang { width: 180px; }

/* ---------- FAQ accordion (RES-01 preview / RES-04) ---------- */
.faq-list { border-top: 1px solid var(--c-line); }
.faq-list--strong { border-top: 2px solid var(--c-black); }
.faq-list .acc-item { border-bottom: 1px solid var(--c-line); }
.faq-list .acc-head { display: flex; align-items: center; gap: 22px; width: 100%; padding: 29px 0; text-align: left; font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--c-black); }
.faq-list .acc-head .q { flex: none; width: 14px; font-family: var(--f-en); font-weight: 600; color: var(--c-green); }
.faq-list .acc-head .tit { flex: 1; }
.faq-list .acc-head::after { content: "+"; flex: none; width: 24px; margin-right: 8px; font-family: var(--f-en); font-size: 24px; font-weight: 400; line-height: 1; text-align: center; }
.faq-list .acc-item.is-open .acc-head::after { content: "\2212"; }
.faq-list .acc-body { display: none; padding-bottom: 16px; }
.faq-list .acc-item.is-open .acc-body { display: block; }
.faq-answer { padding: 28px 36px; border-radius: 6px; background: #f7f7f7; font-size: 15px; line-height: 1.6; color: #444; }
.faq-answer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }
.faq-answer__links a { font-size: 14px; font-weight: 700; color: var(--c-green); white-space: pre; }
.faq-answer__links a:hover { text-decoration: underline; }
.faq-empty { padding: 60px 0; text-align: center; color: var(--c-mute); border-bottom: 1px solid var(--c-line); }

.section--faq { padding-bottom: 110px; background: #f7f7f5; }
.section--faq .sec-head { margin-bottom: 59px; }
.section--faq .faq-answer { background: #fff; }
.faq-more { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 700; white-space: pre; }
.faq-more:hover { color: var(--c-green); }

/* RES-04 toolbar */
.faq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 42px; }
.faq-toolbar .res-search { flex: 0 1 360px; }

/* ---------- RES-02 : catalogs ---------- */
.cat-chips { margin: 15px 0 36px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cat-cover { position: relative; height: 340px; border-radius: 4px; background: #1a1a1a; color: #fff; overflow: hidden; }
.cat-cover__img { width: 100%; height: 197.2px; object-fit: cover; }
.cat-cover__logo { position: absolute; left: 22px; top: 219.2px; width: 92px; height: 24px; object-fit: cover; }
.cat-cover__tit { position: absolute; left: 22px; right: 22px; top: 257.2px; font-family: var(--f-en); font-size: 19px; font-weight: 600; line-height: 1.25; }
.cat-cover__by { position: absolute; left: 22px; top: 304px; font-family: var(--f-en); font-size: 11px; line-height: 1.6; opacity: .6; }
.cat-card__name { margin-top: 24px; font-family: var(--f-en); font-size: 18px; font-weight: 500; line-height: 1.6; }
.cat-card__meta { margin-top: 25px; font-size: 13px; line-height: 1.6; color: var(--c-sub); }
.cat-card__btns { display: flex; gap: 8px; margin-top: 17px; }

/* ---------- RES-03 : certificates ---------- */
.cert-table-wrap { margin-top: 22px; }
.cert-table td { height: 95px; }
.cert-table col.c-name { width: 360px; }
.cert-table col.c-scope { width: 320px; }
.cert-table col.c-lang { width: 160px; }
.cert-table col.c-valid { width: 160px; }
.cert-name { display: flex; align-items: center; gap: 16px; }
.cert-ico { position: relative; flex: none; width: 48px; height: 64px; border: 1px solid #e2e2e2; border-radius: 4px; background: #fff; overflow: hidden; }
.cert-ico__frame { position: absolute; left: 13px; top: 13px; width: 20px; height: 36px; border: 2px solid #e9ddbf; }
.cert-ico__label { position: absolute; left: -10px; top: 10.52px; font-family: var(--f-en); font-size: 9px; font-weight: 600; line-height: 1.6; letter-spacing: .72px; color: #9a8452; white-space: nowrap; }
.cert-ico__line { position: absolute; left: 8.12px; width: 29.76px; height: 3px; background: #e3e3e3; }
.cert-ico__line:nth-of-type(2n) { left: 11px; width: 24px; }
.cert-ico__seal { position: absolute; left: 18.68px; top: 47.64px; }
.cert-note { margin-top: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .lib-filter { flex-wrap: wrap; }
  .lib-filter select { flex: 1 1 calc((100% - 24px) / 3); width: auto; }
  .lib-filter .res-search { flex: 1 1 100%; }
  .res-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lib-table { min-width: 900px; }
  .cert-table { min-width: 880px; }
  .cat-chips { margin: 0 0 32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .faq-toolbar { flex-direction: column; align-items: stretch; }
  .faq-toolbar .res-search { flex-basis: auto; }
}
@media (max-width: 768px) {
  .lib-filter select { flex-basis: 100%; }
  .lib-count { margin-top: 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-cover { max-width: 320px; }
  .faq-list .acc-head { gap: 12px; padding: 22px 0; font-size: 16px; }
  .faq-list .acc-head::after { margin-right: 0; }
  .faq-answer { padding: 20px; font-size: 14px; }
  .section--faq .sec-head { margin-bottom: 36px; }
}
