/* ----------------------------------------
   blox - Scrolling Content
   PREFIX: blox-sc-
   Mirrors the React TimeLine_01 layout:
   each entry = flex row, left meta is sticky
   within that row, card scrolls past it.
   ---------------------------------------- */

/* 1. Reset */
.blox-sc-body *,
.blox-sc-body *::before,
.blox-sc-body *::after {
  box-sizing: border-box;
}
.blox-sc-body {
  box-sizing: border-box;
}

/* 2. Container */
.blox-sc-container {
  width: 100%;
  padding: 0 20px;
}

/* 3. Section Heading */
.blox-sc-heading {
  margin-bottom: 48px;
}

/* 4. Entries wrapper */
.blox-sc-entries {
  display: flex;
  flex-direction: column;
}

/* 5. Each entry = flex row on desktop, column on mobile */
.blox-sc-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .blox-sc-entry {
    flex-direction: row;
    gap: 64px;
  }
}

/* 6. Left meta - sticky within entry */
.blox-sc-meta {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .blox-sc-meta {
    position: -webkit-sticky;
    position: sticky;
    top: 32px; /* JS overrides with header height + 16px */
    height: min-content;
    align-self: flex-start;
  }
}

.blox-sc-meta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blox-sc-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blox-sc-meta-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.blox-sc-meta-title p { margin: 0; }

.blox-sc-meta-subtitle {
  font-size: 12px;
  line-height: 1.3;
}
.blox-sc-meta-subtitle p { margin: 0; }

/* 7. Icon */
.blox-sc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blox-sc-icon i {
  font-size: 1em;
}

/* 8. Card (right column) */
.blox-sc-card {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* 9. Sentinel */
.blox-sc-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 10. Image */
.blox-sc-image-wrap {
  overflow: hidden;
}
.blox-sc-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 11. Card body */
.blox-sc-card-body {
  padding-top: 0;
}
.blox-sc-card-title {
  margin: 0 0 8px 0;
}
.blox-sc-card-title p { margin: 0; }
.blox-sc-card-description {
  margin: 0;
}
.blox-sc-card-description p { margin: 0; }

/* 12. Expandable content */
.blox-sc-expandable {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}
.blox-sc-entry.is-active .blox-sc-expandable {
  grid-template-rows: 1fr;
  opacity: 1;
}
.blox-sc-expandable-inner {
  overflow: hidden;
}

/* 13. Bullets */
.blox-sc-bullets {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}
.blox-sc-bullets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blox-sc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.blox-sc-bullets li:last-child {
  margin-bottom: 0;
}
.blox-sc-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 8px;
}

/* 14. Button */
.blox-sc-btn-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* 15. Inactive clamp - desktop only */
@media (min-width: 768px) {
  .blox-sc-entry:not(.is-active) .blox-sc-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 15b. Mobile overrides */
@media (max-width: 767px) {
  .blox-sc-container {
    padding: 0;
  }
  .blox-sc-expandable {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
  }
  .blox-sc-expandable-inner {
    overflow: visible;
  }
}

/* 16. Load More */
.blox-sc-entry-hidden {
  display: none;
}
.blox-sc-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

/* 17. Section Dividers */
.blox-sc-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.blox-sc-divider-top {
  bottom: 100%;
}

.blox-sc-divider-bottom {
  top: 100%;
}

.blox-sc-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
}

/* 18. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .blox-sc-body * {
    transition: none !important;
    animation: none !important;
  }
}
.blox-sc-body[data-reduce-motion="true"] .blox-sc-expandable,
.blox-sc-body[data-reduce-motion="true"] .blox-sc-icon,
.blox-sc-body[data-reduce-motion="true"] .blox-sc-card {
  transition: none !important;
}