/* =============================================================
   VPSVNDEX — Site pages (about, contact, blog)
   Tái dùng tokens từ style.css
   ============================================================= */

/* =============================================================
   Page wrapper + hero
   ============================================================= */
.page-wrap { padding-top: 36px; padding-bottom: 24px; }

.page-hero {
  max-width: 820px; margin-bottom: 56px;
}
.page-hero h1 {
  font-size: 44px; line-height: 1.1; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 12px 0 18px;
}
.page-hero h1 em {
  background: linear-gradient(120deg, var(--blue) 30%, var(--electric));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: normal;
}
.page-hero-lead {
  font-size: 17px; color: var(--text-soft); line-height: 1.65;
  max-width: 720px;
}

/* =============================================================
   Content blocks
   ============================================================= */
.content-block { max-width: 820px; padding: 36px 0; }
.content-block h2 {
  font-size: 28px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em; margin: 12px 0 22px;
}
.prose { color: var(--text); font-size: 16px; line-height: 1.75; }
.prose h3 {
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--blue); font-style: normal; font-weight: 600; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--blue-soft); color: var(--blue);
  padding: 1px 6px; border-radius: 3px;
}
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.article-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.article-table th, .article-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.article-table th {
  background: var(--paper); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.article-table tr:last-child td { border-bottom: 0; }
.article-table td:first-child { font-weight: 600; color: var(--ink); }

/* Timeline */
.timeline {
  list-style: none; padding: 0; margin: 24px 0;
  position: relative; padding-left: 4px;
}
.timeline::before {
  content: ""; position: absolute; left: 110px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(to bottom, var(--line), transparent);
}
.timeline li {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}
.timeline li:last-child { border-bottom: 0; }
.timeline-year {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--blue); font-weight: 700; letter-spacing: 0.05em;
}
.timeline li strong {
  display: block; font-size: 16px; color: var(--ink);
  margin-bottom: 4px;
}
.timeline li p { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }
.timeline li::after {
  content: ""; position: absolute; left: 106px; top: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
}

/* =============================================================
   Contact
   ============================================================= */
.content-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 36px; margin-bottom: 60px;
}
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form-wrap h2 {
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin: 10px 0 20px;
}
#contact-form { display: flex; flex-direction: column; gap: 14px; }
#contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
#contact-form input, #contact-form select, #contact-form textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
}
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 224, 0.10);
}
#contact-form textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-feedback { font-size: 13.5px; margin: 4px 0 0; min-height: 18px; }
.form-feedback[data-type="error"]   { color: #c0392b; }
.form-feedback[data-type="success"] { color: var(--mint-deep); }

.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.contact-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue); font-size: 18px;
  margin-bottom: 12px;
}
.contact-card h3 {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 0 0 10px;
}
.contact-card p { margin: 0 0 6px; font-size: 13.5px; color: var(--text-soft); }
.contact-card a { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--blue); }

/* =============================================================
   Blog
   ============================================================= */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.blog-filter {
  border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 8px 16px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-soft); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blog-filter:hover { border-color: var(--blue); color: var(--ink); }
.blog-filter.is-active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-bottom: 60px;
}
.blog-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px -20px rgba(8, 29, 55, 0.18);
}
.blog-card .blog-year {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 600;
}
.blog-card h3 {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--ink);
  line-height: 1.35; padding-right: 40px;
}
.blog-card p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.blog-card .resource-meta { margin-top: auto; }

/* =============================================================
   Article (blog detail)
   ============================================================= */
.article-wrap { max-width: 920px; padding-top: 32px; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft); font-size: 13px; font-weight: 600;
  margin-bottom: 28px; transition: color 0.15s;
}
.article-back:hover { color: var(--blue); }

.article-head {
  padding-bottom: 24px; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}
.article-head h1 {
  font-size: 36px; font-weight: 800; color: var(--ink);
  line-height: 1.18; letter-spacing: -0.015em;
  margin: 10px 0 12px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-bottom: 14px;
}
.article-lead {
  font-size: 17px; color: var(--text-soft); line-height: 1.65;
  border-left: 3px solid var(--blue); padding-left: 16px;
}

.article-foot {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.article-foot p { margin: 0; color: var(--text-soft); }
.article-foot a { color: var(--blue); font-weight: 600; }

.related-posts {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  margin: 36px 0 60px;
}
.related-posts h3 {
  font-size: 14px; font-weight: 700; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.related-posts a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  color: var(--ink); transition: color 0.15s;
}
.related-posts a:first-of-type { border-top: 0; }
.related-posts a:hover { color: var(--blue); }
.related-posts a strong { font-weight: 600; font-size: 14.5px; }
.related-posts a span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* Active nav */
.site-header nav a.is-active { color: var(--blue); }
.site-header nav a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--blue);
  margin-top: 4px; border-radius: 1px;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
  .content-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .page-hero h1 { font-size: 30px; }
  .article-head h1 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .timeline::before { left: 0; }
  .timeline li::after { left: -4px; top: 24px; }
  .timeline-year { font-size: 11px; }
}
