/* ============================================================
   pillar.css — Pillar page layout styles
   Used by: /south-african-applicants/sarb-sars-exchange-control/
   and any other pillar-format long-form content pages
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.pillar-hero {
  background: var(--navy-deep, #0a0f1e);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 5rem 2rem 4rem;
}

.pillar-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.pillar-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 220, 0.5);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-breadcrumb a {
  color: rgba(245, 240, 220, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.pillar-breadcrumb a:hover {
  color: var(--gold, #d4af37);
}

.pillar-breadcrumb span {
  opacity: 0.4;
}

.pillar-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.pillar-hero-title {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--cream, #f5f0dc);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.pillar-hero-sub {
  font-size: 1.05rem;
  color: rgba(245, 240, 220, 0.7);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.pillar-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: rgba(245, 240, 220, 0.45);
  letter-spacing: 0.04em;
}

.pillar-hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Two-column layout ────────────────────────────────────── */
.pillar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: start;
}

.pillar-main {
  min-width: 0;
}

.pillar-main h2 {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--cream, #f5f0dc);
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.pillar-main h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.pillar-main h3 {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream, #f5f0dc);
  margin: 2rem 0 0.75rem;
}

.pillar-main p {
  color: rgba(245, 240, 220, 0.75);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.pillar-main ul,
.pillar-main ol {
  color: rgba(245, 240, 220, 0.75);
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-main li {
  margin-bottom: 0.5rem;
}

/* ── Callout boxes ────────────────────────────────────────── */
.pillar-callout {
  border-left: 3px solid rgba(212, 175, 55, 0.4);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(212, 175, 55, 0.04);
}

.pillar-callout--gold {
  border-left-color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.06);
}

.pillar-callout--warning {
  border-left-color: #e07b39;
  background: rgba(224, 123, 57, 0.06);
}

.pillar-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(245, 240, 220, 0.8);
  line-height: 1.75;
}

.pillar-callout strong {
  color: var(--gold, #d4af37);
}

/* ── Tables ───────────────────────────────────────────────── */
.pillar-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pillar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pillar-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold, #d4af37);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.pillar-table td {
  padding: 0.85rem 1rem;
  color: rgba(245, 240, 220, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  vertical-align: top;
  line-height: 1.65;
}

.pillar-table tr:last-child td {
  border-bottom: none;
}

.pillar-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

/* ── CTA block ────────────────────────────────────────────── */
.pillar-cta-block {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(10, 15, 30, 0.6) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.pillar-cta-block h3 {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream, #f5f0dc);
  margin-bottom: 0.75rem;
}

.pillar-cta-block p {
  color: rgba(245, 240, 220, 0.65);
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.pillar-sidebar {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-sidebar-card {
  background: var(--navy-mid, #0f1628);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1.5rem;
}

.pillar-sidebar-card h4 {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.05rem;
  color: var(--cream, #f5f0dc);
  margin-bottom: 1rem;
}

.pillar-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-sidebar-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.85rem;
  color: rgba(245, 240, 220, 0.65);
}

.pillar-sidebar-card li:last-child {
  border-bottom: none;
}

.pillar-sidebar-card a {
  color: var(--gold, #d4af37);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.35rem 0;
  transition: opacity 0.2s;
}

.pillar-sidebar-card a:hover {
  opacity: 0.75;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillar-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }

  .pillar-sidebar {
    position: static;
  }

  .pillar-hero {
    padding: 3.5rem 1.5rem 3rem;
  }
}

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

  .pillar-hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pillar-table {
    font-size: 0.8rem;
  }
}
