/* SM Finishes — compact interactive Time Breakthrough timeline */
.smf-timeline-section {
  overflow: clip;
  touch-action: pan-y;
}

.smf-timeline {
  --line: #1e4b8f;
  --formation: #2e7d32;
  --milestone: #c9a227;
  --certification: #3d5afe;
  --installation: #c62828;
  max-width: 920px;
  margin: 0 auto;
  touch-action: pan-y;
}

.smf-timeline__panel {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  min-height: 110px;
  margin-bottom: 18px;
}

.smf-timeline__active {
  text-align: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 75, 143, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 40, 80, 0.06);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.smf-timeline__active.is-switching {
  opacity: 0.35;
  transform: translateY(4px);
}

.smf-timeline__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: rgba(30, 75, 143, 0.08);
  color: var(--line);
}

.smf-timeline__badge.is-formation {
  background: rgba(46, 125, 50, 0.14);
  color: var(--formation);
}
.smf-timeline__badge.is-milestone {
  background: rgba(201, 162, 39, 0.18);
  color: #8a6d12;
}
.smf-timeline__badge.is-certification {
  background: rgba(61, 90, 254, 0.12);
  color: #5c2d91;
}
.smf-timeline__badge.is-installation {
  background: rgba(198, 40, 40, 0.12);
  color: var(--installation);
}

.smf-timeline__date {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: #111 !important;
  line-height: 1.2;
}

.smf-timeline__desc {
  margin: 0 !important;
  font-size: clamp(14px, 1.8vw, 16px) !important;
  line-height: 1.45 !important;
  color: #444 !important;
  font-weight: 500 !important;
}

.smf-timeline__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30, 75, 143, 0.2);
  background: #fff;
  color: var(--line);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.smf-timeline__nav:hover,
.smf-timeline__nav:focus-visible {
  background: var(--line);
  color: #fff;
  outline: none;
  transform: scale(1.05);
}

.smf-timeline__track-wrap {
  position: relative;
  padding: 8px 4px 4px;
}

.smf-timeline__track {
  list-style: none;
  margin: 0;
  padding: 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
}

.smf-timeline__track::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  background: var(--line);
  transform: translateY(-50%);
  border-radius: 2px;
}

.smf-timeline__track > li {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.smf-timeline__node {
  width: clamp(14px, 2.2vw, 18px);
  height: clamp(14px, 2.2vw, 18px);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
  padding: 0;
  cursor: pointer;
  background: #999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smf-timeline__node.is-formation { background: var(--formation); }
.smf-timeline__node.is-milestone { background: var(--milestone); }
.smf-timeline__node.is-certification { background: var(--certification); }
.smf-timeline__node.is-installation { background: var(--installation); }

.smf-timeline__node:hover,
.smf-timeline__node:focus-visible {
  transform: scale(1.25);
  outline: none;
}

.smf-timeline__node.is-active {
  transform: scale(1.35);
  box-shadow: 0 0 0 2px var(--line), 0 0 0 6px rgba(30, 75, 143, 0.18);
}

.smf-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
}

.smf-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #444;
}

.smf-timeline-legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.smf-timeline-legend .is-formation::before { background: var(--formation); }
.smf-timeline-legend .is-milestone::before { background: var(--milestone); }
.smf-timeline-legend .is-certification::before { background: var(--certification); }
.smf-timeline-legend .is-installation::before { background: var(--installation); }

@media (max-width: 575px) {
  .smf-timeline__panel {
    grid-template-columns: 36px 1fr 36px;
    min-height: 96px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .smf-timeline__nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .smf-timeline__active {
    padding: 12px 10px;
  }

  .smf-timeline__track {
    padding: 14px 2px;
  }
}

.section-divider-thin {
  position: relative;
  width: 100%;
  height: 2px;
  margin: 16px 0 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #4a4a4a 15%, #1f1f1f 50%, #4a4a4a 85%, rgba(0, 0, 0, 0));
  border: none;
}

.section-divider-thin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 4px;
  background: #b1913c;
  border-radius: 2px;
}

.rs-certificates-area {
  overflow: visible;
  padding-bottom: 40px;
}

.rs-certificates-area .rs-certificate-item {
  height: 100%;
}

.rs-certificates-area .rs-certificate-thumb {
  height: 100%;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 12px 30px rgba(15, 21, 34, 0.06);
  overflow: clip;
}

.rs-certificates-area .rs-certificate-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: contain;
}

.rs-footer-bg-thumb-wrapper {
  position: relative;
  z-index: 2;
}
