/* ==========================================================================
   Just Connecting — Custom Styles
   Color scheme: Primary Red #db5243, Hover #c4443a
   ========================================================================== */

/* ---------- Global ---------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gutenberg handles block spacing via its own layout system */

/* ---------- Section spacing ---------- */
.jc-section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.jc-section-sm {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.jc-section-lg {
  padding-top: 140px !important;
  padding-bottom: 140px !important;
}

/* ---------- Hero section ---------- */
.jc-hero {
  padding-top: 80px !important;
  padding-bottom: 60px !important;
}

/* Force vertical stacking in hero — override any flex/grid from theme */
.jc-hero.wp-block-group {
  display: block !important;
}

.jc-hero h1,
.jc-hero p,
.jc-hero .wp-block-buttons {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.jc-hero h1 {
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.jc-hero p {
  max-width: 640px;
}

/* ---------- Cards ---------- */
.jc-card {
  background: #ffffff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px !important;
  padding: 36px !important;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.jc-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.jc-card h3,
.jc-card h4 {
  margin-bottom: 12px;
}

.jc-card-red {
  background: #f5f5f5 !important;
  border: 1px solid #e8e8e8 !important;
}

.jc-card-gray {
  background: #f5f5f5 !important;
  border: 1px solid #e8e8e8 !important;
}

.jc-card-dark {
  background: #1B262C !important;
  color: #ffffff !important;
  border: none !important;
}

.jc-card-dark h3,
.jc-card-dark h4,
.jc-card-dark p {
  color: #ffffff !important;
}

/* ---------- Stats ---------- */
.jc-stat {
  text-align: center;
  padding: 24px !important;
}

.jc-stat .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: #0F4C75;
}

.jc-stat .stat-label {
  font-size: 16px;
  color: rgba(27, 38, 44, 0.6);
  line-height: 1.4;
}

/* ---------- Background sections ---------- */
.jc-bg-gray {
  background-color: #f5f5f5 !important;
}

.jc-bg-soft-red {
  background-color: #f5f5f5 !important;
}

.jc-bg-dark {
  background-color: #1B262C !important;
}

.jc-bg-dark h2,
.jc-bg-dark h3,
.jc-bg-dark p,
.jc-bg-dark li,
.jc-bg-dark a {
  color: #ffffff !important;
}

/* ---------- Chalk underlines ---------- */
.jc-chalk {
  position: relative;
  display: inline;
  white-space: nowrap;
  padding-bottom: 4px;
}

.jc-chalk::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20'%3E%3Cdefs%3E%3Cfilter id='chalk' x='-5%25' y='-50%25' width='110%25' height='200%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' seed='2' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cfilter id='grit' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' seed='5' result='grit'/%3E%3CfeColorMatrix type='saturate' values='0' in='grit' result='gritGray'/%3E%3CfeComponentTransfer in='gritGray' result='gritMask'%3E%3CfeFuncA type='discrete' tableValues='0 0 0 1 1 1 1 1 0 0 1 1'/%3E%3C/feComponentTransfer%3E%3CfeComposite in='SourceGraphic' in2='gritMask' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cline x1='4' y1='6' x2='296' y2='13' stroke='%23f5d76e' stroke-width='14' stroke-linecap='round' filter='url(%23grit)'/%3E%3Cline x1='8' y1='5' x2='292' y2='12' stroke='%23f5d76e' stroke-width='10' stroke-linecap='round' opacity='0.7' filter='url(%23chalk)'/%3E%3Cline x1='12' y1='7' x2='288' y2='13' stroke='%23f5d76e' stroke-width='6' stroke-linecap='round' opacity='0.4' filter='url(%23grit)'/%3E%3C/svg%3E");
}

/* ---------- Marquee (scrolling logos & trust cards) ---------- */
@keyframes jc-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Alias for inline styles in page templates */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes jc-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.jc-marquee-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.jc-marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: jc-marquee-left 30s linear infinite;
}

.jc-marquee-track.jc-reverse {
  animation: jc-marquee-right 35s linear infinite;
}

.jc-marquee-track:hover {
  animation-play-state: paused;
}

.jc-marquee-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 12px;
  padding: 16px 32px;
  min-width: 160px;
  height: 60px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(27, 38, 44, 0.4);
  transition: background 0.3s;
}

.jc-marquee-logo:hover {
  background: #e8e8e8;
  color: #1B262C;
}

/* ---------- Trust cards (marquee) ---------- */
.jc-trust-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 300px;
  transition: box-shadow 0.3s, transform 0.2s;
}

.jc-trust-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.jc-trust-card .trust-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(27, 38, 44, 0.4);
}

.jc-trust-card .trust-text {
  font-size: 14px;
  font-weight: 600;
  color: #1B262C;
  line-height: 1.3;
}

.jc-trust-card .trust-text span {
  display: block;
  font-weight: 400;
  color: rgba(27, 38, 44, 0.6);
  font-size: 13px;
}

/* ---------- Testimonial cards (marquee) ---------- */
.jc-testi-card {
  flex-shrink: 0;
  width: 380px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.jc-testi-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px) rotate(-0.5deg);
}

.jc-testi-card .testi-stars {
  color: #f5d76e;
  font-size: 16px;
  margin-bottom: 12px;
}

.jc-testi-card .testi-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #1B262C;
  font-style: italic;
  margin-bottom: 20px;
}

.jc-testi-card .testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jc-testi-card .testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8e8e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jc-testi-card .testi-avatar svg {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}

.jc-testi-card .testi-name {
  font-weight: 600;
  font-size: 14px;
  color: #1B262C;
}

.jc-testi-card .testi-role {
  font-size: 13px;
  color: rgba(27, 38, 44, 0.6);
}

/* ---------- Static testimonials ---------- */
.jc-testimonial {
  background: #f5f5f5 !important;
  border-radius: 16px !important;
  padding: 40px !important;
  border-left: 4px solid #db5243 !important;
}

.jc-testimonial blockquote,
.jc-testimonial p:first-child {
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}

.jc-testimonial cite,
.jc-testimonial p:last-child {
  font-size: 14px;
  font-style: normal;
  color: rgba(27, 38, 44, 0.6);
}

/* ---------- Image-top service cards ---------- */
.jc-service-card-v2 {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.3s;
}

.jc-service-card-v2:hover {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.jc-service-card-v2 .card-img {
  width: 100%;
  height: 200px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.5s;
}

.jc-service-card-v2:hover .card-img {
  transform: scale(1.03);
}

.jc-service-card-v2 .card-body {
  padding: 28px;
}

.jc-service-card-v2 h4 {
  color: #0F4C75;
  margin-bottom: 8px;
  font-size: 20px;
}

.jc-service-card-v2 p {
  font-size: 16px;
  color: rgba(27, 38, 44, 0.7);
}

.jc-service-card-v2 .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 16px;
  color: #0F4C75;
  transition: gap 0.2s;
}

.jc-service-card-v2:hover .card-link {
  gap: 10px;
}

/* ---------- Pill elements ---------- */
.jc-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  max-width: fit-content;
}

.jc-pill:hover {
  background: #e8e8e8;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.jc-pill svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #db5243;
  stroke-width: 2;
  fill: none;
}

.jc-pill-tag {
  background: #0F4C75;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  display: inline-block;
}

.jc-pill-sm {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.jc-pill-red {
  background: #f5f5f5;
  color: #0F4C75;
}

/* ---------- Scroll animations (progressive enhancement) ---------- */
.jc-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.jc-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.jc-animate.jc-delay-1 { transition-delay: 0.1s; }
.jc-animate.jc-delay-2 { transition-delay: 0.2s; }
.jc-animate.jc-delay-3 { transition-delay: 0.3s; }
.jc-animate.jc-delay-4 { transition-delay: 0.4s; }

/* ---------- FAQ / Objections (Details block) ---------- */
.jc-faq details {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.jc-faq details:hover {
  border-color: #0F4C75;
}

.jc-faq details[open] {
  background-color: #f5f5f5;
  border-color: #0F4C75;
}

.jc-faq details summary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.jc-faq details summary::-webkit-details-marker {
  display: none;
}

.jc-faq details summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #0F4C75;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.jc-faq details[open] summary::after {
  content: '−';
}

.jc-faq details p {
  margin-top: 16px;
  color: rgba(27, 38, 44, 0.7);
}

/* ---------- CTA section ---------- */
.jc-cta {
  text-align: center;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.jc-cta h2 {
  margin-bottom: 16px;
}

.jc-cta p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.3s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(219, 82, 67, 0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 2px solid #db5243;
  color: #db5243;
  background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #db5243;
  color: #ffffff;
}

/* ---------- Logo bar ---------- */
.jc-logo-bar {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.jc-logo-bar p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(27, 38, 44, 0.4);
  margin-bottom: 24px;
}

/* ---------- Framework levels (VIBE) ---------- */
.jc-framework-level {
  border-radius: 16px !important;
  padding: 40px !important;
  margin-bottom: 16px !important;
  border: 1px solid #e8e8e8 !important;
}

.jc-framework-level h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Transition text ---------- */
.jc-transition {
  font-size: 20px !important;
  font-style: italic;
  color: rgba(27, 38, 44, 0.6) !important;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0;
}

/* ---------- Subtitle / label ---------- */
.jc-label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #db5243 !important;
  margin-bottom: 12px !important;
}

/* ---------- Separator ---------- */
.wp-block-separator {
  border-color: #e8e8e8 !important;
  opacity: 1;
}

/* ---------- Service cards (Next steps) ---------- */
.jc-service-card {
  background: #ffffff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 16px !important;
  padding: 36px !important;
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.jc-service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.jc-service-card h4 {
  color: #0F4C75;
  margin-bottom: 8px;
}

/* ---------- How-it-works process steps ---------- */
.jc-process-step {
  text-align: center;
  padding: 36px !important;
}

.jc-process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #db5243;
  color: #fff;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}

.jc-process-step h4 {
  color: #0F4C75;
  margin-bottom: 8px;
}

/* ---------- Form inputs ---------- */
.jc-form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1B262C;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jc-form-input:focus {
  outline: none;
  border-color: #0F4C75;
  box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.15);
}

.jc-form-input.jc-error {
  border-color: #db5243;
  box-shadow: 0 0 0 3px rgba(219, 82, 67, 0.15);
}

.jc-form-input.jc-success {
  border-color: #2E8B57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
}

.jc-form-hint {
  font-size: 13px;
  margin-top: 6px;
}

.jc-form-hint.jc-error {
  color: #db5243;
}

.jc-form-hint.jc-success {
  color: #2E8B57;
}

/* ---------- Focus ring (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid #0F4C75;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Mobile sticky CTA bar ---------- */
.jc-sticky-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
  .jc-hero {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    min-height: auto;
  }

  .jc-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .jc-section-lg {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .jc-card {
    padding: 24px !important;
  }

  .jc-testimonial {
    padding: 28px !important;
  }

  .jc-framework-level {
    padding: 28px !important;
  }

  .jc-testi-card {
    width: 300px;
    padding: 24px;
  }

  .jc-trust-card {
    min-width: 240px;
    padding: 12px 16px;
  }

  .jc-service-card-v2 .card-img {
    height: 160px;
  }

  .jc-service-card-v2 .card-body {
    padding: 20px;
  }

  .jc-chalk {
    white-space: normal;
  }

  .jc-marquee-logo {
    min-width: 120px;
    padding: 12px 20px;
    font-size: 13px;
  }

  .jc-pill {
    font-size: 15px;
    padding: 14px 22px;
  }

  /* Mobile sticky CTA */
  .jc-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 20px;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .jc-sticky-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .jc-testi-card {
    width: 260px;
    padding: 20px;
  }

  .jc-trust-card {
    min-width: 220px;
  }

  .jc-service-card-v2 .card-img {
    height: 140px;
  }

  .jc-faq details {
    padding: 16px;
  }
}

/* ---------- Accessibility: prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .jc-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .jc-marquee-track {
    animation: none !important;
  }

  .jc-card,
  .jc-card:hover,
  .jc-service-card,
  .jc-service-card:hover,
  .jc-service-card-v2,
  .jc-service-card-v2:hover,
  .jc-testi-card,
  .jc-testi-card:hover,
  .jc-trust-card,
  .jc-trust-card:hover,
  .jc-pill,
  .jc-pill:hover,
  .jc-framework-level,
  .jc-framework-level:hover,
  .wp-block-button__link,
  .wp-block-button__link:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Hide page title on front page ---------- */
.home .wp-block-post-title,
.home .entry-title,
body.page .wp-block-post-title {
  display: none !important;
}

/* ---------- Decorative elements ---------- */
[aria-hidden="true"] {
  pointer-events: none;
}

/* ==========================================================================
   SPLIT CONTENT BLOCK (two-column text + image)
   Use: jc-split for text-left/image-right
        jc-split jc-split-reverse for image-left/text-right
   ========================================================================== */
.jc-split {
  gap: 64px !important;
  align-items: center;
}

.jc-split-reverse {
  direction: rtl;
}

.jc-split-reverse > * {
  direction: ltr;
}

.jc-split-text h3 {
  margin-top: 8px;
}

.jc-split-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 48px;
  min-height: 400px;
}

.jc-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.jc-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 16px;
}

.jc-check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #0F4C75;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Split block: "Is this you?" — numbered blocks + faded image ---------- */
.jc-isthisyou-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 560px;
}

.jc-isthisyou-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 48px;
}

.jc-isthisyou-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jc-isthisyou-block:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.jc-isthisyou-block h4 {
  color: #0F4C75;
  margin-bottom: 4px;
}

.jc-isthisyou-block p {
  font-size: 15px;
  margin-bottom: 0;
}

.jc-isthisyou-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F4C75;
  color: #fff;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.jc-isthisyou-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.jc-isthisyou-image-inner {
  position: relative;
  height: 100%;
}

.jc-isthisyou-fade {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #ffffff, transparent);
  pointer-events: none;
}

.jc-bg-gray .jc-isthisyou-fade {
  background: linear-gradient(to right, #f5f5f5, transparent);
}

/* ---------- Icon cards ---------- */
.jc-card-icon {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.jc-card-icon:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.jc-card-icon h4 {
  color: #0F4C75;
  margin-bottom: 6px;
}

.jc-card-icon p {
  margin-bottom: 0;
}

.jc-card-icon-circle {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(15, 76, 117, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jc-card-icon-circle svg {
  width: 28px;
  height: 28px;
  stroke: #0F4C75;
  stroke-width: 1.5;
  fill: none;
}

/* ---------- VIBE: Pyramid + cards layout ---------- */
.jc-vibe-pyramid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.jc-vibe-pyramid-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 48px;
  min-height: 440px;
}

.jc-vibe-pyramid-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jc-vibe-mini-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 20px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jc-vibe-mini-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.jc-vibe-mini-card h4 {
  margin-bottom: 4px;
}

.jc-vibe-mini-card p {
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- VIBE: Horizontal tiers ---------- */
.jc-vibe-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.jc-vibe-tier {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jc-vibe-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.jc-vibe-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: #fff;
}

.jc-vibe-tier-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.jc-vibe-tier-pct {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
}

.jc-vibe-tier-body {
  padding: 20px 24px;
}

.jc-vibe-tier-body p {
  margin-bottom: 0;
}

.jc-vibe-tier-bar {
  height: 4px;
  background: #0F4C75;
  border-radius: 0 2px 2px 0;
}

/* ---------- VIBE: Card grid with icons + tags ---------- */
.jc-vibe-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 32px;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.jc-vibe-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.jc-vibe-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.jc-vibe-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jc-vibe-card-icon svg {
  width: 24px;
  height: 24px;
}

.jc-vibe-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.jc-vibe-card-tags span {
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #1B262C;
}

/* ---------- Structural fallbacks for pages missing child classes ---------- */
/* These use child selectors so they work even when classes are absent.
   On pages where classes ARE present, these are harmlessly redundant. */

.jc-isthisyou-split > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 48px;
}

.jc-isthisyou-split > div:last-child {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.jc-isthisyou-split > div:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jc-vibe-pyramid-layout > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 48px;
  min-height: 440px;
}

.jc-vibe-pyramid-layout > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Responsive: new components ---------- */
@media (max-width: 782px) {
  .jc-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .jc-split-reverse {
    direction: ltr;
  }

  .jc-split-media {
    order: -1;
  }

  .jc-split-image-placeholder {
    min-height: 280px;
    padding: 32px;
  }

  .jc-isthisyou-split {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .jc-isthisyou-blocks,
  .jc-isthisyou-split > div:first-child {
    padding-right: 0 !important;
  }

  .jc-isthisyou-image,
  .jc-isthisyou-split > div:last-child {
    display: none !important;
  }

  .jc-card-icon {
    flex-direction: column;
    padding: 24px;
  }

  .jc-vibe-pyramid-layout {
    grid-template-columns: 1fr !important;
  }

  .jc-vibe-pyramid-visual,
  .jc-vibe-pyramid-layout > div:first-child {
    min-height: 300px;
    padding: 32px;
  }
}
