*{
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Orbitron', sans-serif;
  
}

.logo-blog{
    height: 80px;
}

.nav-for-blog{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
}

.blog-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: start;
  margin-left: 24px;
}

.blog-card {
  width: 600px;
  background: #111;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 15px #4374BA;
  overflow-x: hidden;
}

.blog-card img {
  width: 100%;
  border-radius: 12px;
}

.blog-card h2 {
  margin-top: 10px;
  font-size: 20px;
  color: whitesmoke;
}

.blog-card p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
  height: 63px; /* oko 3 linije teksta */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;     /* broj linija */
  -webkit-box-orient: vertical;
}


.blog-card a {
  color: #4374BA;
  text-decoration: none;
  font-weight: bold;
}

.blog-card small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.blog-title{
    margin-top: 20px;
    margin-bottom: 30px;
    border-bottom: solid black;
    padding-bottom: 8px;
    color: rgb(0, 0, 0);
    width: 12%;
    margin-left: 20px;
}

#vanta-bg2 {
  position: fixed; /* fiksirano uz prozor */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: -1;
  filter: blur(6px);
  pointer-events: none; /* da ne blokira klikove */
}


.p-blog{
    color: rgb(198, 197, 197);
}

.back-button {
  background-color: #4374BA;         /* jedna boja */
  color: #0a0a0a;                    /* tekst kontrastan */
  padding: 12px 24px;
  border: none;
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 10px #00ffff40, 0 0 30px #00ffff30;
  transition: 0.3s ease all;
  z-index: 999;
  height: fit-content;
  position: absolute;
  right: 24px;
}

.back-button:hover {
  box-shadow: 0 0 15px #00ffff, 0 0 40px #00ffff;
  transform: scale(1.05);
}

@media (max-width: 767px){
  .blog-wrapper{
    padding: 24px;
    margin: 0;
  }

  .nav-for-blog{
    justify-content: start;
    margin-left: 12px;
  }

  .blog-title{
    margin-left: 34px;
    margin-bottom: 14px;
  }
}

@media (min-width: 1020px) and (max-width: 1286px) {
  .blog-card {
    width: 430px;
  }
}

@media (min-width: 768px) and (max-width: 1019px) {
  .blog-card {
    width: 330px;
  }
}

