/* =====================================================================
   Grad Benkovac – moderniji prikaz popisa: novosti i obavijesti (11/2026)
   Samo izgled (CSS). Povratak na staro: ukloni <link> na ovu datoteku.
   Stranice: novosti/novosti-iz-gradske-uprave.html, novosti/obavijesti.html
   ===================================================================== */

:root {
  --lm-navy: #1F406D;
  --lm-sky: #009be9;
  --lm-amber: #f1a008;
  --lm-red: #c70606;
  --lm-text: #2a3647;
  --lm-muted: #6b7a90;
  --lm-line: #e7ecf3;
  --lm-bg: #f6f8fb;
  --lm-radius: 16px;
  --lm-shadow: 0 1px 2px rgba(20,41,69,.05), 0 6px 20px rgba(20,41,69,.06);
  --lm-shadow-hover: 0 4px 10px rgba(20,41,69,.08), 0 18px 40px rgba(20,41,69,.14);
}

news-list, notices-list { display: block; background: var(--lm-bg); }
news-list > section > .container,
notices-list > section > .container { padding-top: 40px !important; padding-bottom: 50px !important; }

/* ---------------------------------------------------------------------
   NOVOSTI – kartice kao na početnoj stranici
   --------------------------------------------------------------------- */
/* Np direktiva dijeli tekst u <span>-ove; poništi "jedan red s tri točke" */
news-list .news-title a span,
news-list .news-content span {
  display: inline !important; width: auto !important; overflow: visible !important;
  white-space: normal !important; text-overflow: clip !important;
}

news-list .flex-pane { display: flex; flex-wrap: wrap; align-content: flex-start; }
news-list .flex-pane > [class*="col-"] { display: flex; margin-bottom: 26px !important; }

news-list .news-article.post {
  display: flex !important; flex-direction: column; width: 100%; margin: 0 !important;
  background: #fff !important; border: 1px solid var(--lm-line) !important; border-radius: 14px !important;
  box-shadow: var(--lm-shadow); overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
news-list .news-article.post:hover { transform: translateY(-3px); box-shadow: var(--lm-shadow-hover); }

/* slika 16:10 */
news-list .news-article .entry-header { position: relative; margin: 0; overflow: visible !important; }
news-list .news-article .post-thumb.thumb {
  position: relative; overflow: hidden; display: block; aspect-ratio: 16 / 10; min-height: 0;
  background: var(--lm-bg);
}
news-list .news-article .post-thumb.thumb[style*="height"] { aspect-ratio: auto; height: 70px !important; }
news-list .news-article .post-thumb img.news-img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover !important; transition: transform .5s ease;
}
news-list .news-article:hover .post-thumb img.news-img { transform: scale(1.04); }

/* kategorije – sitne pilule u dnu slike */
news-list .news-article .news-categories {
  position: absolute !important; left: 12px; right: 12px; bottom: 10px; top: auto;
  height: auto !important; padding: 0 !important; background: transparent !important; display: flex; flex-wrap: wrap; gap: 5px; z-index: 3;
}
news-list .news-article .news-categories > span { margin: 0 !important; display: contents; }
news-list .news-article .news-categories > span > span {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase;
  background: rgba(31,64,109,.88); color: #fff; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
news-list .news-article .news-categories > span > span::after { content: none; }

/* datum – mala oznaka ispod slike (kao na početnoj) */
news-list .news-article .entry-header .entry-date,
news-list .news-article:hover .entry-header .entry-date {
  position: absolute !important; left: 18px !important; right: auto !important; top: 100% !important; bottom: auto !important;
  transform: none !important; transition: none !important; float: none !important;
  margin: 14px 0 0 !important; padding: 3px 10px !important; width: auto; max-width: calc(100% - 36px);
  background: rgba(0,155,233,.08) !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
  z-index: 2;
}
news-list .news-article .entry-date ul { margin: 0; padding: 0; list-style: none; }
news-list .news-article .entry-date li:first-child { display: none; }
news-list .news-article .entry-date li:last-child {
  display: block; margin: 0; padding: 0; color: var(--lm-navy) !important; font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0; text-transform: none !important; line-height: 1.5; white-space: nowrap;
}
news-list .news-article .entry-date li:last-child::before {
  content: "\f073"; font-family: FontAwesome; font-weight: normal; color: var(--lm-sky); margin-right: 6px;
}

/* tekst */
news-list .news-article .entry-content.news-entry-content {
  display: flex; flex-direction: column; flex: 1 1 auto; position: static;
  padding: 54px 18px 18px !important; border: 0 !important; /* 54px = mjesto za oznaku datuma */
}
news-list .news-article .entry-meta { margin: 0 !important; padding: 0 !important; }
news-list .news-article .entry-meta .media-body, news-list .news-article .event-content { padding: 0 !important; float: none !important; width: 100%; display: block; }
news-list .news-article h4.news-title {
  margin: 0 0 8px !important; height: auto !important; line-height: 1.35 !important;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif !important; letter-spacing: 0 !important;
}
news-list .news-article h4.news-title a {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  color: var(--lm-navy) !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.35;
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif !important; letter-spacing: .1px; transition: color .15s ease;
}
news-list .news-article:hover h4.news-title a { color: var(--lm-sky) !important; }
news-list .news-article .event-content > span {
  display: block; margin: 0 0 8px !important; font-size: 12px !important; color: var(--lm-muted) !important;
}
news-list .news-article .event-content > span i { color: var(--lm-sky) !important; }
news-list .news-article p.news-content {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 4 !important; overflow: hidden;
  height: auto !important; margin: 0 0 16px !important; color: var(--lm-muted); font-size: 14px; line-height: 1.55; flex: 1 1 auto;
}
news-list .news-article a.news-button.btn {
  position: static !important; align-self: flex-end; margin: auto 0 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto;
  color: var(--lm-sky) !important; font-size: 13.5px !important; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 0;
}
news-list .news-article a.news-button.btn::after {
  content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .2s ease;
}
news-list .news-article:hover a.news-button.btn::after { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   OBAVIJESTI – popis
   --------------------------------------------------------------------- */
notices-list .blog-posts .row.list-dashed { margin: 0; }
notices-list article.post {
  position: relative; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important;
  background: #fff; border-radius: var(--lm-radius); box-shadow: var(--lm-shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
notices-list article.post::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lm-amber);
  transition: width .2s ease, background .2s ease;
}
notices-list article.post:hover { transform: translateY(-3px); box-shadow: var(--lm-shadow-hover); }
notices-list article.post:hover::before { width: 6px; background: var(--lm-sky); }

notices-list article.post .entry-content.border-1px {
  border: 0 !important; padding: 22px 26px 24px 30px !important;
}
notices-list article.post .entry-meta.media { display: flex; align-items: flex-start; gap: 20px; margin: 0 !important; padding: 0 !important; }
notices-list article.post .entry-date {
  flex: 0 0 66px; width: 66px; float: none !important; margin: 0 !important; padding: 10px 0 9px !important;
  border: 0 !important; border-radius: 14px; /* pozadina ostaje jantarna (inline stil u predlošku) */
  box-shadow: 0 6px 14px rgba(241,160,8,.35);
}
notices-list article.post .entry-date::before, notices-list article.post .entry-date::after { content: none !important; display: none !important; }
notices-list article.post .entry-date ul { margin: 0; padding: 0; list-style: none; text-align: center; }
notices-list article.post .entry-date li { margin: 0; padding: 0; line-height: 1.1; color: var(--lm-navy) !important; }
notices-list article.post .entry-date li:first-child { font-size: 25px; font-weight: 800; }
notices-list article.post .entry-date li:last-child { font-size: 11px; font-weight: 800; letter-spacing: .1em; margin-top: 3px; }

notices-list article.post .media-body { flex: 1; min-width: 0; padding: 0 !important; float: none !important; width: auto; display: block; }
/* naslov u predlošku ima inline margin:16px !important – poništavamo ga negativnom marginom roditelja */
notices-list article.post .event-content { float: none !important; width: auto; margin: -12px -16px -12px -16px; }
notices-list article.post h4.entry-title { font-size: 19px !important; line-height: 1.35 !important; font-weight: 800 !important;
  text-transform: none !important; color: var(--lm-navy) !important;
}
notices-list article.post h4.entry-title a.notice-title {
  display: -webkit-box !important; white-space: normal !important; width: 100% !important;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: inherit !important; font-size: inherit !important; transition: color .15s ease;
}
notices-list article.post:hover h4.entry-title a.notice-title { color: var(--lm-sky) !important; }
notices-list article.post p.notice-content {
  color: #55657a; font-size: 14.5px; line-height: 1.65; margin: 16px 0 14px !important; -webkit-line-clamp: 3 !important;
  padding-left: 86px; /* poravnato s naslovom (date 66 + razmak 20) */
}
notices-list article.post a.btn-read-more {
  margin-left: 86px; display: inline-flex; align-items: center; gap: 8px; color: var(--lm-navy) !important;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-decoration: none !important; background: none !important;
  border: 0 !important; padding: 0 !important;
}
notices-list article.post a.btn-read-more::after { content: "→"; font-size: 17px; line-height: 1; color: var(--lm-sky); transition: transform .2s ease; }
notices-list article.post a.btn-read-more:hover { color: var(--lm-sky) !important; }
notices-list article.post a.btn-read-more:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------------------
   Straničenje i bočna traka (obje stranice)
   --------------------------------------------------------------------- */
news-list .pagination.news-pagination, notices-list .pagination.news-pagination {
  display: flex !important; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; padding: 0 !important;
}
news-list .pagination > li, notices-list .pagination > li { float: none; display: block; }
news-list .pagination > li > a, notices-list .pagination > li > a {
  float: none; min-width: 42px; height: 42px; padding: 0 14px !important; line-height: 40px !important; text-align: center;
  border: 1px solid var(--lm-line) !important; border-radius: 12px !important; background: #fff !important;
  color: var(--lm-navy) !important; font-weight: 700; margin: 0 !important; transition: all .15s ease;
}
news-list .pagination > li > a:hover, notices-list .pagination > li > a:hover {
  border-color: var(--lm-sky) !important; color: var(--lm-sky) !important; transform: translateY(-2px);
}
news-list .pagination > li.active > a, notices-list .pagination > li.active > a {
  background: var(--lm-navy) !important; border-color: var(--lm-navy) !important; color: #fff !important;
  box-shadow: 0 6px 14px rgba(31,64,109,.3);
}

news-list .sidebar .widget, notices-list .sidebar .widget {
  background: #fff; border: 1px solid var(--lm-line); border-radius: var(--lm-radius); box-shadow: var(--lm-shadow);
  padding: 22px 22px 14px; margin: 0 0 24px;
}
news-list .sidebar .widget-title, notices-list .sidebar .widget-title {
  margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--lm-navy); text-transform: none; position: relative; padding-bottom: 12px;
}
news-list .sidebar .widget-title::after, notices-list .sidebar .widget-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--lm-navy), var(--lm-sky));
}
news-list .sidebar ul.list-border, notices-list .sidebar ul.list-border { margin: 0; padding: 0; list-style: none; }
news-list .sidebar ul.list-border > li, notices-list .sidebar ul.list-border > li {
  border: 0 !important; border-bottom: 1px solid var(--lm-line) !important; padding: 0 !important; margin: 0;
}
news-list .sidebar ul.list-border > li:last-child, notices-list .sidebar ul.list-border > li:last-child { border-bottom: 0 !important; }
news-list .sidebar ul.list-border > li > a, notices-list .sidebar ul.list-border > li > a {
  display: block; padding: 11px 6px 11px 24px; position: relative; color: var(--lm-text); font-weight: 600; font-size: 14.5px;
  transition: color .15s ease, padding-left .15s ease;
}
news-list .sidebar ul.list-border > li > a::before, notices-list .sidebar ul.list-border > li > a::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--lm-line); transition: background .15s ease, transform .15s ease;
}
news-list .sidebar ul.list-border > li > a:hover, notices-list .sidebar ul.list-border > li > a:hover { color: var(--lm-sky); padding-left: 28px; }
news-list .sidebar ul.list-border > li > a:hover::before, notices-list .sidebar ul.list-border > li > a:hover::before { background: var(--lm-sky); transform: scale(1.3); }
news-list .sidebar ul.list-border li::before, notices-list .sidebar ul.list-border li::before { display: none !important; }

/* mobitel */
@media (max-width: 767px) {
  news-list > section > .container, notices-list > section > .container { padding-top: 24px !important; }
  notices-list article.post .entry-content.border-1px { padding: 18px 16px 20px 20px !important; }
  notices-list article.post .entry-meta.media { gap: 14px; }
  notices-list article.post .entry-date { flex-basis: 56px; width: 56px; }
  notices-list article.post p.notice-content, notices-list article.post a.btn-read-more { padding-left: 0; margin-left: 0; }
  notices-list article.post h4.entry-title { font-size: 17px !important; }
}
@media (prefers-reduced-motion: reduce) {
  news-list *, notices-list * { transition: none !important; }
}
