@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600&display=swap');

/* Tin tức & Sự kiện — calm, spacious editorial layout.
   Scoped to this page; shared header and footer remain unchanged. */
.mtb-news-editorial {
  --news-ink: #1d1b1a;
  --news-muted: #6c6b6a;
  --news-red: #bf2532;
  --news-line: #e1ddd7;
  --news-paper: #fffcf8;
  background: var(--news-paper);
  color: var(--news-ink);
  min-height: 65vh;
  padding: 0 0 52px;
}
.mtb-news-editorial,
.mtb-news-editorial * { box-sizing: border-box; }

.mtb-news-editorial__inner {
  width: min(calc(100% - 52px), 1440px);
  margin-inline: auto;
}

.mtb-news-editorial__heading {
  text-align: center;
  padding: clamp(34px, 4vw, 58px) 0 28px;
}
.mtb-news-editorial__heading h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  padding-bottom: 9px;
  color: #141414;
  font: 500 clamp(2.1rem, 3.8vw, 3.6rem)/1.21 'Noto Serif', Georgia, serif;
  letter-spacing: -.035em;
}
.mtb-news-editorial__heading h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40%;
  right: 40%;
  height: 2px;
  background: var(--news-red);
}
.mtb-news-editorial__heading p {
  margin: 0;
  color: #74716f;
  font: 400 clamp(.94rem, 1.14vw, 1.18rem)/1.55 'Noto Serif', Georgia, serif;
}

.mtb-news-editorial__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 4px 0 11px;
}
/* A single horizontally navigable row keeps long API topics from pushing
   the featured story down. The search control stays visible outside the scroller. */
.mtb-news-editorial__topics {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d9c9bd transparent;
  padding: 2px 2px 7px;
  white-space: nowrap;
}
.mtb-news-editorial__topics::-webkit-scrollbar { height: 4px; }
.mtb-news-editorial__topics::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #d9c9bd;
}
.mtb-news-editorial__topic {
  flex: 0 0 auto;
  max-width: clamp(160px, 19vw, 260px);
  min-height: 38px;
  padding: 8px 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  scroll-margin-inline: 12px;
  border: 1px solid #dfdbd5;
  border-radius: 6px;
  background: #fffcf8;
  color: #343331;
  cursor: pointer;
  font: 500 .8rem/1.4 'Noto Sans', Arial, sans-serif;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.mtb-news-editorial__topic:hover,
.mtb-news-editorial__topic:focus-visible { border-color: var(--news-red); color: var(--news-red); }
.mtb-news-editorial__topic.is-active {
  background: var(--news-red);
  border-color: var(--news-red);
  color: #fff;
}
/* Search occupies its own clean row below the category chips. */
.mtb-news-editorial__search-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1px 0 24px;
}
.mtb-news-editorial__search-panel {
  width: min(100%, 460px);
  margin: 0;
  padding: 0;
}
.mtb-news-editorial__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mtb-news-editorial__search-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  width: 100%;
}
.mtb-news-editorial__search-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 43px;
  padding: 9px 13px;
  border: 1px solid #d8d1c8;
  border-radius: 6px;
  color: var(--news-ink);
  background: #fff;
  font: 400 .9rem/1.4 'Noto Sans', Arial, sans-serif;
}
.mtb-news-editorial__search-row input:focus-visible {
  outline: 2px solid #c34c56;
  outline-offset: 1px;
}
.mtb-news-editorial__search-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 43px;
  padding: 9px 17px;
  color: #fff;
  background: var(--news-red);
  border: 1px solid var(--news-red);
  border-radius: 6px;
  font: 600 .88rem/1.4 'Noto Sans', Arial, sans-serif;
  cursor: pointer;
}
.mtb-news-editorial__search-row button:hover,
.mtb-news-editorial__search-row button:focus-visible {
  background: #9e1d29;
}

.mtb-news-editorial__state {
  padding: 18px 0 30px;
  text-align: center;
  color: var(--news-muted);
  font: 400 1rem/1.6 'Noto Sans', Arial, sans-serif;
}
.mtb-news-editorial__state[hidden],
.mtb-news-editorial__featured[hidden],
.mtb-news-editorial__latest[hidden],
.mtb-news-editorial__more[hidden] { display: none !important; }

.mtb-news-editorial__featured {
  padding: 0 0 clamp(25px, 3.2vw, 44px);
  border-bottom: 1px solid var(--news-line);
}
.mtb-news-editorial__feature-link {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(26px, 3vw, 48px);
  text-decoration: none;
  color: inherit;
}
.mtb-news-editorial__feature-link:hover,
.mtb-news-editorial__feature-link:focus-visible { text-decoration: none; color: inherit; }
.mtb-news-editorial__feature-link > .mtb-news-editorial__image {
  height: clamp(310px, 26vw, 420px);
  aspect-ratio: auto;
  border-radius: 14px;
}
.mtb-news-editorial__feature-copy {
  min-width: 0;
  padding: 4px 0 0;
  align-self: start;
}
.mtb-news-editorial__tag {
  display: block;
  color: var(--news-red);
  font: 700 .72rem/1.55 'Noto Sans', Arial, sans-serif;
  letter-spacing: .105em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mtb-news-editorial__feature-copy h2 {
  color: #171515;
  margin: 0 0 15px;
  font: 500 clamp(1.65rem, 1.85vw, 2.18rem)/1.24 'Noto Serif', Georgia, serif;
  letter-spacing: -.025em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mtb-news-editorial__feature-copy p {
  margin: 0 0 18px;
  color: var(--news-muted);
  font: 400 clamp(.92rem, 1.06vw, 1.07rem)/1.62 'Noto Sans', Arial, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mtb-news-editorial__read {
  display: inline-block;
  color: var(--news-red);
  font: 500 .98rem/1.6 'Noto Sans', Arial, sans-serif;
}
.mtb-news-editorial__read b {
  display: inline-block;
  margin-left: 5px;
  font: 400 1.4em/0 Arial, sans-serif;
  transition: transform .2s ease;
}
.mtb-news-editorial__feature-link:hover .mtb-news-editorial__read b,
.mtb-news-editorial__card:hover .mtb-news-editorial__read b { transform: translateX(4px); }
.mtb-news-editorial__feature-link:hover h2,
.mtb-news-editorial__card:hover h3 { color: var(--news-red); }

.mtb-news-editorial__image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.6/1;
  background: #ebe7e0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(40, 30, 22, .065);
}
.mtb-news-editorial__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.mtb-news-editorial__feature-link:hover .mtb-news-editorial__image img,
.mtb-news-editorial__card:hover .mtb-news-editorial__image img { transform: scale(1.035); }
.mtb-news-editorial__image.is-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8e4dd, #f5f2eb);
}
.mtb-news-editorial__image.is-fallback::after {
  content: '\f1ea';
  font: 400 clamp(2.1rem, 4vw, 3.4rem)/1 'Font Awesome 5 Free';
  color: #a7a29a;
}
.mtb-news-editorial__image img[hidden] { display: none; }

.mtb-news-editorial__latest,
.mtb-news-editorial__press { padding-top: 22px; }
.mtb-news-editorial__latest > h2,
.mtb-news-editorial__press > h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin: 0 0 22px;
  color: #141414;
  font: 500 clamp(1.7rem, 2.55vw, 2.65rem)/1.28 'Noto Serif', Georgia, serif;
  letter-spacing: -.024em;
}
.mtb-news-editorial__latest > h2::after,
.mtb-news-editorial__press > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 2px;
  background: var(--news-red);
}
.mtb-news-editorial__cards,
.mtb-news-editorial__press-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 30px);
}
.mtb-news-editorial__card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mtb-news-editorial__card:hover,
.mtb-news-editorial__card:focus-visible { text-decoration: none; color: inherit; }
.mtb-news-editorial__card > .mtb-news-editorial__image { aspect-ratio: 1.62/1; }
.mtb-news-editorial__card-text { padding: 12px 2px 0; }
.mtb-news-editorial__card-text .mtb-news-editorial__tag {
  font-size: .64rem;
  margin: 0 0 6px;
}
.mtb-news-editorial__card h3 {
  color: #141414;
  font: 500 clamp(1.2rem, 1.7vw, 1.76rem)/1.35 'Noto Serif', Georgia, serif;
  letter-spacing: -.014em;
  margin: 0 0 9px;
}
.mtb-news-editorial__card-text p {
  color: var(--news-muted);
  font: 400 .91rem/1.65 'Noto Sans', Arial, sans-serif;
  margin: 0 0 10px;
}
.mtb-news-editorial__card-text small {
  display: block;
  color: #817c78;
  font: 400 .8rem/1.4 'Noto Sans', Arial, sans-serif;
  margin: 0 0 7px;
}
.mtb-news-editorial__card .mtb-news-editorial__read { font-size: .87rem; }
.mtb-news-editorial__more-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 29px;
}
.mtb-news-editorial__more {
  padding: 10px 22px;
  border: 1px solid var(--news-red);
  border-radius: 8px;
  background: transparent;
  color: var(--news-red);
  font: 500 .9rem/1.5 'Noto Sans', Arial, sans-serif;
  cursor: pointer;
}
.mtb-news-editorial__more:hover,
.mtb-news-editorial__more:focus-visible { background: var(--news-red); color: #fff; }
.mtb-news-editorial__more:disabled { opacity: .55; cursor: wait; }

.mtb-news-editorial__press {
  margin-top: 6px;
  border-top: 1px solid var(--news-line);
}
.mtb-news-editorial__press .mtb-news-editorial__card > .mtb-news-editorial__image {
  aspect-ratio: 2.2/1;
  border-radius: 8px;
}
.mtb-news-editorial__notice {
  grid-column: 1/-1;
  margin: 0 0 8px;
  color: var(--news-muted);
  font: 400 1rem/1.65 'Noto Sans', Arial, sans-serif;
}
@media (max-width: 992px) {
  .mtb-news-editorial__feature-link { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); gap: 22px; }
  .mtb-news-editorial__feature-link > .mtb-news-editorial__image { height: 290px; }
  .mtb-news-editorial__feature-copy h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
  .mtb-news-editorial__cards,
  .mtb-news-editorial__press-cards { gap: 18px; }
}
@media (max-width: 767px) {
  .mtb-news-editorial__inner { width: calc(100% - 32px); }
  .mtb-news-editorial__heading { padding: 27px 0 24px; }
  .mtb-news-editorial__toolbar { gap: 9px; align-items: center; }
  .mtb-news-editorial__topics { gap: 7px; padding-bottom: 6px; }
  .mtb-news-editorial__topic { max-width: min(64vw, 245px); min-height: 36px; font-size: .76rem; padding: 7px 11px; }
  .mtb-news-editorial__search-strip { margin: 0 0 19px; }
  .mtb-news-editorial__search-panel { width: 100%; }
  .mtb-news-editorial__feature-link { display: block; }
  .mtb-news-editorial__feature-link > .mtb-news-editorial__image { height: auto; aspect-ratio: 1.5 / 1; }
  .mtb-news-editorial__feature-copy { padding: 17px 0 0; }
  .mtb-news-editorial__feature-copy h2 {
    font-size: clamp(1.5rem, 5.2vw, 1.95rem);
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  .mtb-news-editorial__cards,
  .mtb-news-editorial__press-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 14px; }
  .mtb-news-editorial__card h3 { font-size: 1.13rem; }
  .mtb-news-editorial__card-text p { font-size: .83rem; }
  .mtb-news-editorial__card-text .mtb-news-editorial__tag { font-size: .61rem; }
}
@media (max-width: 470px) {
  .mtb-news-editorial__cards,
  .mtb-news-editorial__press-cards { grid-template-columns: 1fr; gap: 26px; }
  .mtb-news-editorial__card > .mtb-news-editorial__image { aspect-ratio: 1.65 / 1; }
  .mtb-news-editorial__search-row { gap: 7px; }
  .mtb-news-editorial__search-row button { padding: 8px 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mtb-news-editorial__image img,
  .mtb-news-editorial__read b,
  .mtb-news-editorial__topic { transition: none !important; }
}
