/* =============================================================================
   PAGE — Blog Archive & Single Post
   ============================================================================= */

/* Hero — 2 col */
.blog-hero {
  padding: 80px 64px 64px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.blog-hero-title { font-size: clamp(36px, 4vw, 54px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.08; color: var(--dark-text); margin: 16px 0 20px; }
.blog-hero-title em { font-family: 'Lora', serif; font-style: italic; font-weight: 400; color: var(--orange); }
.blog-hero-desc { font-size: 15px; color: var(--mid); line-height: 1.75; }
.blog-hero-right { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-hero-stat { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; min-width: 130px; }
.blog-hero-stat-num { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--dark-text); line-height: 1; }
.blog-hero-stat-num span { color: var(--orange); }
.blog-hero-stat-label { font-size: 12px; color: var(--mid); margin-top: 5px; font-weight: 500; }

/* Grid */
.blog-grid-section { padding: 64px 64px 96px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; align-items: start; }

/* Card */
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; text-decoration: none !important; transition: box-shadow 0.3s, transform 0.3s; height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.blog-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--off-white); flex-shrink: 0; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.blog-card-thumb-placeholder-inner { width: 44px; height: 44px; border-radius: 10px; background: rgba(251,91,33,0.08); display: flex; align-items: center; justify-content: center; color: var(--orange); }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.blog-card-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.blog-card-date { font-size: 12px; color: var(--mid); font-weight: 500; }
.blog-card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; color: var(--dark-text); line-height: 1.4; margin-bottom: 8px; transition: color 0.2s; }
.blog-card:hover .blog-card-title { color: var(--orange); }
.blog-card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.blog-card-author { display: flex; align-items: center; gap: 8px; }
.blog-card-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.blog-card-avatar img { width: 26px !important; height: 26px !important; border-radius: 50% !important; object-fit: cover; display: block; }
.blog-card-author-name { font-size: 12px; font-weight: 600; color: var(--mid-strong); }
.blog-card-read { font-size: 11px; color: var(--mid); font-weight: 500; white-space: nowrap; }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; margin-top: 0; }
.blog-pagination .page-numbers { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.blog-pagination .page-numbers li { margin: 0; }
.blog-pagination .page-numbers li::before, .blog-pagination .page-numbers li::marker { display: none; content: none; }
.blog-pagination a.page-numbers, .blog-pagination span.page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 5px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; color: var(--mid); text-decoration: none; transition: all 0.2s; }
.blog-pagination a.page-numbers:hover { border-color: var(--dark-text); color: var(--dark-text); }
.blog-pagination .current { background: var(--orange); border-color: var(--orange) !important; color: #fff !important; }

/* Single Post */
.single-post-hero { padding: 64px 64px 48px; border-bottom: 1px solid var(--border); max-width: 860px; margin: 0 auto; width: 100%; }
.single-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.single-post-cat { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); background: rgba(251,91,33,0.08); padding: 5px 12px; border-radius: 100px; text-decoration: none; }
.single-post-date, .single-post-read-time { font-size: 13px; color: var(--mid); font-weight: 500; }
.single-post-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.single-post-title { font-size: clamp(28px, 3.5vw, 46px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; color: var(--dark-text); margin-bottom: 20px; }
.single-post-excerpt { font-size: 17px; color: var(--mid); line-height: 1.72; margin-bottom: 32px; font-family: 'Lora', serif; font-style: italic; border-left: 3px solid var(--orange); padding-left: 20px; }
.single-post-author-row { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.single-post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.single-post-avatar img { width: 40px !important; height: 40px !important; border-radius: 50% !important; object-fit: cover; display: block; }
.single-post-author-name { font-size: 14px; font-weight: 700; color: var(--dark-text); }
.single-post-author-role { font-size: 12px; color: var(--mid); margin-top: 2px; }
.single-post-featured { max-width: 860px; margin: 40px auto 0; padding: 0 64px; width: 100%; }
.single-post-featured img { width: 100%; height: auto; border-radius: 10px; display: block; border: 1px solid var(--border); }
.single-post-content { padding: 48px 64px 64px; max-width: 860px; margin: 0 auto; width: 100%; }
.single-post-content h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.6px; color: var(--dark-text); margin: 44px 0 14px; line-height: 1.2; }
.single-post-content h3 { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; color: var(--dark-text); margin: 32px 0 10px; line-height: 1.3; }
.single-post-content h4 { font-size: 16px; font-weight: 700; color: var(--dark-text); margin: 24px 0 8px; }
.single-post-content p { font-size: 16px; color: var(--mid-strong); line-height: 1.82; margin-bottom: 20px; }
.single-post-content a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(251,91,33,0.35); text-underline-offset: 3px; font-weight: 600; transition: text-decoration-color 0.2s; }
.single-post-content a:hover { text-decoration-color: var(--orange); }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px 20px; padding: 0; }
.single-post-content li { font-size: 16px; color: var(--mid-strong); line-height: 1.75; margin-bottom: 8px; }
.single-post-content ul li::marker { color: var(--orange); }
.single-post-content blockquote { margin: 32px 0; padding: 22px 24px; border-left: 3px solid var(--orange); background: var(--off-white); border-radius: 0 8px 8px 0; }
.single-post-content blockquote p { font-family: 'Lora', serif; font-size: 17px; font-style: italic; color: var(--dark-text); margin-bottom: 0; line-height: 1.7; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 28px auto; border: 1px solid var(--border); }
.single-post-content code { font-size: 13px; background: var(--off-white); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-family: 'Courier New', monospace; color: var(--dark-text); }
.single-post-content pre { background: var(--dark-text); color: #f0f0f0; border-radius: 8px; padding: 24px; overflow-x: auto; margin: 28px 0; }
.single-post-content pre code { background: none; border: none; padding: 0; color: inherit; font-size: 13px; }
.single-post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.single-post-footer { max-width: 860px; margin: 0 auto; padding: 28px 64px 56px; width: 100%; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.single-post-tags-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); }
.single-post-tag { font-size: 12px; font-weight: 600; color: var(--mid); background: var(--off-white); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.single-post-tag:hover { border-color: var(--orange); color: var(--orange); }
.related-posts { padding: 64px 64px 96px; background: var(--off-white); border-top: 1px solid var(--border); }
.related-posts-head { margin-bottom: 36px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Responsive */
@media (max-width: 1024px) {
  .blog-hero         { padding: 64px 40px; gap: 48px; }
  .blog-grid-section { padding: 48px 40px 72px; }
  .blog-grid         { grid-template-columns: 1fr 1fr; }
  .single-post-hero     { padding: 56px 40px 40px; }
  .single-post-featured { padding: 0 40px; }
  .single-post-content  { padding: 40px 40px 56px; }
  .single-post-footer   { padding: 24px 40px 48px; }
  .related-posts        { padding: 48px 40px 72px; }
  .related-posts-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-hero         { padding: 48px 20px; grid-template-columns: 1fr; gap: 32px; }
  .blog-grid-section { padding: 36px 20px 56px; }
  .blog-grid         { grid-template-columns: 1fr; gap: 16px; }
  .single-post-hero     { padding: 40px 20px 32px; }
  .single-post-featured { padding: 0 20px; margin-top: 28px; }
  .single-post-content  { padding: 32px 20px 48px; }
  .single-post-footer   { padding: 20px 20px 40px; }
  .related-posts        { padding: 40px 20px 56px; }
  .related-posts-grid   { grid-template-columns: 1fr; }
}
