/* News listing only; shared homepage and article styles remain independent. */
.news-page {
  background: #f5f8fb;
  padding: 56px 0 72px;
}

.news-page .news-heading {
  margin-bottom: 32px;
  max-width: 680px;
}

.news-page .news-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.news-page .news-heading h2 {
  color: #20384b;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  margin: 0 0 12px;
}

.news-page .news-heading p {
  margin: 0;
  color: #5a6e7e;
  line-height: 1.7;
}

.news-page .posts-list {
  --bs-gutter-y: 30px;
}

.news-page .posts-list .post-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e1e9f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(21, 77, 124, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.news-page .posts-list .post-img {
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #edf2f7;
}

.news-page .posts-list .post-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-page .posts-list .post-date {
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.news-page .posts-list .post-content {
  flex: 1;
  padding: 24px;
  text-align: left;
}

.news-page .posts-list .post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.35em;
  margin: 0 0 16px;
  color: #20384b;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.news-page .posts-list .meta {
  gap: 8px 18px;
  margin-bottom: 16px;
}

.news-page .posts-list .meta > div {
  min-width: 0;
}

.news-page .posts-list .meta span {
  color: #607383;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.news-page .posts-list .post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 24px;
  color: #546a7b;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

.news-page .posts-list .readmore {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e8eef4;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1.5;
}

.news-page .posts-list .readmore i {
  margin-left: 12px;
}

.news-page .posts-list .post-item:hover,
.news-page .posts-list .post-item:focus-within {
  border-color: #b7cede;
  box-shadow: 0 12px 30px rgba(21, 77, 124, 0.12);
}

.news-page .posts-list .post-item:hover .post-img img {
  transform: scale(1.035);
}

.news-page .posts-list .readmore:focus-visible {
  outline: none;
}

.news-page .posts-list .readmore:focus-visible::after {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
  border-radius: 16px;
}

.news-page .news-empty {
  padding: 48px 24px;
  border: 1px solid #e1e9f0;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  color: #607383;
}

.news-page .news-empty i {
  display: block;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-size: 36px;
}

.news-page .news-empty p {
  margin: 0;
}

.news-page .blog-pagination {
  margin-top: 40px;
}

.news-page .blog-pagination ul {
  flex-wrap: wrap;
  gap: 8px;
}

.news-page .blog-pagination li {
  margin: 0;
  border-radius: 8px;
}

.news-page .blog-pagination li a {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
}

.news-page .blog-pagination li.active a,
.news-page .blog-pagination li:hover a {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.news-page .blog-pagination a:focus-visible {
  outline: 3px solid #2a7bc4;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .news-page {
    padding: 36px 0 48px;
  }

  .news-page .posts-list {
    --bs-gutter-y: 24px;
  }

  .news-page .posts-list .post-content {
    padding: 22px;
  }

  .news-page .posts-list .post-title {
    -webkit-line-clamp: 4;
    min-height: 0;
  }
}

/* Thẻ tin tức gọn, cùng kiểu thẻ Dịch vụ / Dự án / Khóa học */
.news-page .posts-list {
  --bs-gutter-y: 24px;
}

.news-page .posts-list .post-item {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16, 42, 67, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-page .posts-list .post-item:hover,
.news-page .posts-list .post-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(21, 77, 124, 0.15);
}

.news-page .posts-list .post-img {
  aspect-ratio: 16 / 9;
}

.news-page .posts-list .post-img img {
  font-size: 0;
}

.news-page .posts-list .post-date {
  top: 12px;
  left: 12px;
  bottom: auto;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.news-page .posts-list .post-content {
  padding: 16px 18px 16px;
}

.news-page .posts-list .post-title {
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #1f2d3a;
}

.news-page .posts-list .post-item:hover .post-title {
  color: var(--color-primary);
}

.news-page .posts-list .meta {
  margin-bottom: 8px;
}

.news-page .posts-list .post-excerpt {
  -webkit-line-clamp: 2;
  margin: 0 0 12px;
  line-height: 1.6;
  color: #4a5662;
}

.news-page .posts-list .readmore {
  padding-top: 12px;
}
