/* ================================================================
   4SYZ Blog — blog.css
   Applied on: archive (blog listing), single post, search results
   ================================================================ */

/* ── Blog Hero ─────────────────────────────────────────────────── */
.blog-hero {
  background: #0d253f;
  padding: 120px 48px 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,232,112,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,232,112,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.blog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.blog-hero h1 {
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2.5px;
  line-height: .95;
  margin-bottom: 20px;
}
.blog-hero h1 em { font-style: normal; color: var(--lime); }
.blog-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 28px;
}
.blog-hero-search {
  display: flex;
  gap: 0;
  max-width: 380px;
}
.blog-hero-search input {
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  color: #ffffff;
  outline: none;
  transition: border-color .2s;
}
.blog-hero-search input::placeholder { color: rgba(255,255,255,.3); }
.blog-hero-search input:focus { border-color: var(--lime); }
.blog-hero-search button {
  padding: 12px 20px;
  background: var(--lime);
  color: #0d253f;
  border: none;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.blog-hero-search button:hover { background: var(--lime-hover); }

/* Blog hero stats */
.blog-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bhs-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background .25s;
}
.bhs-card:hover { background: rgba(159,232,112,.07); border-color: rgba(159,232,112,.2); }
.bhs-icon { font-size: 28px; flex-shrink: 0; }
.bhs-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}
.bhs-label { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; }

/* ── Category Filter Bar ───────────────────────────────────────── */
.blog-cats-bar {
  background: var(--canvas);
  border-bottom: 1px solid rgba(13,37,63,.08);
  padding: 0 48px;
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(13,37,63,.06);
}
.blog-cats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-cats-inner::-webkit-scrollbar { display: none; }
.blog-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: all .2s;
  flex-shrink: 0;
}
.blog-cat-btn:hover { color: #0d253f; }
.blog-cat-btn.active { color: #0d253f; border-bottom-color: var(--lime); }
.blog-cat-count {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--canvas-soft);
  color: var(--mute);
}
.blog-cat-btn.active .blog-cat-count { background: var(--lime-pale); color: var(--positive-deep); }

/* ── Blog Grid ─────────────────────────────────────────────────── */
.blog-section {
  padding: 64px 48px 88px;
  background: var(--canvas-soft);
}
.blog-inner { max-width: 1200px; margin: 0 auto; }

.blog-featured { margin-bottom: 48px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Post Card ─────────────────────────────────────────────────── */
.post-card {
  background: var(--canvas);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid rgba(13,37,63,.07);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(13,37,63,.1);
}
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--canvas-soft);
  position: relative;
  flex-shrink: 0;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.post-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(13,37,63,.75);
  color: var(--lime);
  backdrop-filter: blur(6px);
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.post-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mute); }
.post-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0d253f;
  letter-spacing: -.4px;
  line-height: 1.3;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.post-card-title:hover { color: var(--positive-deep); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(13,37,63,.07);
  padding-top: 16px;
  margin-top: auto;
}
.post-card-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--positive-deep);
  text-decoration: none;
  letter-spacing: .3px;
  transition: letter-spacing .2s;
}
.post-card-read:hover { letter-spacing: .8px; }
.post-card-time {
  font-size: 11px;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Featured Post Card (large, spans full width) ──────────────── */
.post-card-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid rgba(13,37,63,.07);
  background: var(--canvas);
  transition: box-shadow .3s;
}
.post-card-featured:hover { box-shadow: 0 20px 60px rgba(13,37,63,.12); }
.post-card-featured .post-card-thumb {
  aspect-ratio: unset;
  min-height: 320px;
}
.post-card-featured .post-card-body { padding: 40px 36px; justify-content: center; }
.post-card-featured .post-card-title { font-size: 26px; letter-spacing: -.8px; margin-bottom: 14px; }
.post-card-featured .post-card-excerpt { -webkit-line-clamp: 4; margin-bottom: 24px; font-size: 14px; }
.post-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--positive-deep);
  background: var(--lime-pale);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-bottom: 16px;
}

/* ── Pagination ────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.blog-pagination a,
.blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  border: 1.5px solid rgba(13,37,63,.12);
  text-decoration: none;
  transition: all .2s;
}
.blog-pagination a:hover { background: #0d253f; color: #fff; border-color: #0d253f; }
.blog-pagination .current { background: #0d253f; color: var(--lime); border-color: #0d253f; }
.blog-pagination .dots { border: none; color: var(--mute); cursor: default; }

/* ── Single Post ───────────────────────────────────────────────── */
.single-hero {
  background: #0d253f;
  padding: 120px 48px 64px;
  position: relative;
  overflow: hidden;
}
.single-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,232,112,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,232,112,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.single-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.single-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--positive-deep);
  background: var(--lime-pale);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  text-decoration: none;
  margin-bottom: 20px;
}
.single-title {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.single-meta-item {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: 6px;
}
.single-meta-sep { color: rgba(255,255,255,.15); }

/* ── Post Body Layout ──────────────────────────────────────────── */
.single-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.single-content-wrap {
  padding: 56px 0 80px;
}
.single-thumb {
  margin: 0 0 48px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,37,63,.12);
}
.single-thumb img { width: 100%; height: auto; display: block; }

/* Post typography */
.post-content { font-size: 16px; line-height: 1.85; color: var(--body); }
.post-content h2 { font-size: 26px; font-weight: 800; color: #0d253f; margin: 36px 0 16px; letter-spacing: -.5px; }
.post-content h3 { font-size: 20px; font-weight: 700; color: #0d253f; margin: 28px 0 12px; letter-spacing: -.3px; }
.post-content h4 { font-size: 17px; font-weight: 700; color: #0d253f; margin: 22px 0 10px; }
.post-content p { margin: 0 0 20px; }
.post-content a { color: var(--positive-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: #0d253f; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--lime);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--lime-pale);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-style: italic;
  color: var(--positive-deep);
  font-size: 17px;
  line-height: 1.7;
}
.post-content blockquote p { margin: 0; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin: 20px 0;
}
.post-content code {
  background: var(--canvas-soft);
  color: #0d253f;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: 'Courier New', monospace;
}
.post-content pre {
  background: #0d253f;
  color: var(--lime);
  padding: 24px;
  border-radius: var(--r-lg);
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content hr { border: none; height: 1px; background: rgba(13,37,63,.1); margin: 36px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-content th { background: #0d253f; color: #fff; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; text-align: left; }
.post-content td { padding: 12px 16px; border-bottom: 1px solid rgba(13,37,63,.07); font-size: 14px; }
.post-content tr:hover td { background: var(--canvas-soft); }

/* ── Post Tags ─────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(13,37,63,.08);
}
.post-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--positive-deep);
  background: var(--lime-pale);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  text-decoration: none;
  transition: background .2s;
}
.post-tag:hover { background: var(--lime); color: #0d253f; }

/* ── Post Share ────────────────────────────────────────────────── */
.post-share {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--canvas-soft);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-share-label { font-size: 13px; font-weight: 700; color: #0d253f; }
.post-share-btns { display: flex; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: all .2s;
}
.share-linkedin { background: #0a66c2; color: #fff; }
.share-linkedin:hover { background: #004182; }
.share-twitter  { background: #0d253f; color: var(--lime); }
.share-twitter:hover { background: #162d50; }
.share-wa       { background: #25d366; color: #fff; }
.share-wa:hover { background: #128c46; }
.share-copy     { background: var(--canvas); color: var(--body); border: 1.5px solid rgba(13,37,63,.12); cursor: pointer; font-family: 'Inter',sans-serif; }
.share-copy:hover { background: #0d253f; color: var(--lime); border-color: #0d253f; }

/* ── Author Box ────────────────────────────────────────────────── */
.author-box {
  margin-top: 40px;
  padding: 28px;
  border: 1.5px solid rgba(13,37,63,.08);
  border-radius: var(--r-xl);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--canvas);
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0d253f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--lime);
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name  { font-size: 16px; font-weight: 700; color: #0d253f; margin-bottom: 4px; }
.author-role  { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.author-bio   { font-size: 13px; color: var(--body); line-height: 1.65; }

/* ── Related Posts ─────────────────────────────────────────────── */
.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(13,37,63,.08);
}
.related-title {
  font-size: 22px;
  font-weight: 900;
  color: #0d253f;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.blog-sidebar {
  padding: 56px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 84px;
}
.sidebar-widget {
  background: var(--canvas);
  border-radius: var(--r-xl);
  padding: 24px;
  border: 1.5px solid rgba(13,37,63,.07);
}
.sidebar-widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0d253f;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13,37,63,.08);
}
/* Recent posts in sidebar */
.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13,37,63,.06);
  text-decoration: none;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--canvas-soft);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #0d253f;
  line-height: 1.4;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post:hover .sidebar-post-title { color: var(--positive-deep); }
.sidebar-post-date { font-size: 11px; color: var(--mute); margin-top: 3px; }
/* Categories list */
.sidebar-cat-list { display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  transition: background .2s;
}
.sidebar-cat-link:hover { background: var(--canvas-soft); color: #0d253f; }
.sidebar-cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  background: var(--canvas-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
/* Tags cloud */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--positive-deep);
  background: var(--lime-pale);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  text-decoration: none;
  transition: background .2s;
}
.sidebar-tag:hover { background: var(--lime); color: #0d253f; }
/* CTA widget */
.sidebar-cta {
  background: #0d253f;
  border-radius: var(--r-xl);
  padding: 24px;
}
.sidebar-cta-title  { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -.3px; }
.sidebar-cta-sub    { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; margin-bottom: 16px; }
.sidebar-cta-btn    {
  display: block;
  text-align: center;
  background: var(--lime);
  color: #0d253f;
  padding: 10px 18px;
  border-radius: var(--r-xl);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.sidebar-cta-btn:hover { background: var(--lime-hover); }

/* ── Newsletter Strip ──────────────────────────────────────────── */
.newsletter-strip {
  background: var(--lime-pale);
  padding: 56px 48px;
  border-top: 1px solid rgba(159,232,112,.3);
}
.nl-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.nl-icon   { font-size: 36px; margin-bottom: 12px; }
.nl-title  { font-size: 26px; font-weight: 900; color: #0d253f; letter-spacing: -1px; margin-bottom: 8px; }
.nl-sub    { font-size: 14px; color: var(--body); margin-bottom: 24px; line-height: 1.6; }
.nl-form   { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1.5px solid rgba(13,37,63,.2);
  border-right: none;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  background: #fff;
  outline: none;
  color: #0d253f;
  transition: border-color .2s;
}
.nl-form input:focus { border-color: #0d253f; }
.nl-form button {
  padding: 12px 22px;
  background: #0d253f;
  color: var(--lime);
  border: none;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}
.nl-form button:hover { background: #162d50; }
.nl-note { font-size: 11px; color: var(--mute); margin-top: 10px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media(max-width: 1024px) {
  .single-layout { grid-template-columns: 1fr; }
  .blog-sidebar  { position: static; padding-top: 0; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-thumb { min-height: 220px; }
  .related-grid  { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
  .blog-hero, .single-hero { padding: 100px 24px 56px; }
  .blog-hero-inner { grid-template-columns: 1fr; }
  .blog-hero-stats { display: none; }
  .blog-cats-bar { padding: 0 20px; }
  .blog-section  { padding: 40px 24px 60px; }
  .single-layout { padding: 0 24px; }
  .related-grid  { grid-template-columns: 1fr; }
  .newsletter-strip { padding: 40px 24px; }
}
