.blog-title {
  text-align: center;
  font-size: 26px;
  margin: 30px 0;
  text-transform: uppercase;
  color: #2c2c2c;
}

.archive-loop-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.archive-loop-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.post-preview {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.post-preview-image img {
  width: auto;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

.post-preview-copy-wrap {
  flex: 1;
  position: relative;
}

.post-preview-date {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4c4c7e; /* your accent color */
  color: #fff;
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
  padding: 10px 0;
  position: absolute;
  top: 0;
  left: -80px;
}

.post-preview-date .post-date-day {
  font-size: 20px;
  display: block;
}

.post-preview-date .post-date-month {
  font-size: 12px;
  text-transform: lowercase;
}

.post-preview-title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #000;
}

.post-preview-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.post-preview-meta-wrap {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px 15px;
  padding: 8px 12px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .page-numbers.current {
  background: #4c4c7e;
  color: #fff;
}

.pagination .next, .pagination .prev {
  background: #eee;
  color: #555;
}

.pagination .next:hover, .pagination .prev:hover {
  background: #4c4c7e;
  color: #fff;
}

.page-numbers:hover {
  background: #4c4c7e;
  color: #fff;
}

/* ========================
   Responsive Design
   ======================== */

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .blog-title {
    font-size: 24px;
    margin: 25px 0;
  }
  
  .post-preview {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .post-preview-image img {
    width: 100%;
    height: 200px;
    max-width: 400px;
  }
  
  .post-preview-date {
    position: static;
    margin: 0 auto 15px;
  }
  
  .post-preview-title {
    font-size: 18px;
  }
  
  .post-preview-text {
    font-size: 14px;
  }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
  .blog-title {
    font-size: 22px;
    margin: 20px 0;
  }
  
  .archive-loop-wrap {
    gap: 20px;
  }
  
  .post-preview {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .post-preview-image img {
    width: 100%;
    height: 180px;
    max-width: 100%;
  }
  
  .post-preview-date {
    position: static;
    margin: 0 auto 12px;
    width: 50px;
    height: 50px;
  }
  
  .post-preview-date .post-date-day {
    font-size: 18px;
  }
  
  .post-preview-date .post-date-month {
    font-size: 11px;
  }
  
  .post-preview-title {
    font-size: 16px;
    margin: 0 0 8px;
  }
  
  .post-preview-text {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .post-preview-meta-wrap {
    font-size: 11px;
  }
  
  .pagination {
    margin-top: 20px;
  }
  
  .pagination .page-numbers {
    padding: 6px 10px;
    font-size: 12px;
    margin: 0 2px;
  }
}
/* IZGLED ZA PRETRAGU */
.blog-title-row{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.blog-title-row .blog-title{
  margin: 0;
  text-align: center;
}

.blog-title-row .news-search-btn{
  position: absolute;
  right: 0;
}

.news-search-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
}

.news-search-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

.news-search-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}

.news-search-panel{
  position:relative;
  max-width:720px;
  margin:10vh auto 0 auto;
  background:#fff;
  border-radius:16px;
  padding:16px;
  z-index:1;
}

.news-search-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.news-search-close{
  border:0;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.news-search-form{
  display:flex;
  gap:10px;
}

.news-search-form input{
  flex:1;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,0.15);
  border-radius:10px;
}

.news-search-form button{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.15);
  background:#fff;
  cursor:pointer;
}
/* --- News search modal (lightbox) --- */
.news-search-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.18);
  background:#fff;
  cursor:pointer;
}

.news-search-modal[hidden]{ display:none !important; }

.news-search-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}

.news-search-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}

.news-search-panel{
  position:relative;
  width:min(720px, calc(100% - 24px));
  margin:10vh auto 0;
  background:#fff;
  border-radius:16px;
  padding:16px;
  z-index:1;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.news-search-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.news-search-close{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.18);
  background:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.news-search-form{
  display:flex;
  gap:10px;
}

.news-search-form input{
  flex:1;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,0.18);
  border-radius:10px;
  outline:none;
}

.news-search-form button{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.18);
  background:#fff;
  cursor:pointer;
}
.news-suggest{
  margin-top:10px;
}

.news-suggest-list{
  border:1px solid rgba(0,0,0,0.12);
  border-radius:12px;
  overflow:hidden;
}

.news-suggest-item{
  display:block;
  padding:10px 12px;
  text-decoration:none;
  color:#222;
  border-top:1px solid rgba(0,0,0,0.08);
}

.news-suggest-item:first-child{
  border-top:none;
}

.news-suggest-item:hover{
  background:rgba(0,0,0,0.04);
}

.news-suggest-empty{
  padding:10px 12px;
  color:#666;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:12px;
}
