/* ==========================================================================
   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: 360px;
  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;
  /* Tông MÀU như page journey (rgb~51,51,95 vùng chữ). Video news tối hơn journey nên
     dùng tím SÁNG hơn (72,68,128) để bù → ra cùng tông; fade phải để lộ hoạ tiết circuit */
  background-image: linear-gradient(89.5deg,
    rgba(72, 68, 128, 0.62) 35.7%,
    rgba(72, 68, 128, 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: 360px;
  padding-top: 120px;
  padding-bottom: 56px;
}

/* 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: 30px;            /* mobile-first → desktop 46 (v1.1 #Highlight_Title 46/800/130%) */
  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; }
  .news-hero__title { font-size: 38px; }
}

@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-white);
  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: 32px;
  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(90.9deg, #6598ea 29.5%, #1b5bd2 70.7%);
  -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__title { font-size: 40px; }
  .news-grid__subtitle { font-size: 18px; }
  .news-grid__header { margin-bottom: 40px; }
}

@media (min-width: 1200px) {
  .news-grid__title { font-size: 48px; }
}

/* --- Filter pills --------------------------------------------------------- */
.news-grid__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.news-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 14px;
  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: 18px;
  color: currentColor;
}

.news-filter--active,
.news-filter--active:hover {
  background-color: var(--color-brand-dark);
  border-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 0.5px 4px rgba(12, 12, 13, 0.10), 0 0.5px 4px rgba(12, 12, 13, 0.05);
  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) */
