/*
 * Kandoi Journey Timeline — Elementor widget styles
 * ---------------------------------------------------------------------
 * Everything is namespaced under .kj-journey (unique prefix "kj-") so it
 * can NEVER leak out and affect any other section, widget, or theme
 * element on the page.
 *
 * Intentionally NOT included (on purpose, because these were global and
 * would affect the whole site):
 *   - :root { ... }            -> variables now live on .kj-journey only
 *   - * { box-sizing: ... }    -> scoped to .kj-journey and its children
 *   - html { scroll-behavior } -> page-level concern, left to the theme
 *   - body { margin, color, font-family, background } -> page-level,
 *     left untouched so this widget never restyles the rest of the site
 */

.kj-journey {
  /* Local design tokens (also overridden live from the Elementor
     Style tab via {{WRAPPER}} selectors — see class-kj-journey-widget.php) */
  --kj-brand-blue: #2b39a6;
  --kj-brand-green: #1f8a6d;
  --kj-brand-green-fg: #ffffff;
  --kj-body-text: #66707d;
  --kj-background: #ffffff;
  --kj-font-sans: "Poppins", sans-serif;

  padding: 80px 0;
  background: var(--kj-background);
  color: var(--kj-body-text);
  font-family: var(--kj-font-sans);
  -webkit-font-smoothing: antialiased;
}

.kj-journey,
.kj-journey * {
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .kj-journey { padding: 112px 0; }
}

.kj-container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

.kj-journey__intro { max-width: 896px; margin: 0 auto; text-align: center; }

.kj-journey__heading {
  margin: 0;
  font-size: 2rem !important;
  line-height: 1.2!important;
  font-weight: 700!important;
  color: var(--kj-brand-blue)!important;
}
@media (min-width: 768px) { .kj-journey__heading { font-size: 2.75rem; } }

.kj-journey__lead {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--kj-body-text);
}
@media (min-width: 768px) { .kj-journey__lead { font-size: 16px; } }

.kj-journey__grid { margin-top: 64px; display: grid; gap: 40px; }
@media (min-width: 768px) {
  .kj-journey__grid { margin-top: 96px; grid-template-columns: 1fr 360px; gap: 56px; }
}

/* Timeline */
.kj-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  position: relative;
  border-left: 1px solid rgba(43, 57, 166, 0.2);
}
@media (min-width: 768px) {
  .kj-timeline { border-left: 0; padding-left: 0; }
}

.kj-timeline__item { position: relative; padding-bottom: 56px; }
@media (min-width: 768px) {
  .kj-timeline__item {
    padding-bottom: 80px;
    padding-right: 40px;
    border-right: 1px solid rgba(43, 57, 166, 0.2);
  }
}

.kj-timeline__dot {
  position: absolute;
  left: -31px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--kj-brand-blue);
  background: var(--kj-background);
  transition: background-color 0.3s ease;
}
@media (min-width: 768px) {
  .kj-timeline__dot { left: auto; right: -7px; }
}
.kj-timeline__item.is-active .kj-timeline__dot { background: var(--kj-brand-blue); }

.kj-timeline__dash {
  display: none;
  position: absolute;
  right: 0;
  top: 15px;
  height: 1px;
  width: 48px;
  background: rgba(43, 57, 166, 0.25);
  transition: width 0.5s ease, background-color 0.5s ease;
}
@media (min-width: 768px) { .kj-timeline__dash { display: block; } }
.kj-timeline__item.is-active .kj-timeline__dash { width: 96px; background: var(--kj-brand-blue); }

.kj-timeline__content { opacity: 0.6; transition: opacity 0.5s ease; }
.kj-timeline__item.is-active .kj-timeline__content { opacity: 1; }

.kj-timeline__year {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: var(--kj-brand-blue);
}
@media (min-width: 768px) { .kj-timeline__year { font-size: 3.75rem; } }

.kj-timeline__title {
  margin: 16px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--kj-brand-blue);
}
@media (min-width: 768px) { .kj-timeline__title { font-size: 1.25rem; } }

.kj-timeline__body {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.9;
}

.kj-timeline__bullets {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}
.kj-timeline__bullets li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.9;
}
.kj-timeline__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--kj-brand-green);
}

.kj-timeline__closing { margin: 16px 0 0; max-width: 36rem; font-size: 15px; line-height: 1.9; }

/* Sticky era panel */
.kj-era { display: none; }
@media (min-width: 768px) { .kj-era { display: block; } }

.kj-era__card {
  position: sticky;
  top: 96px;
  background: var(--kj-brand-green);
  border-radius: 10px;
  padding: 32px;
}

.kj-era__label {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--kj-brand-green-fg);
}
