/* =========================
TOOLBAR (종류 선택)
========================= */

.notice-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.notice-type-select {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}


/* =========================
TABLE
========================= */

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.notice-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    color: var(--text);
}

.notice-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text);
    vertical-align: top;
}

.notice-table tr:hover td {
    background: #f8f9fb;
}

.col-title a {
    display: block;
    margin-bottom: 4px;
}

.notice-preview {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.col-type,
.col-date {
    white-space: nowrap;
}

.col-title a:hover {
    text-decoration: underline;
}


.pin-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;

    border-radius: 999px;

    background: #ffe3e3;
    color: #e03131;

    font-size: 11px;
    font-weight: 600;
}

.notice-empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0 !important;
}


/* =========================
PAGINATION
========================= */

.notice-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 16px;

    background: #f1f3f5;
    border-radius: 0 0 10px 10px;

    font-size: 13px;
    color: var(--text-muted);
}

.per-page-select select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.page-nav a,
.page-nav span {
    margin: 0 6px;
    text-decoration: none;
    color: var(--text);
}

.page-nav .current-page {
    font-weight: 700;

    padding: 2px 8px;

    background: #dee2e6;
    border-radius: 4px;
}

.page-nav .disabled {
    color: #ccc;
}


/* =========================
DETAIL TITLE
========================= */

.notice-detail-title {
    padding: 0 0 16px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.notice-detail-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.notice-date {
    display: block;
    text-align: right;

    font-size: 13px;
    color: var(--text-light);
}


/* =========================
DETAIL BOX (group-block 톤)
========================= */

.notice-detail-box {
    border: 1px solid #eee;
    border-radius: 14px;

    padding: 25px;

    background: #fff;
}

.notice-content {
    line-height: 1.7;
    min-height: 200px;
    color: var(--text);
}

.notice-attachments {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.notice-attachments h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.notice-attachments a {
    color: var(--text);
    text-decoration: none;
}

.notice-attachments a:hover {
    text-decoration: underline;
}


/* =========================
목록으로 버튼 (상단/하단)
========================= */

.notice-detail-actions {
    display: flex;
    margin: 16px 0;
}

.notice-detail-actions.top {
    justify-content: flex-end;
}

.notice-detail-actions.bottom {
    justify-content: center;
}

.notice-back-btn {
    display: inline-block;

    padding: 10px 22px;

    border-radius: 8px;

    background: #14315c;
    color: #fff;

    font-weight: 600;
    font-size: 14px;

    text-decoration: none;

    transition: 0.2s;
}

.notice-back-btn:hover {
    background: #0d2242;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px
        rgba(20, 49, 92, 0.25);
}

/* =========================================================
교육공지 교육과정 - 기본(PC)
========================================================= */

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

  .notice-toolbar {
      margin-bottom: 10px;
  }


  .notice-type-select {
      max-width: 100%;
      font-size: 13px;
  }


  /* 공지 목록 */

  .notice-table {
      display: block;

      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }

  .notice-table th,
  .notice-table td {
      padding: 10px 12px;
      font-size: 13px;
  }

  .notice-table .col-title {
      min-width: 220px;
  }

  .notice-preview {
      font-size: 12px;
  }


  /* 페이지 */

  .notice-pagination {
      flex-wrap: wrap;

      gap: 10px 16px;

      padding: 12px;
  }

  .page-nav {
      margin-left: auto;
  }


  /* 공지 상세 */

  .notice-detail-title h2 {
      font-size: 20px;
  }

  .notice-detail-box {
      padding: 20px;
  }


  /* 공지 본문 */

  .notice-content {
      font-size: 14px;
      line-height: 1.75;
  }

  .notice-content p {
      font-size: 14px;
  }

  .notice-content h3 {
      font-size: 19px;
      line-height: 1.4;
  }

  .notice-content h4 {
      font-size: 16px;
      line-height: 1.5;
  }

  .notice-content a {
      font-size: inherit;
  }

  /* =====================================================
  교육공지 교육과정
  ===================================================== */  
   
}