.basic-board{
    width: 100%;
}


.basic-board-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 0px;
}

.basic-board-title {
    display: flex;
    font-size: 18px;
    font-weight: 500;
    align-items: center;
}

/* 데스크톱용 테이블 스타일 */
.basic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.basic-table thead {
    background-color: #f1f3f4;
}

.basic-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #34495e;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.basic-table th:first-child {
    width: 60px;
    text-align: center;
}

.basic-table th:nth-child(2) {
    width: 100px;
    text-align: center;
}

.basic-table th:nth-child(3) {
    width: 800px;
    text-align: left;
}

.basic-table th:nth-child(4) {
    width: 100px;
    text-align: center;
}

.basic-table th:nth-child(5) {
    width: 300px;
    text-align: center;
}

.basic-table th:nth-child(6) {
    width: 80px;
    text-align: center;
}

.basic-table th:nth-child(7) {
    width: 80px;
    text-align: center;
}

.basic-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    background: #ffffff;
    cursor: pointer;
}

.basic-table tbody tr:hover {
    background-color: #f8f9fa;
}

.basic-table td {
    padding: 12px 15px;
    color: #495057;
    font-size: 13px;
}

.basic-table td:first-child {
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}

.basic-table td:nth-child(2) {
    text-align: center;
    color: #1A943F;
    font-weight: 500;
    font-size: 12px;
}

.basic-table td:nth-child(3) {
    font-weight: 500;
    color: #2c3e50;
    text-align: left;
}

.basic-table td:nth-child(4),
.basic-table td:nth-child(5),
.basic-table td:nth-child(6),
.basic-table td:nth-child(7) {
    text-align: center;
    color: #6c757d;
}

/* 공지사항 스타일 */
.basic-notice-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.basic-notice-row:hover {
    background-color: #ffeaa7 !important;
}

.basic-notice-badge {
    background-color: #dc3545;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  
    .container {
        border-radius: 6px;
       
    }

    .basic-board-header {
        padding: 12px 15px;
    }

    .basic-board-title {
        font-size: 16px;
    }

    /* 모바일에서 테이블을 카드 형태로 변환 */
    .basic-table {
        border: none;
    }

    .basic-table thead {
        display: none;
    }

    .basic-table tbody {
        display: block;
    }

    .basic-table tbody tr {
        display: block;
        background-color: #ffffff;
        padding: 15px;
        border: 1.5px solid #dee2e6;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 5px;
    }

    .basic-table tbody tr:hover {
        background-color: #e9ecef;
        border-left-color: #adb5bd;
    }

    .basic-table tbody tr.basic-notice-row {
        border-left-color: #ffc107 !important;
        background-color: #fff3cd !important;
    }

    .basic-table tbody tr.basic-notice-row:hover {
        background-color: #ffeaa7 !important;
    }

    .basic-table td {
        display: block;
        text-align: left !important;
        padding: 0;
        border: none;
        font-size: 13px;
    }

    .basic-table td:first-child {
        display: none; /* 번호 숨김 */
    }

    .basic-table td:nth-child(2) {
        font-weight: 600;
        margin-bottom: 8px;
        color: #2c3e50;
        font-size: 14px;
    }

    .basic-table td:nth-child(3),
    .basic-table td:nth-child(4),
    .basic-table td:nth-child(5) {
        display: inline-block;
        color: #6c757d;
        font-size: 12px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .basic-table td:nth-child(5) {
        float: right;
        color: #868e96;
        margin-right: 0;
    }

    .basic-table td:nth-child(3)::after {
        content: " • ";
        color: #adb5bd;
    }
}

@media (max-width: 480px) {
    .basic-table td:nth-child(3),
    .basic-table td:nth-child(4),
    .basic-table td:nth-child(5) {
        display: block;
        margin-bottom: 3px;
        margin-right: 0;
    }

    .basic-table td:nth-child(5) {
        float: none;
        margin-top: 5px;
    }

    .basic-table td:nth-child(3)::after {
        display: none;
    }
}

/* 추가 스타일 */
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* 페이지 헤더 스타일 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* 카테고리 탭 스타일 */
.category-taps {
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
}

.category-taps ul {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
}

.category-tap {
    position: relative;
}

.category-tap a {
    display: block;
    padding: 12px 20px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-bottom: none;
    margin-right: 5px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.category-tap a:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.category-tap.active a {
    background: #ffffff;
    color: #495057;
    border-color: #A9BC95;
    border-bottom: 2px solid #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.category-tap.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
}

/* 반응형 카테고리 탭 */
@media (max-width: 768px) {
    .category-taps ul {
        justify-content: center;
        gap: 5px;
    }
    
    .category-tap a {
        padding: 10px 15px;
        font-size: 13px;
        margin-right: 0;
        border-radius: 20px;
        border: 2px solid #dee2e6;
    }
    
    .category-tap.active a {
        border-radius: 20px;
        border-bottom: 2px solid #007bff;
    }
    
    .category-tap.active a::after {
        display: none;
    }
}



/* ===== 썸네일 보드 (포트폴리오 스타일 + 고정 칼럼) ===== */

/* 해상도별 칼럼 수 고정 */
.tumnail-board-box {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .tumnail-board-box { grid-template-columns: repeat(9, 1fr); } }
@media (max-width: 992px)  { .tumnail-board-box { grid-template-columns: repeat(9, 1fr); } }
@media (max-width: 768px)  { .tumnail-board-box { grid-template-columns: repeat(9, 1fr); } }
@media (max-width: 576px)  { .tumnail-board-box { grid-template-columns: repeat(6, 1fr); } }

/* 아이템 폭 (3칸 차지) */
.tumnail-board-item {
  grid-column: span 3;
  transform: translateY(8px);
  opacity: 0;
}
.tumnail-board-appear {
  transform: translateY(0);
  opacity: 1;
  transition: transform .25s ease, opacity .25s ease;
}

/* 카드 디자인 */
.tumnail-board-card {
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}
.tumnail-board-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
  border-color: #d3d9df;
}

/* 16:9 썸네일 래퍼 */
.tumnail-board-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 비율 */
  overflow: hidden;
  background: #f4f6f8;
}
.tumnail-board-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 이미지 없는 경우 */
.tumnail-board-thumb.is-empty {
  background: #f4f6f8 linear-gradient(90deg, #f4f6f8 0%, #f0f2f4 50%, #f4f6f8 100%);
  background-size: 200% 100%;
  animation: tb-skeleton 1.4s ease-in-out infinite;
}
.tumnail-board-thumb.is-empty::after {
  content: "NO IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 12px;
  letter-spacing: .5px;
}
@keyframes tb-skeleton {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* 본문 */
.tumnail-board-body {
  padding: 14px 14px 12px !important;
  background: #fff;
}
.tumnail-board-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.tumnail-board-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6c757d;
  font-size: 12px;
}
.tumnail-board-date {
  margin: 0;
}

/* 모바일 미세 조정 */
@media (max-width: 480px) {
  .tumnail-board-body { padding: 12px !important; }
  .tumnail-board-title { font-size: 15px; }
}
