/* ===== Page: Danh sách tin tức ===== */

.page-news {
  background: #fff;
}

.news-crumb {
  background: #eef3fb;
}
.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  color: #6b7280;
}
.news-breadcrumb a {
  color: #6b7280;
  transition: color 0.2s;
}
.news-breadcrumb a:hover {
  color: var(--blue);
}
.news-breadcrumb span:last-child {
  color: #374151;
  font-weight: 700;
}

.news-list {
  padding: 36px 0 72px;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}

.news-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  background: #dfe7f5;
  box-shadow: 0 14px 36px rgba(29, 64, 182, 0.1);
  margin: 0px;
}
.news-hero-media {
  display: block;
  height: 100%;
  overflow: hidden;
}
.news-hero-media:hover img{
  transform: scale(1.04);
  transition: transform 0.35s ease;
}
.news-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.news-hero-panel {
  position: absolute;
  left: 20px;
  right: auto;
  bottom: 20px;
  width: min(420px, calc(100% - 40px));
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 46%);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(20, 40, 90, 0.12);
}
.news-hero-panel h2 {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
}
.news-hero-panel h2:hover a,.news-side-copy h3:hover a,.news-card-body h3:hover a{
  color: var(--blue);
}
.news-hero-panel h2 a {
  color: inherit;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.news-side-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 64, 182, 0.1);
  flex: 1;
  margin: 0px;
}
.news-side-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  min-height: 132px;
}
.news-side-media:hover img{
  transform: scale(1.04);
  transition: transform 0.35s ease;
}
.news-side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-side-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 4px 2px 0;
  gap: 18px;
}
.news-side-copy h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
}
.news-side-copy h3 a {
  color: inherit;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 64, 182, 0.1);
  display: flex;
  flex-direction: column;
}
.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card:hover .news-card-media img {
  transform: scale(1.04);
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 20px;
  flex: 1;
}
.news-card-body h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
}
.news-card-body h3 a {
  color: inherit;
}

.news-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-tag {
  display: inline-flex;
  align-items: center;
 height: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e8eef8;
  color: #999999;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.news-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #999999;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.news-arrow svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.news-arrow:hover {
  transform: translateX(3px);
  filter: brightness(1.08);
}

.page-news .site-footer {
  margin-top: 0;
}

.news-empty {
  margin: 48px 0;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

.news-pagination {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.news-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-page-item {
  margin: 0;
}
.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e8eef8;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.news-pagination a.page-numbers:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.news-pagination .page-numbers.current {
  background: var(--blue);
  color: #fff;
  cursor: default;
}
.news-pagination .page-numbers.dots {
  background: transparent;
  color: #9ca3af;
  min-width: 24px;
  padding: 0;
}
.news-pagination .prev,
.news-pagination .next {
  padding: 0 16px;
}
.news-page-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

@media (max-width: 480px) {
  .news-pagination .prev span:not([aria-hidden]),
  .news-pagination .next span:not([aria-hidden]) {
    display: none;
  }
  .news-pagination .prev,
  .news-pagination .next {
    min-width: 42px;
    padding: 0;
  }
}

@media (max-width: 1100px) {
  .news-featured {
    grid-template-columns: 1fr 1fr;
  }
  .news-hero-card,
  .news-hero-media img {
    min-height: 360px;
  }
  .news-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .news-list {
    padding: 24px 0 48px;
  }
  .news-side {
    grid-template-columns: 1fr;
  }
  .news-side-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-hero-panel {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 16px;
  }
  .news-hero-panel h2 {
    font-size: 18px;
  }
  .news-side-copy{
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .news-grid,.news-featured {
    grid-template-columns: 1fr;
  }
  .news-side-card {
    grid-template-columns: 1fr;
  }
  .news-side-media {
    min-height: 180px;
  }
}
