/* article.css — blog feed + single article styling.
   Design tokens defined locally below so this file is self-contained.
   (vastura-digital.css uses a different token set — --cream/--navy/--body —
   so the --slate/--bg/--card tokens this file relies on are defined here,
   mapped to the brand marketing palette. Fixes white-on-cream blog header.) */
:root {
  --slate: #1F3864; --slate-2: #2C3E50; --slate-3: #5D6D7E;
  --navy: #1F3864; --navy-2: #16294a;
  --gold: #d4a574; --gold-soft: #e8d4ba;
  --bg: #f7f4eb; --bg-2: #ece8df; --card: #fffdf8;
  --border: #e3ddd0; --text: #2C3E50; --muted: #5D6D7E;
  --shadow: 0 1px 2px rgba(31,56,100,.04), 0 8px 28px rgba(31,56,100,.07);
  --shadow-sm: 0 1px 2px rgba(31,56,100,.05);
}

/* ============================== BLOG FEED ============================== */

.page-head { background: var(--slate); color: #fff; padding: 56px 28px 48px; }
.page-head-inner { max-width: 1280px; margin: 0 auto; }
.page-head .eyebrow { color: var(--gold-soft); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.page-head h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.page-head p { color: #D1D5DB; font-size: 17px; max-width: 680px; }

/* Category bar */
.cat-bar { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px 28px; position: sticky; top: 55px; z-index: 50; }
.cat-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-bar .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-right: 4px; }
.chip { padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--border); cursor: pointer; color: var(--slate); text-decoration: none; display: inline-block; }
.chip.active { background: var(--slate); color: #fff; border-color: var(--slate); }
.chip:hover { border-color: var(--slate-3); text-decoration: none; }
.chip.active:hover { color: #fff; }

/* Featured */
section.featured { padding: 48px 28px 28px; }
.featured-inner { max-width: 1280px; margin: 0 auto; }
.group-head { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.featured-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.featured-img { background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%); min-height: 320px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Source Serif 4', serif; font-size: 28px; font-weight: 700; text-align: center; padding: 32px; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-content { padding: 36px; }
.featured-content .tag { display: inline-block; background: #DBEAFE; color: var(--navy); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.featured-content h2 { font-size: 30px; margin-bottom: 12px; line-height: 1.2; }
.featured-content h2 a { color: var(--slate); }
.featured-content .excerpt { color: var(--slate-2); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
.featured-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.featured-meta .author { font-weight: 600; color: var(--slate-2); }

/* Post grid */
section.posts { padding: 28px 28px 80px; }
.posts-inner { max-width: 1280px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 140ms, box-shadow 140ms; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-img { height: 160px; background: linear-gradient(135deg, var(--slate-2) 0%, var(--slate) 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); font-family: 'Source Serif 4', serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-img.gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%); }
.post-img.navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2, #1E40AF) 100%); }
.post-img.dark { background: linear-gradient(135deg, #1F2937 0%, #111827 100%); }
.post-content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.post-content .tag { display: inline-block; background: #DBEAFE; color: var(--navy); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 3px 8px; border-radius: 4px; align-self: flex-start; margin-bottom: 10px; }
.post-content .tag.eng { background: #E0E7FF; color: #4338CA; }
.post-content .tag.b2b { background: #FEF3C7; color: #92400E; }
.post-content .tag.case { background: #D1FAE5; color: #047857; }
.post-content .tag.product { background: #FCE7F3; color: #9D174D; }
.post-content h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.post-content h3 a { color: var(--slate); }
.post-excerpt { color: var(--slate-2); font-size: 13px; margin-bottom: 14px; flex-grow: 1; line-height: 1.55; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.post-meta .author { font-weight: 600; color: var(--slate-2); }
.post-meta .dot { color: var(--border); }

/* Pagination */
.blog-pagination { max-width: 1280px; margin: 0 auto; padding: 0 28px 60px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--slate); text-decoration: none; }
.blog-pagination a:hover { border-color: var(--slate-3); text-decoration: none; }
.blog-pagination span.current { background: var(--slate); color: #fff; border-color: var(--slate); }

/* Newsletter signup */
.newsletter { background: var(--slate); color: #fff; padding: 48px 28px; margin-top: 40px; }
.newsletter-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.newsletter p { color: #D1D5DB; font-size: 15px; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--slate-2); background: #fff; font-family: 'Inter', sans-serif; font-size: 14px; }
.newsletter-form button { background: var(--gold); color: var(--slate); padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.newsletter-form button:hover { background: var(--gold-soft); color: #fff; }
.newsletter .small { font-size: 11px; color: #9CA3AF; margin-top: 14px; }
.newsletter .form-success { color: #A7F3D0; font-size: 14px; margin-top: 14px; }
.newsletter .form-error { color: #FCA5A5; font-size: 13px; margin-top: 10px; }

/* ============================ SINGLE ARTICLE ========================== */

article.post-article { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; font-size: 17px; line-height: 1.7; }
article.post-article .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
article.post-article .breadcrumb a { color: var(--muted); }
article.post-article .breadcrumb a:hover { color: var(--slate-2); }
article.post-article .tag { display: inline-block; background: #E0E7FF; color: #4338CA; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px; }
article.post-article h1 { font-size: 38px; margin-bottom: 16px; line-height: 1.2; }
article.post-article .lede { font-size: 19px; color: var(--slate-2); margin-bottom: 24px; line-height: 1.55; }
article.post-article .meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 36px; }
article.post-article .meta .author { font-weight: 600; color: var(--slate-2); }
article.post-article .meta .dot { color: var(--border); }
article.post-article .article-feature-img { width: 100%; border-radius: 8px; margin-bottom: 36px; display: block; }

article.post-article h2 { font-size: 26px; margin: 40px 0 12px; }
article.post-article h3 { font-size: 20px; margin: 28px 0 10px; }
article.post-article p { margin-bottom: 18px; color: var(--slate-2); }
article.post-article ul, article.post-article ol { margin: 0 0 18px 24px; color: var(--slate-2); }
article.post-article li { padding: 4px 0; }
article.post-article blockquote { border-left: 4px solid var(--gold); padding: 8px 16px 8px 20px; margin: 24px 0; font-style: italic; color: var(--slate); background: #FFFBEB; border-radius: 0 4px 4px 0; }
article.post-article code { background: var(--bg-2); padding: 2px 6px; border-radius: 3px; font-family: 'SF Mono', Consolas, monospace; font-size: 14px; color: var(--slate); }
article.post-article .pull { background: var(--bg-2); border-left: 4px solid var(--navy); padding: 16px 20px; margin: 24px 0; font-size: 18px; color: var(--slate); font-family: 'Source Serif 4', serif; font-style: italic; border-radius: 0 4px 4px 0; }

article.post-article .end-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-top: 48px; }
article.post-article .end-card h3 { font-size: 18px; color: var(--slate); margin-bottom: 8px; }
article.post-article .end-card p { font-size: 14px; color: var(--slate-2); margin-bottom: 14px; }
article.post-article .end-card a.btn { display: inline-block; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; }
article.post-article .end-card a.btn:hover { background: var(--navy-2, #1E40AF); text-decoration: none; color: #fff; }

.related { max-width: 1280px; margin: 48px auto 0; padding: 0 28px 64px; }
.related h3 { font-family: 'Source Serif 4', serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; font-size: 14px; }
.related-card .rtag { display: inline-block; background: var(--bg-2); color: var(--slate-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.related-card h4 { font-size: 16px; color: var(--slate); margin-bottom: 8px; font-family: 'Source Serif 4', serif; }
.related-card a { color: var(--slate); }
.related-card .rmeta { font-size: 12px; color: var(--muted); margin-top: 10px; }

.back-to-blog { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.back-to-blog a { font-size: 14px; color: var(--navy); font-weight: 500; }

@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .post-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 32px; }
  .related-grid { grid-template-columns: 1fr; }
  article.post-article h1 { font-size: 30px; }
  article.post-article .lede { font-size: 17px; }
  article.post-article p, article.post-article li { font-size: 16px; }
  .newsletter-form { flex-direction: column; }
}
