/* ============================================================
   StackUI Widget: timeline  (scoped styles — ALL variants)
   ------------------------------------------------------------
   Everything is scoped under .stk-timeline so it can never leak
   into other widgets or fight the core.

   Variants covered:
     - carousel  (.timeline-12)  Slick horizontal carousel
     - vertical  (.timeline-6)   vertical timeline in a card

   REMOVED vs the original ref-template (now provided by core):
     - Google-font @import, * reset, base body/p/a  -> core + tokens
     - .container + media queries                    -> Bootstrap
     - .row / .col-* grid                            -> Bootstrap grid
     - generic utils (.d-flex, .justify-content-between,
       .align-items-center, .float-end, .mt-0, .mb-0) -> Bootstrap

   KEPT (widget-specific — needed for fidelity), all scoped:
     card / btn overrides, custom spacing (.mb-4 = 4px !),
     .green, .fs-14, .d-flex-h-100, .height-card-custom,
     and every timeline-12 / timeline-6 rule.

   Brand green (#57CC33) -> central token var(--stk-primary).
   ============================================================ */

.stk-timeline {
  /* original :root tokens, moved onto the widget scope */
  --text-header: #000000;
  --text-sub-header: #888888;
  --text-color-primary: var(--stk-primary);  /* was #57CC33 */
  --bg-color-primary: var(--stk-primary);     /* was #57CC33 */
  --bg-color-black: #000000;
  --button-primary-bg: #000000;
  --button-primary-text: #ffffff;
  --bg-card: #FAFBFD;
  --border-radius-medium: 8px;
  --border-radius-xl: 100px;
}

/* ----- widget-scoped utilities (override Bootstrap within the widget) ----- */
.stk-timeline .fs-14 { font-size: 14px; }
.stk-timeline .green { color: var(--text-color-primary); border-radius: 100px; }
.stk-timeline .d-flex-h-100 { display: flex; height: 100%; }
.stk-timeline .mb-4 { margin-bottom: 4px !important; }   /* 4px, not Bootstrap's 24px — !important to beat Bootstrap's utility !important */

/* ----- Button (widget-specific pill) ----- */
.stk-timeline .btn {
  padding: 8px 24px;
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  white-space: nowrap;
}
.stk-timeline .btn-primary {
  color: var(--button-primary-text);
  background-color: var(--button-primary-bg);
  border-color: var(--button-primary-bg);
  width: max-content;
  cursor: pointer;
  transition: 0.35s;
}
.stk-timeline .btn-primary:hover {
  background-color: var(--bg-color-primary);
  border-color: var(--bg-color-primary);
}
.stk-timeline .btn-primary:active,
.stk-timeline .btn-primary:focus {
  background-color: var(--bg-color-primary) !important;
  border-color: var(--bg-color-primary) !important;
}

/* ----- Card (custom in the original style.css) ----- */
.stk-timeline .card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-header);
}
.stk-timeline .card {
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
  border: none;
}
.stk-timeline .card-header {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-medium);
  border: none;
  padding: 0;
  margin-bottom: 24px;
}
.stk-timeline .card-header:first-child {
  border-radius: var(--border-radius-medium);
}
.stk-timeline .card-body { padding: 0; }

@media (max-width: 575px) {
  .stk-timeline .card { padding: 20px; }
  .stk-timeline .card-header { margin-bottom: 12px; }
  .stk-timeline .card-title { font-size: 20px; }
  .stk-timeline .btn { font-size: 14px; padding: 6px 18px; }
}

/* ============================================================
   Variant: carousel (.timeline-12)
   ============================================================ */
.stk-timeline .height-card-custom {
  position: relative;
  height: 360px;
  overflow: auto;
}
.stk-timeline .timeline-carousel {
  padding: 12px 32px 32px 32px;
  position: relative;
  overflow: hidden;
}
.stk-timeline .timeline-carousel .slick-dots {
  bottom: -20px;
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
}
.stk-timeline .timeline-carousel .slick-dots li {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  cursor: pointer;
  position: relative;
}
.stk-timeline .timeline-carousel .slick-dots li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #c8c8ca;
  border: 1px solid #c8c8ca;
  display: block;
}
.stk-timeline .timeline-carousel .slick-dots li.slick-active::before {
  background-color: var(--bg-color-black);
  border-color: var(--bg-color-black);
}
.stk-timeline .timeline-carousel__item { cursor: pointer; }
.stk-timeline .timeline-carousel__item-inner {
  position: relative;
  padding-top: 45px;
}
.stk-timeline .timeline-carousel__item-inner:after {
  position: absolute;
  width: 100%;
  top: 56px;
  left: 80px;
  content: "";
  border-bottom: 1px solid rgb(135 135 135 / 20%);
}
.stk-timeline .timeline-carousel__item-inner .month {
  font-size: 21px;
  text-transform: uppercase;
  color: var(--text-header);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.stk-timeline .timeline-carousel__item-inner p {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-header);
  width: auto;
  padding-right: 32px;
  font-weight: 400;
  margin-bottom: 16px;
}
.stk-timeline .slick-dots button { display: none; }

@media (max-width: 767px) {
  .stk-timeline .timeline-carousel__item-inner p { width: auto; }
  .stk-timeline .height-card-custom {
    row-gap: 25px;
    height: 300px;
    overflow: auto;
  }
}

/* ============================================================
   Variant: vertical (.timeline-6)
   ============================================================ */
.stk-timeline .timeline-6 .timeline:before {
  content: "";
  position: absolute;
  top: 0px;
  left: 75px;
  bottom: 0px;
  width: 2px;
  background: #ddd;
  height: 100%;
}
.stk-timeline .timeline-6 .timeline:after {
  content: "";
  display: table;
  clear: both;
}
.stk-timeline .timeline-6 .entry {
  clear: both;
  text-align: left;
  position: relative;
}
.stk-timeline .timeline-6 .entry .title {
  margin-bottom: 0.5em;
  float: left;
  text-align: right;
  width: max-content;
}
.stk-timeline .timeline-6 .entry .title:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--bg-color-primary);
  background-color: var(--bg-color-primary);
  border-radius: 100%;
  top: 0%;
  left: 56.5px;
  z-index: 99;
}
.stk-timeline .timeline-6 .entry .title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.stk-timeline .timeline-6 .entry .title p {
  margin: 0;
  font-size: 100%;
}
.stk-timeline .timeline-6 .entry .body {
  padding-left: 100px;
}
.stk-timeline .timeline-6 .entry .body p {
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4em;
}
.stk-timeline .timeline-6 .entry .body p:first-child {
  margin-top: 0;
}
.stk-timeline .timeline-6 .entry .body ul {
  color: var(--text-sub-header);
  padding-left: 0;
  margin-bottom: 12px;
  list-style-type: none;
}
.stk-timeline .timeline-6 .entry .body ul li {
  display: flex;
  padding-bottom: 2px;
}
.stk-timeline .timeline-6 .entry .body ul li:before {
  content: "–";
  margin-right: 0.5em;
}

