/* Click IT Connect — blog, 404 and inner-page styles (shared with shell.css) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #00234B; --navy-light: #003366; --blue: #2B7BB9; --blue-light: #3A8FD4;
  --green: #81d742; --green-dark: #6ABF35; --surface: #F8FAFC; --bg: #FFFFFF;
  --text: #1B2A3D; --text-muted: #5A6B7F; --border: #E1E7EF;
  --radius: 10px; --radius-lg: 16px; --max-w: 1140px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .75rem; }
.page-hero { padding: 5rem 0 3rem; background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(0,35,75,.05) 0%, transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.25rem); line-height: 1.12; color: var(--navy); letter-spacing: -.01em; margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; }
.btn-primary { background: var(--green); color: var(--navy); padding: .85rem 1.8rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem; transition: all .25s; box-shadow: 0 4px 14px rgba(129,215,66,.25); }
.btn-primary:hover { background: var(--green-dark); color: var(--navy); transform: translateY(-2px); }
.btn-secondary { color: var(--navy); padding: .85rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1.5px solid var(--border); display: inline-flex; align-items: center; gap: .5rem; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Blog listing */
.blog-section { padding: 4rem 0 6rem; background: var(--surface); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.blog-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,35,75,.08); border-color: rgba(43,123,185,.35); }
.blog-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.blog-card-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.blog-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.25; color: var(--navy); }
.blog-card h2 a { color: inherit; }
.blog-card h2 a:hover { color: var(--blue); }
.blog-card p { color: var(--text-muted); font-size: .98rem; }
.blog-card .read-more { margin-top: auto; font-weight: 700; font-size: .92rem; }
.blog-empty { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; color: var(--text-muted); }

/* Blog post */
.post-hero { padding: 4.5rem 0 2.5rem; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(0,35,75,.05) 0%, transparent 60%), var(--bg); }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.post-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; color: var(--navy); margin-bottom: 1rem; }
.post-meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.post-cover { margin: 2.5rem auto 0; }
.post-cover img { border-radius: var(--radius-lg); }
.post-body { padding: 3rem 0 4rem; font-size: 1.08rem; line-height: 1.8; }
.post-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--navy); margin: 2.5rem 0 1rem; line-height: 1.2; }
.post-body h3 { font-size: 1.3rem; color: var(--navy); margin: 2rem 0 .75rem; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-body blockquote { border-left: 4px solid var(--green); padding: .5rem 0 .5rem 1.25rem; color: var(--text-muted); margin: 1.5rem 0; }
.post-cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 2.25rem 2rem; margin: 1rem 0 4rem; text-align: center; }
.post-cta h2 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.7rem; margin-bottom: .6rem; }
.post-cta p { color: rgba(255,255,255,.8); margin-bottom: 1.4rem; }
.post-back { display: inline-block; margin-bottom: 3rem; font-weight: 600; }

/* 404 */
.nf { padding: 7rem 0 8rem; text-align: center; }
.nf .code { font-family: var(--font-mono); color: var(--blue); letter-spacing: .1em; margin-bottom: 1rem; }
.nf h1 { font-family: var(--font-display); font-weight: 400; color: var(--navy); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.nf p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; }
.nf .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .container, .container-narrow { padding: 0 1.25rem; } }
