/* ============================================================
   RANKOSYS BLOG CSS — Backlinko-style, light background
   assets/css/blog.css
   ============================================================ */

/* PAGE SHELL */
.rkb-wrap { background:#ffffff; min-height:100vh; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:#1a1a2e; }

/* ── HERO ── */
.rkb-hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 60%,#0f172a 100%); padding:56px 0 48px; border-bottom:3px solid #00e5ff; }
.rkb-hero-inner { display:flex; align-items:center; gap:48px; max-width:1200px; margin:0 auto; padding:0 24px; }
.rkb-hero-text { flex:1; min-width:0; }
.rkb-hero-thumb { flex-shrink:0; width:340px; border-radius:12px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,0.4); }
.rkb-hero-thumb img { width:100%; height:220px; object-fit:cover; display:block; }

/* Cat badge */
.rkb-cat-badge { display:inline-block; background:rgba(0,229,255,0.12); color:#00e5ff; border:1px solid rgba(0,229,255,0.3); font-size:11px; font-weight:700; letter-spacing:0.09em; text-transform:uppercase; padding:4px 12px; border-radius:20px; text-decoration:none; margin-bottom:16px; transition:background 0.2s; }
.rkb-cat-badge:hover { background:rgba(0,229,255,0.25); color:#00e5ff; text-decoration:none; }

/* H1 */
.rkb-post-h1 { font-family:'Syne','Inter',sans-serif; font-size:clamp(24px,3.5vw,42px); font-weight:800; color:#f1f5f9; line-height:1.2; margin:0 0 20px; letter-spacing:-0.02em; }

/* Meta */
.rkb-meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.rkb-avatar { width:36px!important; height:36px!important; border-radius:50%; border:2px solid rgba(0,229,255,0.35); flex-shrink:0; }
.rkb-meta-info { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14px; color:#94a3b8; }
.rkb-author { color:#cbd5e1; font-weight:500; }
.rkb-sep { color:#475569; }

/* ── BODY LAYOUT ── */
.rkb-body { max-width:1200px; margin:0 auto; padding:52px 24px 80px; display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }

/* ── CONTENT ── */
.rkb-content { min-width:0; background:#fff; }

/* Typography */
.rkb-entry { font-size:17px; line-height:1.85; color:#1e293b; }
.rkb-entry p { margin:0 0 24px; font-size:17px; line-height:1.85; color:#1e293b; }
.rkb-entry h2 { font-family:'Syne','Inter',sans-serif; font-size:clamp(21px,2.4vw,30px); font-weight:800; color:#0f172a; margin:52px 0 16px; padding-bottom:10px; border-bottom:2px solid #e2e8f0; line-height:1.25; letter-spacing:-0.02em; scroll-margin-top:80px; }
.rkb-entry h3 { font-family:'Syne','Inter',sans-serif; font-size:clamp(17px,2vw,22px); font-weight:700; color:#0f172a; margin:36px 0 12px; line-height:1.3; scroll-margin-top:80px; }
.rkb-entry h4 { font-size:17px; font-weight:700; color:#1e293b; margin:28px 0 10px; }
.rkb-entry ul,.rkb-entry ol { margin:0 0 24px 26px; padding:0; }
.rkb-entry ul li,.rkb-entry ol li { margin-bottom:10px; font-size:17px; line-height:1.75; color:#1e293b; }
.rkb-entry a { color:#0369a1; text-decoration:underline; text-underline-offset:3px; }
.rkb-entry a:hover { color:#0284c7; }
.rkb-entry strong { font-weight:700; color:#0f172a; }
.rkb-entry img { max-width:100%; height:auto; border-radius:8px; margin:8px 0 24px; display:block; box-shadow:0 4px 20px rgba(0,0,0,0.08); }
.rkb-entry blockquote { border-left:4px solid #00e5ff; background:#f0f9ff; padding:18px 22px; margin:28px 0; border-radius:0 8px 8px 0; font-size:17px; color:#0f172a; font-style:italic; }
.rkb-entry blockquote p { margin:0; color:#0f172a; }
.rkb-entry pre { background:#0f172a; color:#e2e8f0; padding:20px 24px; border-radius:8px; overflow-x:auto; margin:0 0 24px; font-size:14px; line-height:1.7; }
.rkb-entry code { background:#f1f5f9; color:#0f172a; padding:2px 6px; border-radius:4px; font-size:14px; font-family:'Fira Code','Courier New',monospace; }
.rkb-entry pre code { background:none; color:inherit; padding:0; font-size:inherit; }

/* ── TABLES (responsive + colorful) ── */
.rkb-entry figure.wp-block-table { overflow-x:auto; -webkit-overflow-scrolling:touch; display:block; margin:28px 0; }
.rkb-entry table { width:100%; border-collapse:collapse; font-size:15px; border-radius:10px; overflow:hidden; box-shadow:0 2px 14px rgba(0,0,0,0.08); display:table; }
.rkb-entry table thead th { background:#0f172a; color:#00e5ff; font-weight:700; font-size:12.5px; letter-spacing:0.06em; text-transform:uppercase; padding:14px 16px; text-align:left; border:none; white-space:nowrap; }
.rkb-entry table tbody tr:nth-child(even) { background:#f8faff; }
.rkb-entry table tbody tr:nth-child(odd) { background:#fff; }
.rkb-entry table tbody tr:hover { background:#eff6ff; transition:background 0.15s; }
.rkb-entry table tbody td { padding:13px 16px; border-bottom:1px solid #e2e8f0; color:#1e293b; vertical-align:top; line-height:1.5; }
.rkb-entry table tbody td:first-child { font-weight:600; color:#0f172a; }

/* ── TAGS ── */
.rkb-tags { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:40px 0 48px; padding-top:24px; border-top:1px solid #e2e8f0; }
.rkb-tags-lbl { font-size:12px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:0.06em; }
.rkb-tag { background:#f1f5f9; color:#334155; font-size:13px; padding:5px 12px; border-radius:20px; text-decoration:none; border:1px solid #e2e8f0; transition:all 0.2s; }
.rkb-tag:hover { background:#0f172a; color:#00e5ff; border-color:#0f172a; text-decoration:none; }

/* ── CTA BANNER (matches your image) ── */
.rkb-cta-banner { background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 70%,#0f172a 100%); border-radius:14px; padding:40px 44px; margin:48px 0; border:1px solid rgba(0,229,255,0.18); box-shadow:0 8px 40px rgba(0,0,0,0.15); }
.rkb-cta-text h3 { font-family:'Syne','Inter',sans-serif; font-size:clamp(20px,2.6vw,30px); font-weight:800; color:#f1f5f9; margin:0 0 10px; line-height:1.2; letter-spacing:-0.02em; }
.rkb-cta-text h3 span { color:#00e5ff; }
.rkb-cta-text p { color:#94a3b8; font-size:15px; margin:0 0 28px; line-height:1.6; }
.rkb-cta-btns { display:flex; gap:14px; flex-wrap:wrap; }
.rkb-btn-primary { display:inline-flex; align-items:center; gap:6px; background:#00e5ff; color:#000!important; font-weight:700; font-size:15px; padding:13px 26px; border-radius:50px; text-decoration:none!important; transition:all 0.2s; box-shadow:0 4px 16px rgba(0,229,255,0.3); }
.rkb-btn-primary:hover { background:#00cfeb; transform:translateY(-1px); box-shadow:0 6px 22px rgba(0,229,255,0.4); }
.rkb-btn-outline { display:inline-flex; align-items:center; background:transparent; color:#f1f5f9!important; font-weight:600; font-size:15px; padding:13px 26px; border-radius:50px; text-decoration:none!important; border:1.5px solid rgba(241,245,249,0.35); transition:all 0.2s; }
.rkb-btn-outline:hover { border-color:#f1f5f9; background:rgba(241,245,249,0.08); }

/* ── RELATED POSTS ── */
.rkb-related { margin-top:56px; padding-top:40px; border-top:2px solid #e2e8f0; }
.rkb-related-ttl { font-family:'Syne','Inter',sans-serif; font-size:20px; font-weight:800; color:#0f172a; margin:0 0 24px; }
.rkb-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.rkb-related-card { text-decoration:none; border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; background:#fff; transition:all 0.2s; display:block; }
.rkb-related-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,0.1); border-color:#00e5ff; }
.rkb-rel-img img { width:100%; height:130px; object-fit:cover; display:block; }
.rkb-rel-info { padding:14px; }
.rkb-rel-info h4 { font-size:14px; font-weight:700; color:#0f172a; margin:0 0 6px; line-height:1.4; }
.rkb-rel-info span { font-size:12px; color:#64748b; }

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.rkb-sidebar { position:sticky; top:24px; display:flex; flex-direction:column; gap:20px; }
.rkb-widget { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.rkb-widget-ttl { font-family:'Syne','Inter',sans-serif; font-size:12px; font-weight:800; color:#0f172a; text-transform:uppercase; letter-spacing:0.08em; margin:0 0 16px; display:flex; align-items:center; gap:7px; padding-bottom:12px; border-bottom:2px solid #f1f5f9; }
.rkb-widget-ttl svg { color:#00b4d8; flex-shrink:0; }

/* TOC */
.rkb-toc-widget { border-left:3px solid #00e5ff; }
.rkb-toc-ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:1px; }
.rkb-toc-h2 a,.rkb-toc-h3 a { display:block; font-size:13px; color:#334155; text-decoration:none; padding:6px 10px; border-radius:6px; line-height:1.45; transition:all 0.15s; border-left:2px solid transparent; }
.rkb-toc-h3 a { padding-left:20px; font-size:12.5px; color:#64748b; }
.rkb-toc-h2 a:hover,.rkb-toc-h3 a:hover { background:#f0f9ff; color:#0369a1; border-left-color:#00e5ff; }
.rkb-toc-active { background:#eff6ff!important; color:#0369a1!important; border-left-color:#00e5ff!important; font-weight:600; }

/* Categories */
.rkb-cat-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:1px; }
.rkb-cat-list li a { display:flex; align-items:center; gap:8px; font-size:14px; color:#334155; text-decoration:none; padding:8px 10px; border-radius:7px; transition:all 0.15s; font-weight:500; }
.rkb-cat-list li a:hover { background:#f0f9ff; color:#0369a1; text-decoration:none; }
.rkb-cat-list li a span { font-size:15px; }

/* Recent posts */
.rkb-recent-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.rkb-recent-item { display:flex; gap:12px; align-items:flex-start; }
.rkb-recent-thumb { flex-shrink:0; }
.rkb-recent-thumb img { width:60px; height:60px; object-fit:cover; border-radius:7px; display:block; }
.rkb-recent-title { display:block; font-size:13px; font-weight:600; color:#1e293b; text-decoration:none; line-height:1.4; margin-bottom:4px; transition:color 0.15s; }
.rkb-recent-title:hover { color:#0369a1; }
.rkb-recent-date { font-size:11.5px; color:#94a3b8; display:block; }

/* Services widget - dark */
.rkb-services-widget { background:linear-gradient(160deg,#0f172a,#1a2d4f); border:1px solid rgba(0,229,255,0.15); }
.rkb-services-widget .rkb-widget-ttl { color:#e2e8f0; border-bottom-color:rgba(255,255,255,0.08); }
.rkb-services-widget .rkb-widget-ttl svg { color:#00e5ff; }
.rkb-services-list { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:1px; }
.rkb-services-list li a { display:block; font-size:13.5px; color:#94a3b8; text-decoration:none; padding:7px 10px; border-radius:7px; transition:all 0.15s; font-weight:500; }
.rkb-services-list li a:hover { background:rgba(0,229,255,0.08); color:#00e5ff; text-decoration:none; }
.rkb-service-btn { display:block; background:#00e5ff; color:#000!important; font-weight:700; font-size:13px; text-align:center; padding:11px; border-radius:8px; text-decoration:none!important; transition:all 0.2s; }
.rkb-service-btn:hover { background:#00cfeb; transform:translateY(-1px); }

/* ── BODY OVERRIDE ── */
body.single-post { background:#f8fafc!important; color:#1e293b!important; }
body.single-post .site-header { background:rgba(10,10,15,0.97)!important; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media(max-width:1024px){
  .rkb-body { grid-template-columns:1fr; gap:40px; padding:36px 20px 60px; }
  .rkb-sidebar { position:static; display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
  .rkb-toc-widget,.rkb-services-widget { grid-column:1/-1; }
}
@media(max-width:768px){
  .rkb-hero { padding:36px 0 30px; }
  .rkb-hero-inner { flex-direction:column; gap:24px; }
  .rkb-hero-thumb { width:100%; }
  .rkb-hero-thumb img { height:190px; }
  .rkb-related-grid { grid-template-columns:1fr; gap:14px; }
  .rkb-cta-banner { padding:28px 22px; }
  .rkb-cta-btns { flex-direction:column; }
  .rkb-btn-primary,.rkb-btn-outline { text-align:center; justify-content:center; width:100%; }
  .rkb-sidebar { grid-template-columns:1fr; }
  .rkb-body { padding:24px 16px 48px; }
}
@media(max-width:480px){
  .rkb-post-h1 { font-size:22px; }
  .rkb-entry { font-size:16px; }
  .rkb-entry p,.rkb-entry ul li,.rkb-entry ol li { font-size:16px; }
  .rkb-entry h2 { font-size:19px; }
  .rkb-entry h3 { font-size:17px; }
  .rkb-entry table thead th,.rkb-entry table tbody td { padding:10px 12px; font-size:13px; }
}