/* SchoolSathi Pro — long-form SEO & blog pages */
:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #0ea5e9;
  --success: #059669;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --max: 1120px;
  --prose: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -10%, rgba(37, 99, 235, 0.06), transparent);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: 8px; outline: 2px solid var(--brand); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: .35rem 1rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 500; font-size: .92rem; text-decoration: none; }
.nav a:hover { color: var(--text); }
.header-pay { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, var(--brand) 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--text) !important; border-color: var(--line); }
.btn-outline:hover { border-color: #cbd5e1; text-decoration: none; }
.btn-lg { padding: .85rem 1.35rem; font-size: .98rem; border-radius: 12px; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; border-radius: 8px; }

.seo-main { padding: 2rem 0 4rem; }
.seo-article {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem 1.75rem 2.5rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow);
}
.seo-article--wide { max-width: min(100%, 880px); }
.seo-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 .75rem;
}
.seo-article h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  margin: 0 0 .75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.seo-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.seo-prose h2 {
  font-size: 1.28rem;
  margin: 2rem 0 .65rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.seo-prose h3 {
  font-size: 1.08rem;
  margin: 1.35rem 0 .5rem;
  font-weight: 600;
  color: #1e293b;
}
.seo-prose p, .seo-prose li { color: var(--muted); font-size: .98rem; }
.seo-prose p { margin: 0 0 1rem; }
.seo-prose ul, .seo-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.seo-prose li { margin-bottom: .4rem; }
.seo-prose strong { color: #1e293b; }

.seo-figure {
  margin: 0 0 1.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.seo-figure img { width: 100%; height: auto; display: block; vertical-align: middle; }

.seo-faq { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.seo-faq h2 { font-size: 1.28rem; margin: 0 0 1rem; }
.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1rem;
  margin-bottom: .65rem;
  background: #fafbfc;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: .95rem 0;
  list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .65rem; }
.seo-faq p { margin: 0 0 .85rem; color: var(--muted); font-size: .95rem; }

.seo-mid-cta {
  margin: 2rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  text-align: center;
}
.seo-mid-cta p { margin: 0 0 .85rem; font-size: .95rem; color: #334155; }
.seo-mid-cta .btn-row { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.seo-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(120deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-align: center;
}
.seo-cta p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.seo-cta .btn-row { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

.sticky-cta-bar {
  display: none;
}
@media (max-width: 720px) {
  .sticky-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .sticky-cta-bar .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  body.has-sticky-cta { padding-bottom: 5rem; }
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }

/* Blog listing */
.blog-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 .5rem;
}
.blog-hero h1 { margin: 0 0 .5rem; letter-spacing: -0.02em; }
.blog-hero p { margin: 0; color: var(--muted); }
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.blog-card h2 { font-size: 1.08rem; margin: 0 0 .5rem; line-height: 1.35; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--brand); }
.blog-meta { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.blog-excerpt { margin: 0; flex: 1; color: var(--muted); font-size: .92rem; }
.blog-card .learn-more { margin-top: 1rem; font-weight: 600; font-size: .9rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
