* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #79aada;
    background-image: url(image/page_bg.gif);
    background-repeat: repeat-y;
    background-position: center 0;
    text-align: center;
}

#container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#qmenus {
    clear: both;
    display: block;
    background-color: #0099CC;
    padding: 2px 5px;
    height: 24px;
    text-align: center;
    overflow: hidden;
}

#qmenus marquee {
    font-size: 13px;
    color: #ffffff;
    line-height: 20px;
}

header {
    display: block;
    text-align: center;
    margin-bottom: 0;
}
.baner-slideshow {
    width: 100%;
    height: auto;
    aspect-ratio: 952 / 161;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.baner-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.baner-slideshow img.active {
    opacity: 1;
}

.modern-nav {
    background-color: #244875;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    font-family: Verdana, Arial, sans-serif;
    transition: padding 0.3s ease;
}

.nav-container {
    flex-wrap: wrap;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

.nav-brand-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    display: none;
    text-decoration: none;
    white-space: nowrap;
}

.burger-icon {
        display: none;
        width: 32px;
        height: 24px;
        position: relative;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
        outline: none;
 }
.menu-toggle {
    display: none;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    left: 0;
    transition: 0.25s ease-in-out;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 10px; }
.burger-icon span:nth-child(3) { top: 20px; }

.menu-toggle:checked ~ .burger-icon span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}
.menu-toggle:checked ~ .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.menu-toggle:checked ~ .burger-icon span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.main-menu li a.active {
    background-color: #0099CC !important;
    color: #ffffff !important;
}

.main-menu li a:hover {
    background-color: #3a6ba3;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1b3658;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    padding: 11px 18px;
    font-size: 13px;
    font-weight: normal;
    border-bottom: 1px solid #244875;
    white-space: normal;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.main-menu > li:hover .dropdown-menu {
    display: block;
}

#main-content {
    width: 100%;
    float: none;
    clear: both;
    padding: 15px 0 30px;
    background-color: #ffffff;
    flex: 1 0 auto;
}

#content-wrapper {
    padding: 0 20px;
    font-size: 15px;
}

.nav {
    font-weight: bold;
    font-size: 13px;
    line-height: 110%;
    padding: 8px 0;
    margin-bottom: 5px;
}

.maintitle {
    font: bold 22px/120% "Trebuchet MS", Verdana, Arial, sans-serif;
    color: #839fbc;
    text-decoration: none;
}

.style24 {
    color: #0099CC;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 18px;
}

.row1 {
    background: #f4f6fb;
    line-height: 1.6;
}

.postoverflow {
    padding: 5px;
}

.postoverflow p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
    color: #222;
}
.postoverflow ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.postoverflow strong {
    color: #1a1a1a;
}

.postoverflow video {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.style28 {
    color: #000000;
}

.style30 {
    color: #333333;
}

.history-slideshow {
    float: left;
    margin: 5px 15px 10px 0;
    width: 126px;
    height: 184px;
    position: relative;
    border: 1px solid #ccc;
    overflow: hidden;
    background: #eee;
}


.history-slideshow.large-slideshow {
    width: 300px !important;
    height: 230px !important;
    float: left;
    margin: 5px 20px 15px 0;
}

.history-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.history-slideshow img.active {
    opacity: 1;
}

.site-footer {
    background-color: #1a2a40;
    color: #ffffff;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.site-footer a {
    color: #0099CC;
    text-decoration: none;
    font-weight: bold;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modern-nav.scrolled .nav-container {
        padding: 8px 14px;
    }

    .modern-nav.scrolled .nav-brand-text {
        display: block;
    }

    .main-menu > li:hover .dropdown-menu {
        display: none;
    }
    .main-menu > li.open .dropdown-menu {
        display: block !important;
    }

    .burger-icon {
        display: block;
        margin-left:auto;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 16px 14px;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #244875;
        margin-top: 15px;
    }

    .menu-toggle:checked ~ .main-menu {
        display: flex;
    }

    .main-menu > li {
        width: 100%;
    }

    .main-menu > li > a {
        padding: 14px 16px;
        font-size: 15px;
        border-bottom: 1px solid #1b3658;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-menu > li > a.has-dropdown::after {
        content: '▸';
        font-size: 12px;
        transition: transform 0.2s;
    }

    .main-menu > li.open > a.has-dropdown::after {
        transform: rotate(90deg);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #16304f;
        min-width: 100%;
    }

    .main-menu > li.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 28px;
        font-size: 14px;
        border-bottom: 1px solid #244875;
    }

    #content-wrapper {
        padding: 0 12px;
    }

    .postoverflow p {
        font-size: 15px;
    }

    .postoverflow video[id="slika"], .history-slideshow:not(.large-slideshow) {
        float: left !important;
        max-width: 105px;
        height: 154px;
        margin: 4px 12px 6px 0 !important;
    }

    .history-slideshow.large-slideshow {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2;
        float: none !important;
        margin: 10px 0 !important;
    }

    .baner-slideshow {
        height: auto;
        aspect-ratio: 952 / 161;
    }
}

.transverzale-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
}

.transverzale-amblemi {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.transverzale-amblemi img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.transverzale-layout .postoverflow {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .transverzale-layout {
        flex-direction: column;
        gap: 10px;
    }

    .transverzale-amblemi {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .transverzale-amblemi img {
        width: auto;
        max-width: 80px;
        max-height: 90px;
        object-fit: contain;
    }
}

.video-kontejner {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
    max-width: 560px;
    margin: 20px auto;
}

.video-kontejner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.napomena-full {
    padding: 12px 15px;
}

@media (max-width: 768px) {
    .dropdown-arrow {
        display: none;
    }
}

body.menu-open {
    overflow: hidden;
}