/* Extracted from Index.cshtml */

/* ═══════════════════════════════════════════════
               DESIGN TOKENS — một bộ duy nhất, toàn trang
            ═══════════════════════════════════════════════ */
:root {
  --p: #185fa5;
  --p-mid: #378add;
  --p-light: #e6f1fb;
  --p-bdr: #b5d4f4;
  --p-dark: #0c447c;
  --surface: #ffffff;
  --bg: #f4f6f8;
  --border: #e2e8f0;
  --border-h: #cbd5e1;
  --txt-h: #0f172a;
  --txt-b: #334155;
  --txt-m: #64748b;
  --txt-s: #94a3b8;
  /* Hot badge — đỏ nhạt, tránh dùng đỏ sặc sỡ */
  --hot-bg: #fcebeb;
  --hot-tx: #791f1f;
  --hot-bdr: #f09595;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

.bl-page * {
  box-sizing: border-box;
}

.bl-page {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  padding: 28px 0 60px;
  color: var(--text-heading);
  font-size: 13px;
}

/* ─── Page header ─── */
.bl-header {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 28px;
}

.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  border: 0.5px solid var(--p-bdr);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.bl-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.bl-page-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Featured post ─── */
.bl-featured {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.bl-featured:hover {
  border-color: var(--p-mid);
  box-shadow: 0 10px 28px rgba(24, 95, 165, 0.1);
}

.feat-img-wrap {
  background: var(--border);
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bl-featured:hover .feat-img-wrap img {
  transform: scale(1.04);
}

.feat-no-img {
  font-size: 3.5rem;
  color: var(--border-h);
}

.feat-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.feat-hot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--hot-bg);
  color: var(--hot-tx);
  border: 0.5px solid var(--hot-bdr);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.feat-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-title a {
  color: inherit;
  text-decoration: none;
}

.feat-title a:hover {
  color: var(--brand);
}

.feat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.feat-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.feat-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-heading);
}

.btn-read-feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-read-feat:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ─── Section sub-header ─── */
.bl-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-sec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.bl-sec-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  border: 0.5px solid var(--border);
  padding: 2px 9px;
  border-radius: 100px;
}

/* ─── Card grid ─── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ─── Post card ─── */
.bl-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.bl-card:hover {
  border-color: var(--p-mid);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 95, 165, 0.09);
}

.card-img-wrap {
  background: var(--border);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bl-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-no-img {
  font-size: 2.2rem;
  color: var(--border-h);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row: date pill */
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border: 0.5px solid var(--p-bdr);
  padding: 2px 8px;
  border-radius: 100px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--brand);
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
  margin-top: 12px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.read-link i {
  transition: transform 0.15s;
  font-size: 0.75rem;
}

.bl-card:hover .read-link i {
  transform: translateX(3px);
}

/* ─── Empty state ─── */
.bl-empty {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border: 0.5px dashed var(--border-h);
  border-radius: var(--radius-lg);
}

.bl-empty-icon {
  width: 72px;
  height: 72px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--text-subtle);
}

.bl-empty h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.bl-empty p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@@media (max-width: 991px) {
  .bl-featured {
    grid-template-columns: 1fr;
  }

  .feat-img-wrap {
    min-height: 220px;
  }

  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@@media (max-width: 640px) {
  .bl-grid {
    grid-template-columns: 1fr;
  }

  .feat-body {
    padding: 20px 18px;
  }

  .bl-page-title {
    font-size: 1.3rem;
  }
}

/* Extracted from Detail.cshtml */

/* ─── ĐỒNG BỘ DESIGN TOKENS ─── */
:root {
  --p: #1a56db;
  --bg: #f8fafc;
  --border: #e5e7eb;
  --txt-h: #111827;
  --txt-b: #374151;
  --txt-m: #6b7280;
}

body {
  background-color: var(--bg);
}

/* ─── BREADCRUMB ─── */
.tc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tc-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.tc-breadcrumb a:hover {
  color: var(--brand);
}

.tc-breadcrumb-sep {
  color: #cbd5e1;
}

.tc-breadcrumb-cur {
  color: var(--text-heading);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ─── HEADER BÀI VIẾT ─── */
.tc-article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.tc-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.tc-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e1effe;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tc-author-meta {
  display: flex;
  flex-direction: column;
}

.tc-author-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.tc-article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── ẢNH BÀI VIẾT ─── */
.tc-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  background: #e2e8f0;
}

/* ─── ĐỊNH DẠNG NỘI DUNG TỪ TINYMCE (TYPOGRAPHY CHI TIẾT) ─── */
.blog-content {
  font-size: 1.15rem; /* Cỡ chữ to dễ đọc */
  line-height: 1.85;
  color: #1f2937;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.blog-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.4rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: normal;
}

.blog-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: #1e3a8a;
}

/* Chăm chút cho Blockquote và Code (Dành cho trang công nghệ) */
.blog-content blockquote {
  background: #f3f4f6;
  border-left: 4px solid var(--brand);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: normal;
  color: #4b5563;
}

.blog-content pre,
.blog-content code {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 0.375rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
}

.blog-content code {
  padding: 0.2rem 0.4rem;
  background: #e5e7eb;
  color: #dc2626;
  border-radius: 0.25rem;
}

.blog-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-content pre {
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

/* Danh sách */
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* ─── NÚT SHARE TỐI ƯU UX ─── */
.tc-share-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.btn-share {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    filter 0.2s;
  color: #fff;
}

.btn-share:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  color: #fff;
}

.bg-fb {
  background: #1877f2;
}

.bg-tw {
  background: #1da1f2;
}

.bg-link {
  background: #0a66c2;
}
