/* ==========================================================================
   Danh Nhan Pages — Biography pages
   Style cho /danh-nhan/*
   ========================================================================== */

.dn-main {
  min-height: calc(100vh - 200px);
  padding: 24px 0 48px;
  background: #f5f3ff;  /* light purple — regal / scholarly feel */
}

.dn-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Breadcrumb ===== */
.dn-breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: #6b7280;
}

.dn-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dn-breadcrumb li {
  display: flex;
  align-items: center;
}

.dn-breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  color: #d1d5db;
}

.dn-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}

.dn-breadcrumb a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.dn-breadcrumb [aria-current="page"] {
  color: #111827;
  font-weight: 500;
}

/* ===== Article ===== */
.dn-article {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 1px 3px rgba(91, 33, 182, 0.08), 0 4px 20px rgba(91, 33, 182, 0.04);
  margin-bottom: 24px;
  border-top: 4px solid #7c3aed;
}

.dn-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dn-section-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dn-section-vn {
  background: #fef3c7;
  color: #92400e;
}

.dn-section-tg {
  background: #dbeafe;
  color: #1e40af;
}

.dn-category {
  display: inline-block;
  background: #ede9fe;
  color: #5b21b6;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.dn-name {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-family: Georgia, 'Times New Roman', serif;
}

.dn-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e5e7eb;
}

.dn-intro strong {
  color: #111827;
}

/* ===== Content ===== */
.dn-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.dn-content p {
  margin: 0 0 16px;
  text-align: justify;
}

.dn-content strong {
  color: #111827;
  font-weight: 600;
}

/* ===== Prev/Next ===== */
.dn-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.dn-nav-prev,
.dn-nav-next {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.15s;
}

.dn-nav-next {
  text-align: right;
}

.dn-nav-prev:hover,
.dn-nav-next:hover {
  border-color: #7c3aed;
  background: #f5f3ff;
  transform: translateY(-2px);
}

.dn-nav-prev span,
.dn-nav-next span {
  font-size: 12px;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dn-nav-prev strong,
.dn-nav-next strong {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
}

.dn-nav-placeholder {
  display: block;
}

/* ===== Related ===== */
.dn-related {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(91, 33, 182, 0.05);
  margin-bottom: 24px;
  border-left: 4px solid #7c3aed;
}

.dn-related h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
}

.dn-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}

.dn-related a {
  display: block;
  padding: 8px 12px;
  background: #f5f3ff;
  border-radius: 6px;
  color: #5b21b6;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s;
}

.dn-related a:hover {
  background: #ede9fe;
  color: #4c1d95;
  transform: translateX(2px);
}

/* ===== Back link ===== */
.dn-back {
  text-align: center;
  padding: 16px 0;
}

.dn-back-link {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.dn-back-link:hover {
  background: #f5f3ff;
  border-color: #7c3aed;
  color: #5b21b6;
}

/* ===== Section / Category / Index pages ===== */
.dn-index-title,
.dn-cat-title {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-family: Georgia, 'Times New Roman', serif;
}

.dn-index-intro,
.dn-cat-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 740px;
  margin: 0 0 32px;
}

.dn-index-intro strong {
  color: #111827;
}

.dn-group {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(91, 33, 182, 0.05);
  margin-bottom: 20px;
}

.dn-group-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ede9fe;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.dn-group-title a {
  color: #111827;
  text-decoration: none;
}

.dn-group-title a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

.dn-count {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 10px;
  border-radius: 999px;
}

.dn-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.dn-group-list a {
  display: block;
  padding: 9px 14px;
  color: #5b21b6;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.15s;
}

.dn-group-list a:hover {
  background: #f5f3ff;
  color: #4c1d95;
}

/* ===== Category page: grid ===== */
.dn-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.dn-grid-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.15s;
}

.dn-grid-item:hover {
  border-color: #7c3aed;
  background: #f5f3ff;
  transform: translateY(-2px);
}

.dn-grid-item a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 14px;
}

.dn-grid-name {
  display: block;
}

/* ===== Other categories ===== */
.dn-other-cats {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
}

.dn-other-cats h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.dn-other-cats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dn-other-cats-list a {
  display: inline-block;
  padding: 6px 12px;
  background: #ede9fe;
  border-radius: 999px;
  color: #5b21b6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.dn-other-cats-list a:hover {
  background: #ddd6fe;
  color: #4c1d95;
}

/* ===== Super index page (VN + TG) ===== */
.dn-super-title {
  font-size: 38px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-family: Georgia, 'Times New Roman', serif;
}

.dn-super-intro {
  font-size: 16px;
  line-height: 1.75;
  color: #4b5563;
  max-width: 740px;
  margin: 0 0 36px;
}

.dn-super-intro strong {
  color: #111827;
}

.dn-super-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dn-super-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(91, 33, 182, 0.08);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.dn-super-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(91, 33, 182, 0.15);
  border-color: #7c3aed;
}

.dn-super-vn {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.dn-super-tg {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.dn-super-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.dn-super-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
}

.dn-super-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin: 0 0 12px;
}

.dn-super-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 16px;
}

.dn-super-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dn-super-cats li {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .dn-main { padding: 16px 0 32px; }
  .dn-container { padding: 0 12px; }
  .dn-article { padding: 22px 24px; }
  .dn-name { font-size: 26px; }
  .dn-index-title,
  .dn-cat-title { font-size: 26px; }
  .dn-super-title { font-size: 28px; }
  .dn-content { font-size: 15px; line-height: 1.75; }
  .dn-prev-next { grid-template-columns: 1fr; }
  .dn-group-list { grid-template-columns: 1fr; }
  .dn-grid { grid-template-columns: 1fr; }
  .dn-super-grid { grid-template-columns: 1fr; }
  .dn-super-card { padding: 24px 22px; }
  .dn-related ul { grid-template-columns: 1fr; }
}

/* ===== Dark mode ===== */
body.theme-dark .dn-main { background: #1e1b2e; }
body.theme-dark .dn-article,
body.theme-dark .dn-related,
body.theme-dark .dn-group,
body.theme-dark .dn-other-cats,
body.theme-dark .dn-grid-item,
body.theme-dark .dn-nav-prev,
body.theme-dark .dn-nav-next {
  background: #2e2a3e;
  border-color: #44405a;
}
body.theme-dark .dn-name,
body.theme-dark .dn-index-title,
body.theme-dark .dn-cat-title,
body.theme-dark .dn-super-title,
body.theme-dark .dn-group-title,
body.theme-dark .dn-group-title a,
body.theme-dark .dn-related h2,
body.theme-dark .dn-other-cats h2 {
  color: #f3f4f6;
}
body.theme-dark .dn-content,
body.theme-dark .dn-intro,
body.theme-dark .dn-index-intro,
body.theme-dark .dn-cat-intro,
body.theme-dark .dn-super-intro {
  color: #d1d5db;
}
body.theme-dark .dn-content strong,
body.theme-dark .dn-intro strong,
body.theme-dark .dn-index-intro strong,
body.theme-dark .dn-super-intro strong {
  color: #f3f4f6;
}
body.theme-dark .dn-related a,
body.theme-dark .dn-group-list a,
body.theme-dark .dn-other-cats-list a {
  background: #44405a;
  color: #c4b5fd;
}
body.theme-dark .dn-super-card {
  background: #2e2a3e;
}
body.theme-dark .dn-super-vn,
body.theme-dark .dn-super-tg {
  background: linear-gradient(135deg, #2e2a3e, #44405a);
}
body.theme-dark .dn-super-card h2 {
  color: #f3f4f6;
}
body.theme-dark .dn-super-cats li {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}
