/* Rich content blocks + reading polish (public blog / custom pages) */
.portfolio-content,
.custom-page-content,
.rich-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.portfolio-content h2,
.custom-page-content h2,
.rich-content h2 {
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 2.4rem 0 0.9rem;
  line-height: 1.25;
}

.portfolio-content h3,
.custom-page-content h3,
.rich-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin: 1.8rem 0 0.7rem;
}

.portfolio-content p,
.custom-page-content p,
.rich-content p {
  margin-bottom: 1.2rem;
}

.portfolio-content img,
.custom-page-content img,
.rich-content img {
  border-radius: 14px;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.portfolio-content a,
.custom-page-content a {
  color: #4A3AFF;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.portfolio-content blockquote:not(.rc-quote),
.custom-page-content blockquote:not(.rc-quote) {
  border-left: 4px solid #4A3AFF;
  padding: 0.35rem 0 0.35rem 1rem;
  color: #475569;
  font-style: italic;
  margin: 1.5rem 0;
}

.portfolio-content ul,
.portfolio-content ol,
.custom-page-content ul,
.custom-page-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.portfolio-content li,
.custom-page-content li {
  margin-bottom: 0.45rem;
}

.portfolio-content table,
.custom-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.portfolio-content th,
.portfolio-content td,
.custom-page-content th,
.custom-page-content td {
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem;
}

.portfolio-content th,
.custom-page-content th {
  background: #f8fafc;
  font-weight: 750;
}

/* Drop cap */
.rich-content--dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.85;
  padding: 0.15rem 0.45rem 0 0;
  font-weight: 850;
  color: #4A3AFF;
}

/* Layout variants */
.cp-layout--wide { max-width: 56rem !important; }
.cp-layout--magazine .custom-page-content {
  font-size: 1.22rem;
  line-height: 1.9;
}
.cp-layout--magazine .custom-page-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}
.cp-layout--minimal .cp-shell {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Custom blocks */
.rc-callout {
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: 1.75rem 0;
  border: 1px solid transparent;
}
.rc-callout__title { display: block; margin-bottom: 0.35rem; font-weight: 800; }
.rc-callout__body { line-height: 1.55; color: #334155; }
.rc-callout--tip { background: #eff6ff; border-color: #bfdbfe; }
.rc-callout--tip .rc-callout__title { color: #1d4ed8; }
.rc-callout--success { background: #ecfdf5; border-color: #a7f3d0; }
.rc-callout--success .rc-callout__title { color: #047857; }
.rc-callout--warning { background: #fffbeb; border-color: #fde68a; }
.rc-callout--warning .rc-callout__title { color: #b45309; }
.rc-callout--danger { background: #fef2f2; border-color: #fecaca; }
.rc-callout--danger .rc-callout__title { color: #b91c1c; }

.rc-cta { margin: 1.75rem 0; }
.rc-cta--center { text-align: center; }
.rc-cta--left { text-align: left; }
.rc-cta--right { text-align: right; }
.rc-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rc-cta__btn:hover { transform: translateY(-1px); }
.rc-cta__btn--primary {
  background: #4A3AFF;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(74, 58, 255, .28);
}
.rc-cta__btn--outline {
  border: 1.5px solid #4A3AFF;
  color: #4A3AFF !important;
  background: #fff;
}
.rc-cta__btn--dark {
  background: #0f172a;
  color: #fff !important;
}

.rc-animate {
  margin: 1.85rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
}
.rc-animate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.rc-animate__heading {
  margin: 0 0 0.55rem !important;
  font-size: 1.35rem !important;
}
.rc-animate__body { color: #475569; }

.rc-quote {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: #0f172a;
  color: #f8fafc;
  border: none;
}
.rc-quote__text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.55;
  font-weight: 650;
  font-style: normal;
}
.rc-quote__author {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: normal;
}

.rc-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 1.75rem 0;
}
@media (min-width: 720px) {
  .rc-stats { grid-template-columns: repeat(3, 1fr); }
}
.rc-stats__item {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.rc-stats__value {
  font-size: 1.65rem;
  font-weight: 850;
  color: #4A3AFF;
  letter-spacing: -0.03em;
}
.rc-stats__label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rc-youtube { margin: 1.75rem 0; }
.rc-youtube__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}
.rc-youtube__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rc-youtube__caption {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Scroll animations */
.rc-anim {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.rc-anim[data-animate="fade"] { transform: none; }
.rc-anim[data-animate="slide"] { transform: translateX(-22px); }
.rc-anim[data-animate="zoom"] { transform: scale(.96); }
.rc-anim.is-in {
  opacity: 1;
  transform: none;
}

.cp-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cp-toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.cp-toc ol {
  margin: 0;
  padding-left: 1.1rem;
}
.cp-toc a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}
.cp-toc a:hover { color: #4A3AFF; }

.cp-hero--band {
  background: linear-gradient(135deg, #312e81, #1d4ed8 55%, #0f766e);
  color: #fff;
  border: none !important;
}
.cp-hero--band a { color: rgba(255,255,255,.75) !important; }
.cp-hero--band .cp-hero__title { color: #fff !important; }
.cp-hero--band .cp-hero__intro { color: rgba(255,255,255,.82) !important; }
.cp-hero--image {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: none !important;
}
.cp-hero--image .cp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cp-hero--image .cp-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.72));
}
.cp-hero--image .cp-hero__inner { position: relative; z-index: 1; }
.cp-hero--image .cp-hero__title { color: #fff !important; }
.cp-hero--image .cp-hero__intro { color: rgba(255,255,255,.85) !important; }
.cp-hero--image a { color: rgba(255,255,255,.75) !important; }
