/* ──────────────────────────────────────────────────────────────
   ArthmArg — Creative design layer
   Visual polish for About, Blog post, Page views.
   ────────────────────────────────────────────────────────────── */

/* ─── DECORATIVE BG PATTERNS ─── */
.bg-dots {
  background-image: radial-gradient(circle, rgba(18,73,160,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(18,73,160,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,73,160,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ─── REVAMPED PAGE HERO ─── */
.page-hero-rich {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 50%, #2A4D7C 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-rich::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,146,26,.25), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.page-hero-rich::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(18,73,160,.4), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.page-hero-rich .container { position: relative; z-index: 1; }
.page-hero-rich .pre-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(240,180,41,.15);
  border: 1px solid rgba(240,180,41,.35);
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero-rich h1 {
  font-family: var(--ff-head);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
  max-width: 920px;
}
.page-hero-rich h1 .accent { color: var(--gold2); }
.page-hero-rich p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 32px;
}
.page-hero-rich .hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 20px;
}
.page-hero-rich .hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.7);
}

/* Subtle SVG wave between hero and content */
.hero-wave {
  display: block; width: 100%; height: 56px;
  background: var(--bg);
  position: relative;
  margin-top: -56px;
  clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%);
}

/* ─── ABOUT — RICH SECTIONS ─── */

.about-shell { background: var(--bg); padding: 64px 0 80px; }

/* Story panel */
.story-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.story-panel::before {
  content: '"';
  position: absolute;
  top: -40px; left: 20px;
  font-family: var(--ff-head);
  font-size: 220px;
  color: rgba(18,73,160,.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.story-panel h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
  position: relative;
}
.story-panel p {
  font-size: 16px; line-height: 1.8; color: #334155;
  margin-bottom: 14px;
  position: relative;
}

/* Beliefs — colourful chips with icons */
.beliefs-section { margin: 56px 0; }
.beliefs-section .section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(18,73,160,.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.beliefs-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 32px;
  text-align: center;
}
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.belief-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  gap: 18px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.belief-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
}
.belief-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.belief-card:nth-child(3)::before { background: linear-gradient(90deg, var(--teal), #14B8A6); }
.belief-card:nth-child(4)::before { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.belief-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11,20,38,.08); }
.belief-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(18,73,160,.08), rgba(18,73,160,.02));
}
.belief-card:nth-child(2) .belief-icon { background: linear-gradient(135deg, rgba(200,146,26,.12), rgba(200,146,26,.02)); }
.belief-card:nth-child(3) .belief-icon { background: linear-gradient(135deg, rgba(13,123,110,.12), rgba(13,123,110,.02)); }
.belief-card:nth-child(4) .belief-icon { background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(124,58,237,.02)); }
.belief-body h3 {
  font-family: var(--ff-head);
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--ink);
}
.belief-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Big stat cards */
.stats-section {
  background: linear-gradient(135deg, var(--ink), var(--ink2));
  border-radius: 24px;
  padding: 48px;
  margin: 56px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200,146,26,.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(18,73,160,.4), transparent 50%);
  pointer-events: none;
}
.stats-section > * { position: relative; }
.stats-section .section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(240,180,41,.15);
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stats-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 32px);
  color: #fff;
  margin-bottom: 32px;
}
.stats-grid-rich {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card-rich {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.stat-card-rich:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(240,180,41,.4);
  transform: translateY(-3px);
}
.stat-card-rich .icon { font-size: 24px; margin-bottom: 10px; opacity: .85; }
.stat-card-rich .num {
  font-family: var(--ff-head);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  color: var(--gold2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-rich .lbl {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Anti-pattern (what we DON'T do) */
.dont-section { margin: 56px 0; }
.dont-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(26px, 3.5vw, 32px);
  margin-bottom: 12px;
  text-align: center;
}
.dont-section .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.dont-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dont-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 18px 20px;
}
.dont-item .x {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.dont-item p {
  font-size: 14px;
  color: #7F1D1D;
  line-height: 1.6;
  margin: 5px 0 0;
}

/* Office card */
.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin: 40px 0;
}
.office-info { padding: 36px; }
.office-info h2 {
  font-family: var(--ff-head);
  font-size: 28px;
  margin-bottom: 14px;
}
.office-info p { color: var(--muted); line-height: 1.7; margin-bottom: 10px; font-size: 15px; }
.office-info .item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px;
  font-size: 14px;
}
.office-info .item .ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(18,73,160,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.office-info .item strong { color: var(--ink); display: block; font-size: 13px; margin-bottom: 2px; }
.office-info .item span { color: var(--muted); }
.office-map {
  background:
    linear-gradient(135deg, var(--ink), var(--ink2)),
    radial-gradient(circle at 30% 30%, rgba(240,180,41,.25), transparent);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  padding: 36px;
  text-align: center;
  position: relative;
}
.office-map .pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
  animation: pin-bounce 2s ease-in-out infinite;
}
@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, -60%); }
}

/* ─── BLOG POST — RICH ARTICLE ─── */

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  width: 0%;
  z-index: 9999;
  transition: width .1s ease-out;
}

/* Article shell with sticky sidebar TOC */
.article-shell { background: var(--bg); padding: 48px 0 80px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 2px 16px rgba(11,20,38,.04);
}

.article-head-rich .cat-chip {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-head-rich h1 {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
}
.article-meta-rich {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta-rich .item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-rich .author {
  display: inline-flex; align-items: center; gap: 10px;
}
.article-meta-rich .author .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
}

/* CMS body — rich auto-styling for any HTML the editor produces */
.cms-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1F2937;
}
.cms-content > * + * { margin-top: 14px; }
.cms-content h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  position: relative;
}
.cms-content h2::after {
  content: ''; display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  margin-top: 8px;
  border-radius: 2px;
}
.cms-content h3 {
  font-family: var(--ff-head);
  font-size: clamp(19px, 2.2vw, 22px);
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 8px;
}
.cms-content p { margin-bottom: 16px; }
.cms-content a {
  color: var(--blue);
  font-weight: 500;
  border-bottom: 1px solid rgba(18,73,160,.25);
  transition: border-color .2s;
}
.cms-content a:hover { border-bottom-color: var(--blue); text-decoration: none; }
.cms-content strong { color: var(--ink); font-weight: 700; }
.cms-content em { color: #475569; }
.cms-content ul, .cms-content ol {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
.cms-content ul li, .cms-content ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.cms-content ul li::before {
  content: '';
  position: absolute;
  left: 8px; top: 12px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.cms-content ol { counter-reset: ord; }
.cms-content ol li { counter-increment: ord; }
.cms-content ol li::before {
  content: counter(ord);
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ff-mono);
}
.cms-content blockquote {
  border: none;
  background: linear-gradient(135deg, #F0F9FF, #DBEAFE);
  border-left: 4px solid var(--blue);
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  border-radius: 0 12px 12px 0;
  position: relative;
}
.cms-content blockquote::before {
  content: '"';
  position: absolute;
  top: -20px; left: 12px;
  font-family: var(--ff-head);
  font-size: 80px;
  color: var(--blue);
  opacity: .25;
  line-height: 1;
}
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11,20,38,.06);
}
.cms-content table th {
  background: linear-gradient(135deg, var(--ink), var(--ink2));
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}
.cms-content table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cms-content table tbody tr:nth-child(even) { background: #F8FAFC; }
.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(11,20,38,.1);
}
.cms-content pre {
  background: var(--ink);
  color: #E2E8F0;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--ff-mono);
  font-size: 13px;
  margin: 18px 0;
}
.cms-content code {
  background: rgba(18,73,160,.08);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: .9em;
}
.cms-content pre code { background: none; padding: 0; color: inherit; }

/* Pull quote (auto-applied to certain blockquotes via class) */
.cms-content blockquote.pull { font-size: 22px; text-align: center; }

/* Article sidebar */
.article-side { position: sticky; top: 24px; align-self: start; }
.article-side .toc-card,
.article-side .share-card,
.article-side .cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.article-side .card-title {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.toc-list li a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: all .18s;
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
}
.toc-list li a:hover { color: var(--blue); background: rgba(18,73,160,.04); }
.toc-list li a.active {
  color: var(--blue);
  background: rgba(18,73,160,.06);
  border-left-color: var(--blue);
  font-weight: 600;
}
.toc-list li.lvl-3 a { padding-left: 22px; font-size: 12.5px; }

.share-card .share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.share-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.cta-card {
  background: linear-gradient(135deg, var(--ink), var(--ink2)) !important;
  color: #fff;
  border-color: transparent !important;
}
.cta-card .card-title { color: var(--gold2); }
.cta-card h4 { font-family: var(--ff-head); font-size: 18px; color: #fff; margin-bottom: 8px; }
.cta-card p { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; line-height: 1.55; }
.cta-card .btn { width: 100%; justify-content: center; }

/* Article inline CTA (the "Try the SIP Calculator" block) */
.article-cta-rich {
  background: linear-gradient(135deg, var(--ink) 0%, #1E3A5F 100%);
  border-radius: 20px;
  padding: 36px 32px;
  margin: 40px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.article-cta-rich::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(240,180,41,.2), transparent 65%);
  pointer-events: none;
}
.article-cta-rich h3 { font-family: var(--ff-head); font-size: 24px; color: #fff; margin-bottom: 8px; position: relative; }
.article-cta-rich p { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; position: relative; }
.article-cta-rich .btn { position: relative; }

/* Related grid (replaces flat list) */
.related-section { padding: 64px 0 0; }
.related-section .section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(200,146,26,.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.related-section h2 {
  font-family: var(--ff-head);
  font-size: 28px;
  margin-bottom: 24px;
}
.related-grid-rich {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.related-card-rich {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all .25s;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.related-card-rich::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.related-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11,20,38,.1);
  text-decoration: none;
}
.related-card-rich:hover::before { transform: scaleX(1); }
.related-card-rich .emoji { font-size: 36px; margin-bottom: 12px; }
.related-card-rich .meta { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 8px; }
.related-card-rich h3 { font-family: var(--ff-head); font-size: 18px; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.related-card-rich p { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.related-card-rich .read { margin-top: 10px; font-size: 12px; color: var(--gold); font-weight: 600; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
@media (max-width: 760px) {
  .article-main { padding: 32px 24px; }
  .beliefs-grid, .dont-list, .stats-grid-rich { grid-template-columns: 1fr; }
  .office-card { grid-template-columns: 1fr; }
  .office-map { min-height: 220px; }
  .page-hero-rich { padding: 64px 0 48px; }
  .stats-section { padding: 32px 24px; }
}
