/* ── BLOG INDEX ── */
.blog-section { padding: 96px 0 120px; background: var(--off-white); }
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: flex-start; }

/* Featured post */
.blog-featured { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); margin-bottom: 32px; }
.blog-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-featured-thumb { width: 100%; height: 340px; overflow: hidden; position: relative; background: var(--navy-deep); }
.blog-featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-featured:hover .blog-featured-thumb img { transform: scale(1.04); }
.blog-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-thumb-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.12; }
.blog-thumb-placeholder .thumb-label { position: relative; z-index: 1; text-align: center; }
.blog-thumb-placeholder .thumb-label span { display: block; font-family: var(--font-condensed); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.blog-thumb-placeholder .thumb-label strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1.2; max-width: 420px; }
.thumb-green { background: linear-gradient(135deg, #0d1929 0%, #1b3a1e 60%, #0f2b12 100%); }
.thumb-navy  { background: linear-gradient(135deg, #0d1929 0%, #1b2a4a 60%, #111e35 100%); }
.blog-featured-body { padding: 36px 40px 40px; }
.post-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.post-cat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-mid); }
.post-date { font-size: 0.82rem; color: var(--grey-text); font-weight: 500; }
.post-author { font-size: 0.82rem; color: var(--grey-mid); }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-mid); }
.blog-featured-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.18; letter-spacing: -0.01em; }
.blog-featured-body .excerpt { font-size: 1rem; color: var(--grey-text); line-height: 1.78; margin-bottom: 28px; max-width: 680px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); transition: gap 0.25s ease, color 0.25s ease; }
.read-more svg { transition: transform 0.25s ease; }
.read-more:hover { color: var(--green-dark); gap: 12px; }
.read-more:hover svg { transform: translateX(3px); }

/* Blog card */
.blog-card { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green); }
.blog-card-thumb { width: 100%; height: 220px; overflow: hidden; position: relative; }
.blog-card-thumb .blog-thumb-placeholder { height: 220px; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 28px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.22; letter-spacing: -0.005em; }
.blog-card-body .excerpt { font-size: 0.9rem; color: var(--grey-text); line-height: 1.75; margin-bottom: 20px; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--grey-light); }
.cards-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.post-stats { display: flex; align-items: center; gap: 14px; }
.post-stat { display: flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--grey-text); }

/* Sidebar */
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 24px; }
.sidebar-widget-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--grey-light); }
.sidebar-widget-head h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-text); }
.sidebar-widget-body { padding: 20px 24px 24px; }
.sidebar-post { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--grey-light); align-items: flex-start; }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post-thumb { width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; background: var(--navy); }
.sidebar-post-thumb .blog-thumb-placeholder { height: 64px; }
.sidebar-post-info h5 { font-size: 0.88rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 5px; }
.sidebar-post-info span { font-size: 0.75rem; color: var(--grey-text); }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--grey-light); transition: var(--transition); }
.cat-item a { font-size: 0.875rem; font-weight: 600; color: var(--navy); flex: 1; }
.cat-item:hover { border-color: var(--green); background: var(--green-pale); }
.cat-count { font-size: 0.72rem; font-weight: 700; background: var(--navy-pale); color: var(--grey-text); padding: 3px 9px; border-radius: 100px; }
.sidebar-cta { background: var(--navy-deep); border-radius: var(--radius-xl); padding: 32px 28px; position: relative; overflow: hidden; margin-bottom: 24px; }
.sidebar-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(46,125,50,0.22) 0%, transparent 65%); pointer-events: none; }
.sidebar-cta-inner { position: relative; z-index: 1; }
.sidebar-cta h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.sidebar-cta p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 22px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ── POST PAGE ── */
.post-hero { position: relative; overflow: hidden; min-height: 580px; }
.post-hero-bg { position: absolute; inset: 0; z-index: 0; }
.post-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,18,36,0.97) 0%, rgba(10,18,36,0.72) 40%, rgba(10,18,36,0.28) 100%); }
.post-hero > .container { position: relative; z-index: 2; min-height: 580px; display: flex; align-items: flex-end; }
.post-hero-inner { width: 100%; padding: 80px 0 64px; }
.post-hero-inner .post-meta { margin-bottom: 20px; }
.post-hero-inner h1 { font-size: clamp(2rem,4vw,3.6rem); font-weight: 900; color: var(--white); line-height: 1.08; max-width: 820px; letter-spacing: -0.02em; margin-bottom: 0; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: flex-start; padding: 64px 0 120px; }
.post-body { font-size: 1.05rem; color: var(--text-body); line-height: 1.82; }
.post-body p { margin-bottom: 24px; }
.post-body h2 { font-size: 1.9rem; color: var(--navy); margin: 48px 0 18px; padding-top: 8px; }
.post-body h3 { font-size: 1.35rem; color: var(--navy); margin: 36px 0 14px; }
.post-body h4 { font-size: 1.05rem; color: var(--navy); margin: 28px 0 10px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 24px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 10px; line-height: 1.78; }
.post-body strong { color: var(--navy); font-weight: 700; }
.post-numbered-item { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.post-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--green-pale); border: 2px solid var(--green-mid); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 900; color: var(--green-dark); font-family: var(--font-condensed); margin-top: 2px; }
.post-num-content h4 { margin: 0 0 6px; font-size: 1rem; }
.post-num-content p { margin: 0; font-size: 0.95rem; color: var(--text-body); line-height: 1.75; }
.post-cta-box { background: var(--navy-deep); border-radius: var(--radius-xl); padding: 40px 44px; margin: 48px 0; position: relative; overflow: hidden; }
.post-cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 85% 20%, rgba(46,125,50,0.22) 0%, transparent 65%); pointer-events: none; }
.post-cta-inner { position: relative; z-index: 1; }
.post-cta-box h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.post-cta-box p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.75; margin-bottom: 24px; }
.post-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.post-sidebar { position: sticky; top: 100px; }
.post-sidebar .sidebar-widget { margin-bottom: 20px; }
.toc-list { padding: 0; }
.toc-list li { padding: 8px 0; border-bottom: 1px solid var(--grey-light); }
.toc-list li:last-child { border-bottom: none; padding-bottom: 0; }
.toc-list a { font-size: 0.85rem; color: var(--grey-text); font-weight: 500; transition: color 0.2s, padding-left 0.2s; display: block; }
.toc-list a:hover { color: var(--green); padding-left: 4px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag { display: inline-block; padding: 6px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: var(--grey-light); color: var(--grey-text); transition: var(--transition); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-md); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--grey-light); color: var(--grey-text); transition: var(--transition); cursor: pointer; background: transparent; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.share-btn.wa:hover { border-color: #25d366; color: #25d366; }
.share-btn.tw:hover { border-color: #000; color: #000; }
.share-btn.fb:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.li:hover { border-color: #0a66c2; color: #0a66c2; }
.share-btn.copy:hover { border-color: var(--green); color: var(--green); }
.back-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); transition: color 0.2s, gap 0.2s; margin-bottom: 28px; cursor: pointer; background: none; border: none; padding: 0; text-decoration: none; }
.back-btn:hover { color: var(--white); gap: 12px; }
.back-btn svg { transition: transform 0.2s; }
.back-btn:hover svg { transform: translateX(-3px); }

/* Like bar */
.like-bar { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1.5px solid var(--grey-light); margin-top: 40px; flex-wrap: wrap; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1.5px solid var(--grey-light); border-radius: 100px; font-size: .88rem; font-weight: 700; color: var(--grey-text); background: transparent; cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.like-btn:hover { border-color: #e53935; color: #e53935; background: #fff5f5; }
.like-btn.liked { border-color: #e53935; color: #e53935; background: #fff5f5; cursor: default; }
.like-btn svg { transition: transform .2s; }
.like-btn:hover svg, .like-btn.liked svg { transform: scale(1.2); }
.like-count-txt { font-size: .85rem; color: var(--grey-text); }

/* Comments */
.comments-section { padding-top: 48px; border-top: 2px solid var(--grey-light); margin-top: 8px; }
.comments-heading { font-size: 1.35rem; margin-bottom: 28px; color: var(--navy); }
.comment-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--grey-light); }
.comment-item:last-of-type { border-bottom: none; }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-pale); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--navy); flex-shrink: 0; font-family: var(--font-condensed); }
.comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-author { font-size: .88rem; font-weight: 700; color: var(--navy); }
.comment-date { font-size: .75rem; color: var(--grey-text); }
.comment-text { font-size: .93rem; color: var(--text-body); line-height: 1.72; }
.comment-form-wrap { margin-top: 36px; background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-xl); padding: 32px 36px; }
.comment-form-wrap h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 22px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cf-label { font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-text); }
.cf-group input, .cf-group textarea { padding: 12px 16px; border: 1.5px solid var(--grey-light); border-radius: var(--radius-md); font-family: var(--font-body); font-size: .93rem; color: var(--text-dark); background: var(--off-white); transition: border-color .2s; outline: none; width: 100%; }
.cf-group input:focus, .cf-group textarea:focus { border-color: var(--green); background: var(--white); }
.cf-group textarea { resize: vertical; min-height: 130px; }
.cf-error { font-size: .82rem; color: #c62828; margin-top: 4px; }
.alert-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-mid); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px; font-size: .9rem; font-weight: 600; }
.alert-error { background: #fff5f5; color: #c62828; border: 1px solid #ffcdd2; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px; font-size: .9rem; }
.no-comments-msg { font-size: .92rem; color: var(--grey-text); padding: 8px 0 16px; }

/* Post nav */
.post-nav-wrap { background: var(--off-white); border-top: 2px solid var(--grey-light); padding: 48px 0; }
.post-nav-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav-spacer { display: block; }
.post-nav-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; background: var(--white); border: 1.5px solid var(--grey-light); border-radius: var(--radius-xl); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-nav-card:hover { border-color: var(--green); box-shadow: 0 6px 24px rgba(46,125,50,0.1); transform: translateY(-2px); }
.post-nav-next { text-align: right; }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.post-nav-cat { font-size: .75rem; font-weight: 600; color: var(--grey-text); letter-spacing: .06em; text-transform: uppercase; }
.post-nav-title { font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.35; font-family: var(--font-condensed); }
.post-nav-date { font-size: .75rem; color: var(--grey-text); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .blog-featured-body { padding: 28px 24px 32px; }
  .blog-featured-thumb { height: 240px; }
  .post-hero { min-height: 440px; }
  .post-hero > .container { min-height: 440px; }
  .post-hero-inner { padding: 80px 0 48px; }
  .post-sidebar { grid-template-columns: 1fr; }
  .comment-form-wrap { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .post-cta-box { padding: 28px 24px; }
  .post-cta-btns { flex-direction: column; }
  .post-nav-inner { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .cf-grid { grid-template-columns: 1fr; }
}
