/* ===== News Page: Hero ===== */
.hero {
  padding-bottom: 46px;
  background-image: url('../img/news/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  margin-top: 142px;
}

.main-content {
  padding: 24px 0 47px;
}

.news-list {
  margin-top: 16px;
}

.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-divider);
}

.news-item__link {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.news-item__link:hover .news-item__title {
  color: var(--color-primary);
}

.news-item__thumb {
  position: relative;
  width:  158px;
  height: 95px;
  flex-shrink: 0;
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.news-item__image {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.news-item__tag {
  position: absolute;
  left: 5px;
  bottom: 5px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 4px;
  border-radius: 2px;
}

.news-item__content {
  flex: 1;
  min-width: 0;
}

.news-item__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #090909;
}

.news-item__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 58px;
  border:1px solid #0058B4;
  padding: 6px 20px;
}

.news-item__day {
  font-family: var(--font-number);
  font-size: 20px;
  line-height: 24px;
  color: #333;
  font-weight: bold;
}

.news-item__year {
  margin-top: 2px;
  font-family: var(--font-number);
  font-size: 11px;
  line-height: 16px;
  color: #333;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 14px;
  color: #666;
}

.news-pagination__total {
  margin-right: 12px;
  color: #999;
}

.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.news-pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}

.news-pagination__page:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-pagination__page--active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.news-pagination__ellipsis {
  color: #999;
  padding: 0 4px;
}

.news-pagination__goto {
  color: #999;
  margin-left: 12px;
}

.news-pagination__input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  margin: 0 4px;
}

[data-tab-panel][hidden] {
  display: none;
}

.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin: 24px 0 8px;
  padding: 56px 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-bg-section) 0%, #fff 100%);
  border: 1px dashed #d7e6f5;
  text-align: center;
}

.news-empty-slot[hidden] {
  display: none;
}

.news-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(0, 125, 255, 0.08);
  color: var(--color-primary);
}

.news-empty__icon svg {
  width: 40px;
  height: 40px;
}

.news-empty__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #333;
}

.news-empty__desc {
  margin: 8px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-light);
}

.news-empty--error .news-empty__icon {
  background: rgba(245, 108, 108, 0.1);
  color: #f56c6c;
}

.news-list--loading {
  opacity: 0.6;
  pointer-events: none;
}

.news-pagination__btn--disabled {
  color: #ccc;
  border-color: #eee;
  pointer-events: none;
  cursor: not-allowed;
}

.news-pagination__btn--disabled:hover {
  color: #ccc;
  border-color: #eee;
}

/* ===== News Detail Page ===== */
.news-detail {
  background: #fff;
  padding: 24px 0 47px;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 16px;
  color: #666;
}

.news-breadcrumb__link {
  color: var(--color-primary);
}

.news-breadcrumb__link:hover {
  opacity: 0.8;
}

.news-breadcrumb__sep {
  color: #999;
}

.news-breadcrumb__current {
  color: #333;
}

.news-article {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
}

.news-article__title {
  margin: 0;
  font-family: var(--font-medium);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: #090909;
  text-align: center;
}

.news-article__meta {
  margin: 13px 0 0;
  font-size: 14px;
  line-height: 16px;
  color: var(--color-text-light);
  text-align: center;
}

.news-article__body {
  margin-top: 24px;
  font-size: 16px;
  line-height: 32px;
  color: #333;
  text-align: justify;
}

.news-article__body p {
  margin: 0 0 16px;
  text-indent: 2em;
}

.news-article__body p:last-child {
  margin-bottom: 0;
}
