/* =============================
   Reset & base
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  /* Core */
  --bg: #ffffff;
  --white: #ffffff;
  --surface: #f6f7f9;

  /* Borders */
  --border: #e2e5ed;

  /* Brand Colors */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;

  --accent: #0070f3;
  --accent-h: #2f4ac9;

  /* Text */
  --text: #1a1d27;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --muted: #6b7280;

  /* Status Colors */
  --red: #ef4444;
  --red-light: #fef2f2;

  --green: #16a34a;
  --green-light: #f0fdf4;

  /* Layout */
  --radius: 10px;
  --nav-h: 58px;
  --sidebar-w: 300px;
  --max-w: 920px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08),
               0 1px 2px rgba(0,0,0,.04);

  --shadow-md: 0 4px 12px rgba(0,0,0,.1);

  --hover-bg: #fafafa;
}


html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }




/* =============================
   Hero
   ============================= */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; }

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* =============================
   Button
   ============================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn:hover { background: var(--accent-h); text-decoration: none; color: #fff; }

/* =============================
   Container
   ============================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* =============================
   Post list
   ============================= */
.recent-posts { border-top: 1px solid var(--border); }
.recent-posts h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.blog-index h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }
.post-list { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.post-card { border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.post-card:last-child { border-bottom: none; }

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.post-card h2, .post-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.post-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.65rem; }
.read-more { font-size: 0.85rem; font-weight: 600; }

/* =============================
   Single post
   ============================= */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 1.9rem; font-weight: 800; margin-top: 0.4rem; }
.post-body { line-height: 1.8; }
.post-body h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: 0.3rem; }

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.post-body code {
  background: var(--surface);
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
}

.post-body pre code { background: none; padding: 0; }
.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* =============================
   Footer
   ============================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer p { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
}




/* ── RELATED BLOG ANYWHERE ───────────────── */

.relatedbloganywhere-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:22px;
  margin-top:26px;
}

/* CARD */

.relatedbloganywhere-card{
  position:relative;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  overflow:hidden;
}

/* IMAGE */

.relatedbloganywhere-thumb{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#f3f4f6;
}

.relatedbloganywhere-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
    margin:0px 0px;
}

/* CATEGORY */

.relatedbloganywhere-category{
  position:absolute;
  top:14px;
  left:14px;
  z-index:5;

  display:inline-block;
  padding:7px 12px;

  background:#fff;
  border:1px solid #dbe1ea;
  border-radius:999px;

  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;

  color:#2563eb;
  text-decoration:none;
}

/* CATEGORY HOVER */

.relatedbloganywhere-category:hover{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff !important;
  text-decoration:underline;
}

/* CONTENT */

.relatedbloganywhere-content{
  padding:18px;
}

/* TITLE LINK */

.relatedbloganywhere-content a{
  text-decoration:none;
  color:inherit;
}

/* TITLE */

.relatedbloganywhere-content h3{
  margin:0;

  color:#111827;
  font-size:16px;
  font-weight:600;
  line-height:1.5;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
}

/* TITLE HOVER */

.relatedbloganywhere-content a:hover h3{
  color:#2563eb;
  text-decoration:underline;
}

/* BOTTOM BORDER */

.relatedbloganywhere-card::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:3px;
  background:#3b82f6;
}

/* MOBILE */

@media(max-width:700px){

  .relatedbloganywhere-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .relatedbloganywhere-content{
    padding:16px;
  }

  .relatedbloganywhere-content h3{
    font-size:15px;
  }

}

