/* Općina Sveti Petar u Šumi — tema svpetar (jedna stilska datoteka).
   Mjere preuzete sa stare teme egovt (docs-tema/mjere/): gornja traka #273a7c 51 px, izbornik Cabin 17 px velikim slovima,
   naslovna traka 300 px sa zatamnjenjem, Roboto 50 px, sadržaj 850 + bočna traka 400, podnožje #202b5d.
   Poboljšano: kontrast teksta (#4e5b75 umjesto #62718d) i poveznica (#0a58ca umjesto #007bff), tražilica u istom redu
   s izbornikom, izbornik u jednom redu, vidljiv fokus, bez vodoravnog pomaka. */

:root {
	--navy: #202b5d;
	--plava: #273a7c;
	--plava-2: #243c7b;
	--zlatna: #e4ab0c;
	--tirkizna: #23d3d3;
	--tekst: #4e5b75;
	--tamna: #1d2440;
	--siva: #6b7690;
	--linija: #e5e8ef;
	--svijetla: #f4f6fa;
	--link: #0a58ca;
	--sjena: 0 10px 30px -12px rgba(20, 30, 70, .25);
	--f-tekst: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--f-naslov: Cabin, "Nunito Sans", system-ui, sans-serif;
	--f-traka: Roboto, "Nunito Sans", system-ui, sans-serif;
	--w: 1290px;
	--mun-gal-accent: #e4ab0c;
	--mun-gal-dark: #202b5d;
}

/* ---------- Osnove ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: #fff; color: var(--tekst); font-family: var(--f-tekst); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--zlatna); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-naslov); color: var(--navy); line-height: 1.2; font-weight: 700; margin: 1.6em 0 .6em; }
h1 { font-size: 40px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 21px; } h5 { font-size: 19px; } h6 { font-size: 17px; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); margin: -1px; white-space: nowrap; border: 0; padding: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: .7rem 1.1rem; background: var(--navy); color: #fff; font-weight: 700; border-radius: 0 0 6px 6px; text-decoration: none; }
.skip-link:focus { top: 0; color: #fff; }
.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
.site-main:focus { outline: none; }
.ico { flex: none; vertical-align: middle; }
.btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: .5rem; padding: 12px 26px; background: var(--plava); color: #fff; font-family: var(--f-naslov); font-size: 17px; font-weight: 500; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover, .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 4px; }
.icon-btn:hover { color: var(--plava); background: var(--svijetla); }

/* ---------- Gornja traka ---------- */
.topbar { background: var(--plava); color: #eee; font-size: 17px; border-bottom: 1px solid #e5e5e5; }
.topbar__in { display: flex; align-items: center; gap: 10px 38px; min-height: 50px; padding-block: 6px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #eee; text-decoration: none; }
a.topbar__item:hover { color: #fff; text-decoration: underline; }
.topbar__item .ico { color: #b9c3dc; }
.social-fb { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--zlatna); color: var(--plava); }
.social-fb:hover { background: #fff; color: var(--plava); }

/* ---------- Logotip, izbornik, tražilica ---------- */
.navbar { background: #fff; position: relative; z-index: 50; }
.navbar__in { display: flex; align-items: center; gap: 24px; padding: 0 clamp(10px, 1.6vw, 24px); min-height: 128px; }
.site-logo { display: inline-flex; flex: none; padding: 14px 0; }
.site-logo__img { display: block; width: 220px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav .menu > li { display: flex; align-items: center; }
.main-nav .menu > li > a { display: flex; align-items: center; gap: 4px; padding: 40px 11px; font-family: var(--f-naslov); font-size: 17px; line-height: 24px; text-transform: uppercase; color: var(--navy); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s; }
.main-nav .menu > li > a:hover, .main-nav .menu > li:focus-within > a { color: var(--plava-2); box-shadow: inset 0 -3px 0 var(--zlatna); }
.main-nav .menu > .current-menu-item > a, .main-nav .menu > .current-menu-ancestor > a, .main-nav .menu > .current_page_parent > a { color: var(--plava-2); box-shadow: inset 0 -3px 0 var(--zlatna); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -8px; margin-right: 4px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 3px; }
.menu-item-has-children > a + .submenu-toggle .ico { transition: transform .15s; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border-top: 3px solid var(--zlatna); box-shadow: var(--sjena); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.main-nav .sub-menu .sub-menu { top: -11px; left: 100%; }
/* Miš: hover; tipkovnica: gumb sa strelicom (is-open) — Tab ne prolazi kroz zatvorene podizbornike. */
.main-nav li:hover > .sub-menu, .main-nav li.is-open > .sub-menu, .main-nav .sub-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 7px 18px; font-family: var(--f-naslov); font-size: 16px; line-height: 1.35; color: var(--navy); text-decoration: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--svijetla); color: var(--plava-2); }
.navbar__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: var(--plava); color: var(--zlatna); cursor: pointer; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1240px) and (min-width: 1101px) {
	.main-nav .menu > li > a { padding-inline: 8px; font-size: 16px; }
	.site-logo__img { width: 190px; }
}
@media (max-width: 1100px) {
	.navbar__in { min-height: 78px; gap: 10px; flex-wrap: wrap; padding-block: 8px; }
	.site-logo { padding: 0; }
	.site-logo__img { width: 175px; }
	.navbar__tools { margin-left: auto; }
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; order: 3; width: 100%; margin: 0 -10px; width: calc(100% + 20px); border-top: 1px solid var(--linija); }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; padding: 6px 0 12px; }
	.main-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--linija); }
	.main-nav .menu > li > a { flex: 1; padding: 12px 16px; box-shadow: none !important; white-space: normal; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0 6px 0 0; }
	.main-nav li.is-open > a + .submenu-toggle .ico { transform: rotate(180deg); }
	.main-nav .sub-menu, .main-nav .sub-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu li { display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav .sub-menu a { flex: 1; padding: 10px 16px; }
	.topbar { display: none; }
}

/* Pretraga (dijalog preko cijelog zaslona, kao dosad) */
.search-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 40, .96); color: #fff; }
.search-dialog::backdrop { background: transparent; }
.search-dialog__in { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 80px 20px; }
.search-dialog .search-form { width: min(760px, 100%); }
.search-dialog .search-form__field { font-size: 22px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.search-dialog .search-form__field::placeholder { color: rgba(255, 255, 255, .7); }
.search-dialog__close { position: absolute; top: 18px; right: 18px; color: #fff; width: 52px; height: 52px; }
.search-dialog__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form__field { flex: 1; min-width: 0; min-height: 52px; padding: 10px 16px; font: inherit; color: var(--tamna); background: #fff; border: 2px solid #c9cfdc; border-radius: 4px; }
.search-form__field:focus { border-color: var(--plava); outline: none; box-shadow: 0 0 0 3px rgba(228, 171, 12, .45); }
.search-form__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--plava); color: #fff; font-family: var(--f-naslov); font-size: 17px; cursor: pointer; }
.search-form__btn:hover { background: var(--zlatna); color: var(--navy); }
.search-again { margin-bottom: 32px; }

/* ---------- Naslovna traka ---------- */
.page-header { position: relative; display: flex; align-items: flex-end; min-height: 300px; margin-bottom: 70px; background: #767c8a; color: #fff; overflow: hidden; }
.page-header__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header::after { content: ""; position: absolute; inset: 0; background: rgba(2, 15, 42, .54); }
.page-header__in { position: relative; z-index: 1; padding-block: 90px 60px; }
.page-header__title { margin: 0 0 12px; font-family: var(--f-traka); font-size: 50px; line-height: 1.2; font-weight: 700; color: #fff; text-wrap: balance; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0; padding: 0; list-style: none; font-family: var(--f-traka); font-size: 18px; letter-spacing: .2px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 2px; }
.breadcrumbs .sep { opacity: .85; margin: 0 4px; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; }
@media (max-width: 760px) {
	.page-header { min-height: 220px; margin-bottom: 40px; }
	.page-header__in { padding-block: 60px 34px; }
	.page-header__title { font-size: 30px; }
	.breadcrumbs ol { font-size: 16px; }
}

/* ---------- Raspored: sadržaj + bočna traka ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 90px; }
.layout--sidebar { grid-template-columns: minmax(0, 850px) minmax(0, 360px); justify-content: space-between; }
@media (max-width: 1000px) { .layout--sidebar { grid-template-columns: minmax(0, 1fr); } }

/* Sadržaj (klasični uređivač i blokovi) */
.entry-content > :first-child { margin-top: 0; }
.entry-content img { border-radius: 2px; }
.entry-content a { color: var(--link); }
.entry-content a:hover { color: var(--navy); }
.entry-content table { margin: 0 0 1.5em; font-size: 16px; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--linija); text-align: left; vertical-align: top; }
.entry-content th { background: var(--svijetla); color: var(--navy); }
.entry-content blockquote { margin: 1.5em 0; padding: 12px 22px; border-left: 4px solid var(--zlatna); background: var(--svijetla); }
.entry-content .wp-caption, .entry-content figure { max-width: 100%; margin: 0 0 1.5em; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 15px; color: var(--siva); margin-top: 6px; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content iframe { border: 0; }
.entry__thumb { margin: 0 0 22px; }
.entry__thumb img { display: block; width: 100%; height: auto; border-radius: 2px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 26px; font-size: 16px; color: var(--siva); font-weight: 500; }
.post-meta__date { display: inline-flex; align-items: center; gap: 7px; }
.post-meta a { color: var(--navy); font-weight: 600; text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
@media (max-width: 760px) { .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 16px; } }

/* Dijeljenje i prethodna/sljedeća */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--linija); }
.share__label { margin-right: 8px; font-family: var(--f-naslov); font-size: 22px; font-weight: 500; color: var(--navy); }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--svijetla); color: var(--navy); }
.share__btn:hover { background: var(--plava); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linija); }
.post-nav__item { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: var(--navy); }
.post-nav__item--next { flex-direction: row-reverse; text-align: right; }
.post-nav__ico { flex: none; margin-top: 2px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--svijetla); color: var(--plava); }
.post-nav__item:hover .post-nav__ico { background: var(--plava); color: #fff; }
.post-nav__label { display: block; font-family: var(--f-naslov); font-size: 16px; color: var(--plava-2); }
.post-nav__title { display: block; font-family: var(--f-naslov); font-size: 18px; font-weight: 600; line-height: 1.35; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { flex-direction: row; text-align: left; } }

/* ---------- Kartice novosti ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; box-shadow: 0 6px 28px -10px rgba(20, 30, 70, .22); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px -12px rgba(20, 30, 70, .32); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--svijetla); overflow: hidden; }
.card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__img--empty { background: linear-gradient(135deg, var(--plava), var(--navy)); }
.card__date { position: absolute; left: 22px; bottom: 0; padding: 3px 12px; background: var(--navy); color: var(--zlatna); font-family: var(--f-naslov); font-size: 16px; font-weight: 700; line-height: 30px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 25px 28px; }
.card__cats { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: var(--siva); }
.card__title { margin: 0 0 20px; font-family: var(--f-naslov); font-size: 22px; line-height: 28px; font-weight: 600; }
.front .card__title { font-size: 20px; line-height: 26px; }
.card__title a { color: var(--plava); text-decoration: none; }
.card__title a:hover { color: var(--navy); text-decoration: underline; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* cijela kartica klikabilna */
.card { position: relative; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--f-naslov); font-size: 16px; color: #42516d; text-decoration: none; }
.card--text .card__body { padding: 22px 25px; }
.card__excerpt { margin: 0; font-size: 16px; }
.empty { padding: 30px; background: var(--svijetla); border-radius: 4px; }
.archive-desc { margin-bottom: 30px; }

/* Straničenje */
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--linija); border-radius: 4px; color: var(--navy); font-family: var(--f-naslov); font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--plava); border-color: var(--plava); color: #fff; }
.pagination .dots { border-color: transparent; }

/* ---------- Bočna traka ---------- */
.sidebar .widget { margin-bottom: 47px; }
.widget-title { position: relative; margin: 0 0 25px; padding-bottom: 19px; font-family: var(--f-naslov); font-size: 25px; line-height: 30px; font-weight: 700; color: #333; border-bottom: 1px solid #e5e5e5; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--zlatna); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.widget_categories li, .widget_pages li, .widget_nav_menu li, .widget_archive li { position: relative; padding: 6px 0 6px 22px; }
.widget_categories li::before, .widget_pages li::before, .widget_nav_menu li::before, .widget_archive li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--plava); }
.sidebar .widget_categories a, .sidebar .widget_pages a, .sidebar .widget_nav_menu a, .sidebar .widget_archive a { color: var(--tekst); text-decoration: none; }
.sidebar .widget_categories a:hover, .sidebar .widget_pages a:hover, .sidebar .widget_nav_menu a:hover { color: var(--navy); text-decoration: underline; }
.zadnje__item { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e5e5e5; }
.zadnje__item:last-child { border-bottom: 0; margin-bottom: 0; }
.zadnje__link { display: flex; gap: 20px; align-items: flex-start; text-decoration: none; }
.zadnje__img { flex: none; width: 75px; height: 75px; object-fit: cover; }
.zadnje__title { font-family: var(--f-naslov); font-size: 18px; line-height: 24px; font-weight: 500; color: var(--navy); }
.zadnje__link:hover .zadnje__title { text-decoration: underline; }
.zadnje__date { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--f-naslov); font-size: 16px; color: var(--siva); }
.sidebar .widget_media_image img, .sidebar .widget_block img { display: block; width: 100%; height: auto; box-shadow: 0 4px 16px -6px rgba(20, 30, 70, .3); }

/* ---------- Podnožje ---------- */
.site-footer { margin-top: 60px; background: var(--navy); color: #bcc2ce; font-size: 17px; }
.site-footer__grb { display: flex; justify-content: center; align-items: flex-start; height: 0; position: relative; z-index: 2; }
.site-footer__grb-img { width: 100px; height: 125px; transform: translateY(-60%); }
.site-footer__cols { border-top: 1px solid #263a65; padding-top: 36px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer__col { padding: 50px 0 62px 40px; }
.site-footer__col--1 { padding-left: 0; padding-right: 30px; position: relative; }
.site-footer__col--1::before { content: ""; position: absolute; top: -36px; bottom: 0; right: 0; left: -100vw; background: #1b2552; z-index: 0; }
.site-footer__col--1 > * { position: relative; z-index: 1; }
.footer-title { margin: 0 0 18px; font-family: var(--f-traka); font-size: 24px; line-height: 1.4; font-weight: 600; color: #fff; }
.footer-title--big { font-family: var(--f-naslov); font-weight: 700; }
.footer-address { margin: 0 0 18px; font-style: normal; font-family: var(--f-naslov); line-height: 24px; color: var(--tirkizna); }
.footer-line { display: flex; gap: 14px; margin: 0 0 12px; font-family: var(--f-naslov); line-height: 22px; color: #fff; }
.footer-line .ico, .footer-contacts .ico { margin-top: 3px; color: var(--zlatna); }
.footer-line strong, .footer-contacts strong { font-weight: 400; color: #fff; }
.footer-muted { color: #9aa4bd; }
.site-footer a { color: #bcc2ce; text-decoration: none; }
.site-footer a:hover { color: var(--tirkizna); text-decoration: underline; }
.footer-social { margin-top: 10px; color: var(--plava) !important; }
.footer-social:hover { background: #fff; }
.footer-contacts { list-style: none; margin: 0; padding: 0; font-family: var(--f-naslov); line-height: 22px; }
.footer-contacts li { display: flex; gap: 14px; margin-bottom: 12px; }
.footer-contacts a { color: #9aa4bd; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding: 4px 0; }
.footer-menu a { position: relative; display: inline-block; padding-left: 16px; line-height: 1.45; }
.footer-menu a::before { content: "›"; position: absolute; left: 0; top: -1px; color: #8892ab; }
.site-footer__bottom { background: #fff; color: var(--tekst); text-align: center; padding: 26px 0 30px; }
.site-footer__bottom p { margin: 0 0 6px; font-family: var(--f-traka); font-size: 17px; }
.site-footer__credit { color: #00706f; font-family: var(--f-naslov) !important; }
.site-footer__bottom a { color: var(--link); }
@media (max-width: 1000px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__col, .site-footer__col--1 { padding: 34px 20px 30px 0; }
	.site-footer__col--1::before { display: none; }
}
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__col, .site-footer__col--1 { padding: 26px 0 10px; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 720px; margin-inline: auto; text-align: center; }
.notfound__lead { font-size: 19px; }
.notfound .search-form { margin: 26px 0; }

/* ---------- Naslovnica (blokovi; detalji u F3) ---------- */
.entry-content--front > * { max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
.entry-content--front > .alignfull { max-width: none; padding-inline: 0; }

/* ---------- Ispis i smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
	.topbar, .navbar__tools, .main-nav, .site-footer, .sidebar, .share, .post-nav, .search-dialog, .skip-link { display: none !important; }
	.page-header { min-height: 0; margin: 0 0 20px; background: none; color: #000; }
	.page-header::after, .page-header__img { display: none; }
	.page-header__title, .breadcrumbs a, .breadcrumbs [aria-current] { color: #000; }
	.layout--sidebar { display: block; }
}

/* ---------- GDPR (ponuda 24/2026): YouTube na naslovnici, prozor za video, obavijest uz obrazac ---------- */
.svp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.svp-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; border: 0; background: #111; overflow: hidden; cursor: pointer; line-height: 0; }
.svp-yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.svp-yt__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.svp-yt__play svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); transition: transform .2s ease; }
.svp-yt:hover img, .svp-yt:focus-visible img { opacity: .85; transform: scale(1.03); }
.svp-yt:hover .svp-yt__play svg, .svp-yt:focus-visible .svp-yt__play svg { transform: scale(1.12); }
.svp-yt-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: #000; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.svp-yt-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.svp-yt-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; background: var(--plava-2); }
.svp-yt-dialog__title { margin: 0; color: #fff; font-size: 17px; line-height: 1.3; }
.svp-yt-dialog__close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.svp-yt-dialog__close:hover, .svp-yt-dialog__close:focus-visible { background: rgba(255, 255, 255, .15); }
.svp-yt-dialog__frame { position: relative; aspect-ratio: 16 / 9; }
.svp-yt-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.svp-yt-dialog__frame .svp-yt-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; border: 0; border-radius: 0; background-color: #111; background-position: center; background-size: cover; aspect-ratio: auto; }
.svp-yt-dialog__frame .svp-yt-consent::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.svp-yt-dialog__frame .svp-yt-consent.is-loaded::before { display: none; }
.svp-yt-dialog__frame .svp-yt-consent .mc-embed__ph { position: relative; z-index: 1; max-width: 560px; padding: 24px; background: transparent; text-align: center; }
.svp-yt-dialog__frame .svp-yt-consent .mc-embed__text { color: #f0f0f0; font-size: 15px; line-height: 1.5; }
.svp-yt-dialog__frame .svp-yt-consent .mc-embed__open { color: #fff; font-size: 14px; text-decoration: underline; }
.svp-yt-dialog__frame .svp-yt-consent .mc-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
@media (max-width: 600px) {
	.svp-yt-dialog__frame .svp-yt-consent .mc-embed__ph { padding: 12px; }
	.svp-yt-dialog__frame .svp-yt-consent .mc-embed__text { font-size: 13px; }
	.svp-yt-dialog__frame { aspect-ratio: 4 / 5; }
}
.svp-form-note { margin: 4px 0 14px; color: #4a5263; font-size: 15px; line-height: 1.5; }
.svp-form-note a { text-decoration: underline; }

/* Povećanje teksta (mun-a11y): tema piše u px, pa se tekstualni blokovi povećavaju svojstvom zoom (unutar svog stupca). */
html.mun-a11y-text-up :is(.site-main, .site-footer, .topbar) :is(p, h1, h2, h3, h4, h5, h6, label, blockquote, dt, dd, figcaption, address, .widget, .card__title, .card__cats, .post-meta, .breadcrumbs):not(:is(p, h1, h2, h3, h4, h5, h6, label, blockquote, dt, dd, figcaption, address, .widget, .card__title, .card__cats, .post-meta, .breadcrumbs) *),
html.mun-a11y-text-up :is(.site-main, .site-footer) :is(li, td, th):not(:is(li, td, th, p, .widget) *):not(:has(p)),
html.mun-a11y-text-up .main-nav a {
	zoom: var(--mun-a11y-scale, 1);
}

/* ---------- Naslovnica i blokovi teme ---------- */
.front { overflow-x: clip; }
.entry-content--front > .alignwide { max-width: var(--w); }
.svp-hero { min-height: 560px; padding: 40px 20px; margin: 0 0 80px; }
.svp-hero .wp-block-cover__inner-container { width: 100%; max-width: 1250px; margin-inline: auto; }
.svp-hero__title, .entry-content .svp-hero__title { margin: 0; max-width: 900px; font-family: var(--f-naslov); font-size: 60px; line-height: 1.1; font-weight: 700; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.svp-section-title, .entry-content .svp-section-title { margin: 0 0 40px; font-family: var(--f-naslov); font-size: 48px; line-height: 1.12; font-weight: 700; color: var(--navy); text-align: center; }
.svp-front-section { margin-bottom: 90px; }
.svp-front-news { gap: 40px; }
.svp-front-news > .wp-block-column:last-child { padding-top: 94px; }
.svp-novosti__more { margin: 40px 0 0; text-align: center; }
.btn--ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* Okvir s poveznicama (desno od novosti) */
.entry-content .svp-linkbox { list-style: none; margin: 0 0 30px; padding: 18px 30px; background: var(--plava); }
.svp-linkbox li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.svp-linkbox li:last-child { border-bottom: 0; }
.entry-content .svp-linkbox a { position: relative; display: block; padding: 13px 22px 11px 0; font-family: var(--f-tekst); font-size: 18px; font-weight: 600; line-height: 1.2; color: #fff; text-decoration: none; }
.entry-content .svp-linkbox a::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: .8; }
.entry-content .svp-linkbox a:hover { color: var(--zlatna); }
.svp-banner { margin: 0 0 24px; }
.svp-banner img { display: block; width: 100%; height: auto; box-shadow: 0 6px 22px -8px rgba(20, 30, 70, .35); transition: transform .2s, box-shadow .2s; }
.svp-banner a:hover img { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(20, 30, 70, .45); }

/* Transparentna općina: siva traka preko cijele širine + pločice */
.entry-content--front > .svp-band { max-width: none; padding: 80px 20px 100px; margin-bottom: 90px; background: #ebebeb; }
.svp-band > * { max-width: 1250px; margin-inline: auto; }
.svp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.svp-tile { display: flex; align-items: center; gap: 20px; min-height: 103px; padding: 20px 28px; background: #fff; box-shadow: 0 10px 30px -12px rgba(20, 30, 70, .22); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.svp-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(20, 30, 70, .32); }
.svp-tile__ico { position: relative; flex: none; display: inline-flex; width: 56px; height: 52px; color: var(--zlatna); }
.svp-tile__ico::before { content: ""; position: absolute; right: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: #fdd9d3; }
.svp-tile__ico svg { position: relative; margin-top: 6px; }
.svp-tile__title { font-family: var(--f-naslov); font-size: 20px; line-height: 1.3; color: #1a3cb3; }
a.svp-tile:hover .svp-tile__title { text-decoration: underline; }
@media (max-width: 1100px) { .svp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svp-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* O općini — video — statistike */
.svp-about { gap: 50px; align-items: center !important; }
.svp-about__title, .entry-content .svp-about__title { margin: 0 0 24px; font-size: 40px; line-height: 1.25; color: var(--navy); }
.svp-about p { font-size: 18px; }
.svp-stat { padding: 18px 0; border-bottom: 1px solid #e3e6ec; }
.entry-content .svp-stat__num { margin: 0; font-family: var(--f-naslov); font-size: 50px; line-height: 1.1; font-weight: 700; color: #1586c9; }
.entry-content .svp-stat__label { margin: 4px 0 0; font-family: var(--f-naslov); font-size: 20px; color: var(--tekst); }
.svp-yt-wrap { margin: 0; }

@media (max-width: 900px) {
	.svp-hero { min-height: 420px; margin-bottom: 50px; }
	.svp-hero__title, .entry-content .svp-hero__title { font-size: 40px; }
	.svp-section-title, .entry-content .svp-section-title { font-size: 36px; margin-bottom: 26px; }
	.svp-front-news > .wp-block-column:last-child { padding-top: 0; }
	.entry-content--front > .svp-band { padding: 56px 20px 64px; }
	.svp-front-section { margin-bottom: 60px; }
}
@media (max-width: 560px) {
	.svp-hero__title, .entry-content .svp-hero__title { font-size: 34px; }
	.svp-about__title, .entry-content .svp-about__title { font-size: 32px; }
}

/* Harmonika (blok Detalji) — kao dosad: tamnoplava traka, otvorena zlatni naslov */
.entry-content .wp-block-details { margin: 0 0 4px; border: 0; border-radius: 0; background: var(--svijetla); }
.wp-block-details > summary { position: relative; display: block; padding: 13px 20px 13px 48px; background: var(--plava); color: #fff; font-family: var(--f-naslov); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::before, .wp-block-details > summary::after { content: ""; position: absolute; left: 20px; top: 50%; width: 14px; height: 2px; background: currentColor; }
.wp-block-details > summary::after { transform: rotate(90deg); transition: transform .15s; }
.wp-block-details[open] > summary { color: var(--zlatna); }
.wp-block-details[open] > summary::after { transform: rotate(0); }
.wp-block-details > summary:hover { background: var(--navy); }
.wp-block-details > :not(summary) { margin-inline: 24px; }
.wp-block-details > summary + * { margin-top: 22px; }
.wp-block-details > :last-child:not(summary) { margin-bottom: 26px; }

/* Kontakt */
.entry-content .svp-kontakt { list-style: none; padding: 0; margin: 0 0 28px; }
.svp-kontakt li { position: relative; padding: 6px 0 6px 34px; }
.svp-kontakt li::before { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; background: var(--zlatna); -webkit-mask: var(--ik) center / contain no-repeat; mask: var(--ik) center / contain no-repeat; }
.svp-kontakt .ik-adresa { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.svp-kontakt .ik-tel { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.svp-kontakt .ik-mail { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L4 7v1.6l8 5.2 8-5.2V7z'/%3E%3C/svg%3E"); }
.svp-kontakt .ik-sat { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.5 2.1-.8 1.3L11 13V7h2z'/%3E%3C/svg%3E"); }
.svp-kontakt-cols { gap: 50px; margin-bottom: 40px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 12px 16px; font: inherit; color: var(--tamna); background: #fff; border: 1px solid #c9cfdc; border-radius: 4px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--plava); outline: 2px solid var(--zlatna); outline-offset: 1px; }
.wpcf7 input[type="submit"] { padding: 13px 30px; border: 0; border-radius: 4px; background: var(--plava); color: #fff; font-family: var(--f-naslov); font-size: 17px; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--navy); }

/* Kartice sa slikom (Društvene djelatnosti) */
.svp-kartice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.svp-kartica { background: #fff; box-shadow: 0 10px 30px -12px rgba(20, 30, 70, .22); }
.svp-kartica__img { margin: 0; }
.svp-kartica__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svp-kartica__title, .entry-content .svp-kartica__title { margin: 0; padding: 18px 22px 22px; font-size: 22px; }
.svp-kartica__title a { color: var(--navy); text-decoration: none; }
.svp-kartica__title a:hover { text-decoration: underline; }
@media (max-width: 760px) { .svp-kartice { grid-template-columns: minmax(0, 1fr); } }

/* Stranice s blokovima: novosti kategorije unutar sadržaja */
.entry-content .svp-novosti { margin-top: 0; }
.card__media--none { aspect-ratio: auto; background: none; padding: 24px 25px 0; }
.card__media--none .card__date { position: static; display: inline-block; }
.card__media--none + .card__body { padding-top: 14px; }
.entry-content .svp-kontakt li { list-style: none; }
.entry-content .svp-kontakt li::marker { content: none; }
.entry-content .svp-kartica__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .svp-kartica__img { width: 100%; }
.svp-tiles > *, .svp-kartice > *, .cards > * { margin-block: 0 !important; }

/* ---------- Dokumenti po tipu (inc/documents.php) ---------- */
.entry-content a.doc-link { display: flex; align-items: center; gap: 14px; max-width: 760px; padding: 12px 18px 12px 14px; background: #fff; border: 1px solid #d9dfeb; border-left: 4px solid var(--doc, var(--plava)); border-radius: 4px; color: var(--navy); text-decoration: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.entry-content a.doc-link:hover { border-color: var(--doc, var(--plava)); background: var(--svijetla); box-shadow: 0 6px 18px -10px rgba(20, 30, 70, .35); color: var(--navy); }
.doc-link__icon { flex: none; display: inline-flex; width: 30px; height: 34px; color: var(--doc, var(--plava)); }
.doc-link__glyph { width: 100%; height: 100%; }
.doc-link__text { flex: 1; min-width: 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.doc-link--pdf { --doc: #c62828; }
.doc-link--word { --doc: #2b579a; }
.doc-link--excel { --doc: #1e7145; }
.doc-link--ppt { --doc: #c43e1c; }
.doc-link--file { --doc: #5b6475; }
.entry-content p:has(> a.doc-link) { margin-bottom: 10px; }
.entry-content li.doc-item { list-style: none; margin: 0 0 10px; }
.entry-content ul:has(> li.doc-item):not(.svp-linkbox):not(.svp-kontakt) { padding-left: 0; }
@media (max-width: 560px) { .entry-content a.doc-link { gap: 11px; padding: 11px 12px 11px 11px; } .doc-link__icon { width: 24px; height: 28px; } .doc-link__text { font-size: 16px; line-height: 1.35; } }
/* U plavom okviru poveznica na naslovnici dokument ostaje obična stavka */
.entry-content .svp-linkbox li.doc-item { margin: 0; }
.entry-content .svp-linkbox a.doc-link { display: block; max-width: none; padding: 13px 22px 11px 0; background: none; border: 0; border-radius: 0; color: #fff; box-shadow: none; }
.svp-linkbox .doc-link__icon { display: none; }
.svp-linkbox .doc-link__text { font-weight: 600; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.table-scroll > table { margin: 0; min-width: 520px; }
.table-scroll:focus-visible { outline: 3px solid var(--zlatna); outline-offset: 2px; }

/* ---------- Jasno klikabilne poveznice (animacije; isključene uz prefers-reduced-motion) ---------- */
a, button, .btn, .wp-block-button__link { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, text-decoration-color .18s ease, text-underline-offset .18s ease; }

/* Poveznice u tekstu: podcrtane, na prelaz deblja crta i tamnija boja */
.entry-content a:not(.doc-link):not(.wp-block-button__link):not(.svp-tile):not(.btn), .archive-desc a, .footer-address a {
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(10, 88, 202, .45);
}
.entry-content a:not(.doc-link):not(.wp-block-button__link):not(.svp-tile):not(.btn):hover {
	color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: .26em; text-decoration-color: var(--zlatna);
}

/* Izbornik: zlatna crta se izvlači iz sredine */
.main-nav .menu > li > a { position: relative; box-shadow: none !important; }
.main-nav .menu > li > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 30px; height: 3px; background: var(--zlatna); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.main-nav .menu > li > a:hover::after, .main-nav .menu > li:hover > a::after, .main-nav .menu > .current-menu-item > a::after, .main-nav .menu > .current-menu-ancestor > a::after, .main-nav .menu > .current_page_parent > a::after { transform: scaleX(1); }
.main-nav .sub-menu a { position: relative; transition: background-color .15s, color .15s, padding-left .18s; }
.main-nav .sub-menu a:hover { padding-left: 24px; }
@media (max-width: 1100px) { .main-nav .menu > li > a::after { display: none; } }

/* Kartice novosti: slika se lagano uveća, strelica „Nastavi čitati“ krene udesno */
.card__img { transition: transform .45s ease; }
.card:hover .card__img { transform: scale(1.05); }
.card__more .ico { transition: transform .2s ease; }
.card:hover .card__more { color: var(--plava-2); }
.card:hover .card__more .ico { transform: translateX(5px); }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--zlatna); text-underline-offset: .2em; }

/* Bočna traka */
.sidebar .widget_categories li, .sidebar .widget_pages li, .sidebar .widget_nav_menu li { transition: padding-left .18s ease; }
.sidebar .widget_categories li:hover, .sidebar .widget_pages li:hover, .sidebar .widget_nav_menu li:hover { padding-left: 27px; }
.sidebar .widget_categories li:hover::before, .sidebar .widget_pages li:hover::before { background: var(--zlatna); }
.zadnje__img { transition: transform .3s ease, opacity .3s ease; }
.zadnje__link:hover .zadnje__img { transform: scale(1.06); opacity: .9; }
.zadnje__link { overflow: visible; }
.zadnje__link:hover .zadnje__title { color: var(--plava-2); text-decoration-color: var(--zlatna); text-underline-offset: .18em; }

/* Podnožje */
.footer-menu a { transition: color .15s, transform .18s ease; }
.footer-menu a:hover { transform: translateX(4px); }
.footer-menu a:hover::before { color: var(--tirkizna); }

/* Okvir poveznica na naslovnici: strelica krene udesno */
.entry-content .svp-linkbox a::after { transition: transform .18s ease, right .18s ease; }
.entry-content .svp-linkbox a:hover::after { right: -3px; }
.entry-content .svp-linkbox a:hover { padding-left: 4px; }

/* Pločice, dokumenti, prethodna/sljedeća, gumbi */
.svp-tile__ico svg { transition: transform .25s ease; }
a.svp-tile:hover .svp-tile__ico svg { transform: scale(1.12) rotate(-4deg); }
.doc-link__icon { transition: transform .2s ease; }
.entry-content a.doc-link:hover .doc-link__icon { transform: translateY(-2px) scale(1.06); }
.post-nav__item:hover .post-nav__title { text-decoration: underline; text-decoration-color: var(--zlatna); text-underline-offset: .18em; }
.post-nav__ico { transition: background-color .18s, color .18s, transform .18s; }
.post-nav__item--prev:hover .post-nav__ico { transform: translateX(-3px); }
.post-nav__item--next:hover .post-nav__ico { transform: translateX(3px); }
.btn:hover, .wp-block-button__link:hover, .search-form__btn:hover, .wpcf7 input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(20, 30, 70, .55); }
.social-fb:hover, .share__btn:hover { transform: translateY(-2px); }
.svp-kartica { transition: transform .2s ease, box-shadow .2s ease; }
.svp-kartica:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(20, 30, 70, .32); }
.svp-kartica__img { overflow: hidden; }
.svp-kartica__img img { transition: transform .45s ease; }
.svp-kartica:hover .svp-kartica__img img { transform: scale(1.05); }
.wp-block-details > summary { transition: background-color .18s, color .18s; }

/* Pločice: cijela pločica je poveznica — jasan, animiran hover */
.svp-tile { position: relative; overflow: hidden; border: 1px solid transparent; }
.svp-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--zlatna); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.svp-tile__ico::before { transition: transform .3s ease, background-color .3s ease; }
.svp-tile__title { flex: 1; transition: color .2s ease; }
.svp-tile__arrow { flex: none; display: inline-flex; color: var(--plava-2); opacity: 0; transform: translateX(-10px); transition: opacity .22s ease, transform .22s ease; }
a.svp-tile:hover, a.svp-tile:focus-visible { border-color: #e2e6ee; }
a.svp-tile:hover::after, a.svp-tile:focus-visible::after { transform: scaleX(1); }
a.svp-tile:hover .svp-tile__ico::before, a.svp-tile:focus-visible .svp-tile__ico::before { transform: scale(1.15); background: #fde3c4; }
a.svp-tile:hover .svp-tile__title, a.svp-tile:focus-visible .svp-tile__title { color: var(--navy); text-decoration: none; }
a.svp-tile:hover .svp-tile__arrow, a.svp-tile:focus-visible .svp-tile__arrow { opacity: 1; transform: none; }
a.svp-tile:active { transform: translateY(-1px); }
a.svp-tile:focus-visible { outline: 3px solid var(--zlatna); outline-offset: 3px; }

/* Kartice sa slikom: cijela kartica klikabilna */
.svp-kartica { position: relative; }
.svp-kartica__title a::after { content: ""; position: absolute; inset: 0; }
.svp-kartica:hover .svp-kartica__title a { text-decoration: underline; text-decoration-color: var(--zlatna); text-underline-offset: .2em; }

/* ---------- Naslovna slika (hero): lagani zum kao prije (Ken Burns), naslov ulazi animirano, slika gotovo bez zatamnjenja ---------- */
.svp-hero { overflow: hidden; }
.svp-hero .wp-block-cover__image-background { transform-origin: 60% 45%; animation: svp-zum 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes svp-zum { from { transform: scale(1); } to { transform: scale(1.14); } }
/* Zatamnjenje samo iza teksta (lijevo), desno se slika vidi u punoj boji */
.svp-hero .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(8, 14, 38, .55) 0%, rgba(8, 14, 38, .28) 45%, rgba(8, 14, 38, 0) 75%) !important; }
.svp-hero .svp-hero__title { text-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 4px 24px rgba(0, 0, 0, .35); animation: svp-ulaz 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes svp-ulaz { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.svp-hero .svp-hero__title::after { content: ""; display: block; width: 90px; height: 4px; margin-top: 22px; background: var(--zlatna); transform-origin: left; animation: svp-crta .8s ease-out 1s both; }
@keyframes svp-crta { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
	.svp-hero, .entry-content--front > .svp-hero { min-height: 0 !important; height: 44vh; max-height: 380px; min-height: 250px !important; padding: 24px 20px; margin-bottom: 40px; align-items: flex-end; }
	.svp-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(8, 14, 38, .62) 0%, rgba(8, 14, 38, .25) 55%, rgba(8, 14, 38, 0) 85%) !important; }
	.svp-hero__title, .entry-content .svp-hero__title { font-size: 28px; line-height: 1.15; }
	.svp-hero .svp-hero__title::after { width: 60px; height: 3px; margin-top: 14px; }
}

/* Ulazak pri pomicanju (klasa dolazi iz JS-a samo za elemente ispod prvog ekrana) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover, .svp-tile.reveal.is-in:hover, .svp-kartica.reveal.is-in:hover { transform: translateY(-3px); }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Strelica podizbornika uvijek u istom redu s poveznicom (i unutar padajućeg izbornika) */
.main-nav .sub-menu li { display: flex; align-items: center; }
.main-nav .sub-menu li > a { flex: 1; min-width: 0; }
.main-nav .sub-menu .submenu-toggle { width: 32px; height: 32px; margin: 0 8px 0 0; flex: none; }
@media (min-width: 1101px) {
	.main-nav .sub-menu .submenu-toggle .ico { transform: rotate(-90deg); } /* otvara se udesno */
	.main-nav .sub-menu li:hover > .submenu-toggle, .main-nav .sub-menu li.is-open > .submenu-toggle { color: var(--zlatna); }
}
@media (max-width: 1100px) {
	.main-nav .menu > li > a, .main-nav .sub-menu li > a { flex: 1; min-width: 0; }
	.main-nav .menu .submenu-toggle { flex: none; width: 44px; height: 44px; margin: 0 6px 0 0; border-radius: 4px; }
	.main-nav .menu .submenu-toggle:hover { background: var(--svijetla); }
	.main-nav li > .sub-menu { flex-basis: 100%; }
	.main-nav .sub-menu .submenu-toggle .ico { transform: none; }
	.main-nav li.is-open > .submenu-toggle .ico { transform: rotate(180deg); }
}
.site-footer__bottom a { text-decoration: underline; text-underline-offset: .18em; }
.site-footer__bottom a:hover { text-decoration-thickness: 2px; color: var(--navy); }

/* Okvir poveznica na naslovnici — vlastiti hover (opći hover poveznica ovdje ne vrijedi): bijeli tekst, žuti rub lijevo, svjetlija podloga */
.entry-content .svp-linkbox { padding-left: 0; padding-right: 0; }
.entry-content .svp-linkbox li { margin: 0 30px; }
.entry-content .svp-linkbox a, .entry-content .svp-linkbox a:hover, .entry-content .svp-linkbox a:focus-visible { color: #fff !important; text-decoration: none !important; }
.entry-content .svp-linkbox a { margin: 0 -30px; padding: 13px 52px 11px 30px !important; border-left: 4px solid transparent; transition: background-color .18s ease, border-color .18s ease, padding-left .18s ease; }
.entry-content .svp-linkbox a:hover, .entry-content .svp-linkbox a:focus-visible { background: rgba(255, 255, 255, .1); border-left-color: var(--zlatna); padding-left: 36px !important; }
.entry-content .svp-linkbox a::after { right: 32px; }
.entry-content .svp-linkbox a:hover::after, .entry-content .svp-linkbox a:focus-visible::after { border-color: var(--zlatna); right: 26px; opacity: 1; }
.entry-content .svp-linkbox a:focus-visible { outline: 2px solid var(--zlatna); outline-offset: -2px; }
.entry-content .svp-linkbox a.doc-link { padding: 13px 52px 11px 30px !important; }
/* Okvir poveznica: stavka koja vodi na dokument (Publikacije = PDF) izgleda i reagira isto kao ostale */
.entry-content .svp-linkbox li.doc-item { margin: 0 30px !important; }
.entry-content .svp-linkbox a.doc-link { display: block !important; max-width: none !important; margin: 0 -30px !important; background: none; border: 0 !important; border-left: 4px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; font-weight: 600; }
.entry-content .svp-linkbox a.doc-link:hover, .entry-content .svp-linkbox a.doc-link:focus-visible { background: rgba(255, 255, 255, .1); border-left-color: var(--zlatna) !important; padding-left: 36px !important; }
.svp-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; line-height: 1.5; color: #3f4859; }
.svp-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plava); cursor: pointer; }
.svp-form-note .wpcf7-not-valid-tip { margin: 6px 0 0 30px; font-size: 14px; }
.svp-form-note .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- O općini — video — statistike: poravnato od vrha, video u plavoj kartici, statistike kao kartice ---------- */
.svp-about { align-items: stretch !important; gap: 44px; }
.svp-about > .wp-block-column { display: flex; flex-direction: column; }
.svp-about__title, .entry-content .svp-about__title { margin: 0 0 22px; font-size: 38px; line-height: 1.15; }
/* Video kolona nema naslov — kartica počinje u ravnini s tekstom ispod naslova */
.svp-about > .wp-block-column:nth-child(2) { justify-content: flex-start; padding-top: 66px; }
.svp-about .svp-yt-wrap { margin: 0; padding: 12px 12px 0; background: var(--plava); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(20, 30, 70, .55); }
.svp-about .svp-yt { border-radius: 9px; overflow: hidden; }
.svp-about .svp-yt img { transform: scale(1.1); } /* odreže crne trake sa strane u sličici */
.svp-about .svp-yt:hover img, .svp-about .svp-yt:focus-visible img { transform: scale(1.15); }
.svp-yt-cap { display: flex; align-items: center; gap: 8px; padding: 12px 6px 14px; color: #fff; font-family: var(--f-naslov); font-size: 16px; line-height: 1.35; }
.svp-yt-cap svg { flex: none; color: var(--zlatna); }
.svp-about p { font-size: 17px; line-height: 1.75; }
.svp-stat { position: relative; margin: 0 0 16px !important; padding: 18px 22px 16px 26px; background: var(--svijetla); border: 0; border-radius: 12px; overflow: hidden; }
.svp-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--zlatna); }
.svp-stat:last-child { margin-bottom: 0 !important; }
.entry-content .svp-stat__num { font-size: 46px; color: var(--plava-2); }
.entry-content .svp-stat__label { margin-top: 2px; font-size: 18px; }
@media (max-width: 900px) {
	.svp-about { gap: 36px; }
	.svp-about > .wp-block-column:nth-child(2) { padding-top: 0; }
	.svp-about__title, .entry-content .svp-about__title { font-size: 32px; }
}
.entry-content .svp-yt-cap, .svp-yt-cap { margin: 0; color: #fff; font-size: 16px; font-weight: 500; }

/* Gumbi u sadržaju: opći hover poveznica (.entry-content a:hover → navy) ne smije obojiti tekst gumba u boju podloge. */
.entry-content a.btn:hover, .entry-content a.wp-block-button__link:hover, .entry-content a.btn:focus-visible, .entry-content a.wp-block-button__link:focus-visible { background: var(--navy); color: #fff; text-decoration: none; }
.entry-content a.btn--ghost:hover, .entry-content a.btn--ghost:focus-visible, .entry-content .is-style-outline > a.wp-block-button__link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Naslov dokumenta u kartici uvijek u boji teme (urednici su ponegdje obojili tekst u plavo/crveno) */
.entry-content a.doc-link, .entry-content a.doc-link .doc-link__text * { color: var(--navy) !important; }
.entry-content .svp-linkbox a.doc-link, .entry-content .svp-linkbox a.doc-link .doc-link__text * { color: #fff !important; }
