/* ============================================================
   BLOCKS RENDERER — base layout styles
   Loaded globally via BaseLayout.astro for all templates.
   These are structural (display, flex, padding) — visual
   overrides (colors, fonts) live in each template's CSS.
   ============================================================ */

/* ---------- PRICELIST ---------- */
.cp-pricelist {
  padding: 16px 0;
}
.cp-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 24px;
}
.cp-price-name {
  font-weight: 500;
  white-space: nowrap;
}
.cp-price-dots {
  flex: 1;
  border-bottom: 2px dotted currentColor;
  min-width: 40px;
  margin-bottom: 4px;
  opacity: 0.4;
}
.cp-price-val {
  font-weight: 700;
  white-space: nowrap;
  font-size: calc(17px * var(--bsc-text-scale, 1));
}

/* ---------- PRICING TABLE ---------- */
.cp-pricing-table {
  padding: 32px 28px;
  text-align: center;
}
.cp-pt-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.cp-pt-price {
  margin-bottom: 24px;
}
.cp-pt-price span {
  font-size: calc(16px * var(--bsc-text-scale, 1));
  font-weight: 400;
  opacity: 0.7;
}
.cp-pt-items {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.cp-pt-items li {
  padding: 10px 0;
  border-bottom: 1px solid;
}

/* ---------- VIDEO EMBED ---------- */
.cp-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 32px 0;
  border-radius: 16px;
  width: 100%;
}
.cp-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- QUOTE ---------- */
.cp-article blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid currentColor;
  font-size: calc(20px * var(--bsc-text-scale, 1));
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
}

/* ---------- ACCORDION ---------- */
.cp-accordion {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-ac-item {
  border: 1px solid;
  border-radius: 12px;
  overflow: hidden;
}
.cp-ac-summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-ac-summary::-webkit-details-marker { display: none; }
.cp-ac-summary::after {
  content: "+";
  font-size: calc(24px * var(--bsc-text-scale, 1));
  line-height: 1;
  transition: transform 0.2s;
}
.cp-ac-item[open] .cp-ac-summary::after {
  transform: rotate(45deg);
}
.cp-ac-content {
  padding: 0 24px 20px;
  line-height: 1.6;
}

/* ---------- TABS ---------- */
.cp-tabs {
  margin: 32px 0;
}
.cp-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cp-tab-nav button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: calc(15px * var(--bsc-text-scale, 1));
  color: inherit;
  opacity: 0.6;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: opacity 0.2s;
}
.cp-tab-nav button:hover {
  opacity: 0.9;
}
.cp-tab-nav button.active {
  opacity: 1;
  border-bottom-color: currentColor;
}
.cp-tab-panel {
  display: none;
  line-height: 1.6;
}
.cp-tab-panel.active {
  display: block;
}

/* ---------- ICON BOX ---------- */
.cp-iconbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.cp-ib-item {
  padding: 28px 24px;
  border: 1px solid;
  border-radius: 16px;
  text-align: center;
}
.cp-ib-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1px solid;
}
.cp-ib-icon svg {
  width: 28px;
  height: 28px;
}
.cp-ib-title {
  font-size: calc(18px * var(--bsc-text-scale, 1));
  font-weight: 700;
  margin: 0 0 8px;
}
.cp-ib-text {
  margin: 0;
  line-height: 1.5;
  opacity: 0.8;
}

/* ---------- FANCY FEATURES (library) ---------- */
.cp-ffeat {
  padding: clamp(64px, 10vw, 112px) 24px;
}
.cp-ffeat-container {
  max-width: 1140px;
  margin: 0 auto;
}
.cp-ffeat-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-ffeat-eyebrow {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}
.cp-ffeat-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-ffeat-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  opacity: 0.78;
}
.cp-ffeat-grid {
  display: grid;
  gap: 24px;
}
.cp-ffeat-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cp-ffeat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cp-ffeat-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cp-ffeat-cols-3,
  .cp-ffeat-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .cp-ffeat-grid { grid-template-columns: 1fr; }
}
.cp-ffeat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.cp-ffeat-icon svg {
  width: 26px;
  height: 26px;
}
.cp-ffeat-card-title {
  margin: 0 0 8px;
  font-size: calc(18px * var(--bsc-text-scale, 1));
  font-weight: 700;
}
.cp-ffeat-card-text {
  margin: 0;
  line-height: 1.6;
  opacity: 0.78;
}

/* cards */
.cp-ffeat-cards .cp-ffeat-card {
  padding: 30px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cp-ffeat-cards .cp-ffeat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}
.cp-ffeat-cards .cp-ffeat-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

/* minimal */
.cp-ffeat-minimal .cp-ffeat-grid { gap: 0; }
.cp-ffeat-minimal .cp-ffeat-card {
  padding: 32px 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.cp-ffeat-minimal .cp-ffeat-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: #6366f1;
}
.cp-ffeat-minimal .cp-ffeat-icon svg { width: 28px; height: 28px; }

/* bordered */
.cp-ffeat-bordered .cp-ffeat-card {
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  transition: border-color .2s ease;
}
.cp-ffeat-bordered .cp-ffeat-card:hover {
  border-color: #6366f1;
}
.cp-ffeat-bordered .cp-ffeat-icon {
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #6366f1;
}

/* ---------- FANCY HERO (library) ---------- */
.cp-fhero {
  position: relative;
  padding: clamp(72px, 12vw, 128px) 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.cp-fhero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cp-fhero-center .cp-fhero-inner { align-items: center; text-align: center; }
.cp-fhero-left .cp-fhero-inner { align-items: flex-start; text-align: left; }
.cp-fhero-eyebrow {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}
.cp-fhero-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-fhero-subtitle {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  opacity: 0.82;
}
.cp-fhero-cta {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.cp-fhero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(79, 70, 229, 0.55));
}

/* minimal */
.cp-fhero-minimal {
  background-color: #fafafa;
  color: #0f172a;
}
.cp-fhero-minimal .cp-fhero-title { font-weight: 700; }
.cp-fhero-minimal .cp-fhero-cta {
  padding: 13px 30px;
  border: 1px solid #0f172a;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 600;
}
.cp-fhero-minimal .cp-fhero-cta:hover {
  background: #0f172a;
  color: #fff;
  transform: translateY(-2px);
}

/* bold */
.cp-fhero-bold {
  background-color: #0f172a;
  color: #fff;
}
.cp-fhero-bold .cp-fhero-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 900;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.cp-fhero-bold .cp-fhero-cta {
  padding: 15px 36px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.cp-fhero-bold .cp-fhero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

/* elegant */
.cp-fhero-elegant {
  background-color: #f7f3ee;
  color: #2b2420;
}
.cp-fhero-elegant .cp-fhero-eyebrow { color: #9a7b4f; }
.cp-fhero-elegant .cp-fhero-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cp-fhero-elegant .cp-fhero-subtitle { opacity: 0.7; }
.cp-fhero-elegant .cp-fhero-cta {
  position: relative;
  padding: 6px 2px;
  color: #2b2420;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cp-fhero-elegant .cp-fhero-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .25s ease;
}
.cp-fhero-elegant .cp-fhero-cta:hover::after { transform: scaleX(0.4); }

@media (max-width: 600px) {
  .cp-fhero { padding: 76px 20px; }
}

/* ---------- TEAM MEMBER ---------- */
.cp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.cp-team-card {
  text-align: center;
}
.cp-team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
}
.cp-team-name {
  font-size: calc(18px * var(--bsc-text-scale, 1));
  font-weight: 700;
  margin: 0 0 4px;
}
.cp-team-role {
  margin: 0;
  font-size: calc(14px * var(--bsc-text-scale, 1));
  opacity: 0.7;
}

/* ---------- FLIP BOX ---------- */
.cp-flipbox {
  margin: 32px 0;
  perspective: 1000px;
  min-height: 280px;
}
.cp-flip-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.cp-flipbox:hover .cp-flip-inner {
  transform: rotateY(180deg);
}
.cp-flip-front,
.cp-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  backface-visibility: hidden;
  padding: 32px;
  border: 1px solid;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.cp-flip-back {
  transform: rotateY(180deg);
}
.cp-flip-front h3,
.cp-flip-back h3 {
  margin: 0 0 12px;
  font-size: calc(20px * var(--bsc-text-scale, 1));
}
.cp-flip-front p,
.cp-flip-back p {
  margin: 0;
  line-height: 1.5;
}

/* ---------- COLUMNS ---------- */
.cp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
@media (max-width: 768px) {
  .cp-columns { grid-template-columns: 1fr; }
}
.cp-col {
  line-height: 1.6;
}

/* ---------- HERO SLIDER ---------- */
.cp-hero-slider {
  position: relative;
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.cp-hs-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.cp-hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}
.cp-hs-slide:first-child {
  opacity: 1;
}
.cp-hs-video,
.cp-hs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.cp-hs-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.cp-hs-placeholder {
  background: linear-gradient(135deg, rgba(128,128,128,0.2), rgba(128,128,128,0.05));
}
.cp-hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6));
}
.cp-hs-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: #fff;
  z-index: 2;
}
.cp-hs-content h2 {
  font-size: clamp(24px, 4vw, 48px);
  margin: 0 0 12px;
  color: #fff;
}
.cp-hs-content p {
  font-size: calc(17px * var(--bsc-text-scale, 1));
  margin: 0 0 20px;
  opacity: 0.9;
}
.cp-hs-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}
.cp-hs-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.cp-hs-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}
.cp-hs-dots button.active {
  background: #fff;
}

/* ---------- INSTAGRAM ---------- */
.cp-instagram {
  margin: 32px 0;
  display: flex;
  justify-content: center;
}
.cp-insta-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 40px;
  border: 1px solid;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.cp-insta-link:hover {
  opacity: 0.7;
}
.cp-insta-link svg {
  width: 32px;
  height: 32px;
}
.cp-insta-link span {
  font-weight: 700;
  font-size: calc(18px * var(--bsc-text-scale, 1));
}
.cp-insta-link small {
  opacity: 0.6;
  font-size: calc(13px * var(--bsc-text-scale, 1));
}

/* ---------- LATEST POSTS ---------- */
.cp-latestposts {
  margin: 32px 0;
}
.cp-lp-title {
  font-size: calc(28px * var(--bsc-text-scale, 1));
  margin: 0 0 24px;
}
.cp-lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cp-lp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-lp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.cp-lp-card:hover {
  transform: translateY(-4px);
}
.cp-lp-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.cp-lp-image-placeholder {
  background: linear-gradient(135deg, rgba(128,128,128,0.2), rgba(128,128,128,0.05));
}
.cp-lp-body {
  padding: 20px;
}
.cp-lp-date {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  opacity: 0.6;
  margin-bottom: 8px;
}
.cp-lp-card-title {
  font-size: calc(18px * var(--bsc-text-scale, 1));
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.cp-lp-excerpt {
  margin: 0 0 12px;
  line-height: 1.5;
  opacity: 0.8;
}
.cp-lp-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: calc(14px * var(--bsc-text-scale, 1));
}
.cp-lp-readmore svg {
  width: 14px;
  height: 14px;
}
.cp-lp-empty {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

/* ---------- TESTIMONIALS SLIDER ---------- */
.cp-slider {
  position: relative;
  margin: 32px 0;
  padding: 40px 0;
}
.cp-slider-track {
  position: relative;
  min-height: 180px;
}
.cp-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  text-align: center;
  padding: 0 40px;
}
.cp-slider-slide:first-child {
  opacity: 1;
}
.cp-tq {
  font-size: calc(20px * var(--bsc-text-scale, 1));
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 20px;
}
.cp-tauthor {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-tauthor strong {
  font-size: calc(16px * var(--bsc-text-scale, 1));
}
.cp-tauthor span {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  opacity: 0.6;
}
.cp-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cp-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cp-slider-dots button.active {
  opacity: 1;
}
@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cp-marquee-track {
  display: inline-block;
  animation-name: mq;
  animation-duration: 18s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cp-marquee-track {
    animation-name: none;
    transform: none;
  }
}

/* ---------- FANCY TEXT (library) ---------- */
.cp-ftext {
  padding: clamp(48px, 8vw, 96px) 24px;
}
.cp-ftext-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-ftext-narrow .cp-ftext-inner { max-width: 640px; }
.cp-ftext-normal .cp-ftext-inner { max-width: 820px; }
.cp-ftext-wide .cp-ftext-inner { max-width: 1080px; }
.cp-ftext-center .cp-ftext-inner { align-items: center; text-align: center; }
.cp-ftext-left .cp-ftext-inner { align-items: flex-start; text-align: left; }
.cp-ftext-eyebrow {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rv-accent, #6366f1);
}
.cp-ftext-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-ftext-text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  opacity: 0.85;
  white-space: pre-wrap;
}
.cp-ftext-card .cp-ftext-inner {
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

/* ---------- FANCY SPLIT (library) ---------- */
.cp-fsplit {
  padding: clamp(56px, 9vw, 104px) 24px;
}
.cp-fsplit-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cp-fsplit-right .cp-fsplit-body { order: 2; }
.cp-fsplit-right .cp-fsplit-visual { order: 1; }
.cp-fsplit-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cp-fsplit-eyebrow {
  font-size: calc(13px * var(--bsc-text-scale, 1));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rv-accent, #6366f1);
}
.cp-fsplit-title {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-fsplit-text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  opacity: 0.82;
  white-space: pre-wrap;
}
.cp-fsplit-bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cp-fsplit-bullets li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}
.cp-fsplit-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--rv-accent, #6366f1);
}
.cp-fsplit-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--rv-accent, #6366f1);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cp-fsplit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.32);
}
.cp-fsplit-visual {
  position: relative;
}
.cp-fsplit-media,
.cp-fsplit-visual .cp-fsplit-media {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}
.cp-fsplit-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
@media (max-width: 860px) {
  .cp-fsplit-inner { grid-template-columns: 1fr; }
  .cp-fsplit-right .cp-fsplit-body,
  .cp-fsplit-right .cp-fsplit-visual { order: 0; }
}

/* ---------- FANCY MEDIA (library) ---------- */
.cp-fmedia {
  padding: clamp(40px, 7vw, 88px) 24px;
}
.cp-fmedia-figure {
  margin: 0;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-fmedia-center .cp-fmedia-figure { margin: 0 auto; align-items: center; text-align: center; }
.cp-fmedia-left .cp-fmedia-figure { margin: 0 auto 0 0; align-items: flex-start; text-align: left; }
.cp-fmedia-right .cp-fmedia-figure { margin: 0 0 0 auto; align-items: flex-end; text-align: right; }
.cp-fmedia-frame {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.cp-fmedia-rounded .cp-fmedia-frame {
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}
.cp-fmedia-circular .cp-fmedia-frame {
  width: min(440px, 80vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}
.cp-fmedia-el {
  display: block;
  width: 100%;
}
.cp-fmedia-circular .cp-fmedia-el {
  height: 100%;
}
.cp-fmedia-fit-cover .cp-fmedia-el { object-fit: cover; }
.cp-fmedia-fit-contain .cp-fmedia-el { object-fit: contain; }
.cp-fmedia-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.cp-fmedia-circular .cp-fmedia-placeholder {
  aspect-ratio: 1 / 1;
}
.cp-fmedia-caption {
  margin: 0;
  font-size: calc(14px * var(--bsc-text-scale, 1));
  line-height: 1.5;
  opacity: 0.7;
}
