/* ==========================================================================
   Page: News — Trung Tâm Tài Nguyên
   Layout: Hero (video bg) + Filter bar + Grid 3 cột bài viết
   ========================================================================== */

/* --- News Hero ------------------------------------------------------------ */
.news-hero {
  position: relative;
  width: 100%;
  min-height: 600px;   /* đồng bộ hero mobile mọi page: cao 600, title sát đáy */
  overflow: hidden;
  background-color: var(--color-brand-dark);
  isolation: isolate;
}

.news-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* v1.1 #Background_Image overlay: #17144db3 → #11054300 (như các hero khác) */
  background-image: linear-gradient(89.5deg,
    rgba(23, 20, 77, 0.70) 35.7%,
    rgba(17, 5, 67, 0.00) 99.3%);
  pointer-events: none;
}

.news-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  min-height: 600px;   /* đồng bộ hero mobile: title sát đáy hero 600 */
  padding-top: 120px;
  padding-bottom: 36px;
}

/* Breadcrumb (v1.1 #Breadcrumb_Container) */
.news-hero__breadcrumb { display: flex; align-items: center; }
.news-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity var(--transition-base);
  &:hover { opacity: 0.85; }
}
.news-hero__breadcrumb-icon { display: block; flex-shrink: 0; transform: rotate(180deg); }

.news-hero__title {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 46px;            /* v1.1 #Highlight_Title 46/800/130% — GIỮ mọi breakpoint */
  line-height: 1.3;
}

@media (min-width: 768px) {
  .news-hero { min-height: 440px; }
  .news-hero__inner { min-height: 440px; padding-top: 140px; padding-bottom: 72px; }
}

@media (min-width: 1200px) {
  .news-hero { min-height: 520px; }
  .news-hero__inner { min-height: 520px; padding-top: 160px; padding-bottom: 88px; }
  .news-hero__title { font-size: 46px; }
}

/* --- News Grid Section ---------------------------------------------------- */
.news-grid {
  background-color: var(--color-bg-blue);   /* v1.1 #_Home_News_1 #f6f9fc */
  padding: 56px 0 80px;
}

@media (min-width: 768px) {
  .news-grid { padding: 72px 0 96px; }
}

@media (min-width: 1200px) {
  .news-grid { padding: 96px 0 120px; }
}

/* --- Header (title + subtitle + filters) ---------------------------------- */
.news-grid__header {
  margin-bottom: 32px;
  text-align: left;
}

.news-grid__title {
  margin: 0 0 12px;
  display: block;
  font-weight: 800;             /* v1.1 #Title 800 */
  font-size: 46px;              /* v1.1 46px mọi breakpoint */
  line-height: 1.3;
  color: var(--color-text-main);   /* "Trung Tâm" = #141240 navy */
}

.news-grid__title-line { display: inline; }

/* "Tài Nguyên" = gradient xanh v1.1 #__22 */
.news-grid__title-line--accent {
  background: linear-gradient(93.7deg, #6598ea 29.5%, #1b5bd2 70.7%);   /* v1.1 #__279 */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 8px;
}

.news-grid__subtitle {
  margin: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 720px;
}

@media (min-width: 768px) {
  .news-grid__subtitle { font-size: 18px; }
  .news-grid__header { margin-bottom: 40px; }
}

/* v1.1 page news: excerpt clamp 2 MỌI breakpoint (home = 3) */
.news-card__excerpt { -webkit-line-clamp: 2; }

/* --- Filter pills --------------------------------------------------------- */
.news-grid__filters {
  display: flex;
  flex-wrap: nowrap;            /* v1.1 mobile: pills 1 HÀNG scroll ngang */
  align-items: center;
  gap: 12px;                    /* v1.1 #Filter row column-gap 12px */
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.news-grid__filters::-webkit-scrollbar { display: none; }
.news-filter { white-space: nowrap; flex-shrink: 0; }

.news-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px;   /* v1.1 inactive #Filter_Category 5px 15px + border (h36) */
  border: 1px solid var(--color-text-placeholder);   /* v1.1 #Filter_Category_0 #9ea7b5 */
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 15px;     /* v1.1 filter text 15px/500 */
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
  &:hover {
    border-color: var(--color-brand-default);
    color: var(--color-brand-default);
  }
}

.news-filter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;        /* v1.1 icon-box cao 24 → pill inactive h36 */
  color: currentColor;
}

.news-filter--active,
.news-filter--active:hover {
  padding: 10px 16px;   /* v1.1 active pill 10px 16px, border:0 → h≈36 */
  border: 0;            /* v1.1 active pill border:0 (khác inactive) */
  background-color: var(--color-brand-dark);
  color: var(--color-white);
}

/* --- News Card ------------------------------------------------------------ */
.news-grid__items {
  margin-top: 8px;
}


/* --- "Xem thêm" CTA ------------------------------------------------------- */
.news-grid__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* v1.1 #Button_0: SOLID #0d50a1, radius 12px, text 16/600 + icon mũi tên → */
.news-grid__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px 8px 20px;
  border: none;
  border-radius: 12px;
  background-color: var(--color-brand-default);   /* solid #0d50a1 (KHÔNG gradient) */
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(12, 12, 13, 0.10), 0 1px 4px rgba(12, 12, 13, 0.05);   /* v1.1 #Button_0 */
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
  &:hover,
  &:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 80, 161, 0.25);
    background-color: var(--color-brand-complement);   /* hover sáng hơn #1871dc */
  }
}
.news-grid__more-btn__arrow { display: inline-flex; }

@media (min-width: 768px) {
  .news-grid__more { margin-top: 56px; }
}


/* Contact section CSS → main.css (shared, 1 nguồn) */

/* ==========================================================================
   WORDPRESS BRIDGE — phân trang server-side (plugin wihub-site-tools)
   ========================================================================== */

/* Tab lọc giờ là thẻ <a>: giữ nguyên style pill, bỏ gạch chân */
.news-grid--server .news-filter,
.news-grid--server .news-filter:hover,
.news-grid--server .news-filter:focus {
  text-decoration: none;
}

/* Thanh phân trang dưới lưới bài */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}
.news-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--color-text-placeholder);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}
a.news-pagination__item:hover,
a.news-pagination__item:focus {
  border-color: var(--color-brand-default);
  color: var(--color-brand-default);
  text-decoration: none;
}
.news-pagination__item--current {
  border-color: var(--color-brand-dark);
  background-color: var(--color-brand-dark);
  color: var(--color-white);
}
.news-pagination__item--nav {
  font-size: 20px;
  padding-bottom: 2px;
}
