.elementor-9342 .elementor-element.elementor-element-c097ba2{--display:flex;}.elementor-9342 .elementor-element.elementor-element-f02bc64{--spacer-size:60px;}.elementor-9342 .elementor-element.elementor-element-361004b{--spacer-size:60px;}.elementor-9342 .elementor-element.elementor-element-cc797b2:not(.elementor-motion-effects-element-type-background), .elementor-9342 .elementor-element.elementor-element-cc797b2 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F8FAFC;}.elementor-9342 .elementor-element.elementor-element-cc797b2{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-9342 .elementor-element.elementor-element-cc797b2 > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-9342 .elementor-element.elementor-element-8c42145{--spacer-size:60px;}.elementor-9342 .elementor-element.elementor-element-0cdff88 > .elementor-widget-container{margin:0px 0px 20px 0px;}.elementor-9342 .elementor-element.elementor-element-4cffec2 .gallery-item img{border-radius:5px 5px 5px 5px;}.elementor-9342 .elementor-element.elementor-element-4cffec2 .gallery-item .gallery-caption{text-align:center;}body.elementor-page-9342 #featured-title{background-image:url("https://dztps.si/wp-content/uploads/2025/03/dztps_predlogi9.png");background-position:bottom center;}body.elementor-page-9342 #page #main-content{padding-top:0px;padding-bottom:0px;}@media(max-width:1024px){.elementor-9342 .elementor-element.elementor-element-f02bc64{--spacer-size:100px;}.elementor-9342 .elementor-element.elementor-element-361004b{--spacer-size:100px;}.elementor-9342 .elementor-element.elementor-element-8c42145{--spacer-size:100px;}}@media(max-width:767px){.elementor-9342 .elementor-element.elementor-element-f02bc64{--spacer-size:80px;}.elementor-9342 .elementor-element.elementor-element-361004b{--spacer-size:80px;}.elementor-9342 .elementor-element.elementor-element-8c42145{--spacer-size:80px;}}/* Start custom CSS */.custom-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%; /* Full width */
  margin: 0 auto;
  padding: 20px 10px;
}

.custom-timeline:before {
  content: '';
  position: absolute;
  left: 50%; /* Center the vertical line */
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 150px); /* Adjust line height */
  background: #2d285a; /* Vertical line color */
  z-index: 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px); /* Lift content on hover */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.timeline-item:hover .timeline-date {
  transform: translateX(-50%) translateY(-10px); /* Lift the year box */
}

.timeline-content {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 1px;
    padding: 15px;
    position: relative;
    flex-grow: 1;
    width: 100%;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content h3 {
  margin-top: 0;
  color: #2d285a;
  font-size: 1.9rem; /* Increased font size */
}

.timeline-content p {
  margin: 5px 0 0;
  color: #666;
}

.timeline-content img {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 8px;
  background-color: #fff;
}

.timeline-date {
    width: 100px;
    padding: 7px 15px;
    text-align: center;
    background: #2d285a;
    color: #fff;
    font-weight: bold;
    border-radius: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    font-size: 1.9rem;
}

@media screen and (min-width: 1025px) {
  /* Desktop-specific layout */
  .timeline-item {
    flex-direction: row; /* Side-by-side layout */
    align-items: flex-start;
  }

  .timeline-content {
    max-width: calc(45% - 20px); /* Less than half the page width */
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto; /* Align to the left */
    text-align: right; /* Align text to the right for left-side boxes */
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto; /* Align to the right */
    margin-right: 0;
    text-align: left; /* Align text to the left for right-side boxes */
  }
}

@media screen and (max-width: 1024px) {
  /* Tablet and mobile layout */
  .custom-timeline:before {
    left: 50%; /* Center the line */
    transform: translateX(-50%);
    height: calc(100% - 80px); /* Adjust line height for smaller screens */
  }

  .timeline-item {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start;
  }

  .timeline-content {
    width: 100%; /* Full width for tablets */
    margin: 0;
    text-align: left; /* Reset text alignment */
  }

  .timeline-date {
    position: relative; /* Remove absolute positioning */
    left: 50%;
    transform: translateX(-50%); /* Always center the year box */
    margin-bottom: 10px; /* Add spacing below the year box */
  }
}

.timeline-date {

    font-size: 2rem;
}
.timeline-content p {
    margin: 5px 0 0;
    color: #666;
    font-size: 18px;
}
.timeline-content h3 {
    margin-top: 0;
    color: #2d285a;
    font-size: 2rem;
    font-weight: 600;
}/* End custom CSS */