/*
Theme Name: TalkForWeb Blog
Theme URI: https://talkforweb.in
Author: Talk For Web LLP
Description: Minimal blog theme matching the TalkForWeb.in brand.
Version: 1.0
*/

:root {
  --navy: #1B3A6B;
  --accent: #E67E22;
  --accent-d: #cf6f17;
  --dark: #0D1B2A;
  --ink: #333333;
  --muted: #666666;
  --line: #E0E0E0;
  --bg: #ffffff;
  --bg-light: #F8F9FA;
  --radius: 12px;
  --shadow: 0 10px 34px rgba(13,27,42,.10);
  --shadow-sm: 0 4px 16px rgba(13,27,42,.08);
  --head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,27,42,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { display: flex; align-items: center; gap: 11px; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--navy); }
.site-logo .mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: none; }
.site-logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.header-cta { font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 20px; }
.header-cta a.btn { display: inline-flex; align-items: center; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 9px; font-size: 14px; font-weight: 600; transition: .18s; }
.header-cta a.btn:hover { background: var(--accent-d); transform: translateY(-1px); }
.back-link { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 5px; transition: color .15s; }
.back-link:hover { color: var(--navy); }

/* ---------- HERO / ARCHIVE HEADER ---------- */
.archive-hero {
  background: linear-gradient(160deg, #0f2344 0%, #1B3A6B 60%, #244a86 100%);
  color: #fff; padding: 60px 0 56px;
}
.archive-hero h1 { font-family: var(--head); font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -.4px; }
.archive-hero p { font-size: 18px; color: #d6e2f5; max-width: 560px; }

/* ---------- BLOG GRID ---------- */
.blog-grid { padding: 72px 0 90px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .2s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: #eef3fb; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #eef3fb, #dce7f5); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--accent-d); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.post-body h2 { font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.post-body p { font-size: 15px; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.read-more { font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; transition: gap .15s; }
.post-card:hover .read-more { gap: 9px; }

/* ---------- PAGINATION ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.pagination a,
.pagination span.page-numbers { display: inline-flex; align-items: center; font-family: var(--head); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); color: var(--navy); transition: .15s; line-height: 1; }
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination span.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination span.dots { border: none; color: var(--muted); padding: 9px 4px; }

/* ---------- SINGLE POST ---------- */
.single-hero { background: linear-gradient(160deg, #0f2344 0%, #1B3A6B 60%, #244a86 100%); color: #fff; padding: 56px 0 52px; }
.single-hero .eyebrow { display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.single-hero h1 { font-family: var(--head); font-size: 40px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.4px; max-width: 820px; margin-bottom: 20px; }
.single-hero .post-byline { font-size: 14px; color: #cdd9ee; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.single-hero .post-byline span { display: flex; align-items: center; gap: 6px; }

.featured-img-wrap { margin: 0 auto; max-width: 900px; padding: 0 28px; transform: translateY(-30px); }
.featured-img-wrap img { width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(13,27,42,.18); }

.single-content { max-width: 760px; margin: 0 auto; padding: 10px 28px 80px; }
.single-content .entry-content { font-size: 17px; line-height: 1.85; color: #2c3849; }
.entry-content h2 { font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--navy); margin: 48px 0 16px; }
.entry-content h3 { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; }
.entry-content h4 { font-family: var(--head); font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.entry-content p { margin-bottom: 24px; }
.entry-content a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy); }
.entry-content ul, .entry-content ol { margin: 0 0 24px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { border-left: 4px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: #fffaf4; border-radius: 0 10px 10px 0; font-style: italic; color: var(--navy); font-size: 18px; }
.entry-content img { border-radius: 10px; margin: 24px 0; }
.entry-content pre { background: #f4f6fa; border-radius: 10px; padding: 20px 24px; overflow-x: auto; font-size: 15px; margin: 24px 0; }
.entry-content code { background: #eef3fb; color: var(--navy); padding: 2px 7px; border-radius: 5px; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }

/* Author / nav */
.post-footer { max-width: 760px; margin: 0 auto; padding: 0 28px 80px; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-nav a { font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--navy); max-width: 45%; }
.post-nav .prev::before { content: '← '; }
.post-nav .next::after { content: ' →'; text-align: right; }

/* CTA band */
.blog-cta { background: var(--dark); color: #fff; padding: 70px 0; text-align: center; }
.blog-cta h2 { font-family: var(--head); font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.blog-cta p { font-size: 17px; color: #cdd9ee; max-width: 520px; margin: 0 auto 28px; }
.blog-cta .btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; background: var(--accent); color: #fff; padding: 15px 30px; border-radius: 10px; transition: .18s; }
.blog-cta .btn:hover { background: var(--accent-d); transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); color: #9fb2d6; padding: 52px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-family: var(--head); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 14px; }
.footer-logo .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; flex: none; }
.footer-desc { max-width: 280px; color: #8aa0c6; font-size: 14px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 10px; color: #7d93ba; font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-hero h1, .single-hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .archive-hero h1 { font-size: 28px; }
  .archive-hero, .single-hero { padding: 44px 0; }
  .single-content, .post-footer { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-cta .back-link { display: none; }
}
