/* ═══════════════════════════════════════════════════════
   ADHYAYAN — Standalone sub-page stylesheet
   Depends on: Google Fonts (Inter + Plus Jakarta Sans)
   Colour tokens match the main site
   ═══════════════════════════════════════════════════════ */

/* ── Reset / tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #007BFF;
  --primary-dark:  #0056B3;
  --primary-light: #E8F4FF;
  --accent:        #00C6FF;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --text-primary:  #0f1923;
  --text-secondary:#4a5568;
  --text-muted:    #94a3b8;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --card-bg:       #ffffff;
  --border:        #e2e8f0;
  --radius:        10px;
  --radius-lg:     16px;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-head:     'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w:         820px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; }

/* ── Page nav bar ── */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}
.page-nav-logo:hover { text-decoration: none; }
.page-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.page-back:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  border-color: var(--primary);
}

/* ── Page hero / banner ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #005cc8 60%, var(--accent) 100%);
  color: #fff;
  padding: 64px 24px 60px;
  text-align: center;
}
.page-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.9);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
.page-hero-meta {
  margin-top: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ── Table of contents ── */
.page-toc {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 0 24px;
}
.page-toc-inner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.page-toc h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-toc ol {
  counter-reset: toc;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-toc li { counter-increment: toc; }
.page-toc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.page-toc a::before {
  content: counter(toc);
  width: 18px; height: 18px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-toc a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

/* ── Article body ── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.page-section:last-child { margin-bottom: 0; }

.section-anchor-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.section-num {
  min-width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.page-section h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.page-section h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}
.page-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.page-section p:last-child { margin-bottom: 0; }
.page-section ul, .page-section ol {
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.page-section ul li, .page-section ol li { margin-bottom: 6px; }
.page-section ol ol, .page-section ul ul,
.page-section ol ul, .page-section ul ol {
  margin-top: 6px;
  margin-bottom: 0;
}
.page-section a { color: var(--primary); }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* callout / highlight box */
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: .925rem;
  line-height: 1.7;
}
.callout.warning {
  background: #fffbeb;
  border-left-color: var(--warning);
}
.callout.success {
  background: #f0fdf4;
  border-left-color: var(--success);
}
.callout strong { display: block; margin-bottom: 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }

/* contact card */
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
}
.contact-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-card-text strong { display: block; font-weight: 600; font-size: .9rem; color: var(--text-primary); margin-bottom: 2px; }
.contact-card-text a, .contact-card-text span { font-size: .875rem; color: var(--text-secondary); }
.contact-card-text a:hover { color: var(--primary); }

/* step list */
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  min-width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-list li > div strong { display: block; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.step-list li > div p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* big cta card */
.cta-card {
  background: linear-gradient(135deg, var(--primary), #005cc8);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: #fff;
  margin-top: 56px;
}
.cta-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-card p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; }

/* delete account form */
.delete-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 28px;
}
.delete-form h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group label span { color: #e53e3e; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,.12);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e53e3e;
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-danger:hover { background: #c53030; transform: translateY(-1px); }
.form-success-msg {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 14px 18px;
  color: #166534;
  font-size: .9rem;
  margin-top: 14px;
}
.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .875rem;
  color: #9a3412;
  line-height: 1.65;
}
.warning-box strong { color: #7c2d12; display: block; margin-bottom: 4px; }

/* ── Page footer ── */
.page-footer {
  background: #0f1923;
  color: rgba(255,255,255,.6);
  padding: 32px 24px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.7;
}
.page-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-footer a:hover { color: #fff; }
.page-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 14px;
}
.page-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none !important;
}
.page-footer-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
}
.page-footer-logo span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-hero { padding: 44px 20px 40px; }
  .page-content { padding: 32px 20px 60px; }
  .contact-card { padding: 20px; }
  .cta-card { padding: 28px 20px; }
  .delete-form { padding: 22px 18px; }
  .page-toc { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
