.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgb(55 65 81);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.article-body * {
  max-width: 100%;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  background: linear-gradient(135deg, rgb(124 83 247), rgb(236 72 153));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-top: 2rem;
}

.article-body h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 2.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(124, 83, 247, 0.2);
}

/* Headings that are themselves marked as callouts (Ghost uses class="sb ...") */
.article-body h1.sb,
.article-body h2.sb,
.article-body h3.sb,
.article-body h4.sb,
.article-body h5.sb,
.article-body h6.sb,
.article-body h1[class*="sbb"],
.article-body h2[class*="sbb"],
.article-body h3[class*="sbb"],
.article-body h4[class*="sbb"],
.article-body h5[class*="sbb"],
.article-body h6[class*="sbb"],
.article-body .sb h1,
.article-body .sb h2,
.article-body .sb h3,
.article-body .sb h4,
.article-body .sb h5,
.article-body .sb h6,
.article-body .callout h1,
.article-body .callout h2,
.article-body .callout h3,
.article-body .callout h4,
.article-body .callout h5,
.article-body .callout h6,
.article-body .note h1,
.article-body .note h2,
.article-body .note h3,
.article-body .note h4,
.article-body .note h5,
.article-body .note h6,
.article-body aside h1,
.article-body aside h2,
.article-body aside h3,
.article-body aside h4,
.article-body aside h5,
.article-body aside h6,
.article-body [class*="callout"] h1,
.article-body [class*="callout"] h2,
.article-body [class*="callout"] h3,
.article-body [class*="callout"] h4,
.article-body [class*="callout"] h5,
.article-body [class*="callout"] h6,
.article-body .sb h1 + *,
.article-body .sb h2 + *,
.article-body .sb h3 + *,
.article-body .sb h4 + *,
.article-body .sb h5 + *,
.article-body .sb h6 + * {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: rgb(124 83 247) !important;
  text-fill-color: rgb(124 83 247) !important;
  color: rgb(124 83 247) !important;
  border-bottom: none !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
}

.article-body h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-top: 2rem;
}

.article-body h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 1.75rem;
}

.article-body h5,
.article-body h6 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-top: 1.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: rgb(124 83 247);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}

.article-body a:hover {
  color: rgb(99 102 241);
  text-decoration: underline;
}

.article-body strong {
  color: rgb(30 41 59);
}

.article-body em {
  color: rgb(79 70 229);
}

.article-body ul,
.article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ul ul {
  list-style: circle;
}

.article-body ul ul ul {
  list-style: square;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.75rem;
}

.article-body blockquote {
  margin: 2rem auto;
  padding: 1.5rem;
  border-left: 4px solid rgb(124 83 247);
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.08), rgba(236, 72, 153, 0.08));
  color: rgb(55 65 81);
  border-radius: 1rem;
  font-style: italic;
}

.article-body code {
  background: rgba(124, 83, 247, 0.1);
  color: rgb(88 28 135);
  font-size: 0.95em;
  padding: 0.15em 0.4em;
  border-radius: 0.4em;
}

.article-body pre {
  background: #07071a;
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: 1rem;
  overflow-x: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  margin: 2rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.article-body th,
.article-body td {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-align: left;
}

.article-body th {
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.12), rgba(99, 102, 241, 0.12));
  color: rgb(76 29 149);
  font-weight: 700;
}

.article-body tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.9);
}

.article-body hr {
  margin: 3rem auto;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.article-body img {
  border-radius: 1.25rem;
  display: block;
  margin: 2rem auto;
  box-shadow: 0 25px 45px rgba(124, 83, 247, 0.15);
}

.article-body iframe {
  width: 100%;
  min-height: 420px;
  border-radius: 1.25rem;
  border: none;
  margin: 2rem 0;
}

/* Callout styles - supporting multiple formats */
.article-body .sb,
.article-body .callout,
.article-body .note,
.article-body .tip,
.article-body .warning,
.article-body .info,
.article-body aside,
.article-body .kg-callout-card,
.article-body [class*="callout"],
.article-body [class*="note"],
.article-body [class*="highlight"] {
  color: rgb(30 41 59) !important;
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.12), rgba(236, 72, 153, 0.10)) !important;
  border-left: 4px solid rgb(124 83 247) !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0.875rem !important;
  margin: 2rem 0 !important;
  box-shadow: 0 4px 12px rgba(124, 83, 247, 0.08) !important;
  font-style: normal !important;
}

.article-body .sb *,
.article-body .callout *,
.article-body .note *,
.article-body aside *,
.article-body [class*="callout"] *,
.article-body [class*="note"] *,
.article-body [class*="highlight"] * {
  color: rgb(30 41 59) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: unset !important;
  text-fill-color: currentColor !important;
}

/* Specifically target headings inside callouts - MUST override gradient text */
.article-body .sb h1,
.article-body .sb h2,
.article-body .sb h3,
.article-body .sb h4,
.article-body .sb h5,
.article-body .sb h6,
.article-body .callout h1,
.article-body .callout h2,
.article-body .callout h3,
.article-body .callout h4,
.article-body .callout h5,
.article-body .callout h6,
.article-body .note h1,
.article-body .note h2,
.article-body .note h3,
.article-body .note h4,
.article-body .note h5,
.article-body .note h6,
.article-body aside h1,
.article-body aside h2,
.article-body aside h3,
.article-body aside h4,
.article-body aside h5,
.article-body aside h6,
.article-body [class*="callout"] h1,
.article-body [class*="callout"] h2,
.article-body [class*="callout"] h3,
.article-body [class*="callout"] h4,
.article-body [class*="callout"] h5,
.article-body [class*="callout"] h6,
.article-body .sb h1.h2-sbb-cls,
.article-body .sb h2.h2-sbb-cls,
.article-body .sb h3.h2-sbb-cls,
.article-body .sb h4.h2-sbb-cls,
.article-body .sb h5.h2-sbb-cls,
.article-body .sb h6.h2-sbb-cls {
  color: rgb(30 41 59) !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: rgb(30 41 59) !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

/* Fix links inside callout headings - use pink for links to differentiate */
.article-body .sb h1 a,
.article-body .sb h2 a,
.article-body .sb h3 a,
.article-body .sb h4 a,
.article-body .sb h5 a,
.article-body .sb h6 a,
.article-body .callout h1 a,
.article-body .callout h2 a,
.article-body .callout h3 a,
.article-body .callout h4 a,
.article-body .callout h5 a,
.article-body .callout h6 a,
.article-body .note h1 a,
.article-body .note h2 a,
.article-body .note h3 a,
.article-body .note h4 a,
.article-body .note h5 a,
.article-body .note h6 a,
.article-body aside h1 a,
.article-body aside h2 a,
.article-body aside h3 a,
.article-body aside h4 a,
.article-body aside h5 a,
.article-body aside h6 a,
.article-body [class*="callout"] h1 a,
.article-body [class*="callout"] h2 a,
.article-body [class*="callout"] h3 a,
.article-body [class*="callout"] h4 a,
.article-body [class*="callout"] h5 a,
.article-body [class*="callout"] h6 a {
  color: rgb(236 72 153) !important;
  -webkit-text-fill-color: rgb(236 72 153) !important;
  -webkit-background-clip: text !important;
  text-decoration: underline;
  background: none !important;
  background-image: none !important;
}

/* Fix paragraphs and divs inside callouts */
.article-body .sb p,
.article-body .sb div,
.article-body .callout p,
.article-body .callout div,
.article-body .note p,
.article-body .note div,
.article-body aside p,
.article-body aside div,
.article-body [class*="callout"] p,
.article-body [class*="callout"] div {
  color: rgb(30 41 59) !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Fix any spans or other inline elements */
.article-body .sb span,
.article-body .callout span,
.article-body .note span,
.article-body aside span,
.article-body [class*="callout"] span {
  color: inherit !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Fix images and figures inside callouts */
.article-body .sb img,
.article-body .callout img,
.article-body .note img,
.article-body aside img,
.article-body [class*="callout"] img,
.article-body .sb figure,
.article-body .callout figure,
.article-body .note figure,
.article-body aside figure,
.article-body [class*="callout"] figure {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  background: none !important;
  background-color: transparent !important;
}

/* Override any blue backgrounds that might be applied */
.article-body .sb > *,
.article-body .callout > *,
.article-body .note > *,
.article-body aside > *,
.article-body [class*="callout"] > * {
  background-color: transparent !important;
}

.article-body .sb a,
.article-body .callout a,
.article-body .note a,
.article-body aside a {
  color: rgb(236 72 153) !important;
  font-weight: 600 !important;
}

.article-body .sb strong,
.article-body .callout strong,
.article-body .note strong,
.article-body aside strong {
  color: rgb(124 83 247) !important;
  font-weight: 700 !important;
}

/* Warning/Alert callouts */
.article-body .warning,
.article-body .alert,
.article-body [class*="warning"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.10)) !important;
  border-left-color: rgb(245 158 11) !important;
}

/* Info/Tip callouts */
.article-body .tip,
.article-body .info,
.article-body [class*="tip"],
.article-body [class*="info"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.10)) !important;
  border-left-color: rgb(59 130 246) !important;
}

/* Success callouts */
.article-body .success,
.article-body [class*="success"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(22, 163, 74, 0.10)) !important;
  border-left-color: rgb(34 197 94) !important;
}

/* Ghost CMS specific callout cards */
.article-body .kg-card,
.article-body .kg-callout-card,
.article-body .kg-callout-card-accent {
  color: rgb(30 41 59) !important;
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.12), rgba(236, 72, 153, 0.10)) !important;
  border-left: 4px solid rgb(124 83 247) !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0.875rem !important;
  margin: 2rem 0 !important;
}

.article-body .kg-callout-emoji {
  font-size: 1.5rem !important;
  margin-right: 0.75rem !important;
}

.article-body .kg-callout-text {
  color: rgb(30 41 59) !important;
}

/* Data attribute based callouts */
.article-body [data-callout],
.article-body [data-note],
.article-body [data-type="callout"],
.article-body [data-type="note"] {
  color: rgb(30 41 59) !important;
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.12), rgba(236, 72, 153, 0.10)) !important;
  border-left: 4px solid rgb(124 83 247) !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0.875rem !important;
  margin: 2rem 0 !important;
}

.article-body [lang="he"] {
  direction: rtl;
  text-align: right;
  font-family: 'Heebo', 'Rubik', sans-serif;
}

.tag-label {
  font-size: 0.85rem;
  color: rgb(75 85 99);
  margin-right: 0.75rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.9rem;
  background: rgba(124, 83, 247, 0.12);
  color: rgb(124 83 247);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(124, 83, 247, 0.25);
}

.article-cta {
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(124, 83, 247, 0.95), rgba(236, 72, 153, 0.9));
  color: white;
  text-align: center;
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
}

.article-cta h3 {
  color: white;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.85);
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.5rem;
  border-radius: 9999px;
  background: white;
  color: rgb(124 83 247);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

.article-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

@media (max-width: 768px) {
  .article-body {
    font-size: 1.05rem;
  }

  .article-body h1 {
    font-size: 2.1rem;
  }

  .article-body h2 {
    font-size: 1.8rem;
  }

  .article-body h3 {
    font-size: 1.5rem;
  }

  .article-cta {
    padding: 2rem;
  }
}
