.basic-board{
    width: 100%;
}


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

.basic-board-title {
    display: flex;
    color: #7A7A7D;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
}

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

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

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

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

.basic-table th:nth-child(2) {
    width: auto;
}

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

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

.basic-table th:nth-child(5) {
    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(3),
.basic-table td:nth-child(4),
.basic-table td:nth-child(5) {
    text-align: center;
}

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

.basic-table td:nth-child(4) {
    color: #6c757d;
}

.basic-table td:nth-child(5) {
    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: 14px !important;
        color:#7A7A7D;
    }

    /* 모바일에서 테이블을 카드 형태로 변환 */
    .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;
    }
}

/* 모바일에서 검색 영역 반응형 */
@media (max-width: 768px) {
    .basic-board-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .basic-board-header .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .basic-board-header .input-group {
        width: 100% !important;
    }
    
    .basic-board-header .form-select {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .basic-board-header {
        padding: 12px 0;
    }
    
    .basic-board-title {
        font-size: 14px;
    }
}

/* 탭 전환 애니메이션 */
.pill-tabs {
    margin-bottom: 30px;
}

#panel-event,
#panel-news {
    transition: opacity 0.3s ease;
}

#panel-event.hide,
#panel-news.hide {
    opacity: 0;
    pointer-events: 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; }
}

/* ===== 검색 인풋 그룹 스타일 Override ===== */
.basic-board-header .input-group {
    border-bottom: 1px solid #1D1D1D;
    border-radius: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}



.basic-board-header .input-group .form-control {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding-top: 6px; /* 세로 정렬을 위한 패딩 추가 */
    padding-bottom: 6px; /* 세로 정렬을 위한 패딩 추가 */
    padding-left: 0; /* Align with left edge */
}

.basic-board-header .input-group .form-control:focus {
    outline: none;
    box-shadow: none;
}

.basic-board-header .input-group .btn {
    border: none;
    background-color: transparent;
    color: #1D1D1D;
    min-width: auto;
    min-height: auto;
    padding: 6px 12px;
    border-radius: 0;
    box-shadow: none !important;
    outline: none !important;
    font-size: 13px !important; /* 버튼의 font-size를 input/select와 통일 */
    line-height: normal !important; /* 버튼의 line-height를 input/select와 통일 */
}

.basic-board-header .input-group .btn:hover {
    background-color: #f1f3f4; /* Subtle hover */
}