/*
Theme Name: Kaznovici Servis
Theme URI: https://kaznovice.com/
Author: OpenAI
Description: Stabilna custom tema za portal sela Kaznovići.
Version: 19.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: kaznovici-servis
*/

:root{
  --bg:#eef2ef;
  --surface:#ffffff;
  --surface-2:#f8faf8;
  --text:#17322a;
  --muted:#5b6c66;
  --green:#1f6a4f;
  --green-2:#165540;
  --line:#d6dfdb;
  --shadow:0 12px 28px rgba(13,44,34,.08);
  --radius:22px;
  --font-main:"Panton","Aptos","Montserrat","Segoe UI",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font-main);background:var(--bg);color:var(--text);line-height:1.55}
a{color:var(--green);text-decoration:none}
a:hover{opacity:.9}
img{max-width:100%;height:auto;display:block}
.site-wrap{overflow:hidden}
.container{width:min(1200px,calc(100% - 48px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid rgba(21,85,64,.08)}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:92px}
.branding a{display:flex;align-items:center}
.branding img{width:128px;max-height:68px;object-fit:contain}
.main-nav .menu{display:flex;gap:10px;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:flex-end}
.main-nav a{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border-radius:14px;color:var(--text);font-weight:700;font-size:18px}
.main-nav .current-menu-item > a,.main-nav .current_page_item > a,.main-nav a:hover{background:rgba(31,106,79,.10);color:var(--green)}
.hero{position:relative;min-height:76vh;display:flex;align-items:center;background:#cad6d0 center center/cover no-repeat;margin:0}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.2) 45%,rgba(0,0,0,.12) 100%)}
.hero .container{position:relative;z-index:2}
.hero-content{max-width:760px;padding:72px 0 84px}
.hero-title{margin:0 0 16px;font-size:clamp(40px,6.2vw,78px);line-height:.95;font-weight:800;color:#fff;letter-spacing:-.04em;font-family:var(--font-main)}
.hero-text{margin:0 0 30px;font-size:clamp(22px,2.2vw,28px);color:#f4f7f5;max-width:820px;font-family:var(--font-main)}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 28px;border-radius:999px;font-weight:800;font-size:20px;border:2px solid transparent;transition:.2s ease;cursor:pointer}
.btn-primary{background:#fff;color:var(--green)}
.btn-secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.75)}
.btn-login{background:var(--green);color:#fff}
.btn:hover{transform:translateY(-1px)}
.home-intro{padding:72px 0 20px}
.section-title{margin:0 0 12px;font-size:clamp(34px,4vw,56px);line-height:1.05;letter-spacing:-.03em}
.section-text{font-size:24px;color:var(--muted);max-width:980px}
.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;padding:24px 0 72px}
.card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow)}
.card h3{margin:0 0 10px;font-size:28px}
.card p{margin:0;color:var(--muted);font-size:21px}
.section-block{padding:10px 0 76px}
.post-list{display:grid;gap:22px}
.post-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.post-item .date{font-size:18px;color:var(--muted);font-weight:700;margin-bottom:8px}
.post-item h3{margin:0 0 10px;font-size:34px}
.post-item p{margin:0;color:var(--muted);font-size:22px}
.page-hero{padding:54px 0 26px}
.page-hero h1{margin:0;font-size:clamp(40px,5vw,68px);letter-spacing:-.03em}
.page-content{padding-bottom:70px}
.page-content p,.page-content li{font-size:22px;color:var(--muted)}
.water-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:36px;padding:34px 0 82px}
@media (max-width: 768px) {

  .water-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 50px;
    box-sizing: border-box;
  }

  .water-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    margin: 0 0 24px 0;
    box-sizing: border-box;
    border-radius: 22px;
  }

  .water-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .water-nav a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 22px;
    font-size: 18px;
    border-radius: 18px;
  }

  .water-panel {
    width: 100%;
    max-width: 100%;
    padding: 22px 18px;
    box-sizing: border-box;
    border-radius: 22px;
  }

  .water-panel h2 {
    font-size: 34px;
    line-height: 1.1;
  }
}
@media (max-width: 768px) {

  .water-panel {
    overflow: visible !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .water-panel h1,
  .water-panel h2,
  .water-panel h3 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .water-entry h1,
  .water-entry h2,
  .water-entry h3 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  .water-entry p,
  .water-entry div,
  .water-entry span {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .water-entry img,
  .water-entry video,
  .water-entry iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  .water-entry {
    max-width: 100%;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
}
.water-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:26px;box-shadow:var(--shadow);height:fit-content;position:sticky;top:118px}
.water-nav{display:flex;flex-direction:column;gap:18px}
.water-nav a{display:block;padding:24px 26px;border:2px solid #222;border-radius:24px;font-size:24px;font-weight:800;color:#111;background:#fff}
.water-nav a.active,.water-nav a:hover{background:var(--green);color:#fff;border-color:var(--green)}
.water-panel{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:34px;box-shadow:var(--shadow)}
.water-panel h2{margin:0 0 20px;font-size:56px;letter-spacing:-.03em}
.water-entry{padding:18px 0 26px;border-bottom:1px solid var(--line)}
.water-entry:last-child{border-bottom:0;padding-bottom:0}
.water-entry .date{font-size:20px;color:var(--muted);font-weight:700}
.water-entry h3{margin:6px 0 12px;font-size:34px}
.water-entry p{margin:0;font-size:21px;color:var(--muted)}
.media-row{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.media-row img{width:100%;max-width:260px;height:180px;object-fit:cover;border-radius:18px}
.file-list{display:grid;gap:14px}
.file-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.file-item span{font-size:21px;font-weight:700}
.table-wrap{overflow:auto}
.fin-table,.users-table{width:100%;border-collapse:collapse;background:#fff}
.fin-table th,.fin-table td,.users-table th,.users-table td{border:1px solid #cfd7d4;padding:18px 16px;text-align:left;font-size:21px;vertical-align:top}
.fin-table th,.users-table th{font-size:20px;background:#f3f6f4}
.fin-table tfoot td{font-weight:800}
.users-box{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow);margin-bottom:26px}
.users-head{padding:24px 28px;background:#f7f9f8;font-size:28px;font-weight:800;border-bottom:1px solid var(--line)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-height:58px;padding:0 18px;border-radius:999px;font-size:18px;font-weight:800;color:#fff}
.badge-green{background:#31bf4b}
.badge-red{background:#e24b41}
.amount{display:block;margin-top:10px;font-size:18px;font-weight:800;color:#16322a}
.login-required{margin-top:28px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.inline-login,.front-form{margin-top:22px;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface-2)}
.inline-login input,.front-form input[type="text"],.front-form input[type="date"],.front-form textarea,.front-form input[type="file"]{width:100%;padding:14px 16px;border-radius:14px;border:1px solid #cbd7d2;font:inherit}
.front-form textarea{min-height:160px;resize:vertical}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.notice-inline{padding:14px 18px;border-radius:16px;margin:0 0 18px;font-weight:700}
.notice-success{background:#e8f6ea;color:#165540}
.notice-error{background:#fdeceb;color:#9a2b25}
.site-footer{margin-top:60px;background:#0f2b24;color:#edf4f1}
.footer-top{padding:54px 0;display:grid;grid-template-columns:1.1fr .9fr .8fr;gap:30px}
.site-footer h3{margin:0 0 14px;font-size:28px}
.site-footer p,.site-footer li,.site-footer a{color:#dbe8e2;font-size:20px}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:18px 0;font-size:16px;color:#d0ddd7;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.login{font-family:var(--font-main)!important;background:linear-gradient(rgba(10,24,20,.42),rgba(10,24,20,.42)),url('https://kaznovice.com/wp-content/uploads/2026/04/Kaznovice.jpg') center/cover no-repeat!important}
.login #login{width:min(420px,calc(100% - 40px));padding-top:7vh}
.login h1 a{background-image:url('assets/images/logo.png')!important;background-size:contain!important;background-position:center!important;width:180px!important;height:92px!important}
.login form{border-radius:24px!important;border:1px solid rgba(255,255,255,.4)!important;box-shadow:0 18px 40px rgba(0,0,0,.18)!important;background:rgba(255,255,255,.96)!important}
.login .button-primary{background:var(--green)!important;border-color:var(--green)!important;box-shadow:none!important}
@media (max-width: 1100px){.card-grid,.footer-top{grid-template-columns:1fr 1fr}.water-layout{grid-template-columns:1fr}.water-sidebar{position:static}}
@media (max-width: 760px){.site-header-inner{min-height:84px}.branding img{width:98px;max-height:54px}.main-nav .menu{gap:4px}.main-nav a{padding:0 12px;font-size:16px;min-height:40px}.container{width:min(100% - 28px,1200px)}.hero{min-height:70vh}.home-intro{padding-top:46px}.card-grid,.footer-top,.media-row,.form-grid{grid-template-columns:1fr}.hero-text,.page-content p,.page-content li,.card p,.post-item p,.fin-table th,.fin-table td,.users-table th,.users-table td{font-size:18px}.water-nav a{font-size:20px}.water-panel h2{font-size:36px}}

@media (max-width: 900px){
  .site-header-inner{flex-wrap:wrap;justify-content:center;padding:12px 0}
  .branding{width:100%;display:flex;justify-content:center}
  .main-nav{width:100%}
  .main-nav .menu{justify-content:center;gap:8px}
  .hero{min-height:68svh;background-position:center center}
  .hero-content{padding:52px 0 56px}
  .hero-title{font-size:clamp(36px,11vw,58px);line-height:.98;max-width:9ch}
  .hero-text{font-size:20px;max-width:34ch}
  .hero-actions{gap:12px}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 560px){
  .site-header-inner{gap:10px;min-height:auto}
  .branding img{width:86px;max-height:48px}
  .main-nav .menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .main-nav li{display:flex}
  .main-nav a{width:100%;justify-content:center;text-align:center;padding:10px 8px;min-height:44px;font-size:15px;line-height:1.15}
  .hero{min-height:62svh}
  .hero-content{padding:40px 0 44px}
  .hero-title{font-size:clamp(34px,11vw,48px);max-width:8ch}
  .hero-text{font-size:18px}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .btn{min-height:50px;padding:0 18px;font-size:18px}
  .home-intro{padding-top:38px}
  .card-grid{grid-template-columns:1fr;gap:18px;padding:18px 0 50px}
  .card{padding:24px}
  .water-layout{gap:20px;padding-top:22px}
  .water-sidebar,.water-panel{padding:20px;border-radius:22px}
  .water-nav a{padding:18px 18px;font-size:18px;border-radius:18px}
  .water-panel h2{font-size:32px}
  .users-head{padding:18px 20px;font-size:24px}
  .fin-table th,.fin-table td,.users-table th,.users-table td{padding:14px 10px;font-size:16px}
  .badge{min-height:46px;font-size:15px;padding:0 14px}
  .amount{font-size:15px}
}
/* VODOVOD - sadržaj panela mobile fix */
@media (max-width: 768px) {

  .water-panel {
    width: 100%;
    max-width: 100%;
     overflow: visible !important;
    box-sizing: border-box;
  }

  .water-entry {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
  }

  .water-entry h3 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .water-entry-text,
  .water-entry-text p {
    width: 100%;
    max-width: 100%;
    font-size: 17px !important;
    line-height: 1.6 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .water-entry img,
  .water-entry video,
  .water-entry iframe,
  .water-entry .wp-video,
  .water-entry .mejs-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
/* VODOVOD - video mobile fix */
@media (max-width: 768px) {

  .water-entry .wp-video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px 0 !important;
  }

  .water-entry video,
  .water-entry .mejs-container,
  .water-entry .mejs-mediaelement,
  .water-entry .mejs-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .water-entry .mejs-container {
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
  }

  .water-entry .mejs-container video {
    height: 100% !important;
    object-fit: cover;
  }

  .water-entry-text {
    font-size: 17px !important;
    line-height: 1.65 !important;
    color: #5f6f6a;
  }

  .water-entry-text p {
    margin-top: 18px !important;
  }
}
/* VODOVOD - galerija/slajder za slike iz editora */
.water-entry-slider {
  position: relative;
  width: 100%;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 18px;
}

.water-entry-slider-track {
  display: flex;
  transition: transform 0.35s ease;
}

.water-entry-slider-slide {
  min-width: 100%;
  width: 100%;
}

.water-entry-slider-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.water-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
  z-index: 3;
}

.water-slider-prev {
  left: 10px;
}

.water-slider-next {
  right: 10px;
}

.water-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.water-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c3be;
  border: none;
  padding: 0;
}

.water-slider-dot.active {
  background: #244136;
}

@media (max-width: 768px) {
  .water-entry-slider {
    border-radius: 14px;
  }

  .water-entry-slider-slide img {
    border-radius: 14px;
  }

  .water-slider-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 34px;
  }
}
/* FINANSIJSKI IZVEŠTAJI - mobile kartice */
@media (max-width: 768px) {

  .table-wrap {
    overflow: visible !important;
  }

  .fin-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
  }

  .fin-table thead {
    display: none;
  }

  .fin-table,
  .fin-table tbody,
  .fin-table tr,
  .fin-table td {
    display: block;
    width: 100%;
  }

  .fin-table tr {
    background: #fff;
    border: 1px solid #dfe7e2;
    border-radius: 18px;
    padding: 14px 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    margin-bottom: 14px;
  }

  .fin-table td {
    border: none !important;
    padding: 8px 0 !important;
    font-size: 16px;
    line-height: 1.45;
    text-align: right;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .fin-table td::before {
    content: attr(data-label);
    display: block;
    text-align: left;
    font-weight: 800;
    color: #244136;
    margin-bottom: 3px;
  }

  .fin-table td[data-label="Opis"] {
    text-align: left;
  }

  .fin-table td[data-label="Prihod"],
  .fin-table td[data-label="Rashod"],
  .fin-table td[data-label="Stanje"] {
    font-weight: 700;
  }

  .fin-table tfoot tr,
  .fin-table tr.fin-total {
    background: #edf4ef;
    border: 2px solid #244136;
    font-weight: 800;
  }

  .fin-table input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
/* FINANSIJSKI IZVEŠTAJI - mobilni prikaz kao kartice */
@media (max-width: 768px) {

  .table-wrap {
    overflow: visible !important;
  }

  .fin-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
  }

  .fin-table thead {
    display: none !important;
  }

  .fin-table,
  .fin-table tbody,
  .fin-table tfoot,
  .fin-table tr,
  .fin-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .fin-table tr {
    background: #ffffff;
    border: 1px solid #dfe7e2;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  }

  .fin-table td {
    border: none !important;
    padding: 8px 0 !important;
    font-size: 16px;
    line-height: 1.45;
    text-align: right;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .fin-table td::before {
    content: attr(data-label);
    display: block;
    text-align: left;
    font-weight: 800;
    color: #244136;
    margin-bottom: 4px;
  }

  .fin-table td[data-label="Opis"] {
    text-align: left;
  }

  .fin-table td[data-label="Prihod"],
  .fin-table td[data-label="Rashod"],
  .fin-table td[data-label="Stanje"] {
    font-weight: 700;
  }

  .fin-table input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .fin-table .btn,
  .fin-table button {
    width: 100%;
    text-align: center;
  }

  .fin-table tr.fin-total {
    background: #edf4ef;
    border: 2px solid #244136;
    font-weight: 800;
  }

  .fin-table tr.fin-total td:first-child {
    font-size: 18px;
    color: #244136;
  }
}
/* SINGLE NOVOST - FINAL */

.single-news-page {
  background: #f3f6f2 !important;
  min-height: 100vh !important;
  padding: 60px 0 80px !important;
}

.single-news-page * {
  box-sizing: border-box;
}

.single-news-container {
  width: min(980px, calc(100% - 48px)) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-news-hero {
  padding: 40px 0 30px !important;
}

.single-news-back {
  display: inline-block !important;
  margin-bottom: 24px !important;
  color: #244136 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

.single-news-back:hover {
  text-decoration: underline !important;
}

.single-news-date {
  color: #6b7a75 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin-bottom: 16px !important;
}

.single-news-title {
  color: #203b32 !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1px !important;
  margin: 0 0 34px !important;
  max-width: 900px !important;
}

.single-news-image {
  width: 100% !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12) !important;
  background: #fff !important;
  margin-bottom: 30px !important;
}

.single-news-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.single-news-content-section {
  padding: 0 0 40px !important;
}

.single-news-content {
  background: #ffffff !important;
  border: 1px solid #dfe7e2 !important;
  border-radius: 28px !important;
  padding: 44px !important;
  box-shadow: 0 14px 35px rgba(0,0,0,0.07) !important;
  color: #34433e !important;
  font-size: 20px !important;
  line-height: 1.75 !important;
}

.single-news-content p {
  margin: 0 0 24px !important;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
  color: #203b32 !important;
  line-height: 1.2 !important;
  margin: 34px 0 18px !important;
}

.single-news-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 22px !important;
  margin: 20px 0 !important;
}

.single-news-content video,
.single-news-content iframe,
.single-news-content .wp-video,
.single-news-content .mejs-container {
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 768px) {

  .single-news-page {
    padding: 32px 0 60px !important;
  }

  .single-news-container {
    width: calc(100% - 28px) !important;
    max-width: 560px !important;
  }

  .single-news-hero {
    padding: 24px 0 20px !important;
  }

  .single-news-title {
    font-size: 34px !important;
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
    margin-bottom: 24px !important;
  }

  .single-news-date {
    font-size: 16px !important;
  }

  .single-news-image {
    border-radius: 20px !important;
  }

  .single-news-content {
    padding: 26px 20px !important;
    border-radius: 22px !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
  }

  .single-news-content img {
    border-radius: 16px !important;
  }
}
/* SINGLE NEWS - FORCE FIX */

.single-news-page {
  background: #f3f6f2 !important;
  padding: 60px 0 80px !important;
  width: 100% !important;
}

.single-news-hero,
.single-news-content-section {
  width: 100% !important;
}

.single-news-container {
  width: min(980px, calc(100% - 48px)) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.single-news-back {
  display: inline-block !important;
  margin-bottom: 24px !important;
  color: #244136 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.single-news-date {
  color: #6b7a75 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin-bottom: 16px !important;
}

.single-news-title {
  color: #203b32 !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  line-height: 1.08 !important;
  margin: 0 0 34px !important;
}

.single-news-content {
  background: #fff !important;
  border: 1px solid #dfe7e2 !important;
  border-radius: 28px !important;
  padding: 44px !important;
  box-shadow: 0 14px 35px rgba(0,0,0,0.07) !important;
  font-size: 20px !important;
  line-height: 1.75 !important;
  color: #34433e !important;
}

@media (max-width: 768px) {
  .single-news-page {
    padding: 32px 0 60px !important;
  }

  .single-news-container {
    width: calc(100% - 28px) !important;
    max-width: 560px !important;
  }

  .single-news-title {
    font-size: 34px !important;
    line-height: 1.14 !important;
  }

  .single-news-content {
    padding: 26px 20px !important;
    border-radius: 22px !important;
    font-size: 17px !important;
  }
}
/* Slike unutar single novosti */
.single-news-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 22px !important;
  margin: 24px auto !important;
}

.single-news-content figure {
  margin: 24px 0 !important;
}

.single-news-content .wp-caption {
  max-width: 100% !important;
}

.single-news-content figcaption,
.single-news-content .wp-caption-text {
  text-align: center;
  color: #6b7a75;
  font-size: 15px;
  margin-top: 8px;
}
/* VODOVOD - lepši prikaz spiska radova */

.water-entry {
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.water-entry .date {
  font-size: 18px;
  font-weight: 800;
  color: #6b7a75;
  margin-bottom: 16px;
}

.water-entry h3 {
  font-size: 34px;
  line-height: 1.18;
  color: #203b32;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}

.water-entry .media-row {
  margin: 0 0 24px;
}

.water-entry .media-row img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.water-entry-text {
  color: #4f625d;
  font-size: 20px;
  line-height: 1.75;
}

.water-entry-text p {
  margin: 0 0 20px;
}

.water-entry-text strong,
.water-entry-text b {
  color: #3f5550;
  font-weight: 800;
}

.water-entry-slider {
  margin-top: 8px;
  margin-bottom: 26px;
}

@media (max-width: 768px) {

  .water-entry {
    padding: 22px 18px;
    border-radius: 22px;
    margin-bottom: 24px;
  }

  .water-entry .date {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .water-entry h3 {
    font-size: 28px !important;
    line-height: 1.22 !important;
    margin-bottom: 18px;
  }

  .water-entry .media-row {
    margin-bottom: 22px;
  }

  .water-entry .media-row img {
    border-radius: 16px;
  }

  .water-entry-text {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }
}
/* VODOVOD - ograničenje visine slika u slajderu */

.water-entry-slider {
  width: 100%;
  max-height: 460px;
  overflow: hidden;
  margin: 22px 0 28px;
  border-radius: 20px;
  background: #f3f6f2;
}

.water-entry-slider-track {
  height: 460px;
}

.water-entry-slider-slide {
  min-width: 100%;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef3ef;
}

.water-entry-slider-slide img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
  margin: 0 !important;
  border-radius: 20px;
}
