/* ==========================================================================
   BTW Group Careers — Blog & article pages
   Loaded AFTER each page's legacy inline <style>, so these rules take
   precedence and give every article the same layout and reading experience.
   Requires base.css
   ========================================================================== */
body { background: var(--surface); color: var(--text); line-height: 1.75; }
.top-nav .container { max-width: 1180px; padding: 0 28px; }

/* ---------- Blog index ---------- */
.page-header {
    background: var(--surface-alt); color: var(--ink); text-align: left; padding: 72px 0 56px; border-bottom: 1px solid var(--line);
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 26px 26px;
}
.page-header h1, .page-header p { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 28px; }
.page-header h1 { color: var(--navy-900); font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 14px; }
.page-header h1::before { content: 'Career insights'; display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 1180px; }
.page-header p, .page-header h1 { box-sizing: border-box; }
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 56px 28px 88px; }
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; position: relative;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.blog-card::before { content: ''; position: absolute; left: 28px; top: 0; width: 44px; height: 4px; background: var(--green-500); border-radius: 0 0 4px 4px; }
.blog-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-3px); }
.blog-card .tag { align-self: flex-start; background: var(--navy-50); color: var(--navy-700); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; margin: 6px 0 16px; }
.blog-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 10px; border: 0; padding: 0; }
.blog-card h2 a { color: inherit; }
.blog-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); }  /* whole card clickable */
.blog-card h2 a:hover { color: var(--navy-600); }
.blog-card .excerpt { color: var(--muted); font-size: .94rem; line-height: 1.65; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.blog-card .meta .read-more { margin-left: auto; color: var(--navy-700); font-weight: 700; font-size: .85rem; position: relative; z-index: 1; }
.blog-card .meta .read-more:hover { text-decoration: underline; }
.blog-card:first-child { grid-column: 1 / -1; padding: 40px; background: var(--navy-800); border-color: var(--navy-800); }
.blog-card:first-child::before { left: 40px; width: 56px; }
.blog-card:first-child .tag { background: rgba(255,255,255,.12); color: #fff; }
.blog-card:first-child h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); color: #fff; max-width: 820px; }
.blog-card:first-child h2 a:hover { color: var(--green-500); }
.blog-card:first-child .excerpt { color: #C5D6E2; font-size: 1.05rem; max-width: 760px; -webkit-line-clamp: 4; }
.blog-card:first-child .meta { color: #A9BBC8; border-color: rgba(255,255,255,.14); }
.blog-card:first-child .meta .read-more { color: var(--green-500); }
.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }

/* ---------- Article ---------- */
.blog-article { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.blog-meta > span:first-child { color: var(--green-700); background: var(--green-100); padding: 4px 12px; border-radius: 999px; letter-spacing: .08em; }
.blog-meta span { font-weight: 600; color: inherit; }
.blog-article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy-900); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 28px; }
.blog-hero-img {
    width: 100%; min-height: 260px; height: auto; background: var(--navy-800); border-radius: var(--radius-lg); margin-bottom: 44px; padding: 40px 28px;
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.blog-hero-img .hero-accent { background: transparent; border: 34px solid rgba(255,255,255,.05); }
.blog-hero-img .hero-accent-1 { border-color: rgba(165,213,73,.12); }
.blog-hero-img .hero-badge { background: var(--green-500); color: var(--navy-900); border: 0; box-shadow: none; font-size: .72rem; font-weight: 700; letter-spacing: .14em; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.blog-hero-img .hero-badge::before { content: none; }
.blog-hero-img .hero-title { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.blog-hero-img .hero-sub { color: #C5D6E2; font-size: 1rem; margin-top: 8px; }
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.blog-article h2 { font-size: 1.55rem; font-weight: 700; color: var(--navy-900); margin: 56px 0 16px; padding: 0; border: 0; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 90px; }
.blog-article h2::before { content: ''; display: block; width: 36px; height: 4px; background: var(--green-500); border-radius: 2px; margin-bottom: 14px; }
.blog-article h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 32px 0 10px; }
.blog-article h4 { color: var(--ink); }
.blog-article p { font-size: 1.07rem; line-height: 1.85; color: var(--text); margin-bottom: 20px; }
.blog-article ul, .blog-article ol { margin: 0 0 24px; padding-left: 26px; list-style: revert; }
.blog-article li { font-size: 1.05rem; line-height: 1.75; color: var(--text); margin-bottom: 10px; padding-left: 4px; }
.blog-article li::marker { color: var(--green-700); font-weight: 700; }
.blog-article a:not(.btn):not(.btn-primary):not(.btn-outline):not(.related-card) { color: var(--navy-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-article a:not(.btn):not(.btn-primary):not(.btn-outline):not(.related-card):hover { color: var(--navy-900); text-decoration-thickness: 2px; }
.blog-article strong { color: var(--ink); }
.blog-article img { border-radius: var(--radius); }
.blog-article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; display: block; overflow-x: auto; }
.blog-article th, .blog-article td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.blog-article th { background: var(--navy-50); color: var(--ink); }

/* Callouts & components used inside posts */
.highlight-box { background: var(--navy-50); border: 1px solid var(--navy-100); border-left: 4px solid var(--navy-700); padding: 22px 26px; border-radius: var(--radius); margin: 32px 0; }
.highlight-box h4 { color: var(--navy-700); font-size: 1rem; margin-bottom: 8px; }
.highlight-box p, .highlight-box li { margin-bottom: 0; font-size: 1rem; }
.quote-box { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; margin: 32px 0; }
.quote-box p { font-size: 1.15rem; font-weight: 500; color: var(--navy-700); font-style: italic; }
.infographic-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0; }
.stat-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--navy-700); line-height: 1.1; }
.stat-label { font-size: .72rem; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0; }
.process-step, .answer-card, .faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.process-step { padding: 22px 16px; text-align: center; }
.step-number { width: 38px; height: 38px; background: var(--navy-700); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 12px; }
.step-title { color: var(--ink); font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.step-desc { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.answer-card { padding: 22px 24px; margin-bottom: 16px; }
.answer-card .ac-label { background: var(--navy-700); border-radius: 999px; letter-spacing: .08em; }
.answer-card h4 { color: var(--ink); }
.answer-card p { color: var(--text); font-size: .95rem; }
.answer-card .sample-answer { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.tip-grid { gap: 18px; }
.tip-do { background: var(--green-100); border: 1px solid #D9E9B8; border-radius: var(--radius); }
.tip-do h4 { color: var(--green-700); }
.tip-dont { background: #FDF1EF; border: 1px solid #F3D3CE; border-radius: var(--radius); }
.tip-dont h4 { color: #A32A1D; }
.faq-item { padding: 20px 24px; margin-bottom: 14px; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin-bottom: 0; font-size: .98rem; }

/* In-article call to action */
.cta-blog { background: var(--navy-800); border-radius: var(--radius-lg); padding: 48px 36px; margin-top: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-blog::before { content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(165,213,73,.09); background: none; }
.cta-blog h3 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; border: 0; position: relative; }
.cta-blog p { color: #C5D6E2; font-size: 1.02rem; margin-bottom: 26px; position: relative; }
.cta-blog .btn-primary, .blog-article .btn-primary { display: inline-flex; align-items: center; justify-content: center; background: var(--green-500); border: 2px solid var(--green-500); color: var(--navy-900); font-weight: 700; font-size: .98rem; padding: 14px 30px; border-radius: var(--radius-sm); text-decoration: none; position: relative; box-shadow: none; }
.cta-blog .btn-primary:hover, .blog-article .btn-primary:hover { background: #fff; border-color: #fff; color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-blog .btn-outline { display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 2px solid rgba(255,255,255,.4); background: transparent; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; margin-left: 10px; position: relative; text-decoration: none; }
.cta-blog .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Related articles */
.related-posts { margin-top: 72px; padding-top: 8px; border-top: 1px solid var(--line); }
.blog-article .related-posts h2 { margin-top: 40px; font-size: 1.35rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; transition: box-shadow .25s, border-color .25s, transform .25s; }
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }
.related-tag { align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-700); background: var(--navy-50); padding: 4px 10px; border-radius: 999px; }
.related-title { font-size: .98rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.related-more { margin-top: auto; font-size: .84rem; font-weight: 700; color: var(--navy-600); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .top-nav .container { padding: 0 20px; }
    .page-header { padding: 44px 0 36px; }
    .page-header h1, .page-header p { padding: 0 20px; }
    .page-header p { font-size: 1rem; }
    .blog-wrap { padding: 36px 20px 64px; }
    .blog-list { grid-template-columns: 1fr; gap: 18px; }
    .blog-card, .blog-card:first-child { padding: 24px 22px; }
    .blog-card:first-child::before { left: 22px; }
    .blog-article { padding: 36px 20px 64px; }
    .blog-hero-img { min-height: 200px; padding: 28px 20px; margin-bottom: 32px; }
    .blog-article h2 { font-size: 1.35rem; margin-top: 44px; }
    .blog-article p, .blog-article li { font-size: 1.02rem; }
    .infographic-stats, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .tip-grid { grid-template-columns: 1fr; }
    .cta-blog { padding: 36px 22px; }
    .cta-blog .btn-primary, .cta-blog .btn-outline { display: flex; width: 100%; margin: 0 0 10px; }
}
