/* 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 {
  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;
  min-height: clamp(360px, 46vw, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.news-banner-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.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, .94) 0%, rgba(255, 255, 255, .78) 34%, rgba(255, 255, 255, .18) 66%, rgba(255, 255, 255, 0) 100%);
}

.news-banner-copy {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(120px, 16vw, 180px) 0 clamp(48px, 6vw, 78px);
}

.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(40px, 6vw, 84px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

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

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

.news-archive-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}

.news-archive-head h2 {
  margin: 0;
  color: var(--news-ink);
  font-family: var(--news-display);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.news-archive-rule {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--news-gold), rgba(183, 149, 82, 0));
}

.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, .92) 0%, rgba(255, 255, 255, .82) 46%, rgba(255, 255, 255, .5) 100%);
  }
  .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 { min-height: 330px; }
  .news-banner-copy { padding-top: 118px; }
  .news-archive-head { gap: 16px; }
  .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; }
}
