/* ===========================================
   Mobile CS Center Notice Page Styles
   Based on Figma Design Specification
   =========================================== */

/* 모바일 공지사항 페이지 전용 스타일 */
@media (max-width: 768px) {
  /* 헤더 영역 */
  .student-new .jumclass-cs-center__header {
    margin-bottom: 16px;
    padding: 0 0 16px;
  }

  .student-new .jumclass-cs-center__category {
    font-size: 13px;
    line-height: 140%;
    margin-bottom: 6px;
  }

  .student-new .jumclass-cs-center__title {
    font-size: 20px;
    line-height: 140%;
  }

  /* 탭 메뉴 수정 */
  .student-new .jumclass-cs-center__tabs {
    margin-bottom: 16px;
    border-bottom: 2px solid #333333;
  }

  .student-new .jumclass-cs-center__tabs-list {
    gap: 16px;
    height: 32px;
    padding: 0 20px;
  }

  .student-new .jumclass-cs-center__tab {
    gap: 10px;
  }

  .student-new .jumclass-cs-center__tab-link {
    font-size: 14px;
    line-height: 140%;
    padding-bottom: 10px;
  }

  .student-new .jumclass-cs-center__tab-indicator {
    bottom: 0;
    height: 2px;
  }

  .student-new
    .jumclass-cs-center__tab--active
    .jumclass-cs-center__tab-indicator {
    background: #ffffff;
  }

  /* 공지사항 리스트 */
  .student-new .jumclass-cs-notice__list {
    padding: 0 20px;
  }

  .student-new .jumclass-cs-notice__item {
    padding: 14px 0;
    border-bottom: 1px solid #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .student-new .jumclass-cs-notice__item:first-child {
    border-top: none !important;
  }

  /* 왼쪽 콘텐츠 영역 */
  .student-new .jumclass-cs-notice__item-content {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
  }

  /* 번호 스타일 */
  .student-new .jumclass-cs-notice__number {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #ffffff;
    min-width: 24px;
    flex-shrink: 0;
  }

  /* 제목 스타일 */
  .student-new .jumclass-cs-notice__item-title {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #ffffff;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 날짜 스타일 */
  .student-new .jumclass-cs-notice__date {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 140%;
    text-align: right;
    letter-spacing: -0.03em;
    color: #999999;
    min-width: 62px;
    flex-shrink: 0;
  }

  /* 마지막 아이템 (9,999 스타일) */
  .student-new .jumclass-cs-notice__item--special {
    padding: 16px 0;
  }

  .student-new .jumclass-cs-notice__item--special .jumclass-cs-notice__number {
    font-size: 16px;
    font-weight: 500;
    min-width: 42px;
  }

  .student-new
    .jumclass-cs-notice__item--special
    .jumclass-cs-notice__item-title {
    font-size: 16px;
    font-weight: 500;
  }

  .student-new .jumclass-cs-notice__item--special .jumclass-cs-notice__date {
    font-size: 14px;
    min-width: 67px;
  }

  /* 배지 제거 (디자인에 없음) */
  .student-new .jumclass-cs-notice__badge {
    display: none;
  }

  /* 페이지네이션 */
  .student-new .cs-notice-pagination {
    margin-top: 23px;
    display: flex;
    justify-content: center;
  }

  /* 기존 board-paging 숨기기 */
  .student-new .cs-notice-pagination .board-paging {
    display: none;
  }

  .student-new .cs-notice-pagination .pagination {
    margin-top: 0px !important;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* 화살표 그룹 */
  .student-new .cs-notice-pagination .arrow-group {
    display: flex;
    gap: 4px;
  }

  /* 모든 페이지네이션 버튼 기본 스타일 */
  .student-new .cs-notice-pagination a,
  .student-new .cs-notice-pagination span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #4c4c4c;
    text-decoration: none;
    font-family: 'Pretendard';
    font-weight: 500;
    font-size: 13px;
    line-height: 140%;
    text-align: center;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
  }

  /* 숫자 버튼 */
  .student-new .cs-notice-pagination .page-number {
    width: auto;
    height: auto;
    min-width: 8px;
    color: #4c4c4c;
  }

  /* 현재 페이지 */
  .student-new .cs-notice-pagination .on {
    width: 24px;
    height: 24px;
    background: #802fff;
    border-radius: 4px;
    color: #ffffff;
  }

  /* 화살표 스타일 */
  .student-new .cs-notice-pagination .arrow-icon {
    position: relative;
    width: 10px;
    height: 10px;
  }

  .student-new .cs-notice-pagination .arrow-icon::before {
    content: '';
    position: absolute;
    width: 9.67px;
    height: 4.83px;
    border: 1.27px solid #4b4b4b;
    border-top: none;
    border-left: none;
    top: 50%;
    left: 50%;
  }

  /* 왼쪽 화살표 */
  .student-new .cs-notice-pagination .arrow-left::before {
    transform: translate(-50%, -50%) rotate(135deg);
  }

  /* 오른쪽 화살표 */
  .student-new .cs-notice-pagination .arrow-right::before {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* 이중 화살표 */
  .student-new .cs-notice-pagination .arrow-double-left::before,
  .student-new .cs-notice-pagination .arrow-double-left::after {
    content: '';
    position: absolute;
    width: 9.67px;
    height: 4.83px;
    border: 1.27px solid #4b4b4b;
    border-top: none;
    border-left: none;
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
  }

  .student-new .cs-notice-pagination .arrow-double-left::before {
    left: 20%;
  }

  .student-new .cs-notice-pagination .arrow-double-left::after {
    left: 50%;
  }

  .student-new .cs-notice-pagination .arrow-double-right::before,
  .student-new .cs-notice-pagination .arrow-double-right::after {
    content: '';
    position: absolute;
    width: 9.67px;
    height: 4.83px;
    border: 1.27px solid #4b4b4b;
    border-top: none;
    border-left: none;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  .student-new .cs-notice-pagination .arrow-double-right::before {
    right: 50%;
  }

  .student-new .cs-notice-pagination .arrow-double-right::after {
    right: 20%;
  }

  /* 비활성화 상태 */
  .student-new .cs-notice-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
}

/* 데스크탑 공지사항 리스트 수정 */
@media (min-width: 769px) {
  /* 번호 표시를 위한 스타일 추가 */
  .student-new .jumclass-cs-notice__number {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.03em;
    color: #ffffff;
    min-width: 50px;
    text-align: center;
  }

  /* 배지 숨기기 */
  .student-new .jumclass-cs-notice__badge {
    display: none;
  }

  /* 데스크톱 페이지네이션 */
  .student-new .cs-notice-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  .student-new .cs-notice-pagination .pagination {
    margin-top: 0px !important;
  }
  /* 기존 board-paging 숨기기 */
  .student-new .cs-notice-pagination .board-paging {
    display: none !important;
  }

  .student-new .cs-notice-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  /* 화살표 그룹 */
  .student-new .cs-notice-pagination .arrow-group {
    display: flex;
    gap: 8px;
  }

  /* 모든 페이지네이션 버튼 기본 스타일 */
  .student-new .cs-notice-pagination a,
  .student-new .cs-notice-pagination span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #4c4c4c;
    text-decoration: none;
    font-family: 'Pretendard';
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
  }

  .student-new .cs-notice-pagination a:hover:not(.disabled):not(.on) {
    color: #802fff;
  }

  /* 숫자 버튼 */
  .student-new .cs-notice-pagination .page-number {
    width: auto;
    height: auto;
    min-width: 24px;
    color: #4c4c4c;
  }

  /* 현재 페이지 */
  .student-new .cs-notice-pagination .on,
  .student-new .cs-notice-pagination .page-number.on {
    min-width: 24px;
    height: 24px;
    background: #802fff !important;
    border-radius: 4px;
    color: #ffffff !important;
    padding: 4px 8px;
  }

  /* 비활성화 상태 */
  .student-new .cs-notice-pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
}
