/* Article Detail Custom CSS */
html, body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

#main, 
#main > div,
.framer-UKDkJ, 
.framer-vP0Cg, 
.framer-4sdxml,
.framer-1epzj4x,
.framer-315fw3,
.framer-au5gle, 
#journal-wrapper, 
.cjd-container {
  overflow: visible !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
  height: auto !important;
  min-height: 0 !important;
}

.framer-1nkul7h {
  display: none !important;
  pointer-events: none !important;
}

.framer-vP0Cg,
.framer-4sdxml,
.framer-1epzj4x,
.framer-315fw3,
.framer-UKDkJ,
.framer-au5gle {
  width: 100% !important;
  max-width: 100vw !important;
}

#journal-wrapper {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  display: block !important;
}


.cjd-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 130px 24px 80px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cj-navy);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}


/* Breadcrumbs */
.cjd-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--cj-gray-light);
  margin-bottom: 40px;
}

.cjd-breadcrumbs a {
  color: var(--cj-gray-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cjd-breadcrumbs a:hover {
  color: var(--cj-blue);
}

.cjd-bc-sep {
  color: #cbd5e1;
}

.cjd-bc-current {
  color: var(--cj-navy);
  font-weight: 500;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header */
.cjd-header {
  margin-bottom: 40px;
  max-width: 800px;
}

.cjd-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cj-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.cjd-header h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  color: var(--cj-navy);
}

.cjd-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--cj-gray-dark);
  margin: 0 0 28px 0;
}

.cjd-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cj-border);
}

.cjd-author-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cjd-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cj-gray-light);
}

.cjd-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--cj-gray-light);
}

/* Share Section */
.cjd-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cjd-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cj-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cjd-share-btn {
  background: none;
  border: 1px solid var(--cj-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cj-gray-dark);
  transition: all 0.2s ease;
}

.cjd-share-btn svg {
  width: 16px;
  height: 16px;
}

.cjd-share-btn:hover {
  background: var(--cj-blue-light);
  border-color: var(--cj-blue);
  color: var(--cj-blue);
  transform: translateY(-2px);
}

/* Hero Image */
.cjd-hero-image {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--cj-shadow-md);
  margin-bottom: 60px;
  background-color: #0f172a;
}

.cjd-hero-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Split Content System */
.cjd-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start !important;
  position: relative !important;
}

.cjd-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 110px !important;
  align-self: start !important;
  height: fit-content !important;
  max-height: calc(100vh - 130px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important; /* Hide scrollbar for clean UI */
}

.cjd-sidebar::-webkit-scrollbar {
  display: none;
}


/* Main Body Content */
.cjd-main-body {
  max-width: 740px;
}

.cjd-h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 48px 0 20px 0;
  color: var(--cj-navy);
  scroll-margin-top: 120px;
}

.cjd-p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cj-gray-dark);
  margin: 0 0 24px 0;
}

.cjd-blockquote {
  border-left: 4px solid var(--cj-blue);
  background: var(--cj-blue-light);
  padding: 24px;
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
}

.cjd-blockquote p {
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 8px 0;
  color: var(--cj-navy);
}

.cjd-blockquote cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--cj-gray-light);
  font-style: normal;
}

/* Benefits Grid */
.cjd-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.cjd-benefit-card {
  background: #ffffff;
  border: 1px solid var(--cj-border);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--cj-shadow-sm);
  transition: all 0.25s ease;
}

.cjd-benefit-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--cj-shadow-md);
}

.cjd-benefit-icon {
  background: var(--cj-blue-light);
  color: var(--cj-blue);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cjd-benefit-icon svg {
  width: 22px;
  height: 22px;
}

.cjd-benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--cj-navy);
}

.cjd-benefit-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cj-gray-light);
  margin: 0;
}

/* Lists */
.cjd-bullets, .cjd-numbers {
  padding-left: 20px;
  margin: 0 0 32px 0;
}

.cjd-bullets li, .cjd-numbers li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cj-gray-dark);
  margin-bottom: 12px;
}

/* Sidebar & Sticky */
.cjd-sidebar-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 110px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  z-index: 10;
  align-self: start !important;
}


/* Sidebar Section Headers */
.cjd-toc-box h3, .cjd-related-box h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cj-navy);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cj-border);
}

/* Table of Contents */
.cjd-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cjd-toc-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--cj-gray-light);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.cjd-toc-link:hover {
  color: var(--cj-navy);
  transform: translateX(3px);
}

.cjd-toc-link.is-active {
  color: var(--cj-blue);
  font-weight: 600;
  border-left: 2px solid var(--cj-blue);
  padding-left: 8px;
}

/* Related Articles */
.cjd-related-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cjd-rel-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform 0.2s ease;
}

.cjd-rel-card:hover {
  transform: translateX(4px);
}

.cjd-rel-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.cjd-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cjd-rel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cjd-rel-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cj-blue);
}

.cjd-rel-info h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--cj-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cjd-rel-info span:last-child {
  font-size: 12px;
  color: var(--cj-gray-light);
}

/* Newsletter Box */
.cjd-newsletter-box {
  background: var(--cj-blue-light);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.cjd-news-icon {
  width: 32px;
  height: 32px;
  color: var(--cj-blue);
  margin-bottom: 12px;
}

.cjd-newsletter-box h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--cj-navy);
}

.cjd-newsletter-box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cj-gray-dark);
  margin: 0 0 16px 0;
}

.cjd-news-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cjd-news-form input {
  padding: 12px;
  border: 1px solid var(--cj-border);
  border-radius: 9999px;
  font-size: 14px;
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease;
}

.cjd-news-form input:focus {
  border-color: var(--cj-blue);
}

.cjd-news-form button {
  background: var(--cj-blue);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cjd-news-form button:hover {
  background: #1e40af;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .cjd-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .cjd-sidebar {
    border-top: 1px solid var(--cj-border);
    padding-top: 50px;
  }
}

@media (max-width: 768px) {
  .cjd-container {
    padding: 130px 20px 60px !important;
  }
  .cjd-header h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .cjd-lead {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  .cjd-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cjd-cards-grid {
    grid-template-columns: 1fr;
  }
  .cjd-hero-image img {
    height: auto !important;
    max-height: 260px !important;
    object-fit: cover !important;
  }
  .cjd-sidebar {
    padding-top: 32px !important;
  }
}

/* Allow sticky positioning by overriding parent Framer & layout overflow rules */
html,
body,
#main,
#main > div,
.framer-UKDkJ,
.framer-vP0Cg,
.framer-4sdxml,
#journal-wrapper,
.cjd-container,
.cjd-split,
.cjd-sidebar {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

