* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  margin-top: 80px;
  background-image: url(./img/crno\ belo.jpg);
  background-repeat: no-repeat;
  background-position: 81.84% 50%;
  background-size: cover;
  background-attachment: fixed;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ruk {
  width: 100%;
  height: 4000px;
  background-color: white;
  margin-top: 800px;
  z-index: 1;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 45px;
  text-align: center;
}

.logo {
  height: 50px;
}

.navbar {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed; /* Makes the navbar fixed on the screen */
  top: 0; /* Positions it at the top */
  left: 0; /* Aligns it to the left */
  width: 100%; /* Spans the full width of the screen */
  background-color: white; /* Ensures a white background */
  z-index: 1000; /* Keeps it above other elements */
  border-bottom: 1px solid #ccc; /* Optional: Adds a bottom border */
  padding: 10px 20px; /* Adjust padding as needed */
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
}

.nav-links li a {
  text-decoration: none;
  color: #636363;
  font-size: 14px;
  padding: 5px 10px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-links li a:hover {
  color: red;
}

.nav-links li a.active {
  color: white;
  background-color: red;
  border-radius: 5px;
}

.search-container {
  position: relative;
}

.search-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
  outline: none;
}

.search-bar {
  display: none;
  width: 200px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.search-bar.active {
  display: inline-block;
  transition: width 0.3s ease;
}

main {
  text-align: center;
  margin: 50px 20px;
  position: relative;
  padding-top: 100px;
}

.logo-section {
  margin-top: 20px;
  position: relative;
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: white;
  line-height: 1.5;
}

.english-title {
  display: block;
  font-size: 20px;
  color: #ffcc00;
  margin-bottom: 5px;
}

.main-title {
  font-size: 40px;
  color: white;
}

footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  overflow: hidden;
}

.insta {
  width: 25px;
  height: 25px;
  border-radius: 50px;
}

.insta:hover {
  background-color: red;
}

.so {
  font-family: 'Times New Roman', Times, serif;
  color: crimson;
  font-size: 32px;
}

.org {
  display: inline-block; /* Make sure images are inline */
  margin: 10px; /* Add space between images */
  text-align: center; /* Center the images */
}

.sot {
  font-family: 'Times New Roman', Times, serif;
  color: crimson;
  font-size: 16px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* Add some space between the items */
  padding: 0;
  width: 100%;
  justify-items: center; /* Center the items within each grid cell */
  align-items: center; /* Align the items vertically in the grid */
}

.skolija {
  display: flex; /* Use flexbox to ensure images and text are aligned */
  flex-direction: column; /* Stack the image and text vertically */
  justify-content: center;
  align-items: center; /* Center the content horizontally */
  width: 100%; /* Ensure each item takes up full width available */
}

.shko {
  width: 320px; /* Make sure the images are fixed width */
  height: 320px;
  object-fit: cover; /* Ensure images fit properly */
}

.shtip {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  color: gray;
  font-size: 25px;
  text-decoration: none;
  margin-top: 10px; /* Add some space between the image and the text */
  margin-bottom: 150px;
}

a {
  text-decoration: none;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
  /* Adjust header layout */
  header {
    flex-direction: column;
    padding: 10px;
  }

  .logo {
    height: 30px;
  }

  /* Stack navigation links vertically */
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .main-title {
    font-size: 30px;
  }

  .title {
    font-size: 26px;
  }

  .ruk {
    font-size: 35px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    gap: 10px;
  }

  .shko {
    width: 200px; /* Smaller images on mobile */
    height: 200px;
  }

  .search-bar {
    width: 100%;
  }

  footer {
    padding: 15px;
  }

  .insta {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 480px) {
  .main-title {
    font-size: 24px;
  }

  .title {
    font-size: 22px;
  }

  .ruk {
    font-size: 28px;
  }

  .logo {
    height: 25px;
  }

  .nav-links {
    gap: 10px;
  }

  .search-bar {
    width: 100%;
  }

  footer p {
    font-size: 12px;
  }
}
