/* blog.css — Blog index and single post styles */

/* ── PAGE HERO ────────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #ffffff; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.68); max-width: 520px; margin: 0 auto; }

/* ── BLOG INDEX ───────────────────────────────────────────────── */
.blog-section { padding: 72px 0; background: #f7f8fa; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.post-card { background: #ffffff; border: 1px solid #dde1ea; border-radius: 12px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.post-card:hover { border-color: #c8922a; box-shadow: 0 4px 24px rgba(26,39,68,0.10); transform: translateY(-3px); }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c8922a; margin-bottom: 10px; display: block; }
.post-card h2 { font-size: 1.05rem; font-weight: 700; color: #1a2744; line-height: 1.35; margin-bottom: 10px; }
.post-card p { font-size: 0.88rem; color: #4a5568; line-height: 1.65; flex: 1; margin-bottom: 18px; }
.post-meta { font-size: 0.78rem; color: #8a93a8; margin-bottom: 14px; }

/* Read More link — gold, never blue */
.post-link { font-size: 0.88rem !important; font-weight: 700 !important; color: #c8922a !important; text-decoration: none !important; display: inline-flex !important; align-items: center; gap: 5px; }
.post-link:hover { color: #1a2744 !important; }
.post-link svg { color: #c8922a; }

/* ── SINGLE POST ──────────────────────────────────────────────── */
.post-section { padding: 72px 0; background: #ffffff; }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }

.post-header { margin-bottom: 36px; }
.post-header .post-tag { display: block; margin-bottom: 12px; }
.post-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #1a2744; line-height: 1.2; margin-bottom: 14px; }
.post-header .post-meta { font-size: 0.83rem; color: #8a93a8; }

/* Post body typography */
.post-body h2 { font-size: 1.3rem; font-weight: 800; color: #1a2744; margin: 36px 0 14px; padding-top: 8px; border-top: 2px solid #eef0f4; }
.post-body h3 { font-size: 1.05rem; font-weight: 700; color: #1a2744; margin: 24px 0 10px; }
.post-body p { font-size: 0.97rem; color: #4a5568; line-height: 1.75; margin-bottom: 18px; }
.post-body a { color: #c8922a; font-weight: 600; }
.post-body a:hover { color: #1a2744; }
.post-body ul, .post-body ol { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.post-body ul li, .post-body ol li { font-size: 0.95rem; color: #4a5568; padding: 6px 0 6px 26px; border-bottom: 1px solid #eef0f4; line-height: 1.6; position: relative; }
.post-body ul li:last-child, .post-body ol li:last-child { border-bottom: none; }
.post-body ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; background-color: #1a2744; background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%23c8922a' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 8px; border-radius: 50%; }
.post-body ol { counter-reset: ol-counter; }
.post-body ol li::before { content: counter(ol-counter); counter-increment: ol-counter; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; background: #1a2744; color: #c8922a; font-size: 0.7rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 18px; }
.post-body .tip-box { background: #fffbf0; border-left: 4px solid #c8922a; border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0; }
.post-body .tip-box p { margin: 0; font-size: 0.92rem; color: #78350f; }
.post-body .tip-box strong { color: #92400e; }

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }

/* CTA box — navy background, all text white/gold */
.sidebar-cta { background: #1a2744; border-radius: 14px; padding: 26px 22px; color: #ffffff; }
.sidebar-cta .sc-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #e8a93a; margin-bottom: 10px; display: block; }
.sidebar-cta h3 { font-size: 1.0rem; font-weight: 800; color: #ffffff; margin-bottom: 10px; }
.sidebar-cta p { font-size: 0.84rem; color: rgba(255,255,255,0.60); margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta a.sc-phone { display: block; font-size: 1.35rem; font-weight: 800; color: #e8a93a; text-decoration: none; margin-bottom: 12px; }
.sidebar-cta a.sc-phone:hover { color: #ffffff; }
.sidebar-cta a.sc-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 10px; font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.80); text-decoration: none; transition: all .15s; }
.sidebar-cta a.sc-wa:hover { background: rgba(255,255,255,0.14); color: #ffffff; }

/* Related posts box */
.related-posts { background: #f7f8fa; border: 1px solid #dde1ea; border-radius: 12px; padding: 20px; }
.related-posts h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #1a2744; margin-bottom: 14px; }
.related-post-link { display: block; font-size: 0.88rem; font-weight: 600; color: #1a2744; text-decoration: none; padding: 9px 0; border-bottom: 1px solid #dde1ea; line-height: 1.4; }
.related-post-link:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-link:hover { color: #c8922a; }

/* ── POST NAV BAR ─────────────────────────────────────────────── */
.post-nav { background: #f7f8fa; padding: 40px 0; border-top: 1px solid #dde1ea; }
.post-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.post-nav a { font-size: 0.9rem; font-weight: 600; color: #1a2744; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.post-nav a:hover { color: #c8922a; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-section { padding: 48px 0; }
  .post-section { padding: 48px 0; }
  .post-nav-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
