/* =============================================================================
   DN Studio — Tin tức
   Dựng theo tin-tuc.png (1035×1520). Số đo trong chú thích là px đo trên file
   thiết kế; px thật = px thiết kế × 1480/964 ≈ 1.535 (khổ nội dung 1480px,
   trùng khổ nội dung trang chủ 2 và kho giao diện).
   Nạp sau marketing.css + home2.css (nav & footer dùng chung .h2-*).
   ========================================================================== */

.tt-site {
  font-family: var(--dn-font);
  --t-blue:       #0d58f7;   /* nút, nhấn, gạch chân   (đo #0f4dfc / #0a5bfb) */
  --t-blue-dark:  #0844cc;
  --t-blue-tint:  #f5f9ff;   /* ô chuyên mục đang chọn */
  --t-sky:        #2f9bff;   /* dòng viết tay ở hero   */
  --t-sky-bg:     #e9f3ff;   /* nền banner sáng        */
  --t-royal:      #0d51cf;   /* H1 banner sáng         */
  --t-ink:        #101f3d;   /* tiêu đề                */
  --t-body:       #6d7b93;   /* chữ thường             */
  --t-muted:      #8f9cb2;   /* ngày tháng, lượt xem   */
  --t-line:       #ebeff7;
  --t-panel:      #fafbfd;   /* nền thẻ "xem nhiều"    */
  --t-navy:       #04102a;

  --t-wrap:       1548px;    /* 1480 nội dung + 2×34 lề */
  --t-gut:        34px;

  --t-sd:         0 14px 34px -24px rgba(14, 36, 84, .42);

  background: #fff;
}

.tt { overflow-x: clip; background: #fff; }
.tt-wrap { max-width: var(--t-wrap); margin: 0 auto; padding: 0 var(--t-gut); }

.tt h1, .tt h2, .tt h3 { margin: 0; }
.tt p { margin: 0; }
.tt ul, .tt ol { margin: 0; padding: 0; list-style: none; }
.tt a { text-decoration: none; }
.tt-svg { width: 1em; height: 1em; display: block; flex: 0 0 auto; }

/* nhãn chuyên mục xanh — dùng lại ở hero, thẻ lớn và danh sách */
.tt-chip {
  display: inline-flex; align-items: center; height: 21px; padding: 0 10px;
  border-radius: 6px; background: var(--t-blue); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .045em;
  text-transform: uppercase; white-space: nowrap;
}

/* tiêu đề mục: 10.5px thiết kế (cao chữ hoa) → 21px */
.tt-h2 {
  font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: .005em;
  text-transform: uppercase; color: var(--t-ink);
}
.tt-h2::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: var(--t-blue); margin-top: 11px;
}
.tt-h2--plain::after { display: none; }

/* Nav dùng chung .h2-nav trong home2.css — không đè size/type ở đây. */

/* ================================================================= HERO === */
/* Banner sáng tin-tuc.png (1937 × 812) — cùng ngôn ngữ với hero Giới thiệu /
   Dịch vụ: nửa trái trời nhạt cho chữ, minh hoạ Hội An nằm bên phải. */
.tt-hero {
  position: relative; isolation: isolate; display: flex; justify-content: center;
  min-height: 760px; background: var(--t-sky-bg);
}
.tt-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-repeat: no-repeat; background-position: 50% 36%; background-size: cover;
}
.tt-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 26%,
                    rgba(255, 255, 255, .64) 44%, rgba(255, 255, 255, .18) 60%,
                    rgba(255, 255, 255, 0) 76%),
    linear-gradient(0deg, var(--t-sky-bg) 2%, rgba(233, 243, 255, .92) 11%,
                    rgba(233, 243, 255, .48) 22%, rgba(233, 243, 255, 0) 36%);
}
.tt-hero__in {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 855px; align-items: start;
  padding-top: 76px; padding-bottom: 104px;
}

.tt-hero__title {
  font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: -.012em;
  text-transform: none; color: var(--t-royal); text-shadow: none;
}
.tt-hero__script {
  margin-top: 22px; max-width: 560px;
  font-family: var(--dn-font);
  font-size: 17px; font-weight: 500; line-height: 1.75;
  letter-spacing: 0; color: #4d5f7d; text-shadow: none;
}
/* 11px → 17px, giãn dòng 21px → 32px */
.tt-hero__lead {
  margin-top: 56px; color: #cbd8ec; font-size: 17px; line-height: 1.9; font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 6, 18, .8);
}

/* ô tìm kiếm: 270×40 thiết kế → 420×60 */
.tt-search {
  position: relative; margin-top: 38px; width: 420px; max-width: 100%;
}
.tt-search input {
  width: 100%; height: 60px; padding: 0 62px 0 26px; border: 0; outline: 0;
  border-radius: 999px; background: #fff;
  font-family: inherit; font-size: 15.5px; font-weight: 500; color: var(--t-ink);
  box-shadow: 0 20px 40px -28px rgba(0, 10, 30, .8);
}
.tt-search input::placeholder { color: #8f9cb2; font-weight: 400; }
.tt-search input::-webkit-search-cancel-button { display: none; }
.tt-search button {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: var(--t-blue); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.tt-search button:hover { background: var(--t-blue-dark); }

/* --------------------------------------------------- ba bài viết ở hero -- */
/* Khối bài viết canh thấp hơn cột chữ — giữ tỉ lệ với banner sáng mới. */
.tt-hero__news {
  margin-top: 58px;
  display: grid; grid-template-columns: 439px minmax(0, 1fr); gap: 21px;
}

/* bài nổi bật: 286×247 thiết kế → 439×379 */
.tt-feat {
  position: relative; isolation: isolate; display: block; height: 379px;
  border-radius: 20px; overflow: hidden;
  background-color: #061229; background-size: cover; background-position: 64% center;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 60px -38px rgba(0, 0, 0, .95);
}
.tt-feat__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0) 30%, rgba(2, 8, 20, .74) 55%, rgba(2, 8, 20, .95) 100%);
}
.tt-feat__in {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; padding: 0 24px 22px;
}
.tt-feat__title {
  margin-top: 15px; color: #fff; font-size: 25px; font-weight: 700;
  line-height: 1.38; letter-spacing: -.008em;
}
.tt-feat__sum {
  margin-top: 14px; color: #c4d2e8; font-size: 13px; line-height: 1.85; max-width: 380px;
}
.tt-feat__meta {
  margin-top: 20px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  color: #bccadf; font-size: 12.5px;
}
.tt-feat__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tt-feat__meta .tt-svg { width: 16px; height: 16px; }

/* hai bài phụ: cột phải 395px, chia đôi theo chiều dọc */
.tt-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }

.tt-mini {
  position: relative; overflow: hidden; border-radius: 18px; background: #fff;
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .85);
}
.tt-mini__copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 20px 33% 20px 22px;
}
.tt-mini__title {
  margin-top: 14px; color: var(--t-ink); font-size: 15px; font-weight: 700; line-height: 1.7;
}
.tt-mini__date { margin-top: 14px; color: var(--t-muted); font-size: 12.5px; }
.tt-mini__shot {
  position: absolute; z-index: 1; inset: 0 0 0 44%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}
.tt-mini:hover { transform: translateY(-2px); }
.tt-mini { transition: transform .25s ease; }

/* ============================================================ CHUYÊN MỤC = */
/* thẻ trắng 964×76 thiết kế → 1480×117, nằm dưới hero 14px → 21px           */
.tt-tabsbar { position: relative; z-index: 6; margin-top: 21px; }
.tt-tabs {
  display: flex; align-items: stretch; gap: 8px; height: 117px; padding: 10px 12px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 28px 56px -36px rgba(8, 26, 66, .5), 0 2px 6px -3px rgba(8, 26, 66, .12);
}

.tt-tab {
  flex: 0 0 150px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; border-radius: 18px; padding: 0 8px;
  color: var(--t-ink); border: 1px solid transparent; transition: background .2s ease, color .2s ease;
}
.tt-tab__ic { font-size: 34px; color: #16233f; display: block; }
.tt-tab__tx { font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.tt-tab:hover { background: var(--t-blue-tint); }
.tt-tab:hover .tt-tab__ic { color: var(--t-blue); }

.tt-tab.is-on {
  flex: 0 0 164px; background: var(--t-blue-tint); border-color: #e3ecfb; color: var(--t-blue);
}
.tt-tab.is-on .tt-tab__ic { color: var(--t-blue); }
.tt-tab.is-on .tt-tab__tx { font-weight: 700; }
/* ô "Tất cả bài viết" trong bản thiết kế là 4 khối đặc */
.tt-tab.is-on .tt-svg { fill: currentColor; stroke: none; }

/* ============================================== NỘI DUNG + CỘT PHẢI ====== */
/* cột trái 704px thiết kế → 1081, cột phải 248 → 381, cách nhau 18px        */
.tt-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 381px; gap: 18px;
  align-items: start; padding-top: 46px;
}

/* ------------------------------------------------------- bài mới nhất --- */
/* thẻ lớn 356 thiết kế → 546, cột danh sách 334 → 513, cách nhau 21px       */
.tt-latest {
  margin-top: 24px;
  display: grid; grid-template-columns: 546px minmax(0, 1fr); gap: 21px; align-items: start;
}

.tt-card {
  border: 1px solid var(--t-line); border-radius: 18px; background: #fff;
  padding: 5px; box-shadow: var(--t-sd);
}
.tt-card__shot { position: relative; display: block; border-radius: 14px; overflow: hidden; }
.tt-card__shot img { display: block; width: 100%; height: 290px; object-fit: cover; }
.tt-card__flag {
  position: absolute; top: 14px; left: 16px;
  display: inline-flex; align-items: center; height: 30px; padding: 0 15px;
  border-radius: 8px; background: var(--t-blue); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tt-card__body { padding: 25px 18px 18px; }
.tt-card__body h3 { margin-top: 17px; }
.tt-card__body h3 a {
  color: var(--t-ink); font-size: 22px; font-weight: 800; line-height: 1.55; letter-spacing: -.01em;
}
.tt-card__body h3 a:hover { color: var(--t-blue); }
.tt-card__body > p { margin-top: 14px; color: var(--t-body); font-size: 14px; line-height: 1.95; }

.tt-card__foot {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tt-meta { display: flex; align-items: center; gap: 30px; color: var(--t-muted); font-size: 12.5px; }
.tt-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tt-meta .tt-svg { width: 16px; height: 16px; }
.tt-more {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--t-blue); font-size: 13px; font-weight: 600;
}
.tt-more .tt-svg { width: 16px; height: 16px; }
.tt-more:hover { gap: 13px; }
.tt-more { transition: gap .2s ease; }

/* danh sách 4 bài: ảnh 110×79 thiết kế → 169×121, bước 94 → 144            */
.tt-list { display: flex; flex-direction: column; gap: 23px; }
.tt-item { display: grid; grid-template-columns: 169px minmax(0, 1fr); gap: 29px; align-items: start; }
.tt-item__shot { display: block; border-radius: 12px; overflow: hidden; }
.tt-item__shot img { display: block; width: 100%; height: 121px; object-fit: cover; }
.tt-item__copy { padding-top: 2px; }
.tt-item__copy h3 { margin-top: 12px; }
.tt-item__copy h3 a {
  color: var(--t-ink); font-size: 15.5px; font-weight: 700; line-height: 1.62;
}
.tt-item__copy h3 a:hover { color: var(--t-blue); }
.tt-item__meta {
  margin-top: 13px; display: flex; align-items: center; gap: 16px;
  color: var(--t-muted); font-size: 13px;
}
.tt-item__meta i { width: 1px; height: 13px; background: #dfe4ee; display: block; }
.tt-item__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tt-item__meta .tt-svg { width: 16px; height: 16px; }

/* --------------------------------------------------- chủ đề quan tâm ---- */
/* 5 thẻ 128×123 thiết kế → ~197×190, cách nhau 15px                         */
.tt-main > .tt-h2--plain { margin-top: 29px; }
.tt-topics {
  margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px;
}
.tt-topic {
  position: relative; isolation: isolate; display: block; height: 190px;
  border-radius: 14px; overflow: hidden; background-color: #0a1526;
  background-size: cover; background-position: center;
  box-shadow: var(--t-sd);
}
/* ảnh trong bản thiết kế đều tối và trầm — kéo chung một tông cho 5 thẻ */
.tt-topic__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 10, 22, .34) 0%, rgba(4, 10, 22, .62) 48%, rgba(3, 8, 18, .93) 100%),
    linear-gradient(0deg, rgba(6, 14, 30, .3), rgba(6, 14, 30, .3));
}
.tt-topic__in {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 16px 18px;
}
.tt-topic__in strong { display: block; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.tt-topic__in small { display: block; margin-top: 8px; color: #cbd6e6; font-size: 12.5px; }
.tt-topic:hover .tt-topic__veil { opacity: .84; }
.tt-topic__veil { transition: opacity .25s ease; }

/* ================================================================ CỘT PHẢI */
.tt-side { display: flex; flex-direction: column; gap: 23px; }

/* thẻ "bài viết xem nhiều": 248×366 thiết kế → 381×562 */
.tt-pop {
  border: 1px solid var(--t-line); border-radius: 20px; background: var(--t-panel);
  padding: 24px 22px;
}
.tt-pop__title {
  font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  text-transform: uppercase; color: var(--t-ink);
}
.tt-pop__list { margin-top: 30px; display: flex; flex-direction: column; gap: 27px; }
.tt-pop__list li {
  display: grid; grid-template-columns: 30px 81px minmax(0, 1fr); gap: 18px; align-items: center;
}
.tt-pop__num {
  color: var(--t-blue); font-size: 17px; font-weight: 800; line-height: 1; letter-spacing: -.01em;
}
.tt-pop__shot { display: block; border-radius: 10px; overflow: hidden; }
.tt-pop__shot img { display: block; width: 81px; height: 71px; object-fit: cover; }
.tt-pop__tx { color: var(--t-ink); font-size: 14px; font-weight: 500; line-height: 1.68; }
.tt-pop__tx:hover { color: var(--t-blue); }

/* thẻ đăng ký nhận tin: 248×216 thiết kế → 381×332 */
.tt-sub {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 18px; padding: 34px 20px 26px;
  background: linear-gradient(212deg, #0a3ab8 0%, #05205e 48%, #030f28 100%);
  color: #fff;
}
.tt-sub__plane {
  position: absolute; top: 32px; right: 22px; z-index: 2;
  font-size: 34px; color: rgba(255, 255, 255, .92);
}
.tt-sub h2 {
  font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  text-transform: uppercase; color: #fff;
}
.tt-sub h2::after {
  content: ""; display: block; width: 61px; height: 4px; border-radius: 2px;
  background: #fff; margin-top: 9px;
}
.tt-sub > p { margin-top: 15px; color: #d3e0f6; font-size: 13.5px; line-height: 1.85; }

.tt-sub__form { margin-top: 20px; }
.tt-sub__form input {
  width: 100%; height: 53px; padding: 0 20px; border: 0; outline: 0; border-radius: 12px;
  background: #fff; font-family: inherit; font-size: 14px; color: var(--t-ink);
}
.tt-sub__form input::placeholder { color: #9aa7bd; }
.tt-sub__form button {
  margin-top: 14px; width: 100%; height: 48px; border: 0; cursor: pointer;
  border-radius: 999px; background: #0a5bfb; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.tt-sub__form button .tt-svg { width: 17px; height: 17px; }
.tt-sub__form button:hover { background: #0c4ad0; }

.tt-sub__note {
  margin-top: 15px; display: flex; align-items: center; gap: 8px;
  color: #b9c8e2; font-size: 11.5px;
}
.tt-sub__note .tt-svg { width: 14px; height: 14px; }

/* ================================================================== CTA === */
/* dải 964×123 thiết kế → 1480×189, cách khối trên 26px → 40px               */
.tt-cta-sec { padding: 70px 0 20px; }
.tt-cta {
  position: relative; isolation: isolate;
  height: 189px; border-radius: 20px;
  background: linear-gradient(96deg, #000a21 0%, #000c28 46%, #001440 80%, #001238 100%);
}
.tt-cta__city {
  position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 380px;
  border-radius: 20px 0 0 20px;
  background-size: cover; background-position: 30% center; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 100%);
}
.tt-cta__agent {
  position: absolute; z-index: 1; right: 154px; bottom: 0;
  width: 164px; height: 189px; object-fit: cover; object-position: center bottom;
}
.tt-cta__in {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-left: 356px;
}
.tt-cta__in h2 {
  font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em;
  text-transform: uppercase; color: #fff;
}
.tt-cta__in > p { margin-top: 12px; color: #c4d1e7; font-size: 14.5px; line-height: 1.5; }
.tt-cta__acts { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tt-chip2 {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 22px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07); color: #fff;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.tt-chip2 .tt-svg { width: 17px; height: 17px; }
.tt-chip2:hover { background: rgba(255, 255, 255, .16); }
.tt-chip2--go {
  background: #0c5cf0; border-color: #0c5cf0; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; font-size: 13px; padding: 0 24px;
}
.tt-chip2--go:hover { background: #0a4bcb; border-color: #0a4bcb; }

/* ============================================================ THU NHỎ ==== */
@media (max-width: 1420px) {
  .tt-hero__in { grid-template-columns: minmax(0, 1fr) 640px; }
  .tt-hero__news { grid-template-columns: minmax(0, 1fr) 300px; }
  .tt-latest { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  .tt-tabs { overflow-x: auto; }
  .tt-tab { flex: 0 0 138px; }
  .tt-tab.is-on { flex: 0 0 150px; }
  .tt-cta__in { padding-left: 300px; }
  .tt-cta__agent { right: 60px; }
}

@media (max-width: 1180px) {
  .tt-site { --t-gut: 22px; }
  .tt-hero { display: block; min-height: 0; }
  .tt-hero__bg {
    position: relative; height: 56vw; min-height: 230px; max-height: 340px;
    background-position: 58% 60%;
  }
  .tt-hero__bg::after {
    content: ""; position: absolute; inset: auto 0 -1px 0; height: 80px;
    background: linear-gradient(0deg, var(--t-sky-bg) 8%, rgba(233, 243, 255, 0) 100%);
  }
  .tt-hero__veil { display: none; }
  .tt-hero__in { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 52px; }
  .tt-hero__news { margin-top: 44px; }
  .tt-tabsbar { margin-top: 26px; }
  .tt-tabs { height: auto; overflow-x: auto; }
  .tt-tab { padding: 14px 8px; }
  .tt-body { grid-template-columns: 1fr; gap: 40px; }
  .tt-side { max-width: 520px; }
  .tt-cta { height: auto; }
  .tt-cta__in { padding: 30px 30px 32px; }
  .tt-cta__agent { display: none; }
  .tt-cta__city { width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
}

@media (max-width: 900px) {
  .tt-hero__news { grid-template-columns: 1fr; gap: 16px; }
  .tt-feat { height: 340px; }
  .tt-latest { grid-template-columns: 1fr; gap: 30px; }
  .tt-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tt-site { --t-gut: 18px; }
  .tt-hero__title { font-size: 34px; }
  .tt-hero__script { font-size: 16.5px; }
  .tt-hero__lead { font-size: 15px; }
  .tt-hero__lead br { display: none; }
  .tt-search { width: 100%; }
  .tt-feat { height: 300px; }
  .tt-feat__title { font-size: 21px; }
  .tt-mini { grid-template-columns: 1fr; }
  .tt-mini__shot { inset: 0 0 0 40%; }
  .tt-card__body h3 a { font-size: 19px; }
  .tt-item { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .tt-item__shot img { height: 90px; }
  .tt-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-cta__in h2 { font-size: 20px; }
  .tt-cta__in { padding: 24px 20px 26px; }
  .tt-chip2 { font-size: 13px; padding: 0 16px; height: 38px; }
}
