.ct-timeline {
  position: relative;
  margin: 40px auto;
  max-width: 700px;
}
.ct-timeline-point {
  margin-bottom: 56px;
}
.ct-timeline-flex {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.ct-timeline-axis {
  position: relative;
  width: 48px;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.ct-timeline-axis:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #4a3a2a;
  border-radius: 3.5px;
  transform: translateX(-50%);
  z-index: 1;
}
.ct-timeline-point.first .ct-timeline-axis:before {
  top: 50%;
  bottom: 0;
}
.ct-timeline-point.last .ct-timeline-axis:before {
  top: 0;
  bottom: 70%;
}
.ct-timeline-circle {
  width: 32px;
  height: 32px;
  background: #F1F0DE;
  border: 5px solid #4a3a2a;
  border-radius: 50%;
  z-index: 2;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  box-sizing: border-box;
}
.ct-timeline-content {
  flex: 1;
  min-width: 0;
  padding-left: 55px;
}
.ct-timeline-title {
  background: none;
  color: #4a3a2a;
  font-weight: 600 !important;
  font-size: 1.2rem;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.2em 0.2em 0.2em 0.2em;
  margin-left: 0;
  margin-bottom: 0.2em;
  text-align: left;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.2s;
  text-decoration: underline;
  display: inline-block;
  position: relative;
  z-index: 3;
  vertical-align: top;
}
.ct-timeline-title:hover, .ct-timeline-title:focus {
  color: #2d2217;
}
.ct-timeline-bullets {
  margin-left: 0;
  margin-top: -20px;
  color: #232323;
  font-size: 1.05rem;
  padding-left: 0;
}
.ct-timeline-line {
  position: absolute;
  left: 50%;
  width: 5px;
  background: #4a3a2a;
  transform: translateX(-50%);
  z-index: 1;
  /* Výška a top nastaví JS */
  border-radius: 3.5px;
}
.ct-timeline-content .ct-timeline-popup-content {
  display: none !important;
}
.ct-timeline-popup-overlay {
  margin-block-start: 0 !important;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  text-align: center;
}
.ct-timeline-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 700px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 3em 4em 4em 4em;
  position: relative;
  margin: auto;
  display: block;
  background-image: url('http://surgitecaput.local/wp-content/uploads/2025/07/back-patern.jpg');
}
.ct-timeline-popup-close {
  position: absolute;
  top: 48px;
  right: 48px;
  left: auto;
  background: none;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 3em;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: none;
  padding: 0;
}
.ct-timeline-popup-close:hover {
  background: none;
  color: inherit;
  padding: 0;
}
.ct-timeline-popup-close:focus,
.ct-timeline-popup-close:active {
  outline: none;
  box-shadow: none;
  background: none;
}
.ct-timeline-point:hover .ct-timeline-circle {
  background: #7a5d3c;
 
  transition: background 0.2s, border-color 0.2s;
}
.ct-timeline-point:hover {
  cursor: pointer;
}
.ct-timeline-point:hover .ct-timeline-title {
  color: #7a5d3c;
  transition: color 0.2s;
}
@media (max-width: 700px) {
  .ct-timeline {
    max-width: 98vw;
  }
  .ct-timeline-content {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
  }
  .ct-timeline-axis {
    width: 32px;
    min-width: 32px;
  }
  .ct-timeline-circle {
    width: 24px;
    height: 24px;
    border-width: 5px;
  }
  .ct-timeline-content {
    padding-left: 8px;
  }
  .ct-timeline-popup {
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
  }
  .ct-timeline-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 64px;
    height: 64px;
    font-size: 3em;
    padding: 0;
    margin: 0;
    z-index: 10;
    background: none;
  }
  .ct-timeline-popup-title {
    margin-top: 2.5em;
    padding-top: 0;
  }
  .ct-timeline-popup > * {
    padding-left: 10px;
    padding-right: 10px;
  }
} 