@keyframes tbsFadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tbs-timeline-plugin {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 60px 0;
}
.tbs-timeline-plugin .tbs-card-wrapper {
  width: 100%;
  position: relative;
}
.tbs-timeline-plugin .tbs-card-wrapper::after {
  content: '';
  display: block;
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, #c57f3b, transparent);
  margin: 0 auto;
}
.tbs-timeline-plugin .tbs-card {
  background: #ffffff;
  border: 1px solid #e8ddd0;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 500px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  animation: tbsFadeSlide 0.35s ease;
}
.tbs-timeline-plugin .tbs-card-media {
  position: relative;
  background: #f5ede0;
  overflow: hidden;
}
.tbs-timeline-plugin .tbs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.tbs-timeline-plugin .tbs-card-video {
  position: absolute;
  inset: 0;
  display: none;
}
.tbs-timeline-plugin .tbs-card-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tbs-timeline-plugin .tbs-card-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tbs-timeline-plugin .tbs-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c57f3b !important;
}
.tbs-timeline-plugin .tbs-card-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000 !important;
}
.tbs-timeline-plugin .tbs-card-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #555555 !important;
  flex: 1;
}
.tbs-timeline-plugin .tbs-card-text h1,
.tbs-timeline-plugin .tbs-card-text h2,
.tbs-timeline-plugin .tbs-card-text h3,
.tbs-timeline-plugin .tbs-card-text h4,
.tbs-timeline-plugin .tbs-card-text h5,
.tbs-timeline-plugin .tbs-card-text h6 {
  color: #000000 !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.tbs-timeline-plugin .tbs-card-text p {
  color: #555555 !important;
  margin-bottom: 8px;
}
.tbs-timeline-plugin .tbs-card-text ul,
.tbs-timeline-plugin .tbs-card-text ol {
  color: #555555 !important;
  padding-left: 24px !important;
  margin-bottom: 12px !important;
}
.tbs-timeline-plugin .tbs-card-text ul {
  list-style: disc !important;
  list-style-type: disc !important;
}
.tbs-timeline-plugin .tbs-card-text ul ul {
  list-style: circle !important;
  list-style-type: circle !important;
}
.tbs-timeline-plugin .tbs-card-text ul li {
  list-style: disc !important;
  list-style-type: disc !important;
  color: #555555 !important;
  margin-bottom: 6px !important;
  padding-left: 4px !important;
}
.tbs-timeline-plugin .tbs-card-text ul ul li {
  list-style: circle !important;
  list-style-type: circle !important;
}
.tbs-timeline-plugin .tbs-card-text ol {
  list-style: decimal !important;
  list-style-type: decimal !important;
}
.tbs-timeline-plugin .tbs-card-text ol li {
  list-style: decimal !important;
  list-style-type: decimal !important;
  color: #555555 !important;
  margin-bottom: 6px !important;
  padding-left: 4px !important;
}
.tbs-timeline-plugin .tbs-card-text li::marker {
  color: #c57f3b !important;
  font-weight: 700 !important;
}
.tbs-timeline-plugin .tbs-card-text strong {
  color: #000000 !important;
  font-weight: 700;
}
.tbs-timeline-plugin .tbs-card-text a {
  color: #c57f3b !important;
}
.tbs-timeline-plugin .tbs-card-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.tbs-timeline-plugin .tbs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.tbs-timeline-plugin .tbs-btn:active {
  transform: scale(0.96);
}
.tbs-timeline-plugin .tbs-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.tbs-timeline-plugin .tbs-btn-prev {
  background: #f5ede0;
  color: #aaaaaa;
}
.tbs-timeline-plugin .tbs-btn-prev:hover {
  background: #e8ddd0;
  color: #555555;
}
.tbs-timeline-plugin .tbs-btn-next {
  background: #c57f3b;
  color: #fff;
}
.tbs-timeline-plugin .tbs-btn-next:hover {
  background: #a56830;
}
.tbs-timeline-plugin .tbs-step-counter {
  margin-left: auto;
  font-size: 0.78rem;
  color: #aaaaaa;
  font-variant-numeric: tabular-nums;
}
.tbs-timeline-plugin .tbs-timeline-rail {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  position: relative;
}
.tbs-timeline-plugin .tbs-timeline-rail::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e8ddd0;
  transform: translateY(-50%);
  z-index: 0;
}
.tbs-timeline-plugin .tbs-timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, #c57f3b, #d4964f);
  transform: translateY(-50%);
  z-index: 1;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tbs-timeline-plugin .tbs-step-dot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.tbs-timeline-plugin .tbs-step-dot.done .tbs-dot-circle {
  background: #fff;
  border-color: #c57f3b;
  color: #c57f3b;
}
.tbs-timeline-plugin .tbs-step-dot.active .tbs-dot-circle {
  width: 44px;
  height: 44px;
  background: #c57f3b;
  border-color: #a56830;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(197, 127, 59, 0.15), 0 0 20px rgba(197, 127, 59, 0.25);
  font-size: 0.88rem;
}
.tbs-timeline-plugin .tbs-step-dot.active .tbs-dot-label {
  color: #c57f3b;
  font-weight: 600;
}
.tbs-timeline-plugin .tbs-step-dot.done .tbs-dot-label {
  color: #c57f3b;
}
.tbs-timeline-plugin .tbs-dot-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 2px solid #e8ddd0;
  background: #ffffff;
  color: #aaaaaa;
  transition: all 0.25s;
}
.tbs-timeline-plugin .tbs-dot-label {
  margin-top: 8px;
  font-size: 0.68rem;
  color: #aaaaaa;
  white-space: nowrap;
  max-width: 70px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
.tbs-timeline-plugin .tbs-dot-spacer {
  flex: 1;
  z-index: 1;
}
@media (max-width: 991px) {
  .tbs-timeline-plugin {
    padding: 40px 0;
  }
  .tbs-timeline-plugin .tbs-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tbs-timeline-plugin .tbs-card-media {
    height: 350px;
  }
  .tbs-timeline-plugin .tbs-card-content {
    padding: 20px 20px;
    gap: 10px;
  }
  .tbs-timeline-plugin .tbs-card-title {
    font-size: 1.15rem;
  }
  .tbs-timeline-plugin .tbs-step-label {
    letter-spacing: 0.06em;
    font-size: 0.68rem;
  }
  .tbs-timeline-plugin .tbs-card-nav {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
  }
  .tbs-timeline-plugin .tbs-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
  }
  .tbs-timeline-plugin .tbs-step-counter {
    width: 100%;
    margin-left: 0;
    text-align: center;
    order: -1;
  }
  .tbs-timeline-plugin .tbs-dot-label {
    display: none;
  }
  .tbs-timeline-plugin .tbs-dot-circle {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .tbs-timeline-plugin .tbs-step-dot.active .tbs-dot-circle {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    box-shadow: 0 0 0 4px rgba(197, 127, 59, 0.15);
  }
}
