/* Filter dugmad */
#acf-filters {
  display: inline-flex;
  gap: 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 15px;
}

.acf-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 5px;
  color: #000;
  font-weight: 300;
  font-size: 15px;
  transition: all 0.3s ease;
}

.acf-btn:hover {
  text-decoration: underline;
}

.acf-btn.active {
  background: #2c333d;
  color: #fff;
  border-radius: 5px;
  padding: 5px 15px;
}

/* Grid raspored za postove */
#acf-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#acf-posts .acf-post {
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}

/* Featured image full width */
#acf-posts .acf-post .acf-thumb img {
  width: 100%;
  height: 280px;  
  object-fit: contain; 
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
  background-color: #ffffff; /* bela pozadina iza slike */
}


/* Naslov */
#acf-posts .acf-post h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 30px;
  margin: 10px 0;
}

/* Excerpt */
#acf-posts .acf-post p {
  margin: 10px 0;
}

/* Link "Pročitaj više" u sledećem redu */
#acf-posts .acf-post p a {
  display: block;          /* novi red */
  margin-top: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  color: #2c333d;
}

#acf-posts .acf-post p a:hover {
  text-decoration: underline;
}

/* Paginacija */
.acf-pagination {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.acf-page-btn {
  background: #f0f0f0;
  border: none;
  margin: 0 3px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.3s ease;
}

.acf-page-btn:hover {
  background: #2c333d;
  color: #fff;
}

.acf-page-btn.active {
  background: #2c333d;
  color: #fff;
  font-weight: 500;
}

/* Prethodna / Sledeća dugmad */
.acf-page-btn.prev,
.acf-page-btn.next {
  font-weight: 500;
  background: #ddd;
}

.acf-page-btn.prev:hover,
.acf-page-btn.next:hover {
  background: #2c333d;
  color: #fff;
}

.acf-categories {
    margin-bottom: 8px; /* razmak ispod kategorija */
}

.acf-categories .acf-cat {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    text-transform: uppercase; /* velika slova */
    text-decoration: underline; /* podvučen tekst */
    text-underline-offset: 3px; /* razmak između crte i slova */
    margin-right: 10px; /* razmak između kategorija */
    font-size: 14px;
    color: #333; /* boja teksta, možeš menjati po želji */
}


/* Responsive za tablete */
@media (max-width: 1024px) {
  #acf-filters {
    font-size: 14px;
    padding: 10px;
  }
  .acf-btn {
    padding: 5px 10px;
  }
  #acf-posts {
    grid-template-columns: 1fr;
  }
}

/* Responsive za telefone */
@media (max-width: 768px) {
  #acf-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .acf-btn {
    width: 100%;
    text-align: left;
  }
  #acf-posts {
    grid-template-columns: 1fr;
  }
  .acf-page-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}