/* ==========================================================================
   board.css — Board (post_list, post_detail) extracted styles
   ========================================================================== */

/* Fullpage overrides (from extra_head_css) */
.fullpage-container { height: auto !important; overflow: visible !important; }
.fp-wrapper { height: auto !important; transition: none !important; }

/* Board Common */
.board-container {
  padding: 150px 0 100px;
  min-height: 60vh;
  margin: 0 auto;
}
.board-title {
  font-size: 2.2rem;
  font-family: "GmarketSansBold";
  color: #111;
  margin-bottom: 40px;
}

/* Board Table */
.board-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--main-brand);
}
.board-table th,
.board-table td {
  padding: 15px 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  color: #444;
}
.board-table th {
  background: #fafafa;
  font-weight: 700;
}
.board-table .col-title { text-align: left; }
.board-table .col-author { width: 120px; }
.board-table .col-date { width: 150px; }
.board-table .col-views { width: 80px; }
.board-table a {
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}
.board-table a:hover {
  color: var(--main-brand);
  text-decoration: underline;
}

/* Video Grid (Card-style boards) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.video-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.video-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
}
.video-info { padding: 20px; }
.video-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-date { font-size: 0.9rem; color: #888; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  font-weight: 600;
  color: #555;
  transition: 0.2s;
}
.pagination a:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.pagination .current {
  background: var(--main-brand);
  color: #fff;
  border-color: var(--main-brand);
}

/* Post Detail */
.post-header {
  border-top: 2px solid var(--main-brand);
  border-bottom: 1px solid #ddd;
  padding: 20px;
  background: #fafafa;
}
.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}
.post-meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: #666;
}
.post-meta span i { margin-right: 5px; color: #999; }

.post-content {
  padding: 40px 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  min-height: 300px;
  border-bottom: 1px solid #ddd;
}
.post-content img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}
.post-video { margin-bottom: 30px; text-align: center; }

.post-attachments {
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
.post-attachments h4 { font-size: 1.1rem; margin-bottom: 10px; color: #111; }
.post-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  transition: 0.2s;
  background: #fff;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-right: 10px;
  margin-bottom: 10px;
}
.post-attachments a:hover {
  border-color: var(--main-brand);
  color: var(--main-brand);
}

.post-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.btn-list {
  background: #555;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 700;
  transition: 0.3s;
}
.btn-list:hover { background: #111; color: #fff; }

/* Board Responsive */
@media (max-width: 768px) {
  .board-container { padding: 120px 20px 50px; }
  .board-table thead { display: none; }
  .board-table tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
  }
  .board-table td { padding: 5px 0; border: none; text-align: left; }
  .board-table .col-author,
  .board-table .col-views { display: none; }
  .board-table .col-title { width: 100%; font-size: 1.1rem; }
  .board-table .col-date { font-size: 0.85rem; color: #888; }
  .video-grid { grid-template-columns: 1fr; }
  .post-header { padding: 15px 10px; }
  .post-title { font-size: 1.25rem; }
  .post-content { padding: 30px 10px; }
}

/* ── 채용공고 카드 그리드 (채용중 컬러 / 마감 비활성) ───────────────────────── */
/* 채용 상태 필터 — 세그먼트 버튼 그룹 */
.recruit-filter {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 5px;
    background: #f0f0f2;
    border-radius: 12px;
    flex-wrap: wrap;
}
.recruit-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #6b6b70;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.18s;
}
.recruit-filter__btn em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
    color: #9a9aa0;
    background: #e2e2e6;
    border-radius: 10px;
    padding: 1px 8px;
    transition: 0.18s;
}
.recruit-filter__btn:hover { color: #222; }
.recruit-filter__btn.active {
    background: #fff;
    color: var(--main-brand);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}
.recruit-filter__btn.active em {
    color: #fff;
    background: var(--main-brand);
}

.recruit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.recruit-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* 채용중 — 항상 오렌지 테두리로 강조 */
.recruit-card:not(.is-closed) {
    border-color: var(--main-brand);
}
.recruit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
    border-color: var(--main-brand);
}
.recruit-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.recruit-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.recruit-badge--ongoing {
    background: var(--main-brand);
    box-shadow: 0 2px 8px rgba(234, 84, 0, 0.4);
}
.recruit-badge--closed { background: #8a9099; }
.recruit-card__info { padding: 18px 20px; }
.recruit-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}
.recruit-card__title em { color: var(--main-brand); font-style: normal; }
.recruit-card__meta {
    display: flex;
    gap: 14px;
    font-size: 0.84rem;
    color: #999;
}
/* 마감 — 차분하게 가라앉혀 채용중이 돋보이게. 흑백 + 흐릿 처리 */
.recruit-card.is-closed {
    background: #fafafa;
    border-color: #ededed;
    opacity: 0.68;
}
.recruit-card.is-closed .recruit-card__thumb { filter: grayscale(100%); }
.recruit-card.is-closed .recruit-card__title { color: #999; }
.recruit-card.is-closed:hover {
    opacity: 1;
    border-color: #d8d8d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}
.recruit-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
@media (max-width: 1200px) {
    .recruit-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .recruit-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
    .recruit-grid { grid-template-columns: 1fr; gap: 16px; }
}
