/* ir-news-notice.css */

/* ========== 01-header / navbar ========== */
/* Uses common.css .page-header and .navbar-index styles */

/* ========== 02-banner ========== */
/* Banner styles: ir-banner.css (공통) */

/* ========== 03-newslist ========== */

.newslist-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
}

.newslist-container {
  width: 100%;
  padding: 9.375rem clamp(1.25rem, calc((100vw - 80rem) / 2), 20rem) 15.625rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.newslist-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 2.5rem;
}

.newslist-title-wrap {
  flex-shrink: 0;
}

.newslist-title {
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: 2.625rem;
  line-height: 1.3;
  color: var(--logogreen);
  margin: 0;
}

/* Search */
.newslist-search {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-select {
  position: relative;
  width: 12.5rem;
  height: 3rem;
}

.search-dropdown {
  width: 100%;
  height: 100%;
  padding: 0.8125rem 2.5rem 0.8125rem 1rem;
  border: 1px solid var(--gray);
  border-radius: 0.25rem;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--gray);
  background-color: #ffffff;
  background-image: url('../assets/icons/arrow-down-icon.svg');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
  appearance: none;
  cursor: pointer;
}

.search-input-wrap {
  width: 18.75rem;
  height: 3rem;
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid rgba(17, 17, 19, 0.2);
  border-radius: 0.25rem;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: #111113;
  background-color: #ffffff;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: rgba(17, 17, 19, 0.6);
}

.search-btn {
  width: 5rem;
  height: 3rem;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--gray);
  border-radius: 0.25rem;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--gray);
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-btn:hover {
  background-color: var(--gray);
  color: #ffffff;
}

/* Table */
.newslist-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e0e0e0;
}

.table-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--logogreen);
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.table-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 6rem;
  padding: 1.875rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.table-row:hover {
  background-color: rgba(0, 98, 65, 0.05);
}

.col-number {
  width: 5.625rem;
  flex-shrink: 0;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.col-title {
  flex: 1;
  padding-left: 2.5rem;
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.0275rem;
  color: var(--darkgreen);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-header .col-title {
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding-left: 0;
}

.col-views {
  width: 12.5rem;
  flex-shrink: 0;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.col-date {
  width: 9.375rem;
  flex-shrink: 0;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  background-color: #ffffff;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--gray);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover {
  background-color: rgba(0, 98, 65, 0.1);
  border-color: var(--logogreen);
}

.page-btn.active {
  background-color: var(--logogreen);
  border-color: var(--logogreen);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
}

.page-ellipsis {
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--gray);
}

/* Newslist - Tablet */
@media (max-width: 1199px) {
  .newslist-container {
    padding: 6rem 5% 8rem;
  }

  .newslist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .newslist-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-select {
    width: calc(40% - 0.625rem);
  }

  .search-input-wrap {
    width: calc(60% - 0.625rem);
  }

  .search-btn {
    width: 100%;
  }

  .col-views {
    display: none;
  }

  .col-number {
    width: 4rem;
  }

  .col-date {
    width: 7rem;
  }

  .col-title {
    padding-left: 1.5rem;
    font-size: 1.125rem;
  }
}

/* Newslist - Mobile */
@media (max-width: 767px) {
  .newslist-container {
    padding: 4rem 5% 6rem;
  }

  .newslist-header {
    padding-bottom: 1.5rem;
  }

  .newslist-title {
    font-size: 1.75rem;
  }

  .newslist-search {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-select,
  .search-input-wrap,
  .search-btn {
    width: 100%;
  }

  .table-header {
    display: none;
  }

  .table-row {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .col-number {
    display: none;
  }

  .col-title {
    width: 100%;
    padding-left: 0;
    font-size: 1rem;
    white-space: normal;
    order: 1;
  }

  .col-views {
    display: none;
  }

  .col-date {
    width: auto;
    font-size: 0.875rem;
    order: 2;
    color: rgba(0, 0, 0, 0.4);
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .page-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 44px;
    font-size: 0.9375rem;
  }

  .page-btn.active {
    font-size: 1rem;
  }
}
