/* News index: banner over the shared header, then the article grid. */
:root {
  --news-ink: #1e1f1d;
  --news-muted: #696a66;
  --news-gold: #b79552;
  --news-gold-deep: #8e6a2f;
  --news-line: #e2dccc;
  --news-paper: #ffffff;
  --news-display: "Montserrat", sans-serif;
  --news-body: "Plus Jakarta Sans", sans-serif;
}

body.page-tin-tuc {
  /* Nền trang là trắng, nên biểu tượng ngắt đường chỉ vàng phải đè nền trắng. */
  --dg-crest-bg: var(--news-paper);
  margin: 0;
  color: var(--news-ink);
  background: var(--news-paper);
  font-family: var(--news-body);
  -webkit-font-smoothing: antialiased;
}

body.page-tin-tuc a { color: inherit; text-decoration: none; }
body.page-tin-tuc img { display: block; max-width: 100%; }

.news-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--news-gold);
  color: #fff;
  font-size: 12px;
}
.news-skip:focus { left: 16px; top: 16px; z-index: 1200; }

/* Banner ------------------------------------------------------------------ */
.news-banner {
  position: relative;
  /* Trọn một màn hình. svh tính theo khung nhìn thật của trình duyệt di động,
     không cộng thêm phần thanh địa chỉ sẽ cuộn đi. */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* Ô lưới duy nhất phải trải kín section, nếu không phần tử .news-banner-media
     (absolute, inset:0) lấy ô lưới làm gốc và chỉ cao bằng khối chữ — ảnh nền
     đứt ngang giữa banner. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.news-banner-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Banner canh giữa theo chiều dọc (align-items: center). Với một phần tử
     absolute nằm trong lưới, canh giữa khiến height:auto co lại vừa nội dung
     thay vì trải kín ô — ảnh nền đứt ngang. Ép trải kín cả hai chiều. */
  align-self: stretch;
  justify-self: stretch;
}

.news-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 26%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 72%);
}

.news-banner-copy {
  width: min(1280px, calc(100% - 96px));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 132px) 0 clamp(40px, 5vw, 60px);
}

.news-banner-crumb {
  margin-bottom: clamp(26px, 3.4vw, 44px);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f6e66;
  font-size: 11px;
  letter-spacing: .02em;
}
.news-banner-crumb a { color: inherit; text-decoration: none; }
.news-banner-crumb a:hover { color: var(--news-gold-deep); }
.news-banner-crumb span[aria-current] { color: #35352f; }

.news-banner-label {
  margin: 0 0 14px;
  color: var(--news-gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.news-banner h1 {
  margin: 0;
  font-family: var(--news-display);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.04;
  text-transform: uppercase;
}

.news-banner-intro {
  max-width: 420px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  color: #4a4a44;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.72;
}



/* Grid -------------------------------------------------------------------- */
.news-archive {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(56px, 6.5vw, 96px) 0 clamp(72px, 8vw, 120px);
}

/* Đầu mục căn giữa rồi tới biểu tượng ngăn cách - cùng nhịp trang tuyển dụng. */
.news-archive-head { margin-bottom: clamp(10px, 1.4vw, 18px); text-align: center; }

.news-archive-head h2 {
  margin: 0;
  color: var(--news-ink);
  font-family: var(--news-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.9vw, 30px);
}

.news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 0;
  color: var(--news-muted);
  font-size: 14px;
}

.news-card {
  border: 1px solid var(--news-line);
  background: var(--news-paper);
  transition: border-color .3s ease, box-shadow .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.news-card:hover {
  border-color: rgba(183, 149, 82, .55);
  box-shadow: 0 20px 46px rgba(37, 31, 18, .1);
  transform: translateY(-4px);
}

.news-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #efeae0;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.news-card:hover .news-card-media img { transform: scale(1.05); }

.news-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.6vw, 24px);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.news-card-tag {
  color: var(--news-gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.news-card-meta > i {
  width: 1px;
  height: 12px;
  background: rgba(183, 149, 82, .5);
}

.news-card-meta time {
  color: var(--news-muted);
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  letter-spacing: .04em;
}

.news-card h3 {
  margin: 0;
  font-family: var(--news-display);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.35;
}

.news-card-summary {
  margin: 12px 0 0;
  color: var(--news-muted);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-more {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--news-gold-deep);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.news-card-more > span { transition: transform .3s ease; }
.news-card:hover .news-card-more > span { transform: translateX(5px); }

@media (max-width: 1180px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .news-banner-copy,
  .news-archive { width: calc(100% - 48px); }
  .news-banner::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .93) 0%, rgba(255, 255, 255, .88) 40%, rgba(255, 255, 255, .74) 62%, rgba(255, 255, 255, .28) 84%, rgba(255, 255, 255, .06) 100%);
  }
  .news-banner { align-items: center; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two cards abreast on a phone: the copy tightens so a 160px column still reads. */
@media (max-width: 620px) {
  .news-banner-copy,
  .news-archive { width: calc(100% - 32px); }
  .news-banner-copy { padding: 96px 0 40px; }
  .news-banner-crumb { margin-bottom: 18px; font-size: 10px; }
  .news-banner h1 { font-size: 34px; }
  .news-banner-intro { max-width: 300px; margin-top: 14px; }

  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .news-card-copy { padding: 13px 12px 15px; }
  .news-card-meta { flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
  .news-card-tag { font-size: 8.5px; letter-spacing: .1em; }
  .news-card-meta > i { display: none; }
  .news-card-meta time { font-size: 10px; }
  .news-card h3 { font-size: 13.5px; line-height: 1.3; }
  .news-card-summary {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }
  .news-card-more { padding-top: 13px; gap: 6px; font-size: 9px; letter-spacing: .1em; }
}

@media (max-width: 380px) {
  .news-grid { gap: 10px; }
  .news-card-copy { padding: 11px 10px 13px; }
  .news-card h3 { font-size: 12.5px; }
  .news-card-summary { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card-media img,
  .news-card-more > span { transition: none; }
  .news-card:hover { transform: none; }
  .news-card:hover .news-card-media img { transform: none; }
}

/* The global mobile type scale forces 20px on every card heading and relaxes card
   paragraphs; a two-up card at 160px wide needs its own, tighter scale. */
@media (max-width: 620px) {
  body.page-tin-tuc main .news-card h3,
  body.page-tin-tuc main .news-card h3 * {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }

  body.page-tin-tuc main .news-card .news-card-summary {
    font-size: 11.5px !important;
    line-height: 1.55 !important;
  }

  body.page-tin-tuc main .news-card .news-card-tag { font-size: 8.5px !important; }
  body.page-tin-tuc main .news-card .news-card-meta time { font-size: 10px !important; }
  body.page-tin-tuc main .news-card .news-card-more { font-size: 9px !important; }
  body.page-tin-tuc main .news-banner-label { font-size: 10px !important; }
}

@media (max-width: 380px) {
  body.page-tin-tuc main .news-card h3,
  body.page-tin-tuc main .news-card h3 * { font-size: 12.5px !important; }
}

/* Contact ----------------------------------------------------------------- */
.news-contact {
  /* The shared header is fixed, so #lien-he must stop clear of it. */
  scroll-margin-top: 96px;
  border-top: 1px solid var(--news-line);
  background: linear-gradient(180deg, #fbf9f4 0%, #ffffff 100%);
}

.news-contact-inner {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(56px, 6.5vw, 100px) 0 clamp(64px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.news-contact-label {
  margin: 0 0 14px;
  color: var(--news-gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.news-contact-intro h2 {
  margin: 0;
  font-family: var(--news-display);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.news-contact-lead {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.75;
}

.news-contact-facts {
  margin: clamp(26px, 3vw, 40px) 0 0;
  display: grid;
  gap: 18px;
}

.news-contact-facts div { display: grid; gap: 5px; }

.news-contact-facts dt {
  color: var(--news-gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.news-contact-facts dd {
  margin: 0;
  max-width: 380px;
  color: var(--news-ink);
  font-size: 14px;
  line-height: 1.65;
}

.news-contact-facts a { border-bottom: 1px solid rgba(183, 149, 82, .4); }
.news-contact-facts a:hover { color: var(--news-gold-deep); }

.news-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--news-line);
  background: var(--news-paper);
  box-shadow: 0 24px 60px rgba(37, 31, 18, .07);
}

.news-contact-form label { display: grid; gap: 8px; }
.news-contact-span { grid-column: 1 / -1; }

.news-contact-form label > span {
  color: var(--news-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.news-contact-form input,
.news-contact-form select,
.news-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--news-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  background: #fdfcf9;
  border: 1px solid var(--news-line);
  border-radius: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.news-contact-form textarea { resize: vertical; min-height: 118px; }

.news-contact-form input:focus,
.news-contact-form select:focus,
.news-contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(183, 149, 82, .65);
  box-shadow: 0 0 0 3px rgba(183, 149, 82, .13);
}

.news-contact-form :is(input, textarea)::placeholder { color: #b3b1a9; }

.news-contact-form :is(input, textarea, select).is-invalid {
  border-color: #c0553f;
  box-shadow: 0 0 0 3px rgba(192, 85, 63, .12);
}

.news-contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 210px;
  margin-top: 4px;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--news-gold);
  border: 0;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.news-contact-submit span { transition: transform .3s ease; }

.news-contact-submit:hover,
.news-contact-submit:focus-visible {
  outline: none;
  background: var(--news-gold-deep);
  box-shadow: 0 16px 34px rgba(142, 106, 47, .26);
  transform: translateY(-2px);
}

.news-contact-submit:hover span { transform: translateX(4px); }

.news-contact-note,
.news-contact-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--news-muted);
  font-size: 12px;
  line-height: 1.6;
}

.news-contact-status:empty { display: none; }
.news-contact-status { color: var(--news-gold-deep); font-weight: 600; }
.news-contact-status.is-error { color: #c0553f; }

@media (max-width: 980px) {
  .news-contact-inner {
    width: calc(100% - 48px);
    grid-template-columns: minmax(0, 1fr);
  }
  .news-contact-facts dd { max-width: none; }
}

@media (max-width: 620px) {
  .news-contact-inner { width: calc(100% - 32px); }
  .news-contact-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px 22px;
    gap: 15px;
  }
  .news-contact-submit { width: 100%; justify-self: stretch; }
  .news-contact-lead { font-size: 13.5px; }
}

/* The global mobile type scale relaxes form copy; keep the field labels compact. */
@media (max-width: 620px) {
  body.page-tin-tuc main .news-contact-form label > span { font-size: 10px !important; letter-spacing: .12em !important; }
  body.page-tin-tuc main .news-contact-note,
  body.page-tin-tuc main .news-contact-status { font-size: 11.5px !important; line-height: 1.55 !important; }
  body.page-tin-tuc main .news-contact-facts dd { font-size: 13px !important; }
  body.page-tin-tuc main .news-contact-label { font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .news-contact-submit,
  .news-contact-submit span { transition: none; }
  .news-contact-submit:hover { transform: none; }
}

/* shared-shell.css giới hạn mọi ảnh trong main còn 65svh từ 981px trở lên, để
   ảnh minh hoạ không lấn hết màn hình. Banner trang tin tức thì ngược lại —
   nó phải cao trọn một màn hình, nên miễn trừ đúng hai phần tử của nó. */
@media (min-width: 981px) {
  body.page-tin-tuc main .news-banner-media,
  body.page-tin-tuc main .news-banner-media img {
    max-height: none !important;
  }
}
