/* careerpathatlas blog page styles: save as assets/css/blog.css */
:root {
  --blog-ink: #172033;
  --blog-muted: #64748b;
  --blog-brand: #155eef;
  --blog-brand-dark: #1248bd;
  --blog-border: #e2e8f0;
  --blog-soft: #f5f8fc;
  --blog-radius: 16px;
  --blog-shadow: 0 8px 28px rgba(15, 23, 42, .07);
}
*, *::before, *::after { box-sizing: border-box; }

.seo-intro {
  width: min(1120px, calc(100% - 32px)); margin: 24px auto 18px;
  padding: 20px 24px; color: var(--blog-ink); background: var(--blog-soft);
  border: 1px solid var(--blog-border); border-radius: 12px;
}
.seo-intro h2 { margin: 0 0 8px; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; }
.seo-intro p { margin: 0; color: var(--blog-muted); line-height: 1.75; }

.blog-hero {
  position: relative; overflow: hidden; padding: clamp(42px, 7vw, 82px) 20px;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, #123b83 0%, #155eef 58%, #3387e8 100%);
}
.blog-hero::after {
  position: absolute; right: -90px; bottom: -170px; width: 360px; height: 360px;
  content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.05), 0 0 0 84px rgba(255,255,255,.04);
  pointer-events: none;
}
.blog-hero .hero-inner { position: relative; z-index: 1; width: min(850px, 100%); margin: 0 auto; }
.blog-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3.35rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.blog-hero p { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,.9); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.7; }

.blog-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
  width: min(1180px, calc(100% - 32px)); margin: 36px auto 56px;
}
.blog-content { min-width: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.blog-card {
  display: flex; min-width: 0; flex-direction: column; padding: 24px;
  background: #fff; border: 1px solid var(--blog-border); border-radius: var(--blog-radius);
  box-shadow: var(--blog-shadow); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: #bfd2ff; box-shadow: 0 14px 34px rgba(15,23,42,.11); }
.blog-meta { margin-bottom: 12px; color: var(--blog-muted); font-size: .83rem; font-weight: 600; }
.blog-card h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; overflow-wrap: anywhere; }
.blog-card h2 a { color: var(--blog-ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--blog-brand); }
.blog-excerpt { margin: 0 0 20px; color: #475569; font-size: .97rem; line-height: 1.8; }
.read-more { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: auto; color: var(--blog-brand); font-weight: 700; text-decoration: none; }
.read-more:hover { color: var(--blog-brand-dark); text-decoration: underline; text-underline-offset: 3px; }

.single-blog { padding: clamp(22px, 4vw, 42px); background: #fff; border: 1px solid var(--blog-border); border-radius: var(--blog-radius); box-shadow: var(--blog-shadow); }
.single-blog > h1 { margin: 0 0 26px; color: var(--blog-ink); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.single-blog > div { color: #334155; font-size: 1.04rem; line-height: 1.9; overflow-wrap: anywhere; }
.single-blog p { margin: 0 0 1.35em; }
.in-content-ad { display: block; min-width: 0; margin: 28px 0; padding: 8px 0; text-align: center; overflow: hidden; }

.blog-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 22px; }
.sidebar-box { padding: 22px; background: #fff; border: 1px solid var(--blog-border); border-radius: 14px; box-shadow: 0 5px 20px rgba(15,23,42,.045); }
.sidebar-box h3, .blog-sidebar > h3 { margin: 0 0 16px; color: var(--blog-ink); font-size: 1.12rem; line-height: 1.4; }
.blog-search { display: flex; flex-direction: column; gap: 10px; }
.blog-search input {
  width: 100%; min-width: 0; padding: 12px 13px; color: var(--blog-ink); font: inherit;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 9px; outline: none;
}
.blog-search input:focus { border-color: var(--blog-brand); box-shadow: 0 0 0 3px rgba(21,94,239,.13); }
.blog-search button {
  padding: 12px 16px; color: #fff; font: inherit; font-weight: 700; background: var(--blog-brand);
  border: 0; border-radius: 9px; cursor: pointer; transition: background 160ms ease;
}
.blog-search button:hover { background: var(--blog-brand-dark); }
.top-posts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.top-posts li + li { border-top: 1px solid var(--blog-border); }
.top-posts a { display: block; padding: 13px 0; color: var(--blog-ink); text-decoration: none; }
.top-posts li:first-child a { padding-top: 0; }
.top-posts li:last-child a { padding-bottom: 0; }
.top-posts a:hover strong { color: var(--blog-brand); }
.top-posts strong { display: block; margin-bottom: 5px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.top-posts small { display: block; color: var(--blog-muted); font-size: .82rem; line-height: 1.55; }
.blog-sidebar > h3 { margin-bottom: -12px; }
.blog-sidebar > p { margin: 0; color: var(--blog-muted); line-height: 1.75; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 8px; }
.pagination a {
  display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center;
  padding: 8px 12px; color: var(--blog-ink); font-weight: 700; text-decoration: none;
  background: #fff; border: 1px solid var(--blog-border); border-radius: 9px;
}
.pagination a:hover, .pagination a.active { color: #fff; background: var(--blog-brand); border-color: var(--blog-brand); }

.site-footer { margin-top: 50px; padding: 28px 16px; color: #cbd5e1; text-align: center; background: #101828; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-links a { color: #e2e8f0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible, .blog-card a:focus-visible, .top-posts a:focus-visible,
.pagination a:focus-visible, .blog-search button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

@media (max-width: 960px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
  .blog-grid { gap: 16px; }
  .blog-card { padding: 20px; }
}
@media (max-width: 760px) {
  .blog-layout { grid-template-columns: 1fr; margin-top: 24px; }
  .blog-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .blog-sidebar > h3, .blog-sidebar > p { grid-column: 1 / -1; }
  .blog-sidebar > h3 { margin-bottom: -12px; }
}
@media (max-width: 560px) {
  .seo-intro { width: calc(100% - 24px); margin-top: 14px; padding: 16px; }
  .blog-hero { padding: 42px 16px; }
  .blog-layout { width: calc(100% - 24px); gap: 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card, .single-blog, .sidebar-box { padding: 18px; border-radius: 12px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar > h3, .blog-sidebar > p { grid-column: auto; }
  .single-blog > div { font-size: 1rem; line-height: 1.8; }
  .footer-links { gap: 8px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
