/* Knowledge Center page-specific CSS (additive; keeps your existing system) */

.kc-hero{
  background: var(--bg-main);
  padding: clamp(32px, 4vw, 56px) 0 clamp(28px, 3.5vw, 44px);
}

.kc-hero-inner{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 28px);
}

.kc-kicker{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(20,20,20,0.68);
  font-weight: 600;
}

.kc-hero h1{
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6.2vw, 52px);
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.kc-subhead{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.75;
  max-width: 72ch;
}

.kc-hero-row{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(14px, 2.6vw, 22px);
  align-items: start;
  margin-top: 8px;
}

.kc-note{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
}

.kc-note-title{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(20,20,20,0.9);
}

.kc-bullets{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kc-bullets li{
  position: relative;
  padding-right: 22px;
  color: rgba(20,20,20,0.78);
  font-weight: 500;
  line-height: 1.6;
}

.kc-bullets li::before{
  content: "";
  position: absolute;
  right: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(156,107,78,0.85);
}

.kc-actions{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
}

.kc-actions .cta{
  min-width: unset;
  width: 100%;
}

.kc-actions .cta-ghost{
  width: 100%;
}

.kc-meta{
  margin: 2px 0 0;
  color: rgba(62,62,62,0.82);
  font-size: 13px;
  line-height: 1.45;
}

.kc-topics{
  background: var(--bg-section);
  padding: clamp(54px, 6vw, 92px) 0;
  position: relative;
}

.kc-topics::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(156,107,78,0.25), transparent);
}

.kc-topics .inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 28px);
}

.kc-h2{
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.1vw, 36px);
  letter-spacing: 0.2px;
}

.kc-intro{
  margin: 0 0 24px;
  max-width: 80ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.kc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 22px);
  align-items: stretch;
}

.kc-card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.kc-card-head{
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.48));
  border-bottom: 1px solid rgba(20,20,20,0.08);
}

.kc-tag{
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(20,20,20,0.72);
  font-weight: 700;
}

.kc-card h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(20,20,20,0.92);
}

.kc-desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.kc-card-body{
  padding: 16px 18px 8px;
}

.kc-list-title{
  margin: 0 0 10px;
  color: rgba(20,20,20,0.82);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.kc-links{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kc-links a{
  text-decoration: none;
  color: rgba(20,20,20,0.84);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
}

.kc-links a:hover{
  color: rgba(20,20,20,1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kc-card-foot{
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(20,20,20,0.08);
}

.text-link{
  color: rgba(20,20,20,0.86);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kc-bridge{
  background: var(--bg-main);
  padding: clamp(46px, 5.6vw, 88px) 0;
}

.kc-bridge .inner{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 28px);
}

.kc-bridge-card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.kc-bridge-actions{
  display: grid;
  gap: 10px;
}

.kc-bridge-actions .cta{
  min-width: unset;
  width: 100%;
}

.kc-bridge-actions .cta-ghost{
  width: 100%;
}

/* Make the ghost CTA compatible with your current button style */
.cta-ghost{
  background: rgba(255,255,255,0.40);
  color: rgba(20,20,20,0.92);
  border: 1px solid rgba(20,20,20,0.12);
  box-shadow: none;
}
.cta-ghost::before,
.cta-ghost::after{
  display:none;
}

/* Responsive */
@media (max-width: 920px){
  .kc-hero-row{ grid-template-columns: 1fr; }
  .kc-grid{ grid-template-columns: 1fr; }
  .kc-bridge-card{ grid-template-columns: 1fr; }
}

/* Prevent horizontal scroll on mobile */
html, body{
  overflow-x: hidden;
  max-width: 100vw;
}

/* Contain all CTA buttons on mobile */
@media (max-width: 520px){
  .kc-actions .cta,
  .kc-bridge-actions .cta,
  .kc-hero .cta{
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
}



/* ================================
   Clickable pillar cards (NO JITTER)
   ================================ */

.kc-card{
  position: relative;
  cursor: pointer;
  /* keep your normal shadow */
  box-shadow: var(--shadow-sm);
  /* do NOT transition transform on the card */
  transition: border-color .18s ease;
}

/* Create a hover “lift” layer that doesn’t move the card */
.kc-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;          /* must match card radius */
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 22px 55px rgba(0,0,0,0.12);
}

/* Hover effect: only the visual layer moves */
.kc-card:hover::after{
  opacity: 1;
  transform: translateY(-6px);
}

/* Optional border tint */
.kc-card:hover{
  border-color: rgba(156,107,78,0.28);
}

/* invisible clickable layer */
.kc-card-overlay{
  position:absolute;
  inset:0;
  z-index:5;
  text-decoration:none;
}

/* keep inner links clickable above overlay */
.kc-card a:not(.kc-card-overlay){
  position:relative;
  z-index:10;
}

/* invisible clickable layer */
.kc-card-overlay{
  position:absolute;
  inset:0;
  z-index:5;
  text-decoration:none;
}

/* keep inner links clickable above overlay */
.kc-card a:not(.kc-card-overlay){
  position:relative;
  z-index:10;
}

/* ================================
   Knowledge Center: CTA containment (desktop fix)
   ================================ */

.kc-actions{
  overflow: hidden;
}

.kc-actions .cta{
  /* stop hero-style transforms/positioning from global styles.css */
  position: static !important;
  transform: none !important;

  /* make it behave like a normal block inside the card */
  display: inline-flex !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;

  /* spacing inside the box */
  margin: 0 !important;
}

/* If your global CTA uses decorative pseudo elements, disable them here */
.kc-actions .cta::before,
.kc-actions .cta::after{
  display: none !important;
}


/* ================================
   Knowledge Center: bridge CTA containment
   (fix bottom buttons)
   ================================ */

.kc-bridge-actions{
  overflow: hidden;
}

.kc-bridge-actions .cta{
  position: static !important;
  transform: none !important;

  display: inline-flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box;
  justify-content: center;

  margin: 0 !important;
}

/* remove global shine / expansion effects */
.kc-bridge-actions .cta::before,
.kc-bridge-actions .cta::after{
  display: none !important;
}
/* Mobile overflow prevention */
@media (max-width: 820px){
  html{ overflow-x: hidden; }
  .cta{ min-width: 0 !important; max-width: 100% !important; }
}

/* LTR overrides for English/French (CSS was authored for RTL Hebrew) */
.toc-list,
.pillar-toc,
.pillar-bullets,
.sub-list{
  padding-left: 28px !important;
  padding-right: 0 !important;
  list-style-position: outside;
  margin-left: 8px !important;
}
.toc-list{ padding-left: 28px !important; }
.pillar-bullets li,
.sub-list li{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pillar-bullets li::before,
.sub-list li::before{
  right: auto !important;
  left: -16px !important;
}
.sub-breadcrumb,
.pill-breadcrumb,
.kb-breadcrumb{
  text-align: left;
}
/* Tables: allow horizontal scroll within their own wrapper, but constrain on mobile */
@media (max-width: 820px){
  .pill-table-wrap,
  .sub-table-wrap{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .pill-table,
  .sub-table{
    min-width: 0 !important;
    width: 100%;
    font-size: 13px !important;
  }
  .pill-table th,
  .pill-table td,
  .sub-table th,
  .sub-table td{
    padding: 8px 8px !important;
    word-break: break-word;
    text-align: left !important;
  }
}

/* Mobile: ensure article body content has comfortable side padding */
@media (max-width: 820px){
  .sub-article,
  .pillar-article,
  .pillar-section{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .sub-list,
  .pillar-bullets,
  .toc-list{
    padding-left: 28px !important;
  }
}
