/* ═══════════════════════════════════════════════
   Theme: Tin Nhanh — Minimalist, clean, orange accent
   ═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: #d1d5db;
  background: #0b1120;
  line-height: 1.6;
}
a { color: var(--primary, #e67e22); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent, #d35400); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--content-width, 1200px); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────── */
.tn-header {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.tn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.tn-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}
.tn-right { display: flex; align-items: center; gap: 12px; }
.tn-search-form .tn-search-input {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.85rem;
  width: 180px;
  outline: none;
  transition: border 0.2s;
}
.tn-search-input:focus { border-color: var(--primary, #e67e22); }
.tn-toggle { display: none; flex-direction: column; gap: 3px; background: none; border: none; cursor: pointer; width: 30px; height: 30px; justify-content: center; align-items: center; }
.tn-toggle span { display: block; width: 20px; height: 2px; background: #333; border-radius: 1px; }

.tn-nav { border-top: 1px solid #f5f5f5; }
.tn-nav-list { list-style: none; display: flex; gap: 0; }
.tn-nav-list li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tn-nav-list li.active a,
.tn-nav-list li a:hover { color: var(--primary, #e67e22); border-bottom-color: var(--primary, #e67e22); }

/* ── Layout ──────────────────────────────── */
.main-wrap { min-height: 70vh; padding: 30px 0; }
.layout-tn {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 992px) {
  .layout-tn { grid-template-columns: 1fr 300px; }
}
.content-tn { min-width: 0; }

/* ── Hero ────────────────────────────────── */
.hero-tn { text-align: center; padding: 40px 0 30px; }
.hero-tn-title { font-size: 2rem; font-weight: 800; color: #111; letter-spacing: -1px; }
.hero-tn-sub { color: #888; font-size: 0.95rem; margin-top: 6px; }

/* ── Featured ────────────────────────────── */
.featured-tn { margin-bottom: 30px; }
.featured-tn-main {
  display: block;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.featured-tn-main:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.ftn-img { height: 280px; background-size: cover; background-position: center; }
.ftn-img-placeholder { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); }
.ftn-body { padding: 24px; }
.ftn-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary, #e67e22);
  letter-spacing: 1px;
}
.ftn-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0;
  color: #111;
}
.ftn-excerpt { color: #777; font-size: 0.9rem; line-height: 1.6; }
.ftn-meta { font-size: 0.8rem; color: #aaa; margin-top: 8px; display: block; }

/* ── Section ─────────────────────────────── */
.tn-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

/* ── Article Card (list) ─────────────────── */
.list-tn { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .list-tn { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .list-tn { grid-template-columns: 1fr 1fr 1fr; } }
.card-tn {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.15s;
}
.card-tn:hover { background: #f0f0f0; }
.card-tn-link { display: block; color: inherit; }

.card-tn-image { width: 100%; height: 140px; border-radius: 8px 8px 0 0; overflow: hidden; }
.card-tn-image img { width: 100%; height: 100%; object-fit: cover; }
.card-tn-placeholder { width: 100%; height: 100%; background: #e8e8e8; }
.card-tn-body { padding: 12px; }
.card-tn-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 4px;
}
.card-tn-excerpt { font-size: 0.85rem; color: #777; line-height: 1.5; margin-bottom: 6px; }
.card-tn-meta { font-size: 0.75rem; color: #aaa; display: flex; gap: 10px; }
.card-tn-cat { color: var(--primary, #e67e22); font-weight: 600; }

/* ── Single Article ──────────────────────── */
.article-tn { max-width: 800px; }
.breadcrumbs-tn { font-size: 0.8rem; color: #aaa; margin-bottom: 16px; }
.breadcrumbs-tn a { color: var(--primary, #e67e22); }
.breadcrumbs-tn .sep { margin: 0 6px; }
.article-tn-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.article-tn-meta { font-size: 0.85rem; color: #999; display: flex; gap: 12px; margin-bottom: 20px; }
.article-tn-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  max-height: 400px;
}
.article-tn-img img { width: 100%; object-fit: cover; }
.article-tn-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d1d5db;
}
.article-tn-body p { margin-bottom: 1.2em; }
.article-tn-body h2, .article-tn-body h3 { margin-top: 1.5em; margin-bottom: 0.5em; color: #111; }
.article-tn-body blockquote { border-left: 3px solid var(--primary, #e67e22); padding-left: 16px; margin: 1.5em 0; color: #666; }
.article-tn-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; }
.tags-tn { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-tn { background: #f5f5f5; padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; color: #666; }
.nav-tn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 576px) {
  .nav-tn { flex-direction: row; justify-content: space-between; }
}
.nav-tn a { font-weight: 600; font-size: 0.9rem; color: var(--primary, #e67e22); }
.related-tn { margin-top: 30px; }

/* ── Pagination ──────────────────────────── */
.pagination-tn { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.tn-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: #555;
  transition: all 0.15s;
}
.tn-page-link:hover { background: #f5f5f5; }
.tn-page-link.active { background: var(--primary, #e67e22); color: #fff; }
.tn-dots { padding: 0 4px; color: #ccc; font-size: 0.9rem; }

/* ── Sidebar ─────────────────────────────── */
.widget-tn {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.widget-tn-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary, #e67e22);
}
.widget-tn-list { list-style: none; }
.widget-tn-list li { margin-bottom: 8px; }
.widget-tn-list a { font-size: 0.88rem; color: #555; }
.widget-tn-list a:hover { color: var(--primary, #e67e22); }

/* ── Footer ──────────────────────────────── */
.tn-footer { margin-top: 40px; background: #fafafa; border-top: 1px solid #eee; }
.tn-footer-inner { display: flex; flex-wrap: wrap; gap: 24px; padding: 36px 0; }
.tn-footer-brand { flex: 2; }
.tn-footer-brand strong { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.tn-footer-brand p { color: #888; font-size: 0.85rem; }
.tn-footer-links { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tn-footer-links a { font-size: 0.85rem; color: #777; }
.tn-footer-links a:hover { color: var(--primary, #e67e22); }
.tn-footer-bar { border-top: 1px solid #eee; padding: 14px 0; text-align: center; font-size: 0.8rem; color: #aaa; }

/* ── Pages ───────────────────────────────── */
.page-tn-title { font-size: 1.6rem; font-weight: 800; color: #111; margin-bottom: 20px; }
.page-tn-body { line-height: 1.8; }

/* ── Error ───────────────────────────────── */
.error-tn { text-align: center; padding: 60px 20px; }
.error-tn-code { font-size: 5rem; font-weight: 800; color: var(--primary, #e67e22); line-height: 1; }
.tn-btn { display: inline-block; margin-top: 16px; padding: 10px 24px; background: var(--primary, #e67e22); color: #fff; border-radius: 8px; font-weight: 600; }

/* ── Search ──────────────────────────────── */
.search-form-tn { display: flex; gap: 8px; margin-bottom: 20px; }
.search-input-tn { flex: 1; padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; outline: none; }
.search-input-tn:focus { border-color: var(--primary, #e67e22); }
.search-btn-tn { padding: 10px 20px; background: var(--primary, #e67e22); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.search-summary-tn { margin-bottom: 16px; color: #666; }
.empty-tn { text-align: center; padding: 30px; color: #999; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 767px) {
  .tn-toggle { display: flex; }
  .tn-nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 0;
  }
  .tn-nav-list.active { display: flex; }
  .tn-search-form { display: none; }
  .ftn-img { height: 180px; }
}
