@charset "utf-8";
/**
 * @author https://www.cosmosfarm.com
 * KBoard Paju 스킨 - 검정색 기반 깔끔한 리스트 디자인
 */

/* ========================================
   기본 버튼 스타일
   ======================================== */
a.kboard-default-button-small,
input.kboard-default-button-small,
button.kboard-default-button-small { 
  position: relative; 
  display: inline-block; 
  margin: 0; 
  padding: 0 10px; 
  width: auto; 
  height: 28px; 
  line-height: 28px; 
  font-size: 14px; 
  font-weight: normal; 
  color: #333333 !important; 
  background: #f0f0f0 !important; 
  border: none; 
  border-radius: 4px; 
  text-decoration: none !important; 
  cursor: pointer; 
  vertical-align: middle; 
  transition-duration: 0.3s; 
  box-sizing: content-box; 
}

a.kboard-default-button-small:hover,
a.kboard-default-button-small:focus,
a.kboard-default-button-small:active,
input.kboard-default-button-small:hover,
input.kboard-default-button-small:focus,
input.kboard-default-button-small:active,
button.kboard-default-button-small:hover,
button.kboard-default-button-small:focus,
button.kboard-default-button-small:active { 
  opacity: 0.8; 
  background: #e0e0e0 !important;
}

.kboard-default-poweredby { 
  float: left; 
  padding-bottom: 15px; 
  width: 100%; 
  font-size: 14px; 
  color: #666666;
}

.kboard-default-new-notify { 
  display: inline-block; 
  padding: 2px 6px; 
  line-height: 10px; 
  font-size: 10px; 
  color: #ffffff; 
  background-color: #333333; 
  font-weight: 600; 
  border-radius: 3px;
}

.kboard-default-cut-strings { 
  width: auto; 
  overflow: hidden; 
  white-space: nowrap; 
  text-overflow: ellipsis; 
  word-wrap: normal; 
}

/* ========================================
   리스트 기본 스타일
   ======================================== */
#kboard-default-list { 
  display: inline-block; 
  margin: 0; 
  width: 100%; 
}

#kboard-default-list form { 
  margin: 0; 
  padding: 0; 
}

#kboard-default-list .kboard-list-header { 
  float: left; 
  display: table; 
  padding-bottom: 15px; 
  width: 100%; 
}

#kboard-default-list .kboard-list-header .kboard-total-count { 
  float: left; 
  display: table-cell; 
  font-size: 14px; 
  color: #333333;
}

#kboard-default-list .kboard-list-header .kboard-sort { 
  float: right; 
  display: table-cell; 
  text-align: right; 
}

#kboard-default-list .kboard-list-header .kboard-sort select { 
  display: inline; 
  margin: 0; 
  padding: 0 5px; 
  width: auto; 
  height: 26px; 
  line-height: 26px; 
  font-size: 13px; 
  color: #333333; 
  border-radius: 4px; 
  border: 1px solid #e0e0e0; 
  background: white; 
  vertical-align: middle; 
  box-sizing: content-box; 
}

/* ========================================
   카테고리 스타일
   ======================================== */
#kboard-default-list .kboard-category { 
  float: left; 
  padding-bottom: 15px; 
  width: 100%; 
}

#kboard-default-list .kboard-category.category-mobile { 
  display: none; 
}

#kboard-default-list .kboard-category.category-pc { 
  display: block; 
}

#kboard-default-list .kboard-category select { 
  display: inline; 
  margin: 0 0 5px 0; 
  padding: 0 5px; 
  width: 100%; 
  height: 28px; 
  line-height: 28px; 
  font-size: 13px; 
  color: #333333; 
  border-radius: 4px; 
  border: 1px solid #e0e0e0; 
  background: white; 
  vertical-align: middle; 
  box-sizing: border-box; 
}

#kboard-default-list .kboard-category .kboard-category-list { 
  margin: 0 0 5px 0; 
  padding: 0; 
  list-style: none; 
  border: 0; 
  background-color: #f8f8f8; 
  overflow: hidden; 
  border-radius: 4px;
}

#kboard-default-list .kboard-category .kboard-category-list li { 
  display: inline-block; 
  margin: 0; 
  padding: 0 5px; 
  border: 0; 
  list-style: none; 
}

#kboard-default-list .kboard-category .kboard-category-list li a { 
  display: block; 
  padding: 10px 10px 8px 10px; 
  font-size: 14px; 
  border: 0; 
  border-bottom: 2px solid transparent; 
  text-decoration: none; 
  color: #333333; 
}

#kboard-default-list .kboard-category .kboard-category-list li.kboard-category-selected a { 
  font-weight: bold; 
  border-bottom: 2px solid #000000; 
  color: #000000; 
}

/* ========================================
   리스트 테이블 스타일 - 검정색 기반 깔끔한 디자인
   ======================================== */

/* 리스트 테이블 기본 스타일 */
.kboard-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e5e5;
}

/* 테이블 헤더 - 가운데 정렬 + important */
.kboard-list-table thead {
  background: #f8f8f8;
  border-bottom: 2px solid #e0e0e0;
}

.kboard-list-table th {
  padding: 18px 12px;
  font-size: 13px !important;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center !important;
  border: none;
}

/* 테이블 행 - 간격 더 늘리기 */
.kboard-list-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.kboard-list-table tbody tr:hover {
  background-color: #fafafa;
}

.kboard-list-table tbody tr:last-child {
  border-bottom: none;
}

.kboard-list-table td {
  padding: 24px 12px;
  vertical-align: middle;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  font-size: 15px;
}

/* 클릭 가능한 행 스타일 */
.clickable-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable-row:hover {
  background-color: #f5f5f5 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 공지사항 행 스타일 */
.kboard-list-table tr.kboard-list-notice {
  background-color: #ffffff;
}

.kboard-list-table tr.kboard-list-notice:hover {
  background-color: #fafafa;
}

/* 인기글 행 스타일 */
.kboard-list-table tr.kboard-list-popular {
  background-color: #fefefe;
}

.kboard-list-table tr.kboard-list-popular:hover {
  background-color: #f8f8f8;
}

/* 컬럼별 스타일 */
.col-number {
  width: 80px;
  text-align: center;
  font-weight: 500;
  color: #666666;
}

.col-category {
  width: 120px;
}

.col-title {
  min-width: 0;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.col-date {
  width: 80px;
  text-align: center;
  color: #666666;
  font-size: 14px;
}

.col-attach {
  width: 80px;
  text-align: center;
  color: #666666;
  font-size: 14px;
}

/* 첨부파일 다운로드 링크 */
.attach-download-link {
  display: inline-block;
  color: #666666;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
  margin: 0 2px;
  padding: 4px;
  border-radius: 3px;
}

.attach-download-link:hover {
  color: #0066cc;
  background: #f0f8ff;
  transform: scale(1.1);
}

.attach-download-link i {
  font-size: 16px;
}

/* 첨부파일 없음 표시 */
.no-attach {
  color: #cccccc;
  font-size: 14px;
}

/* 공지/인기 뱃지 스타일 */
.notice-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #22c55e;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popular-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 카테고리 태그 */
.category-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  color: #666666;
  background: #f5f5f5;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 제목 영역 - 확실한 좌측 정렬 + 글자 크기 증가 */
.title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.title-wrapper a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  text-align: left;
  display: block;
  font-size: 17px;
}

.title-wrapper a:hover {
  color: #000000;
}

/* 댓글 수 */
.comment-count {
  color: #666666;
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

/* New 배지 - 확실한 빨간색 */
.new-badge {
  display: inline-block;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  background: #dc2626;
  color: #ffffff;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 8px;
}

/* 최신글 리스트 스타일 */
.kboard-latest-list {
  display: flex;
  flex-direction: column;
}

.latest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item:hover {
  background-color: #f8f8f8;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-title {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.item-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-title a:hover {
  color: #000000;
}

.item-meta {
  flex-shrink: 0;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-category {
  color: #888888;
  font-size: 12px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.item-date {
  color: #888888;
  font-size: 12px;
  white-space: nowrap;
}

/* ========================================
   최신글 리스트 - 세로형 스타일 (날짜 위, 제목 아래)
   ======================================== */
.kboard-latest-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-item-vertical {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.latest-item-vertical:last-child {
  border-bottom: none;
}

.latest-item-vertical:hover {
  background-color: #f8f8f8;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

.item-date-vertical {
  color: #888888;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.item-title-vertical {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1a1a1a;
}

.item-title-vertical a {
  color: inherit;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-title-vertical a:hover {
  color: #000000;
}

/* ========================================
   페이징 스타일
   ======================================== */
#kboard-default-list .kboard-pagination { 
  float: left; 
  padding: 15px 0; 
  width: 100%; 
}

#kboard-default-list .kboard-pagination .kboard-pagination-pages { 
  float: left; 
  margin: 0; 
  padding: 0; 
  width: 100%; 
  list-style: none; 
  text-align: center; 
  border: 0; 
}

#kboard-default-list .kboard-pagination .kboard-pagination-pages li { 
  display: inline-block; 
  margin: 0; 
  padding: 0 1px; 
  background: none; 
  border: 0; 
  list-style: none; 
}

#kboard-default-list .kboard-pagination .kboard-pagination-pages li a { 
  display: block; 
  margin: 0; 
  padding: 0 11px; 
  height: 28px; 
  line-height: 28px; 
  font-size: 14px; 
  color: #666666; 
  text-decoration: none; 
  border: 0; 
  background-color: #f8f8f8; 
  transition-duration: 0.3s; 
  border-radius: 4px;
}

#kboard-default-list .kboard-pagination .kboard-pagination-pages li:hover a,
#kboard-default-list .kboard-pagination .kboard-pagination-pages li.active a { 
  border: 0; 
  color: #000000; 
  background-color: #e0e0e0; 
}

/* ========================================
   검색 폼 스타일
   ======================================== */
#kboard-default-list .kboard-search { 
  float: left; 
  padding-bottom: 15px; 
  width: 100%; 
  text-align: center; 
}

#kboard-default-list .kboard-search select { 
  display: inline; 
  margin: 0; 
  padding: 0 5px; 
  width: 100px; 
  height: 26px; 
  font-size: 14px; 
  color: #333333; 
  border-radius: 4px; 
  border: 1px solid #e0e0e0; 
  background-color: white; 
  line-height: 26px; 
  vertical-align: middle; 
  box-sizing: content-box; 
}

#kboard-default-list .kboard-search input { 
  display: inline; 
  margin: 0; 
  padding: 0 5px; 
  width: 200px; 
  height: 26px; 
  font-size: 14px; 
  color: #333333; 
  border-radius: 4px; 
  border: 1px solid #e0e0e0; 
  background-color: white; 
  line-height: 26px; 
  vertical-align: middle; 
  box-sizing: content-box; 
}

#kboard-default-list .kboard-control { 
  float: left; 
  padding-bottom: 15px; 
  width: 100%; 
  text-align: right; 
}

/* ========================================
   에디터 스타일
   ======================================== */
#kboard-default-editor { 
  overflow: hidden; 
}

#kboard-default-editor form { 
  margin: 0; 
  padding: 0; 
}

#kboard-default-editor select { 
  display: inline; 
  margin: 0; 
  padding: 0 5px; 
  font-size: 14px; 
  width: 30%; 
  height: 28px; 
  line-height: 28px; 
  color: #333333; 
  border-radius: 4px; 
  border: 0; 
  border-bottom: 1px solid #e0e0e0; 
  background-color: transparent; 
  box-sizing: content-box; 
  vertical-align: middle; 
}

#kboard-default-editor input[type=text],
#kboard-default-editor input[type=email],
#kboard-default-editor input[type=number],
#kboard-default-editor input[type=date],
#kboard-default-editor input[type=password] { 
  display: inline; 
  margin: 0; 
  padding: 0 5px; 
  width: 30%; 
  height: 28px; 
  line-height: 28px; 
  font-size: 14px; 
  color: #333333; 
  border-radius: 4px; 
  border: 0; 
  border-bottom: 1px solid #e0e0e0; 
  background-color: transparent; 
  box-sizing: content-box; 
  vertical-align: middle; 
}

#kboard-default-editor input[type=checkbox] { 
  width: auto; 
}

#kboard-default-editor input[type=radio] { 
  width: auto; 
}

/* ========================================
   반응형 디자인 - 모바일 최적화
   ======================================== */
@media (max-width: 768px) {
  .kboard-list-table {
    font-size: 14px;
  }
  
  .kboard-list-table th,
  .kboard-list-table td {
    padding: 18px 8px;
  }
  
  .col-number {
    width: 60px;
  }
  
  .col-category {
    width: 80px;
  }
  
  .col-title {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* 모바일에서 작성일자 숨기기 */
  .col-date {
    display: none;
  }
  
  /* 모바일에서 첨부파일 컬럼 숨기기 */
  .col-attach {
    display: none;
  }
  
  /* 모바일에서 New 배지 숨기기 */
  .new-badge {
    display: none !important;
  }
  
  .latest-item {
    padding: 12px;
  }
  
  .item-number {
    width: 30px;
  }
  
  /* 모바일에서 제목 줄바꿈 방지 */
  .title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .title-wrapper a {
    width: 100%;
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .kboard-list-table th,
  .kboard-list-table td {
    padding: 20px 10px;
  }
  
  .col-date {
    width: 70px;
  }
  
  .col-title {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media screen and (max-width: 600px) {
  #kboard-default-list .kboard-category.category-mobile { 
    display: block; 
  }
  
  #kboard-default-list .kboard-category.category-pc { 
    display: none; 
  }
  
  /* 모바일에서 테이블 스크롤 처리 */
  .kboard-list {
    overflow-x: auto;
  }
  
  .kboard-list-table {
    min-width: 500px;
  }
  
  #kboard-default-list .kboard-search select { 
    float: left; 
    margin-right: 1%; 
    width: 29%; 
    height: 28px; 
    line-height: 28px; 
    box-sizing: border-box; 
  }
  
  #kboard-default-list .kboard-search input { 
    float: left; 
    margin-right: 1%; 
    width: 49%; 
    height: 28px; 
    line-height: 28px; 
    box-sizing: border-box; 
  }
  
  #kboard-default-list .kboard-search button { 
    float: left; 
    width: 20%; 
    box-sizing: border-box; 
  }
	
	#kboard-default-editor select,
	#kboard-default-editor input[type=text],
	#kboard-default-editor input[type=email],
	#kboard-default-editor input[type=number],
	#kboard-default-editor input[type=date],
	#kboard-default-editor input[type=password],
  #kboard-default-editor input[type=file] { 
    width: 100% !important; 
    box-sizing: border-box; 
  }
}

/* ========================================
   상세보기 스타일 - 검정색 기반 깔끔한 디자인
   ======================================== */

/* 첨부파일 영역 - 한 줄 표시 */
.kboard-attach {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  border-bottom: 1px dashed #ededed;
}

.kboard-attach-top {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px dashed #ededed;
}

.attach-label {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-right: 8px;
}

.kboard-attach a {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px 4px 0;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.kboard-attach a:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 상세보기 제목 스타일 */
.kboard-title h1 {
  color: #000000 !important;
  font-weight: 700;
  margin: 0 0 20px 0;
  font-size: 24px;
  line-height: 1.4;
}

/* 액션 버튼 스타일 */
.kboard-button-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #333333;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kboard-button-action:hover {
  border-color: #000000;
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
