/* ══════════════════════════════════════
   입주기업 게시판 스킨 style.css
══════════════════════════════════════ */
:root {
  --green: #58ad40;
  --green-dark: #3e9630;
  --dark: #1a1e1a;
  --gray-deep: #3b3f3b;
  --gray-mid: #6b726b;
  --gray-line: #dce3dc;
  --gray-bg: #f5f7f4;
  --white: #fff;
}

.co-wrap {
  width: 100%;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ── 탭 (카테고리) ── */
#bo_cate h2 { display: none; }
#bo_cate_ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
#bo_cate_ul li:first-child {
  display: none;
}
#bo_cate_ul li { margin: 0; }
#bo_cate_ul li a {
  display: block;
  padding: 14px 0;
  text-align: center;
  font-size: 16px; font-weight: 700;
  color: var(--gray-mid);
  background: var(--white);
  text-decoration: none;
  border-right: 1px solid var(--gray-line);
  transition: background 0.18s, color 0.18s;
  letter-spacing: -0.02em;
}
#bo_cate_ul li:last-child a { border-right: none; }
#bo_cate_ul li a:hover,
#bo_cate_ul li a#bo_cate_on { background: var(--green); color: var(--white); }

/* ── 상단 바 ── */
.co-list-top {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 12px;
}
.co-total { font-size: 14px; color: var(--gray-mid); }
.co-total strong { color: var(--dark); font-weight: 700; }

.co-top-right { display: flex; align-items: center; gap: 6px; }

.co-admin-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 10px;
  border: 1px solid var(--gray-line); border-radius: 6px;
  font-size: 12px; color: #555; background: var(--white);
  text-decoration: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.co-admin-btn:hover { background: var(--gray-bg); }

.co-write-btn-top {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 12px;
  background: var(--green); border: none; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--white);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.co-write-btn-top:hover { background: var(--green-dark); }

/* ── 검색창 (항상노출) ── */
.co-search-box {
  display: flex;
  border: 1px solid var(--gray-line);
  border-radius: 8px; overflow: hidden;
  background: var(--white);
  margin-bottom: 16px;
  max-width: 500px;
}
.co-search-box select {
  border: none; border-right: 1px solid var(--gray-line);
  padding: 10px 10px; font-size: 13px; background: var(--gray-bg);
  outline: none; font-family: inherit; flex-shrink: 0;
  color: var(--dark);
}
.co-search-box input[type="text"] {
  border: none; outline: none;
  padding: 10px 14px; font-size: 14px;
  font-family: inherit; width: 100%; color: var(--dark);
  min-width: 0;
}
.co-search-box button {
  border: none; background: var(--green);
  padding: 10px 14px; cursor: pointer;
  display: flex; align-items: center;
  transition: background 0.18s; flex-shrink: 0;
}
.co-search-box button:hover { background: var(--green-dark); }
.co-search-box button svg { width: 16px; height: 16px; stroke: var(--white); }

/* ── 목록 (PC) ── */
.co-list { display: flex; flex-direction: column; }

.co-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-line);
  transition: background 0.15s;
}
.co-item:first-child { border-top: 2px solid var(--dark); }
.co-item:hover { background: #fafcfa; }

/* 로고 */
.co-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  padding-right: 20px; flex-shrink: 0;
}
.co-logo {
  width: 200px; height: 148px;
  border-radius: 10px;
  border: 1px solid var(--gray-line);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.co-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.co-logo-abbr {
  font-size: 20px; font-weight: 900;
  color: var(--gray-mid); letter-spacing: -0.03em;
  text-align: center; padding: 0 8px; word-break: break-all;
}

/* 기업 정보 */
.co-info { display: flex; flex-direction: column; gap: 8px; }
.co-name {
  font-size: 18px; font-weight: 800;
  color: var(--dark); letter-spacing: -0.03em; margin-bottom: 2px;
}
.co-name a { color: var(--dark); text-decoration: none; }
.co-name a:hover { color: var(--green); }
.co-notice-badge {
  display: inline-block; margin-left: 8px;
  padding: 2px 7px; background: var(--green); color: #fff;
  font-size: 11px; border-radius: 4px; font-weight: 600;
  vertical-align: middle;
}

.co-meta { display: flex; flex-direction: column; gap: 4px; }
.co-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  align-items: flex-start;
}
.co-meta-key {
  font-size: 14px; font-weight: 600; line-height: 1.7;
  color: var(--gray-mid); flex-shrink: 0; padding-top: 0;
}
.co-meta-val {
  font-size: 14px; color: var(--gray-deep);
  line-height: 1.7; word-break: keep-all;
}
.co-meta-val a { color: var(--green); text-decoration: none; font-weight: 500; }
.co-meta-val a:hover { opacity: 0.75; }

/* 빈 목록 */
.co-empty {
  text-align: center; padding: 80px 0;
  color: var(--gray-mid); font-size: 16px;
  border-top: 2px solid var(--dark);
}

/* ── 페이지네이션 ── */
.co-pager { margin-top: 36px; }
.co-pager .pg { display: flex; justify-content: center; gap: 4px; }
.co-pager .pg a, .co-pager .pg strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gray-line);
  font-size: 14px; font-weight: 600; color: var(--gray-mid);
  text-decoration: none; transition: all 0.18s; background: var(--white);
}
.co-pager .pg strong { background: var(--green); border-color: var(--green); color: #fff; }
.co-pager .pg a:hover { background: var(--gray-bg); }

/* ── 뷰 ── */
.co-view-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding: 28px 0;
  border-top: 2px solid var(--dark);
  border-bottom: 1px solid var(--gray-line);
}
.co-view-card .co-logo-wrap {
  padding-right: 28px;
  align-items: flex-start;
  padding-top: 4px;
}
.co-logo-view { width: 200px; height: 148px; }

.co-view-body-wrap {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-line);
}
.co-view-body-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 0; padding-bottom: 10px;
}
.co-view-body { font-size: 15px; line-height: 1.85; color: var(--gray-deep); }
.co-view-body img { max-width: 100%; height: auto; }

.co-view-foot {
  display: flex; justify-content: center;
  align-items: center; gap: 10px; padding: 24px 0;
}
.co-list-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 20px;
  border: 1px solid var(--gray-line); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #555;
  background: var(--white); text-decoration: none;
  transition: background 0.18s;
}
.co-list-btn:hover { background: var(--gray-bg); }

.co-nb-wrap { border-top: 1px solid var(--gray-line); }
.co-nb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
}
.co-nb-label { font-weight: 700; color: var(--gray-mid); width: 44px; flex-shrink: 0; }
.co-nb-row a { color: var(--dark); text-decoration: none; flex: 1; }
.co-nb-row a:hover { color: var(--green); }
.co-nb-date { color: var(--gray-mid); font-size: 12px; flex-shrink: 0; }

/* ── 쓰기 ── */
.co-write-tbl {
  width: 100%; border-collapse: collapse;
  border-top: 2px solid var(--dark); margin-bottom: 20px;
}
.co-write-tbl th {
  width: 110px; padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  background: var(--gray-bg); color: var(--dark);
  border-bottom: 1px solid var(--gray-line);
  text-align: left; vertical-align: middle;
}
.co-write-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-line);
  vertical-align: middle;
}
.co-req { color: var(--green); }

.co-write-foot {
  display: flex; justify-content: center;
  align-items: center; gap: 10px; margin-top: 20px;
}
.co-submit-btn {
  height: 46px; padding: 0 56px;
  background: var(--green); color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.co-submit-btn:hover { background: var(--green-dark); }

/* ══ 반응형 ══ */
@media (max-width: 1024px) {
  .co-item { grid-template-columns: 200px 1fr; }
  .co-logo { width: 175px; height: 130px; }
  .co-view-card { grid-template-columns: 210px 1fr; }
  .co-logo-view { width: 180px; height: 132px; }
}

@media (max-width: 768px) {
  /* 탭 */
  #bo_cate_ul {
    grid-template-columns: repeat(2, 1fr);
  }
  #bo_cate_ul li a {
    border-right: 1px solid var(--gray-line);
    border-bottom: none;
    padding: 12px 0;
    font-size: 14px;
  }
  #bo_cate_ul li:last-child a { border-right: none; }

  /* 상단 */
  .co-list-top { padding-bottom: 10px; }
  .co-total { font-size: 13px; }

  /* 검색 */
  .co-search-box { max-width: 100%; margin-bottom: 12px; }
  .co-search-box select { padding: 9px 8px; font-size: 12px; }
  .co-search-box input[type="text"] { padding: 9px 10px; font-size: 13px; }
  .co-search-box button { padding: 9px 12px; }

  /* 목록 - 모바일 가로 유지 (작게) */
  .co-item {
    grid-template-columns: 110px 1fr;
    padding: 16px 0;
    gap: 0;
  }
  .co-logo-wrap { padding-right: 12px; align-items: flex-start; padding-top: 2px; }
  .co-logo { width: 100px; height: 76px; border-radius: 8px; }
  .co-logo-abbr { font-size: 14px; }

  .co-info { gap: 5px; }
  .co-name { font-size: 15px; margin-bottom: 0; }
  .co-meta { gap: 3px; }
  .co-meta-row { grid-template-columns: 56px 1fr; }
  .co-meta-key { font-size: 12px; }
  .co-meta-val { font-size: 12px; line-height: 1.5; }

  /* 뷰 */
  .co-view-card {
    grid-template-columns: 1fr;
    gap: 14px; padding: 20px 0;
  }
  .co-view-card .co-logo-wrap {
    padding-right: 0; padding-top: 0;
    justify-content: flex-start;
  }
  .co-logo-view { width: 130px; height: 96px; }
  .co-view-body { font-size: 14px; }
  .co-list-btn { height: 38px; padding: 0 24px; font-size: 14px; }
  .co-nb-row { font-size: 13px; }

  /* 쓰기 */
  .co-write-tbl th { width: 76px; padding: 11px 10px; font-size: 13px; }
  .co-write-tbl td { padding: 9px 10px; font-size: 13px; }
  .co-submit-btn { height: 42px; padding: 0 40px; font-size: 14px; }
}

@media (max-width: 480px) {
  .co-item { grid-template-columns: 90px 1fr; }
  .co-logo { width: 80px; height: 60px; border-radius: 6px; }
  .co-name { font-size: 14px; }
  .co-meta-row { grid-template-columns: 50px 1fr; }
  .co-meta-key { font-size: 11px; }
  .co-meta-val { font-size: 11px; }
  .co-logo-view { width: 110px; height: 82px; }
}