/* Student Customer Center Notice Page - Figma Design */

/* Import CS Center 공통 탭 스타일 */
@import url('../components/cs-center-tabs.css');

/* Notice Page Container */
.student-new .cs-center-notice {
  min-height: 100vh;
  background: #000000;
  padding-top: 64px;
  padding-bottom: 120px;
}

/* Page Header Section */
.student-new .cs-notice-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 0 40px;
}

.student-new .cs-notice-category {
  color: #802fff;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.42px;
  margin-bottom: 4px;
}

.student-new .cs-notice-title {
  color: #fff;
  font-family: Pretendard;
  font-size: 28px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.84px;
}

/* Tab Menu Section - 공통 CSS 사용 */

/* Notice Content Section */
.student-new .cs-notice-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Notice List */
.student-new .cs-notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Notice Item */
.student-new .cs-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.student-new .cs-notice-item:hover {
  background: rgba(128, 47, 255, 0.05);
}

.student-new .cs-notice-item:last-child {
  border-bottom: none;
}

/* Notice Item Content */
.student-new .cs-notice-item-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.student-new .cs-notice-number {
  color: #802fff;
  font-family: Pretendard;
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.48px;
  min-width: 40px;
}

.student-new .cs-notice-item-title {
  color: #fff;
  font-family: Pretendard;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.48px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.student-new .cs-notice-item:hover .cs-notice-item-title {
  color: #cccccc;
}

.student-new .cs-notice-date {
  color: #666;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.42px;
}

/* Notice Badge */
.student-new .cs-notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #802fff;
  border-radius: 4px;
  margin-left: 12px;
}

/* Category Badge (회색) */
.student-new .cs-notice-badge.category {
  background: #333333;
  margin-left: 0;
  margin-right: 8px;
}

.student-new .cs-notice-badge-text {
  color: #fff;
  font-family: Pretendard;
  font-size: 12px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.36px;
}

/* Category Badge Text (회색조) */
.student-new .cs-notice-badge.category .cs-notice-badge-text {
  color: #999999;
}

/* Pagination - Figma Design */
.student-new .cs-notice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.student-new .cs-notice-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Pagination Arrows */
.student-new .jumclass-cs-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.student-new .jumclass-cs-pagination__arrow:hover:not(.disabled) svg path {
  stroke: #802fff;
}

.student-new .jumclass-cs-pagination__arrow.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.student-new .jumclass-cs-pagination__arrow svg {
  width: 24px;
  height: 24px;
}

/* Pagination Numbers Container */
.student-new .jumclass-cs-pagination__numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pagination Number */
.student-new .jumclass-cs-pagination__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: 'Pretendard';
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #4c4c4c;
  text-decoration: none;
  transition: all 0.3s ease;
}

.student-new .jumclass-cs-pagination__number:hover:not(.active) {
  color: #802fff;
}

.student-new .jumclass-cs-pagination__number.active {
  background: #802fff;
  border-radius: 4px;
  color: #ffffff;
}

/* Search Box */
.student-new .cs-notice-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.student-new .cs-notice-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 10px 16px;
  background: #191919;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.student-new .cs-notice-search-box:focus-within {
  border-color: #802fff;
}

.student-new .cs-notice-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.42px;
}

.student-new .cs-notice-search-input::placeholder {
  color: #666;
}

.student-new .cs-notice-search-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Empty State */
.student-new .cs-notice-empty {
  text-align: center;
  padding: 80px 20px;
}

.student-new .cs-notice-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #191919;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-new .cs-notice-empty-text {
  color: #666;
  font-family: Pretendard;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.48px;
}

/* Notice Detail Page */
.student-new .cs-notice-detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0px;
}

.student-new .cs-notice-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 0px 16px;
  border-bottom: 1px solid #333;
}

.student-new .cs-notice-detail-title {
  color: #fff;
  font-family: Pretendard;
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.student-new .cs-notice-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-new .cs-notice-detail-date {
  color: #999;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.03em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-new .cs-notice-detail-author {
  color: #999;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.student-new .cs-notice-detail-content {
  padding: 24px 0 55px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.student-new .cs-notice-detail-text {
  color: #ffffff;
  font-family: Pretendard;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.03em;
  /* white-space: pre-wrap; */
  /* text-align: start; */
}

.student-new .cs-notice-detail-text p {
  margin: 0;
}

.student-new .cs-notice-detail-text p:first-child {
  margin-top: 0;
}

.student-new .cs-notice-detail-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 40px;
}

.student-new .cs-notice-list-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  gap: 8px;
  width: 234px;
  height: 40px;
  background: #292929;
  border-radius: 4px;
  color: #ffffff;
  font-family: Pretendard;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 140%;
  text-align: center;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.student-new .cs-notice-list-btn:hover {
  background: #3a3a3a;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .student-new .cs-tab-menu,
  .student-new .cs-notice-content,
  .student-new .cs-notice-detail {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .student-new .cs-notice-detail-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
    padding-bottom: 14px;
    margin: 0px 20px;

    gap: 8px;
  }

  .student-new .cs-notice-detail-meta {
    margin-top: 0px;
  }

  .student-new .cs-notice-detail-content {
    padding: 16px 20px;
  }

  .student-new .cs-notice-detail-author {
    margin-bottom: 16px;
  }

  .student-new .cs-center-notice {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .student-new .cs-notice-header {
    padding: 0 0 32px;
    margin-bottom: 0;
  }

  /* 피그마: Notice 카테고리 */
  .student-new .cs-notice-category {
    font-size: 13px;
    margin-bottom: 6px;
  }

  /* 피그마: 공지사항 타이틀 */
  .student-new .cs-notice-title {
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  /* 탭 메뉴 피그마 스타일 */
  .student-new .cs-tab-menu {
    position: relative;
    margin-bottom: 24px;
  }

  .student-new .cs-tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0px;
    /* 좌우 여백 추가 */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .student-new .cs-tab-list::-webkit-scrollbar {
    display: none;
  }

  .student-new .cs-tab-item {
    position: relative;
  }

  .student-new .cs-tab-link {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* 공지사항 본문과 목록보기 사이 간격 */
  .student-new .cs-notice-detail-footer {
    padding: 24px 0 30px;
  }

  /* 공지사항 리스트 아이템 피그마 스타일 */
  .student-new .cs-notice-item {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* 아이템 상단 행 */
  .student-new .cs-notice-item-content {
    width: 100%;
    gap: 8px;
    flex-direction: row;
    align-items: center;
  }

  /* 번호 스타일 */
  .student-new .cs-notice-number {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    min-width: 24px;
  }

  /* 제목 스타일 */
  .student-new .cs-notice-item-title {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
  }

  /* 날짜 스타일 - 두 번째 행으로 이동 */
  .student-new .cs-notice-date {
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    width: 100%;
    text-align: left;
    margin-left: 32px;
  }

  /* 페이지네이션 모바일 스타일 */
  .student-new .cs-notice-pagination {
    margin-top: 40px;
  }

  .student-new .cs-notice-pagination .pagination {
    gap: 16px;
  }

  /* 화살표 크기 조정 */
  .student-new .jumclass-cs-pagination__arrow {
    width: 20px;
    height: 20px;
  }

  .student-new .jumclass-cs-pagination__arrow svg {
    width: 20px;
    height: 20px;
  }

  /* 페이지 번호 */
  .student-new .jumclass-cs-pagination__numbers {
    gap: 4px;
  }

  .student-new .jumclass-cs-pagination__number {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }

  /* 활성 페이지 */
  .student-new .jumclass-cs-pagination__number.active {
    width: 24px;
    height: 24px;
    background: #802fff;
    border-radius: 4px;
  }

  .student-new .cs-notice-item-title {
    font-size: 14px;
  }

  .student-new .cs-notice-search-box {
    width: 100%;
  }

  .student-new .cs-notice-detail-title {
    font-size: 20px;
  }

  .student-new .cs-notice-detail-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .student-new .cs-notice-detail-title,
  .student-new .cs-notice-detail-date {
    font-size: 13px;
  }
}

/* Print Styles */
@media print {
  .student-new .cs-notice-search,
  .student-new .cs-notice-pagination,
  .student-new .cs-tab-menu {
    display: none;
  }
}
