/* ============================================================
   Trustar blog styles (used by index.html blog section and blogs/*.html)
   ============================================================ */

/* ---------- Blog list on index.html (matches .practice-card) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

a.blog-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.blog-card .blog-card-date {
  font-size: 0.8rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.blog-card h3 .zh {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.blog-card p + p {
  margin-top: 0.4rem;
}

.blog-card .blog-card-more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-blue);
}

a.blog-card:hover .blog-card-more {
  color: var(--primary-blue-dark);
}

.blog-list-status {
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Article page ---------- */
.blog-hero {
  background: linear-gradient(135deg, #637377 0%, #485c63 100%);
  color: #FFF8E8;
  padding: 2.5rem 1.5rem 2.75rem;
}

.blog-hero-inner,
.blog-article {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-back {
  display: inline-block;
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.blog-back:hover {
  color: #fff;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.3;
  color: var(--accent-gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  margin-bottom: 0.6rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0.9rem;
}

.blog-byline {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Two columns: Chinese left, English right; each row is one section,
   so the two languages stay side by side as the reader scrolls. */
.blog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.blog-article .blog-row {
  background: var(--bg-white);
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.blog-article .blog-lang-labels {
  background: transparent;
  border: none;
  padding: 0 2rem 0 calc(2rem + 4px);
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.blog-col {
  min-width: 0;
}

.blog-col h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.blog-col p {
  margin-bottom: 0.85rem;
}

.blog-col[lang="zh-Hans"] {
  line-height: 1.85;
}

.blog-col ul,
.blog-col ol {
  margin: 0 0 0.85rem 1.4rem;
}

.blog-col li {
  margin-bottom: 0.45rem;
}

.blog-col strong {
  color: #224B84;
}

.blog-col a {
  border-bottom: 1px solid var(--border-light);
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1rem;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.blog-table th {
  background: var(--primary-blue);
  color: #fff;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
}

.blog-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.blog-table tbody tr:nth-child(even) td {
  background: var(--bg-light);
}

.blog-article .blog-disclaimer {
  border-left-color: var(--accent-gold);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.blog-copyright {
  font-style: normal;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .blog-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .blog-article .blog-lang-labels {
    display: none;
  }
  .blog-article .blog-row .blog-col[lang="zh-Hans"] {
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-light);
  }
  .blog-article .blog-row {
    padding: 1.25rem 1.25rem;
  }
  .blog-hero h1 {
    font-size: 1.6rem;
  }
}

.blog-card[hidden] {
  display: none;
}
