/* ================================================
   BazaarSathi — article.css
   Shared styles for ALL blog article pages.
   Every new article links to this one file.
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ar-ink:     #1a1a2e;
  --ar-ink2:    #3d3d5c;
  --ar-muted:   #6b7280;
  --ar-accent:  #0f4c81;
  --ar-accent2: #2563eb;
  --ar-green:   #16a34a;
  --ar-bg:      #f8f9ff;
  --ar-card:    #ffffff;
  --ar-border:  #e5e7eb;
  --ar-radius:  12px;
}

body {
  font-family: 'Mulish', sans-serif;
  background: #fff;
  color: var(--ar-ink);
  line-height: 1.7;
}

/* ---- NAV ---- */
.ar-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ar-border);
}
.ar-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ar-nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ar-ink);
  text-decoration: none;
}
.ar-nav-logo span { color: var(--ar-accent2); }
.ar-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ar-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ar-muted);
  text-decoration: none;
  transition: color .15s;
}
.ar-nav-link:hover { color: var(--ar-accent2); }
.ar-nav-cta {
  background: var(--ar-accent2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.ar-nav-cta:hover { background: var(--ar-accent); }

/* ---- ARTICLE HERO ---- */
.ar-hero {
  background: linear-gradient(135deg, var(--ar-ink) 0%, #1e3a6e 100%);
  padding: 56px 24px 48px;
}
.ar-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}
.ar-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.ar-breadcrumb a:hover { color: #fff; }
.ar-breadcrumb span { color: rgba(255,255,255,.3); }
.ar-breadcrumb-current { color: rgba(255,255,255,.85); font-weight: 600; }

.ar-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.15);
}
.ar-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}
.ar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.ar-meta-dot { color: rgba(255,255,255,.25); }

/* ---- LAYOUT ---- */
.ar-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ---- ARTICLE BODY ---- */
.ar-body { min-width: 0; }

.ar-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--ar-ink);
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--ar-bg);
}
.ar-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ar-ink2);
  margin: 24px 0 10px;
}
.ar-content p {
  font-size: 15px;
  color: var(--ar-ink2);
  margin-bottom: 18px;
  line-height: 1.8;
}
.ar-content ul,
.ar-content ol {
  margin: 0 0 18px 20px;
}
.ar-content li {
  font-size: 15px;
  color: var(--ar-ink2);
  margin-bottom: 8px;
  line-height: 1.7;
}
.ar-content strong { color: var(--ar-ink); font-weight: 700; }
.ar-content a {
  color: var(--ar-accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ar-content a:hover { color: var(--ar-accent); }

/* Callout / tip box */
.ar-callout {
  background: #eff6ff;
  border-left: 4px solid var(--ar-accent2);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ar-ink2);
  line-height: 1.7;
}
.ar-callout strong { color: var(--ar-accent2); }

/* Warning box */
.ar-warn {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.7;
}

/* Info table */
.ar-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ar-border);
}
.ar-table th {
  background: var(--ar-ink);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ar-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ar-border);
  color: var(--ar-ink2);
  vertical-align: top;
}
.ar-table tr:last-child td { border-bottom: none; }
.ar-table tr:nth-child(even) td { background: var(--ar-bg); }

/* Checklist */
.ar-checklist {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
}
.ar-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--ar-ink2);
  border-bottom: 1px solid var(--ar-border);
}
.ar-checklist li:last-child { border-bottom: none; }
.ar-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ar-green);
  font-weight: 700;
}

/* Tool CTA inline */
.ar-inline-cta {
  background: linear-gradient(135deg, var(--ar-accent) 0%, var(--ar-accent2) 100%);
  border-radius: var(--ar-radius);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ar-inline-cta-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.ar-inline-cta-sub {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-top: 4px;
  font-weight: 400;
}
.ar-inline-cta-btn {
  background: #fff;
  color: var(--ar-accent);
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s;
  flex-shrink: 0;
}
.ar-inline-cta-btn:hover { transform: translateY(-1px); }

/* ---- SIDEBAR ---- */
.ar-sidebar { position: sticky; top: 80px; }

.ar-sidebar-card {
  background: var(--ar-bg);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.ar-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ar-muted);
  margin-bottom: 14px;
}

/* Table of contents */
.ar-toc { list-style: none; padding: 0; margin: 0; }
.ar-toc li { margin-bottom: 4px; }
.ar-toc a {
  font-size: 13px;
  color: var(--ar-ink2);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: block;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.ar-toc a:hover {
  background: #fff;
  color: var(--ar-accent2);
}

/* Sidebar CTA */
.ar-sidebar-cta {
  background: linear-gradient(135deg, var(--ar-accent) 0%, var(--ar-accent2) 100%);
  border-radius: var(--ar-radius);
  padding: 20px;
  text-align: center;
}
.ar-sidebar-cta-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ar-sidebar-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}
.ar-sidebar-cta-btn {
  display: block;
  background: #fff;
  color: var(--ar-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s;
}
.ar-sidebar-cta-btn:hover { transform: translateY(-1px); }

/* ---- RELATED ARTICLES ---- */
.ar-related {
  background: var(--ar-bg);
  padding: 56px 24px;
  border-top: 1px solid var(--ar-border);
}
.ar-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ar-related-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--ar-ink);
  margin-bottom: 28px;
}
.ar-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ar-related-card {
  background: var(--ar-card);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  padding: 22px;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.ar-related-card:hover {
  box-shadow: 0 8px 24px rgba(15,76,129,.1);
  transform: translateY(-2px);
}
.ar-related-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ar-accent2);
  margin-bottom: 8px;
}
.ar-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ar-ink);
  line-height: 1.45;
  margin-bottom: 10px;
}
.ar-related-meta {
  font-size: 11px;
  color: var(--ar-muted);
}

/* ---- FOOTER ---- */
.ar-footer {
  background: var(--ar-ink);
  padding: 32px 24px;
}
.ar-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ar-footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: #fff;
}
.ar-footer-logo span { color: #60a5fa; }
.ar-footer-links {
  display: flex;
  gap: 24px;
}
.ar-footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}
.ar-footer-links a:hover { color: #fff; }
.ar-footer-note {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .ar-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ar-sidebar { position: static; }
  .ar-related-grid { grid-template-columns: repeat(2,1fr); }
  .ar-title { font-size: 1.9rem; }
}

@media (max-width: 580px) {
  .ar-title { font-size: 1.6rem; }
  .ar-related-grid { grid-template-columns: 1fr; }
  .ar-nav-links .ar-nav-link { display: none; }
  .ar-inline-cta { flex-direction: column; text-align: center; }
  .ar-footer-inner { flex-direction: column; text-align: center; }
  .ar-footer-links { justify-content: center; }
}

/* ---- ADS ---- */
.ar-ad {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--ar-radius);
  padding: 20px;
  margin: 32px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ar-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ar-ad ins { display: block; }

.ar-footer-ads {
  background: #fff;
  border-top: 1px solid var(--ar-border);
  padding: 32px 24px;
}
.ar-footer-ads-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.ar-footer-ads-label {
  font-size: 10px;
  color: var(--ar-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}