/* ================================================================
   ZNA Law Company – Tin tức Page Stylesheet
   Figma frame: 4260:1030  |  1920 × 5471px
   Content container: max-width 1292px (x:314→x:1606 in Figma)
================================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --blue:      #07568e;
  --yellow:    #fdeb01;
  --gray-bg:   #d9d9d9;
  --gray-text: #959595;
  --text-dark: #454545;
  --text-body: #444444;
  --black:     #000000;
  --white:     #ffffff;
  --copyright: #888888;

  --container: 1292px;
  --card-gap:   58px;  /* 3-col gap: (1292 - 3×392) / 2 = 58px */
  --feat-gap:   52px;  /* 2-col gap: (1292 - 2×620) / 2 = 52px (single gap) */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; color: var(--text-dark); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER CTA ── */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 42px;
  background: #fdeb01;
  color: #07568e;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid #07568e;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.header-cta:hover { background: #07568e; color: #fff; }
.nav a[aria-current="page"] { color: var(--blue); }

/* ================================================================
   HERO BANNER  (1920 × 450px)
================================================================ */
.hero-news {
  position: relative;
  width: 100%; height: 450px;
  overflow: hidden;
  background: url('images/hero-news.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 40px;
}
.hero-title {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 45px; color: var(--gray-bg);
  line-height: 1.3; margin-bottom: 24px;
}
.hero-subtitle {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--white);
  line-height: 1.7;
}

/* ================================================================
   SECTION SHARED STYLES
================================================================ */
.section-articles,
.section-notable,
.section-new-articles {
  padding: 80px 0;
}
.section-title {
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 40px; color: var(--blue);
  line-height: 1.3; margin-bottom: 48px;
}
.section-more {
  margin-top: 60px;
}

/* ── Xem thêm / Đọc thêm button ── */
.btn-more {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 14px;
  width: 230px; height: 75px;
  border: 2px solid var(--yellow);
  background: transparent;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--black);
  cursor: pointer; letter-spacing: 0.5px;
  transition: background .2s, color .2s;
}
.btn-more:hover { background: var(--yellow); }
.btn-more__arrow {
  color: var(--yellow);
  font-size: 16px;
  transition: color .2s;
}
.btn-more:hover .btn-more__arrow { color: var(--black); }

/* ── Inline "đọc tiếp" link ── */
.link-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--black);
  transition: color .2s;
}
.link-read-more:hover { color: var(--blue); }
.link-read-more i { font-size: 14px; }

/* ================================================================
   FEATURED 2-COLUMN GRID  (Group 3691)
   620px × 500px images, gap 52px
================================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--feat-gap);
  margin-bottom: 50px;
}
.featured-card { display: flex; flex-direction: column; }
.featured-img-wrap {
  width: 100%; height: 500px; overflow: hidden; flex-shrink: 0;
}
.featured-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.featured-card:hover .featured-img-wrap img { transform: scale(1.04); }
.featured-body {
  padding-top: 30px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ================================================================
   CARD META ROW  (author/category + date)
================================================================ */
.card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
}
.card-author {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--black);
}
.card-category {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--black);
}
.card-date {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 16px; color: var(--text-dark);
}

/* ── Large card title (40px) ── */
.card-title-lg {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 40px; color: var(--black);
  line-height: 1.3;
}

/* ── Body / Excerpt text ── */
.card-body-text,
.card-excerpt {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 18px; color: var(--text-body);
  line-height: 1.7;
}

/* ================================================================
   3-COLUMN NEWS GRID  (392px × 300px images)
   gap: 58px
================================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}
.news-card { display: flex; flex-direction: column; }
.news-card-img {
  width: 100%; height: 300px; overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body {
  padding-top: 30px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── No excerpt variant (Bài viết 3 small cards) ── */
.news-grid--no-excerpt .card-title-lg {
  font-size: 36px;
}

/* ================================================================
   CTA BANNER  (Group 3692 — 1920 × 600px)
================================================================ */
.cta-banner {
  position: relative;
  width: 100%; height: 600px;
  background: url('images/news-banner-cta.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.cta-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 1200px;
}
.cta-text {
  font-family: 'Roboto', sans-serif; font-weight: 400;
  font-size: 60px; color: var(--white);
  line-height: 1.3; margin-bottom: 60px;
  white-space: pre-line;
}
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 300px; height: 75px;
  background: var(--yellow);
  border: 2px solid var(--black);
  font-family: 'Roboto', sans-serif; font-weight: 900;
  font-size: 18px; color: var(--black);
  letter-spacing: 0.5px; cursor: pointer;
  transition: background .2s;
}
.btn-cta:hover { background: #f5e000; }

/* ================================================================
   TIN TỨC NỔI BẬT & TIN MỚI sections
   Both use .section-notable / .section-new-articles (same padding as shared)
================================================================ */
.section-notable { background: #fff; }
.section-new-articles { background: #fafafa; }


/* ================================================================
   RESPONSIVE
================================================================ */

/* ── 1440px ── */
@media (max-width: 1440px) {
  .hero-title { font-size: 38px; }
  .cta-text   { font-size: 48px; }
}

/* ── 1200px ── */
@media (max-width: 1200px) {
  .card-title-lg { font-size: 32px; }
  .cta-text { font-size: 40px; }
}

/* ── 1024px (tablet landscape) ── */
@media (max-width: 1024px) {
  .hero-news { height: 360px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }

  .featured-grid { grid-template-columns: 1fr; gap: 48px; }
  .featured-img-wrap { height: 380px; }

  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .news-grid--no-excerpt .card-title-lg { font-size: 28px; }

  .cta-banner { height: 480px; }
  .cta-text { font-size: 34px; }
  .btn-cta { width: 260px; }
}

/* ── 768px (tablet portrait / large mobile) ── */
@media (max-width: 768px) {
  .hero-news { height: 280px; }
  .hero-title { font-size: 26px; margin-bottom: 14px; }
  .hero-subtitle { font-size: 14px; }

  .section-articles,
  .section-notable,
  .section-new-articles { padding: 48px 0; }
  .section-title { font-size: 28px; margin-bottom: 28px; }

  .featured-img-wrap { height: 260px; }
  .card-title-lg { font-size: 26px; }
  .card-body-text, .card-excerpt { font-size: 16px; }

  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-card-img { height: 220px; }

  .cta-banner { height: 380px; }
  .cta-text { font-size: 26px; margin-bottom: 36px; }
  .btn-cta { width: 230px; height: 60px; font-size: 16px; }
}

/* ── 480px (small mobile) ── */
@media (max-width: 480px) {
  .hero-news { height: 220px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { display: none; }

  .section-title { font-size: 22px; }
  .card-title-lg { font-size: 22px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .featured-img-wrap { height: 200px; }
  .news-card-img { height: 180px; }

  .btn-more { width: 200px; height: 60px; font-size: 15px; }

  .cta-banner { height: 300px; }
  .cta-text { font-size: 20px; margin-bottom: 24px; }
  .btn-cta { width: 190px; height: 52px; font-size: 14px; }
}
