/*
 * Fecleshost Knowledge Center — component styles
 * ------------------------------------------------------------
 * Extends the existing design system. Brand colors are inherited
 * from the global Tailwind configuration / CSS variables.
 */

:root {
  --kc-surface: #ffffff;
  --kc-surface-muted: #f8fafc;
  --kc-border: rgba(15, 23, 42, 0.08);
  --kc-text: #0f172a;
  --kc-muted: #64748b;
  --kc-brand: #ea960a;
  --kc-deep: #20186d;
}

.dark {
  --kc-surface: #151042;
  --kc-surface-muted: #0d0833;
  --kc-border: rgba(255, 255, 255, 0.08);
  --kc-text: #ffffff;
  --kc-muted: #cbd5e1;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-20px, 15px) scale(0.95); }
}
.kc-hero-glow-1 {
  position: absolute;
  top: -15%; right: 15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 150, 10, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatGlow 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
.kc-hero-glow-2 {
  position: absolute;
  bottom: -20%; left: 5%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 24, 109, 0.35) 0%, transparent 70%);
  filter: blur(90px);
  animation: floatGlow 22s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 1;
}
.dark .kc-hero-glow-1 {
  background: radial-gradient(circle, rgba(234, 150, 10, 0.16) 0%, transparent 70%);
}
.dark .kc-hero-glow-2 {
  background: radial-gradient(circle, rgba(234, 150, 10, 0.05) 0%, rgba(32, 24, 109, 0.55) 50%, transparent 80%);
}

/* Knowledge center masthead */
.kc-masthead {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 150, 10, 0.12), transparent 34%),
    radial-gradient(circle at 88% 26%, rgba(32, 24, 109, 0.20), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(234, 150, 10, 0.05), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.dark .kc-masthead {
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 150, 10, 0.14), transparent 34%),
    radial-gradient(circle at 88% 26%, rgba(32, 24, 109, 0.46), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(234, 150, 10, 0.06), transparent 30%),
    linear-gradient(180deg, #151042 0%, #0d0833 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.kc-grid-pattern {
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.dark .kc-grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}

/* Sticky taxonomy + search bar */
.kc-filter-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--kc-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 24px -18px rgba(15,23,42,.18);
}
.dark .kc-filter-shell {
  background: rgba(32, 24, 109, 0.92);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,.6);
}

.kc-category-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: .125rem;
}
.kc-category-strip::-webkit-scrollbar { display: none; }
.kc-category-strip > * { scroll-snap-align: start; }

/* Hero */
.kc-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(32,24,109,.28), transparent 45%);
  pointer-events: none;
}
.kc-hero-accent {
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
@media (min-width: 1024px) {
  .kc-hero:hover .kc-hero-accent { width: 100%; }
}

/* Section framing */
.kc-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--kc-brand);
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kc-section-eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--kc-brand), transparent);
}
.kc-section-title {
  color: var(--kc-text);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

/* Sidebar widgets */
.kc-widget {
  border: 1px solid var(--kc-border);
  background: var(--kc-surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.kc-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--kc-border);
  background: linear-gradient(180deg, rgba(15,23,42,.015), transparent);
}
.dark .kc-widget-header { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.kc-widget-body { padding: .75rem; }

/* Search overlay dropdown */
#kc-search-suggestions {
  max-height: min(430px, 65vh);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
}
.dark #kc-search-suggestions { box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.kc-search-mark {
  background: rgba(234,150,10,.18);
  color: inherit;
  border-radius: 3px;
  padding: 0 .1em;
}

/* Bookmarks / interactions */
.kc-icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kc-muted);
  border: 1px solid var(--kc-border);
  background: var(--kc-surface);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}
.kc-icon-button:hover,
.kc-icon-button:focus-visible {
  color: var(--kc-brand);
  border-color: rgba(234,150,10,.4);
  background: rgba(234,150,10,.08);
  transform: translateY(-1px);
}
.kc-icon-button.is-active { color: var(--kc-brand); background: rgba(234,150,10,.12); }
.kc-action-btn.is-active svg { fill: currentColor; }
.kc-action-btn[data-kc-type="bookmark"].is-active { color: #ea960a; background-color: rgba(234, 150, 10, 0.15); border-color: rgba(234, 150, 10, 0.3); }
.kc-action-btn[data-kc-type="like"].is-active { color: #f43f5e; background-color: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.3); }

/* CTA banners */
.kc-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #20186d 0%, #151042 50%, #0d0833 100%);
  border: 1px solid rgba(234, 150, 10, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.kc-cta::after {
  content: '';
  position: absolute;
  inset: auto -5rem -8rem auto;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(234,150,10,.2);
  filter: blur(45px);
  pointer-events: none;
}

/* Article prose enhancements */
.kc-prose .info-box,
.kc-prose .warning-box,
.kc-prose .success-box {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: .9rem;
  border: 1px solid;
}
.kc-prose .info-box { background: rgba(14,165,233,.07); border-color: rgba(14,165,233,.22); }
.kc-prose .warning-box { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.24); }
.kc-prose .success-box { background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.22); }
.kc-prose iframe { max-width: 100%; border-radius: 1rem; }
.kc-prose figure { margin: 1.75rem 0; }
.kc-prose figcaption { text-align: center; color: var(--kc-muted); font-size: .8rem; margin-top: .6rem; }
.kc-prose table { display: block; overflow-x: auto; white-space: nowrap; }

/* Reading progress */
#kc-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--kc-brand), #ffbd45);
  transition: width .08s linear;
}

/* Subtle content reveal */
@keyframes kcReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.kc-reveal { animation: kcReveal .55s cubic-bezier(.16,1,.3,1) both; }

/* Article card link hover sheen */
.kc-article-media-zoom { will-change: transform; }

/* Load more button pulse */
@keyframes kcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,150,10,.35); }
  50% { box-shadow: 0 0 0 8px rgba(234,150,10,0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Responsive refinements ───────────────────────────────────── */
@media (max-width: 639px) {
  /* Slightly tighter masthead */
  .kc-section-title { font-size: 1.45rem; }

  /* Keep the category strip scannable on small phones */
  .kc-filter-shell { top: 0; }
  .kc-category-strip > a { padding-left: .85rem; padding-right: .85rem; }

  /* Hero text scales down gracefully */
  .kc-hero h2 { font-size: 1.45rem; }

  /* Search suggestions stay within viewport */
  #kc-search-suggestions { inset-inline: 0; }
}

@media (max-width: 767px) {
  .kc-widget { border-radius: .9rem; }
}

/* Tablet two-column widgets */
@media (min-width: 640px) and (max-width: 1023px) {
  aside .kc-widget:first-child { grid-row: span 1; }
}

/* Premium Visual Redesign Additions */
#kc-search-input:focus {
  border-color: rgba(234, 150, 10, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(234, 150, 10, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.dark #kc-search-input:focus {
  background-color: var(--kc-surface-muted) !important;
}

.kc-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.015em;
}

.kc-filter-active {
  box-shadow: 0 6px 15px -4px rgba(234, 150, 10, 0.25) !important;
}

.kc-article-card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.kc-article-card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 150, 10, 0.3) !important;
  box-shadow: 0 20px 40px -15px rgba(234, 150, 10, 0.08), 0 0 0 1px rgba(234, 150, 10, 0.04) !important;
}
.dark .kc-article-card-hover:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(234, 150, 10, 0.12) !important;
}

html:not(.dark) .kc-light-bordered {
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.01) !important;
}
html:not(.dark) .kc-light-bordered:hover {
  border-color: rgba(234, 150, 10, 0.25) !important;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(234, 150, 10, 0.04) !important;
}

.kc-widget-glow {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.kc-widget-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--kc-brand), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.kc-widget-glow:hover::before {
  opacity: 1;
}
.kc-widget-glow:hover {
  border-color: rgba(234, 150, 10, 0.25) !important;
}

/* List View layout support */
#kc-grid.kc-view-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
}

#kc-grid.kc-view-list .kc-article-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 1.25rem !important;
  padding: 1rem !important;
}

#kc-grid.kc-view-list .kc-article-card .kc-card-image-wrap {
  width: 260px !important;
  min-width: 260px !important;
  aspect-ratio: 16/10 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

/* Mobile List View: compact horizontal small cards */
@media (max-width: 639px) {
  #kc-grid.kc-view-list {
    gap: 0.65rem !important;
  }
  #kc-grid.kc-view-list .kc-article-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.625rem !important;
    border-radius: 8px !important;
  }
  #kc-grid.kc-view-list .kc-article-card .kc-card-image-wrap {
    width: 90px !important;
    min-width: 90px !important;
    height: 72px !important;
    aspect-ratio: 4/3 !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }
  #kc-grid.kc-view-list .kc-article-card .flex-1 {
    gap: 0.2rem !important;
  }
  #kc-grid.kc-view-list .kc-article-card h3 {
    font-size: 0.8125rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  #kc-grid.kc-view-list .kc-article-card span.text-\[10px\] {
    font-size: 8.5px !important;
    margin-bottom: 2px !important;
  }
  #kc-grid.kc-view-list .kc-article-card .kc-card-excerpt {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    margin-top: 0.15rem !important;
  }
  #kc-grid.kc-view-list .kc-article-card .text-\[11px\] {
    font-size: 9.5px !important;
    gap-x: 0.6rem !important;
    gap-y: 0.15rem !important;
    line-height: 1.2 !important;
  }
}

/* Card excerpt 2-line clamping across all devices */
.kc-card-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Perfect OVHcloud Mirror Overrides */
.kc-serif-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  letter-spacing: -0.02em !important;
}

.kc-article-card,
.kc-featured-card {
  border-radius: 8px !important;
  border: 1.5px solid rgba(32, 24, 109, 0.18) !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(32, 24, 109, 0.05) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
}

.dark .kc-article-card,
.dark .kc-featured-card {
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

.kc-article-card:hover,
.kc-featured-card:hover {
  box-shadow: 0 12px 24px rgba(32, 24, 109, 0.1) !important;
  border-color: #ea960a !important;
  transform: translateY(-2px) !important;
}

.dark .kc-article-card:hover,
.dark .kc-featured-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
  border-color: #ea960a !important;
}

.kc-card-image-wrap {
  border-radius: 4px !important;
  overflow: hidden !important;
}

/* Scrollbar removal utilities */
.scrollbar-none::-webkit-scrollbar,
#kc-cat-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbar-none,
#kc-cat-scroll {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  overflow: -moz-scrollbars-none !important;
}

/* Hero Banner with Background Image & Overlay */
.kc-hero-banner {
  background-color: #08051e !important;
  background-position: center right !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
  padding-top: 3.25rem !important;
  padding-bottom: 3.25rem !important;
}

.kc-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 5, 30, 0.88) 0%, rgba(8, 5, 30, 0.55) 45%, rgba(8, 5, 30, 0.25) 100%),
              rgba(8, 5, 30, 0.35);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .kc-hero-banner {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

.kc-hero-orbit-1 {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  width: 900px;
  height: 450px;
  top: -80px;
  right: -150px;
  transform: rotate(-18deg);
  pointer-events: none;
}

.kc-hero-orbit-2 {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  width: 1200px;
  height: 600px;
  top: -150px;
  right: -250px;
  transform: rotate(-32deg);
  pointer-events: none;
}

.kc-hero-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Category Tab Links styling matching the screenshot */
.kc-category-tab {
  position: relative;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  border: 1px solid transparent !important;
}

.dark .kc-category-tab {
  color: #cbd5e1;
}

.kc-category-tab:hover {
  color: #ea960a !important;
  background-color: rgba(234, 150, 10, 0.08) !important;
  border-color: rgba(234, 150, 10, 0.2) !important;
  transform: translateY(-1.5px) !important;
}

.kc-category-tab.active {
  color: #ea960a !important;
  background-color: rgba(234, 150, 10, 0.12) !important;
  border-color: rgba(234, 150, 10, 0.3) !important;
  font-weight: 700;
}

.kc-category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 14px;
  width: calc(100% - 28px);
  height: 2.5px;
  background-color: #ea960a;
}

/* Category Nav Bar & Search Layout */
.kc-nav-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0.5rem !important;
}

.kc-categories-wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

#kc-cat-scroll {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 4px 12px 6px 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#kc-cat-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#kc-search-wrap {
  width: 100% !important;
  flex-shrink: 0 !important;
  margin-top: 0.25rem !important;
}

/* Mobile Category Peek View & Smooth Horizontal Swipe */
@media (max-width: 767.98px) {
  .kc-categories-wrapper {
    mask-image: linear-gradient(to right, black 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 86%, transparent 100%);
  }
  
  #kc-cat-prev,
  #kc-cat-next {
    display: none !important;
  }
  
  .kc-category-tab {
    padding: 5px 11px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
}

@media (min-width: 768px) {
  .kc-nav-container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
  }
  
  .kc-categories-wrapper {
    flex: 1 1 auto !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  
  #kc-search-wrap {
    width: 260px !important;
    margin-top: 0 !important;
  }
  
  #kc-cat-scroll {
    gap: 0.75rem !important;
  }
}

/* ── Single Post Page (Article View) Visual Enhancements ───────────── */

/* Article Reading Progress Bar */
#kc-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #ea960a 0%, #ffbd45 50%, #ea960a 100%);
  box-shadow: 0 0 10px rgba(234, 150, 10, 0.6);
  z-index: 99999;
  transition: width 0.08s ease-out;
}

/* Single Post Prose Styles */
.kc-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 100%;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.dark .kc-prose {
  color: #cbd5e1;
}

.kc-prose img {
  max-width: 100% !important;
  height: auto !important;
}

.kc-prose table {
  max-width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.kc-prose pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.kc-prose iframe,
.kc-prose video {
  max-width: 100% !important;
}

@media (max-width: 639px) {
  .kc-prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .kc-prose h2 {
    font-size: 1.35rem !important;
  }
  .kc-prose h3 {
    font-size: 1.1rem !important;
  }
  .kc-prose h4 {
    font-size: 1rem !important;
  }
  .kc-prose p {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .kc-prose blockquote {
    padding: 0.85rem 1rem !important;
    margin: 1.25rem 0 !important;
    font-size: 0.875rem !important;
  }
}

.kc-prose p {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.kc-prose h2 {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dark .kc-prose h2 {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.kc-prose h3 {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
}

.dark .kc-prose h3 {
  color: #f8fafc;
}

.kc-prose h4 {
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.dark .kc-prose h4 {
  color: #f1f5f9;
}

.kc-prose strong {
  color: #0f172a;
  font-weight: 700;
}

.dark .kc-prose strong {
  color: #ffffff;
}

.kc-prose a {
  color: #ea960a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(234, 150, 10, 0.35);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.kc-prose a:hover {
  text-decoration-color: #ea960a;
  color: #d88705;
}

.kc-prose ul, .kc-prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.kc-prose ul {
  list-style-type: disc;
}

.kc-prose ol {
  list-style-type: decimal;
}

.kc-prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.kc-prose blockquote {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-left: 4px solid #ea960a;
  background: rgba(234, 150, 10, 0.05);
  border-radius: 0 0.85rem 0.85rem 0;
  font-style: italic;
  color: #334155;
}

.dark .kc-prose blockquote {
  background: rgba(234, 150, 10, 0.08);
  color: #e2e8f0;
}

/* Code Snippet Enhancements */
.kc-prose code:not(pre code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  background-color: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dark .kc-prose code:not(pre code) {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffbd45;
  border-color: rgba(255, 255, 255, 0.1);
}

.kc-code-wrapper {
  position: relative;
  margin: 1.75rem 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #0a0624;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.kc-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background-color: #151042;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.kc-code-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ea960a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.725rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kc-copy-btn:hover {
  background: #ea960a;
  color: #ffffff;
  border-color: #ea960a;
}

.kc-prose pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: #0a0624;
}

/* Mobile TOC Accordion */
.kc-mobile-toc-card {
  border: 1.5px solid rgba(234, 150, 10, 0.25);
  background: rgba(234, 150, 10, 0.04);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dark .kc-mobile-toc-card {
  background: rgba(32, 24, 109, 0.35);
  border-color: rgba(234, 150, 10, 0.3);
}

/* Active TOC link highlight */
.kc-toc-link.kc-toc-active {
  color: #ea960a !important;
  font-weight: 700 !important;
  border-left-color: #ea960a !important;
  background-color: rgba(234, 150, 10, 0.08) !important;
  padding-left: 0.75rem !important;
}

/* Social Share Button Hover Effects */
.kc-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.kc-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.kc-share-whatsapp {
  background-color: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.25);
}

.kc-share-whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
}

.kc-share-twitter {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.25);
}

.kc-share-twitter:hover {
  background-color: #0ea5e9;
  color: #ffffff;
}

.kc-share-facebook {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
}

.kc-share-facebook:hover {
  background-color: #3b82f6;
  color: #ffffff;
}

.kc-share-linkedin {
  background-color: rgba(10, 102, 194, 0.1);
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.25);
}

.kc-share-linkedin:hover {
  background-color: #0a66c2;
  color: #ffffff;
}

.kc-share-copylink {
  background-color: rgba(234, 150, 10, 0.1);
  color: #ea960a;
  border-color: rgba(234, 150, 10, 0.25);
}

.kc-share-copylink:hover {
  background-color: #ea960a;
  color: #ffffff;
}


