/* ====================================================
   NHẬT KÝ THỰC ĐỊA - HERO SECTION (CHUẨN MẪU)
   ==================================================== */
.nk-hero {
  padding: 60px max(24px, 4vw) 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.nk-hero__top {
  display: grid;
  /* Chia 3 cột: Cột Issue nhỏ | Cột tiêu đề | Cột ảnh lớn bên phải */
  grid-template-columns: 80px 1.1fr 1.3fr;
  align-items: center;
  position: relative;
  margin-bottom: 60px;
}

/* Khối Meta (Issue 06 / 2026) */
.nk-hero__meta {
  font-family: var(--font-condensed);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nk-hero__meta .label { font-size: 12px; font-weight: 600; letter-spacing: 2px; }
.nk-hero__meta .num { font-size: 26px; font-weight: 700; color: var(--accent-orange); margin: 2px 0; }
.nk-hero__meta .sep { font-size: 14px; opacity: 0.4; }
.nk-hero__meta .year { font-size: 14px; font-weight: 600; }

/* Khối Tiêu đề */
.nk-hero__title-wrap {
  z-index: 2; /* Đảm bảo chữ nổi lên trên nếu có giao độ */
  padding-right: 20px;
}

.nk-title {
  font-family: var(--font-condensed);
  font-size: clamp(60px, 7.5vw, 115px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.nk-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  max-width: 320px;
}

/* Khối Ảnh bên phải (Tràn rộng và có chiều cao chuẩn) */
.nk-hero__img {
  width: 100%;
  height: 380px;
  overflow: hidden;
  z-index: 1;
}

.nk-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====================================================
   TIMELINE HORIZONTAL
   ==================================================== */
.nk-timeline {
  overflow-x: auto;
  padding-bottom: 40px;
  padding-top: 30px;
}

.nk-timeline__track {
  display: flex;
  justify-content: space-between;
  min-width: 900px;
  position: relative;
}

.nk-timeline__track::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ccc;
  z-index: 1;
}

.nk-milestone {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.nk-milestone .dot {
  width: 11px;
  height: 11px;
  background-color: var(--bg-primary);
  border: 2px solid #888;
  border-radius: 50%;
  margin-bottom: 16px;
}

.nk-milestone.active .dot {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange);
}

.nk-milestone .time {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}

.nk-milestone .desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: #666;
}

/* ====================================================
   FILTER TABS
   ==================================================== */
.nk-filter {
  padding: 0 max(24px, 4vw);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-primary);
}

.nk-filter__inner {
  display: flex;
  gap: 40px;
}

.nk-filter__inner a {
  font-size: 12px;
  font-weight: 600;
  padding: 20px 0;
  color: #666;
  position: relative;
  letter-spacing: 0.5px;
}

.nk-filter__inner a.active {
  color: var(--accent-orange);
}

.nk-filter__inner a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange);
}

/* ====================================================
   ALTERNATING ARTICLE ROWS (LƯỚI SO LE)
   ==================================================== */
.nk-articles {
  background-color: var(--bg-primary);
}

.nk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-bottom: 1px solid var(--border-light);
}

/* Biến thể Light (Chữ trái - Ảnh phải) */
.nk-row--light {
  background-color: var(--bg-primary);
}

/* Biến thể Dark (Ảnh trái - Chữ phải) */
.nk-row--dark {
  background-color: #111;
  color: #fff;
}

.nk-card-content {
  padding: 80px max(40px, 5vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nk-num {
  font-family: var(--font-condensed);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
  margin-bottom: 20px;
}

.nk-num .line {
  width: 40px;
  height: 2px;
  background-color: var(--accent-orange);
}

.nk-card-title {
  font-family: var(--font-condensed);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.nk-row--light .nk-card-title { color: #111; }
.nk-row--dark .nk-card-title { color: #fff; }

.nk-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #777;
}
.nk-row--dark .nk-meta { color: #999; }
.nk-meta .sep { margin: 0 6px; opacity: 0.5; }

.nk-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
  max-width: 420px;
}
.nk-row--dark .nk-desc { color: #aaa; }

.arrow-link {
  font-size: 24px;
  color: #111;
  transition: transform 0.2s, color 0.2s;
  width: max-content;
}
.nk-row--dark .arrow-link { color: #fff; }
.arrow-link:hover {
  transform: translateX(8px);
  color: var(--accent-orange);
}

.nk-card-media {
  overflow: hidden;
  position: relative;
}
.nk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nk-row:hover .nk-card-media img {
  transform: scale(1.05);
}

/* ====================================================
   PAGINATION (PHÂN TRANG TẠP CHÍ)
   ==================================================== */
.pagination-section {
  padding: 60px max(24px, 4vw);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.pagination__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.page-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  transition: color 0.2s;
}

.page-btn:hover {
  color: var(--accent-orange);
}

.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-num {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  color: #666;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.page-num:hover {
  color: #111;
  background-color: rgba(0,0,0,0.05);
}

.page-num.active {
  background-color: #111;
  color: #fff;
}

.page-dots {
  color: #888;
  font-weight: 600;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
  .pagination__inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .nk-hero__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nk-row {
    grid-template-columns: 1fr;
  }
  /* Trên mobile, đưa ảnh lên trên, chữ xuống dưới cho tất cả các hàng */
  .nk-row--dark {
    display: flex;
    flex-direction: column-reverse;
  }
  .nk-card-content {
    padding: 40px 20px;
  }
  .nk-card-media {
    height: 300px;
  }
}