/*
 * guide-pages.css
 * Shared styles for all Phase 4 Guide pages on pawnsoftware.in
 * Include AFTER style.css: <link rel="stylesheet" href="../css/guide-pages.css">
 */

/* ── Guide hero ──────────────────────────────────────────── */
.guide-hero {
  background: linear-gradient(135deg, #fef7dc 0%, #fffdf5 50%, #f8f3df 100%);
  border-bottom: 2px solid var(--gold-border);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(184, 134, 11, 0.1) 0%,
      transparent 70%);
  pointer-events: none;
}

.guide-hero-inner {
  position: relative;
  z-index: 1;
}

.guide-tag {
      display: inline-block;
      background: var(--gold-lt);
      border: 1px solid var(--gold-border);
      color: var(--gold-dk);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      padding: 4px 14px;
      border-radius: 20px;
      margin-bottom: 16px;
}

.guide-hero h1 {
      color: var(--ink);
      font-size: clamp(26px, 3.8vw, 46px);
      line-height: 1.2;
      margin-bottom: 16px;
      max-width: 820px;
}

.guide-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.guide-hero-desc {
  color: var(--ink3);
  font-size: 17px;
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink4);
}

.guide-meta-item strong {
  color: var(--ink3);
}

/* ── Two-column layout ───────────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0 64px;
  align-items: start;
}

/* ── TOC sidebar ─────────────────────────────────────────── */
.toc-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 80px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 5px;
}

.toc-list a {
  font-size: 13px;
  color: var(--ink3);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  padding: 3px 0;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--gold-dk);
}

.toc-list a::before {
  content: "→";
  color: var(--gold);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toc-divider {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink4);
  margin: 12px 0 6px;
}

.sidebar-cta {
  background: linear-gradient(135deg, #1a1814, #2d2518);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
  border: 1px solid rgba(201, 147, 26, 0.25);
  text-align: center;
  position: static;
}

.sidebar-cta h4 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 12px;
  color: #9a9790;
  margin-bottom: 14px;
}

.sidebar-cta .btn {
  font-size: 13px;
  padding: 10px 18px;
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
  display: flex;
}

/* Guide navigation (prev/next) */
.guide-nav-card {
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.guide-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink4);
  font-weight: 500;
  margin-bottom: 6px;
}

.guide-nav-link {
  font-size: 13px;
  color: var(--gold-dk);
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.guide-nav-link:hover {
  color: var(--gold);
}

/* ── Guide article body ──────────────────────────────────── */
.guide-body h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 44px 0 14px;
  color: var(--ink);
  scroll-margin-top: 80px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-lt);
}

.guide-body h2:first-child {
  margin-top: 0;
}

.guide-body h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--ink);
  scroll-margin-top: 80px;
}

.guide-body h4 {
  font-size: 17px;
  margin: 20px 0 8px;
  color: var(--ink);
}

.guide-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink3);
  margin-bottom: 16px;
}

.guide-body ul,
.guide-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.guide-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink3);
  margin-bottom: 8px;
}

.guide-body strong {
  color: var(--ink2);
}

.guide-body a {
  color: var(--gold-dk);
  border-bottom: 1px solid transparent;
}

.guide-body a:hover {
  border-bottom-color: var(--gold);
}

/* ── Callout boxes ───────────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.callout-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.callout-body p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.callout.gold {
  background: var(--gold-lt);
  border: 1px solid #dfc980;
}

.callout.gold .callout-body h4 {
  color: var(--gold-dk);
}

.callout.gold .callout-body p {
  color: var(--gold-deep);
}

.callout.blue {
  background: var(--blue-lt);
  border: 1px solid #b8d8ee;
}

.callout.blue .callout-body h4 {
  color: var(--blue);
}

.callout.blue .callout-body p {
  color: var(--blue);
}

.callout.green {
  background: var(--green-lt);
  border: 1px solid #a8d8c0;
}

.callout.green .callout-body h4 {
  color: var(--green);
}

.callout.green .callout-body p {
  color: var(--green);
}

.callout.red {
  background: var(--red-lt);
  border: 1px solid #f0b8b0;
}

.callout.red .callout-body h4 {
  color: var(--red);
}

.callout.red .callout-body p {
  color: var(--red);
}

.callout.amber {
  background: var(--amber-lt);
  border: 1px solid #dfc980;
}

.callout.amber .callout-body h4 {
  color: var(--amber);
}

.callout.amber .callout-body p {
  color: var(--amber);
}

/* ── Data tables ─────────────────────────────────────────── */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.guide-table th {
  background: var(--ink);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}

.guide-table td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border);
  color: var(--ink2);
  vertical-align: top;
  line-height: 1.6;
}

.guide-table tr:nth-child(even) td {
  background: var(--cream);
}

.guide-table tr:last-child td {
  border-bottom: none;
}

/* ── Step list ───────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 14px;
  color: var(--ink3);
  margin: 0;
  line-height: 1.7;
}

/* ── Check list ──────────────────────────────────────────── */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink3);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
  line-height: 1.6;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Formula box ─────────────────────────────────────────── */
.formula-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
  font-family: "Courier New", monospace;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

.formula-box strong {
  color: var(--gold-dk);
}

/* ── Key stat cards ──────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.stat-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.stat-card-num {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.4;
}

/* ── Mid-article CTA ─────────────────────────────────────── */
.mid-cta {
      background: linear-gradient(135deg, #7A4A08, #B8860B);
      border-radius: var(--radius-lg);
      padding: 28px 32px;
      margin: 36px 0;
      border: 1px solid rgba(201,147,26,.2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
}

    .mid-cta h3 { font-size: 20px; color: var(--white); margin: 0 0 6px; }
    .mid-cta p  { font-size: 14px;  color: rgba(255, 255, 255, .85); }
    


/* ── Related guides grid ─────────────────────────────────── */
.related-guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.related-guide-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s;
}

.related-guide-card:hover {
  border-color: var(--gold);
  background: var(--gold-lt);
}

.rg-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rg-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.3;
}

.rg-sub {
  font-size: 12px;
  color: var(--ink4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .related-guides {
    grid-template-columns: 1fr;
  }

  .mid-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}