/* =====================================================
   main_preview.css /2026.04.12
   역할: 메인 프리뷰 엔진 전용 스타일
  공지 (Table + Pagination + Grid + Night)
===================================================== */
.content-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}
/* 공지 */
#notice-section {
 margin-bottom: 60px;  
 } 
 /* 공지 리스트 - 게시판형 */
.notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  padding-left: 20px; 
}
/* 번호 */
.notice-no {
  width: 24px;
  text-align: center;
  color: #1f2937;
}
/* 작성자 */
.notice-writer {
  width: 60px;
  text-align: center;
  color: #1f2937;
  font-weight: 500;
  margin-right: 20px; 
}
/* 제목 */
.notice-title {
  flex: 1;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 날짜 */
.notice-date {
  font-size: 13px;
  color: #1f2937;
  white-space: nowrap;
}
.board-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.main-board-header { 
  width: 100%;
  margin-left: auto;
  margin-right: auto; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 12px;
}
.main-board-header h2 {
  color: #3558A8;
  font-weight: 700;
}
/* --------------------- Table --------------------- */
.post-table {
  width: 100%;
  table-layout: fixed; 
  border-collapse: collapse;
  border-top: 1px solid rgba(92,142,219,0.8); 
  margin-top: 10px;
}
.post-table th {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(92,142,219,0.8); 
  font-size: 15px;
  color: #3558A8; 
}
.post-table td {
  padding: 6px 10px;
  border-bottom: none; 
  font-size: 14px;
  color: #3558A8; 
}
.post-table .main-no{
  width: 60px;
  text-align: center;
}
.post-table .main-writer{
  width: 120px;
  text-align: left;
}
.post-table .main-date{
  width: 150px;
  text-align: center;
  font-size: 14px;
  color: #3558A8;
}
.title-link {
  display: block; 
  text-align: left;  
  font-weight: 600;
  color: #3558A8; 
  text-decoration: none;
  transition: color 0.2s; 
}
.title-link:hover {
  color: #3558A8;
}
.empty {
  text-align: center;
  padding: 18px 0;
  color: #3558A8;  
}
/* 링크 배경 완전 제거 */
.post-table a,
.post-table a:visited,
.post-table a:focus,
.post-table a:hover {
  text-decoration: none;
  background: transparent;
}
/* --------------------- Pagination --------------------- */
.pagination {
  margin: 18px 0 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap; 
}
.page-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25); 
  font-size: 15px;
  font-weight: 600;
  color: #778AA2; 
  text-decoration: none;
}
.page-btn.active {
  background: #778AA2;
  color: #fff;
  border-color: #778AA2;
}
.main-page .post-table {
  border-top: 2px solid rgba(92,142,219,0.6);
}
.main-page .post-table th {
  border-bottom: 2px solid rgba(92,142,219,0.3);
}
/* --------------------- Grid --------------------- */
.main-grid {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;  
}
.grid-item {
  border-radius: 12px;
  transition: .25s;
}
/* --------------------- Night Mode --------------------- */
body.night .grid-item {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(120,150,255,0.35);
  color: #E5E7EB;
}
body.night .grid-item:hover {
  border-color: #60A5FA;
  box-shadow: 0 10px 26px rgba(80,120,255,0.25);
}
body.night .card-title { color:#F8FAFC; }
body.night .card-preview { color:#CBD5E1; }
body.night .card-meta { color:#9FB2FF; }
body.night .notice-item,
body.night .notice-item * {
  color: rgba(255,255,255,0.7);
}
body.night .notice-item {
  transition: all 0.2s ease;
}
body.night .notice-item:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  text-shadow: 0 0 6px rgba(120,180,255,0.8);
}
/* =========================
   📱 Mobile
========================= */
@media (max-width:480px){
  .notice-item {
    align-items: center;
  }
  .notice-no,
  .notice-writer,
  .notice-title,
  .notice-date {
    font-size: 14px;
    line-height: 1.4;
  }
  .post-table {
    table-layout: fixed;
  }
  .post-table th {
    font-size: 15px;
    font-weight: 700;
    padding: 6px 2px;
  }
  .post-table td {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 2px;
    vertical-align: middle;
    line-height: 1.4;
  }
  .post-table .main-no{
    width: 45px;
    font-size: 14px; 
    text-align: center;
  }
  .post-table .main-writer{
    width: 70px;
    font-size: 14px; 
    text-align: left;
  }
  .post-table .main-date{
    width: 45px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
  }
  .title-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
   .page-btn{
    padding:2px 10px;
    font-size:14px;
    border-radius:5px;
  } 
}


