.hero-section {
  height: 100vh;
}

.hero-mid {
  width: 95%;
  /* background: url(../images/detalji-objekta.png); */
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10vh;
}

.hero-mid h1{
  font-size: 40px;
}
.hero-mid h1,
.hero-mid h5 {
  color: #fff;
  margin: 0;
  font-weight: 500;
  letter-spacing: 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-mid h5 {
  font-weight: 400;
}
.detalji-main {
  padding: 3% 5%;
  display: flex;
  justify-content: space-between;
  gap: 5vw;
}

.detalji-main-left {
  width: 40%;
}
.detalji-main-right {
  width: 60%;
}

.detalji-main-left span {
  position: relative;
  padding-left: 60px;
  text-transform: uppercase;
}
.detalji-main-left span::before {
  content: url("../images/horizontal.png");
  position: absolute;
  top: 25%;
  margin-left: -50px;
  transform: translateY(-50%);
}

.detalji-main-left h2 {
  font-size: 45px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 8px;
}

.detalji-main-left p {
  font-size: 20px;
  margin: 3vh 0;
  font-weight: 500;
  letter-spacing: 2px;
}

@media (max-width: 1600px) {
  .detalji-main-left h2 {
    font-size: 40px;
  }

  .detalji-main-left p {
    font-size: 18px;
  }
}
@media (max-width: 1400px) {
  .detalji-main-left h2 {
    font-size: 36px;
  }

  .detalji-main-left p {
    font-size: 16px;
  }
}
@media (max-width: 1200px) {
  .detalji-main-left h2 {
    font-size: 34px;
  }

  .detalji-main-left p {
    font-size: 14px;
  }
}

.image-set {
  display: none; /* Hide all image sets initially */
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px; /* Space between images */
}
.image-set.active {
  display: grid; /* Only show the active set */
}
.image-set img {
  width: 100%;
  min-height: 30vh;
  height: 35vh;
  max-height: 50vh; /* Maintain aspect ratio */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional styling */
}
#controls {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-top: 20px;
}
.button {
  margin-top: 20px;
  padding: 10px;
  border: none;
  position: relative;
  background: none;
  color: #222;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: 14px;
  letter-spacing: 4px;
}
.button.active {
  transform: translateY(14px);
}

.button::before {
  content: "";
  display: block;
  background: black;
  width: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  height: 20px; /* Short height for inactive */
  transition: height 0.3s ease;
}
.button.active::before {
  height: 40px; /* Taller height when active */
}

.numb-section {
  padding: 2% 5%;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    /* Dark overlay */ url(../images/numbs.png); /* Original background image */
  background-position: center;
  background-size: cover; /* Ensures background image covers the section */
}

.numb-section h5,
.numb-section h2 {
  margin: 0;
  font-weight: 500;
}
.numb-section h2 {
  font-size: 50px;
}

@media (max-width: 1600px) {
  .numb-section h2 {
    font-size: 45px;
  }
}
@media (max-width: 1400px) {
  .numb-section h2 {
    font-size: 40px;
  }
}
@media (max-width: 1200px) {
  .numb-section h2 {
    font-size: 36px;
  }
}

.hba-counter-section {
  display: flex;
  color: #fff;
  padding: 3% 10%;
  text-align: center;
}

.counter-single {
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-single a {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 8px;
  margin: 0;
  position: relative;
}

.counter-single a::after {
  content: ""; /* Required for the pseudo-element to be displayed */
  display: block;
  width: 90%; /* Set the width of the underline */
  height: 1px; /* Set the height of the underline */
  background-color: #fff; /* Set the color of the underline */
  position: absolute;
  bottom: -5px; /* Position it just below the text */
  left: 50%; /* Start from the middle */
  transform: translateX(-50%); /* Center it horizontally */
}

.counter-single h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 8px;
  margin: 10px 0;
  text-transform: uppercase;
}

@media (max-width: 1600px) {
  .counter-single a {
    font-size: 55px;
  }

  .counter-single h3 {
    font-size: 28px;
  }
}
@media (max-width: 1400px) {
  .counter-single a {
    font-size: 50px;
  }

  .counter-single h3 {
    font-size: 26px;
  }
}
@media (max-width: 1200px) {
  .counter-single a {
    font-size: 45px;
  }

  .counter-single h3 {
    font-size: 22px;
  }
}

.katalog-sekcija {
  display: flex;
  padding: 2% 5%;
}
.katalog-sekcija-right span {
  position: relative;
  padding-left: 60px;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
}
.katalog-sekcija-right a {
  font-size: 64px;
  letter-spacing: 8px;
  display: flex;
  align-items: center;
}
.katalog-sekcija-right span::before {
  content: url("../images/horizontal.png");
  position: absolute;
  top: 25%;
  margin-left: -50px;
  transform: translateY(-50%);
}

.katalog-sekcija-right h2 {
  font-size: 45px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 8px;
}

@media (max-width: 1600px) {
  .katalog-sekcija-right span {
    font-size: 22px;
  }
  .katalog-sekcija-right a {
    font-size: 55px;
  }

  .katalog-sekcija-right h2 {
    font-size: 40px;
  }
}
@media (max-width: 1400px) {
  .katalog-sekcija-right span {
    font-size: 20px;
  }
  .katalog-sekcija-right a {
    font-size: 50px;
  }

  .katalog-sekcija-right h2 {
    font-size: 36px;
  }
}
@media (max-width: 1200px) {
  .katalog-sekcija-right span {
    font-size: 18px;
  }
  .katalog-sekcija-right a {
    font-size: 45px;
  }

  .katalog-sekcija-right h2 {
    font-size: 32px;
  }
}

.katalog-sekcija-left {
  width: 60%;
}
.katalog-sekcija-left img {
  width: 80%;
  height: 70vh;
  object-fit: cover;
}
.katalog-sekcija-right {
  width: 40%;
}
.katalog-options a {
  cursor: pointer;
  text-decoration: none;
  margin: 2vh 0;
}
.katalog-sekcija-right a {
  color: #222; /* Example: red color for active state */
  opacity: 0.6;
}
.katalog-sekcija-right a:hover {
  opacity: 1;
  font-weight: bold;
}
.katalog-sekcija-right a.active {
  opacity: 1;
  font-weight: bold; /* Makes active link bold */
}
.katalog-options {
  display: flex;
  margin-top: 5vh;
  flex-direction: column;
}
.map iframe {
  width: 100%;
  height: 60vh;
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    height: 70vh;
  }

  .hero-mid {
    width: 100%;
  }

  .hero-mid h1,
  .hero-mid h5 {
    text-align: center;
    color: #fff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 8px;
  }

  .detalji-main {
    padding: 3% 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5vw;
  }

  .detalji-main-left {
    width: 100%;
  }
  .detalji-main-right {
    width: 100%;
  }

  .detalji-main-left span {
    position: relative;
    padding-left: 60px;
  }
  .detalji-main-left span::before {
    content: url("../images/horizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -50px;
    transform: translateY(-50%);
  }

  .detalji-main-left h2 {
    font-size: 45px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 8px;
  }

  .detalji-main-left p {
    font-size: 16px;
    margin: 3vh 0;
    font-weight: 500;
    letter-spacing: 2px;
  }

  .image-set {
    display: none; /* Hide all image sets initially */
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Space between images */
  }
  .image-set.active {
    display: grid; /* Only show the active set */
  }
  .image-set img {
    width: 100%;
    min-height: 20vh;
    object-fit: cover;
    object-position: center;
    height: 15vh;
    max-height: 50vh; /* Maintain aspect ratio */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional styling */
  }
  #controls {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin-top: 20px;
  }
  .button {
    margin-top: 20px;
    padding: 10px;
    border: none;
    position: relative;
    background: none;
    color: #222;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 14px;
    letter-spacing: 4px;
  }
  .button.active {
    transform: translateY(14px);
  }

  .button::before {
    content: "";
    display: block;
    background: black;
    width: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    height: 20px; /* Short height for inactive */
    transition: height 0.3s ease;
  }
  .button.active::before {
    height: 40px; /* Taller height when active */
  }

  .numb-section {
    padding: 10% 5%;

    text-align: center;
    color: #fff;
    background: url(../images/numbs.png);
    background-position: center;
  }

  .numb-section h5,
  .numb-section h2 {
    margin: 0;
    font-weight: 500;
  }
  .numb-section h2 {
    font-size: 45px;
  }

  .hba-counter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding: 3% 10%;
    text-align: center;
  }

  .counter-single {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .counter-single a {
    font-size: 45px;
    font-weight: 500;
    letter-spacing: 8px;
    margin: 0;
    position: relative;
  }

  .counter-single a::after {
    content: ""; /* Required for the pseudo-element to be displayed */
    display: block;
    width: 90%; /* Set the width of the underline */
    height: 1px; /* Set the height of the underline */
    background-color: #fff; /* Set the color of the underline */
    position: absolute;
    bottom: -5px; /* Position it just below the text */
    left: 50%; /* Start from the middle */
    transform: translateX(-50%); /* Center it horizontally */
  }

  .counter-single h3 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 8px;
    margin: 10px 0;
  }

  .katalog-sekcija {
    display: flex;
    flex-direction: column-reverse;
    padding: 5% 5%;
  }
  .katalog-sekcija-right span {
    position: relative;
    padding-left: 60px;
    font-size: 24px;
    font-weight: 500;
  }
  .katalog-sekcija-right a {
    font-size: 45px;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
  }
  .katalog-sekcija-right span::before {
    content: url("../images/horizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -50px;
    transform: translateY(-50%);
  }

  .katalog-sekcija-right h2 {
    font-size: 36px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 4px;
  }

  .katalog-sekcija-left {
    width: 100%;
  }
  .katalog-sekcija-left img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
  }
  .katalog-sekcija-right {
    width: 100%;
  }
  .katalog-options a {
    cursor: pointer;
    margin: 2vh 0;
  }
  .katalog-sekcija-right a {
    color: #222; /* Example: red color for active state */
    opacity: 0.6;
  }
  .katalog-sekcija-right a.active {
    opacity: 1;
    font-weight: bold; /* Makes active link bold */
  }
  .katalog-options {
    display: flex;
    margin-top: 1vh;
    flex-direction: column;
  }
  .map iframe {
    width: 100%;
    height: 40vh;
  }
}
@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
  }

  .hero-mid {
    width: 100%;
  }

  .hero-mid h1,
  .hero-mid h5 {
    text-align: center;
    color: #fff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 8px;
  }

  .hero-mid h1{
    font-size: 30px;
  }

  .detalji-main {
    padding: 3% 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5vw;
  }

  .detalji-main-left {
    width: 100%;
  }
  .detalji-main-right {
    width: 100%;
  }

  .detalji-main-left span {
    position: relative;
    padding-left: 60px;
  }
  .detalji-main-left span::before {
    content: url("../images/horizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -50px;
    transform: translateY(-50%);
  }

  .detalji-main-left h2 {
    font-size: 45px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 8px;
  }

  .detalji-main-left p {
    font-size: 16px;
    margin: 3vh 0;
    font-weight: 500;
    letter-spacing: 2px;
  }

  .image-set {
    display: none; /* Hide all image sets initially */
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Space between images */
  }
  .image-set.active {
    display: grid; /* Only show the active set */
  }
  .image-set img {
    width: 100%;
    min-height: 20vh;
    object-fit: cover;
    object-position: center;
    height: 15vh;
    max-height: 50vh; /* Maintain aspect ratio */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional styling */
  }
  #controls {
    display: flex;
    justify-content: center;
    gap: 0px;
    margin-top: 20px;
  }
  .button {
    margin-top: 20px;
    padding: 10px;
    border: none;
    position: relative;
    background: none;
    color: #222;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 14px;
    letter-spacing: 4px;
  }
  .button.active {
    transform: translateY(14px);
  }

  .button::before {
    content: "";
    display: block;
    background: black;
    width: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    height: 20px; /* Short height for inactive */
    transition: height 0.3s ease;
  }
  .button.active::before {
    height: 40px; /* Taller height when active */
  }

  .numb-section {
    padding: 10% 5%;

    text-align: center;
    color: #fff;
    /* background: url(../images/numbs.png); */
    background-position: center;
  }

  .numb-section h5,
  .numb-section h2 {
    margin: 0;
    font-weight: 500;
  }
  .numb-section h2 {
    font-size: 45px;
  }

  .hba-counter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding: 3% 10%;
    text-align: center;
  }

  .counter-single {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .counter-single a {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 8px;
    margin: 0;
    position: relative;
  }

  .counter-single a::after {
    content: ""; /* Required for the pseudo-element to be displayed */
    display: block;
    width: 90%; /* Set the width of the underline */
    height: 1px; /* Set the height of the underline */
    background-color: #fff; /* Set the color of the underline */
    position: absolute;
    bottom: -5px; /* Position it just below the text */
    left: 50%; /* Start from the middle */
    transform: translateX(-50%); /* Center it horizontally */
  }

  .counter-single h3 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 8px;
    margin: 10px 0;
  }

  .katalog-sekcija {
    display: flex;
    flex-direction: column-reverse;
    padding: 5% 5%;
  }
  .katalog-sekcija-right span {
    position: relative;
    padding-left: 60px;
    font-size: 24px;
    font-weight: 500;
  }
  .katalog-sekcija-right a {
    font-size: 40px;
    letter-spacing: 8px;
    display: flex;
    align-items: center;
  }
  .katalog-sekcija-right span::before {
    content: url("../images/horizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -50px;
    transform: translateY(-50%);
  }

  .katalog-sekcija-right h2 {
    font-size: 32px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 4px;
  }

  .katalog-sekcija-left {
    width: 100%;
  }
  .katalog-sekcija-left img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
  }
  .katalog-sekcija-right {
    width: 100%;
  }
  .katalog-options a {
    cursor: pointer;
    margin: 2vh 0;
  }
  .katalog-sekcija-right a {
    color: #222; /* Example: red color for active state */
    opacity: 0.6;
  }
  .katalog-sekcija-right a.active {
    opacity: 1;
    font-weight: bold; /* Makes active link bold */
  }
  .katalog-options {
    display: flex;
    margin-top: 1vh;
    flex-direction: column;
  }
  .map iframe {
    width: 100%;
    height: 40vh;
  }
}

.timeline-event-overlay{
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  z-index: 0;
}


@media only screen and (max-width: 768px){
  .timeline-event-overlay{
    height: 70vh;
  }
}