/* Reset */
*{margin:0; padding:0;}

img, table, body, div, body {border-width:0px;padding:0px;margin:0px}
img, img a{outline:none; border:none;}
body{background-color:#fff; color:#575757; font:81.3%  arial,times,serif; margin:0; padding:0;}
a, a:visited{outline:none; color:#4086c6; text-decoration:none;}
a:hover{text-decoration:underline;}

.clear:before, .clear:after{content:""; display:table;}
.clear:after{clear:both;}
.clear{zoom:1;}

header, section, footer, aside, nav, article{display:block;}

.page-width {max-width:960px; margin:0 auto; clear:both;}
.padd {padding:0px 10px 10px 10px;}

/* General Type */
h1, h2, h3, h4, h5, h6{color:#353434; font-family:"Ubuntu",arial;}
h1{font-size:3em; font-weight:bold; margin:15px 0 15px 0;}
h2{font-size:2.5em; font-weight:bold; margin:15px 0 15px 0;}
h3{font-size:2.2em; font-weight:bold; margin:15px 0 15px 0;}

.bold{font-weight:bold;}
.blue{color:#4086c6;}
.mapa{border:2px solid #4086c6;}
.big{font-size:2em}

/* Header */
#header {background:url("../images/headerbg.jpg") repeat-x 0 0; height:117px; padding:15px 0 0 0; 
         color:#2f2f2f; text-shadow:0 0 1px #fff; padding:10px;}
#header a.logo img {float:left; margin:0 10px 0 0; -webkit-transition:-webkit-transform 0.4s ease-out; -moz-transition:-moz-transform 0.4s ease-out; transition:transform 0.4s ease-out;}
#header a.logo img:hover{cursor:pointer; -webkit-transform:rotate(360deg); -moz-transform:rotate(360deg); transform:rotate(360deg);}
#header a.logo:hover {border-width:0px; background:none;}
#header div {float:left; margin:8px 0 0 18px;}
#header .company-info p {line-height:150%; font: 1.462em "Georgia";
    font-style: italic;
    font-weight: normal;}
#header h1{font-size:2.538em; font-weight:normal;}
#header h2{font:1.462em "Georgia"; font-style:italic; font-weight:normal; margin:-3px 0 0 0;}
#header nav{float:right;  margin:38px 40px 0 0;}
#header nav li{list-style-type:none; display:inline; margin:0 0 0 5px;}
#header a {padding:8px; border: 1px solid transparent; border-radius: 4px;}
#header a, #header:visited{color:#2f2f2f;}
#header a:hover, #header a.sel{text-decoration:none; color:#4086c6; border: 1px solid #4086c6; border-radius: 4px; background:rgba(64,134,198,0.1);}

.slideshow { padding:1em 0em;}
.mySlides {display: none;}
.slideshow-container { margin: auto; padding:2px 20px}
.dot { height: 15px; width: 15px; margin: 0 2px; background-color: #bbb;
       border-radius: 50%; display: inline-block; transition: background-color 0.6s ease;}
.active { background-color: #717171;}
.fade {  -webkit-animation-name: fade;-webkit-animation-duration: 3s; animation-name: fade; animation-duration: 3s;}
@-webkit-keyframes fade {    from {opacity: .2}    to {opacity: 1}}
@keyframes fade {    from {opacity: .2}    to {opacity: 1}}

#main p{font-size:1.154em; line-height:140%;}
#main section { margin:15px 0px;}
.sect {border-bottom: 1px #dbdbdb solid; padding-bottom: 20px }


.splitL{float:left;}
.splitL img {width:90%}
.splitR {float:right;}
.splitL, .splitR  {font-size:1.1em;  width:50%; line-height:135%; }
.splitL ul, .splitR ul {margin:5px 20px}

.akcija {width:100%; clear:both; border: 1px solid #4086c6;}
.akcija p {padding:10px; maring:10px; float:left; }
.akcija img {float:left; max-width: 150px; margin:10px; outline: 1px solid #4086c6; padding:2px; }

/* Footer */

#footer {margin:20px 0 0 0; padding:30px 0; background:#2d2d2d url("../images/footerbg.jpg"); text-shadow:0 0 1px #000;}
#footer nav{float:left; font-style:italic; font-size:1.1em; margin-left:20px}
#footer nav ul{margin:0; padding:0; list-style:none;}
#footer li{list-style-type:none; float:left; margin:0 35px 0 0;}
#footer li:last-child{margin-right:0;}
#footer a, #footer a:visited{color:#fff;}
.copyright{clear:both;float:right; color:#b8b8b8; margin: 10px}
.th img {padding:4px; margin:6px; border:2px solid #fff; max-width: 300px}
.th img:hover {border:2px solid #4086c6}


/* MEDIA QUERIES */

/* Under 850px */
@media only screen and (max-width: 850px) {
    #header nav{font-size:1em; margin:25px 0 0 0;}
    #header nav li{margin:0 0 0 4px;}
    #header .logo img{width:80px;}
    #header h1{font-size:2em;}
    #header h2{font-size:1em;}
    #main h2{font-size:3em;}
    .splitR {float:left; width: 100%}
    .splitL {float:left; width: 100%}
    #main h2{font-size:2.7em;  margin:0 0 15px 0;}
    #main h3{font-size:2em;  margin:0 0 15px 0;}
    #main p{font-size:1.1em; line-height:130%;}
    #main section { margin:15px 0px;}
    #header a {padding:6px;}

}

/* Under 470px */
@media only screen and (max-width: 470px) {
    
   
    #header nav{font-size:0.8em; float:left; clear:both}
    #header nav li {margin-right: 2px}
    #header .logo img {width:50px;}
    #header  h1{font-size:1.3em;}
    #header  h2{font-size:0.8em;}
    #header a {padding:4px;}
    #main h2{font-size:2.4em;  margin:0 0 12px 0;}
    #main h3{font-size:1.8em;  margin:0 0 12px 0;}
    #main p{font-size:1em; line-height:120%;}
    .copyright{float:right; margin:20px 20px 2px 2px}
}


/* Under 330px */
@media only screen and (max-width: 330px)  {
    #header a {padding:3px; border: 1px solid transparent; border-radius: 4px;}
    #header nav{font-size:0.7em;}
    #header nav li {margin:10px; display: block; float:left}
    #header h1{font-size:1.1em;}
    #footer li {margin-right: 11px}
    #header div {clear:both; margin:13px 0px}
    #main h2{font-size:1.2em;}
    #main h3{font-size:1em;}
    .mapa {width: auto; height: auto}
    .th img {height: auto; width:100%;}

}

/* ---- Dropdown nav ---- */
#header nav li.has-dropdown {
    position: relative;
}
#header nav li.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8em;
    opacity: 0.7;
}
#header nav .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #4086c6;
    border-radius: 4px;
    min-width: 190px;
    z-index: 200;
    padding: 4px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
}
#header nav .dropdown li {
    display: block;
    margin: 0;
}
#header nav .dropdown li a {
    display: block;
    padding: 7px 14px;
    white-space: nowrap;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: #2f2f2f;
}
#header nav .dropdown li a:hover,
#header nav .dropdown li a.sel {
    background: rgba(64,134,198,0.12) !important;
    color: #4086c6;
}
/* Desktop: show on hover */
@media (hover: hover) {
    #header nav li.has-dropdown:hover .dropdown {
        display: block;
    }
}
/* Touch / mobile: show on .open class toggled by JS */
#header nav li.has-dropdown.open .dropdown {
    display: block;
}
/* Mobile: dropdown goes full-width, static position */
@media only screen and (max-width: 470px) {
    #header nav li.has-dropdown {
        position: static;
    }
    #header nav .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        min-width: 0;
        border-top: none;
        margin-top: 2px;
    }
    #header nav .dropdown li a {
        padding: 5px 10px;
        font-size: 0.95em;
    }
}

/* Home latest news cards */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 14px;
    align-items: stretch;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #c8d8ea;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    transition: box-shadow .15s;
}
.home-news-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.13);
}

/* image wrapper — fixed 16:9 via padding-bottom trick */
.hnc-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eef4;
}
.hnc-img-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    margin: 0;
    padding: 0;
    float: none;
    max-width: none;
    transition: transform .2s;
}
.home-news-card:hover .hnc-img-wrap img {
    transform: scale(1.03);
}
.hnc-img-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #dce8f0;
}

/* card body — flex column so footer sticks to bottom */
.hnc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}

.hnc-title {
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.35;
    /* max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.hnc-title a {
    color: #1a3d5c;
    text-decoration: none;
}
.hnc-title a:hover {
    text-decoration: underline;
    color: #4086c6;
}

.hnc-excerpt {
    font-size: .9em;
    color: #444;
    margin: 0 0 12px;
    line-height: 1.45;
    flex: 1;
    /* max 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hnc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e4edf5;
    padding-top: 9px;
    margin-top: auto;
}
.hnc-date {
    font-size: .8em;
    color: #888;
}
.hnc-link {
    font-size: .85em;
    font-weight: bold;
    color: #4086c6;
    text-decoration: none;
    white-space: nowrap;
}
.hnc-link:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 850px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }
}

/* News list page — horizontal card layout */
.news-list-card {
    flex-direction: row !important;
    margin-bottom: 18px;
}
.news-list-card .hnc-img-wrap {
    width: 260px;
    min-width: 260px;
    padding-bottom: 0;
    height: 165px;
}
.news-list-card .hnc-body {
    padding: 14px 18px;
}
.news-list-card .hnc-title {
    -webkit-line-clamp: unset !important;
    min-height: 0 !important;
    font-size: 1.05em;
}
.news-list-card .hnc-excerpt {
    -webkit-line-clamp: unset !important;
}

@media only screen and (max-width: 600px) {
    .news-list-card {
        flex-direction: column !important;
    }
    .news-list-card .hnc-img-wrap {
        width: 100%;
        min-width: 0;
        padding-bottom: 56.25%;
        height: 0;
    }
}

/* Static page content images */
.static-page-content img {
    max-width: 500px;
    width: auto;
    height: auto;
}

@media only screen and (max-width: 470px) {
    .static-page-content img {
        max-width: 100%;
    }
}
