/* ================================================
   공지사항 페이지 스타일
   pages/news/notice.html
================================================ */

/* ================================================
   1. 검색 섹션
   - 공지사항 검색 기능을 위한 입력창과 버튼 스타일
================================================ */

.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
}

.search-input {
  width: 475px;
  height: 62px;
  padding: 0 30px;
  border: 1px solid #ddd;
  border-radius: 40px;
  font-size: 20px;
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
}

.search-button {
  width: 132px;
  height: 62px;
  margin-left: 15px;
  border-radius: 40px;
  font-size: 20px;
}

/* 모바일 반응형 스타일 */
@media (max-width: 767px) {
  .search-section {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 20px;
    width: 100%;
  }

  .search-input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 25px;
  }

  .search-button {
    width: 40%;
    height: 50px;
    margin-left: 0;
    border-radius: 25px;
    font-size: 16px;
  }
}

/* ================================================
   2. 공지사항 목록
   - 공지사항 카드들을 flex 형태로 배치
================================================ */

.notice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
  padding: 0 30px;
}

.notice-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
  text-decoration: none;
  color: inherit;
  max-width: 500px;
  min-width: 340px;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notice-card-image {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
}

.notice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-card-content {
  height: 100px;
  padding: 16px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-width: 0;
}

.notice-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-card-date {
  font-size: var(--font-size-base);
  color: #929292;
  font-weight: 300;
}

.notice-card-category {
  color: #39b3e7;
  font-size: var(--font-size-base);
  font-weight: 300;
}

.notice-card {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: calc(50% - 20px);
  max-width: calc(50% - 20px);
}

/* 반응형 - 태블릿 */
@media (max-width: 1023px) and (min-width: 768px) {
  .notice-list {
    align-items: center;
    justify-content: center;
    max-width: 90%;
    padding: 0;
  }

  .notice-list .notice-card {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
  .notice-list {
    align-items: center;
    justify-content: center;
    max-width: 90%;
    padding: 0;
    gap: 14px;
  }

  .notice-card {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    max-width: 100%;
  }

  .notice-card-content {
    height: auto;
    padding: 10px 20px 10px 10px;
  }

  .notice-card-image {
    width: 70px;
    height: 70px;
  }
  .notice-card-title {
    font-size: var(--font-size-base);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
  }
  .notice-card-date {
    font-size: var(--font-size-xs);
  }
  .notice-card-category {
    font-size: var(--font-size-sm);
  }
}

/* ================================================
   3. 더보기 버튼
   - 추가 공지사항을 로드하는 버튼 스타일
   - components.css의 btn-more 클래스 사용
================================================ */

.more-button-wrapper {
  text-align: center;
}
