﻿/* ==========================================================================
   ČISTI I SIGURNI CSS ZA www.vid.hr - 1. DIO (RAČUNALA I STRUKTURA)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
body {
    background-color: #f4f4f4;
    color: #333333;
    line-height: 1.6;
}

/* 1. GLAVNA NAVIGACIJA NA VRHU (Vodoravna traka bez podcrtavanja) */
nav {
    background-color: #34495e;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
}
nav ul {
    list-style: none;
}
nav ul li {
    display: inline-block;
    margin: 2px 10px;
}
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
}
nav ul li a:hover {
    color: #1abc9c;
}

/* 2. SLIDESHOW PANORAMA */
.slideshow-kontejner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}
.slajd {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slajd.aktivno {
    opacity: 1;
}
.slajd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fiksni-tekst-overlay {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.panorama-tekst {
    color: #ffffff;
    font-size: 2.2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-style: italic;
}

/* 3. GLAVNI KONTEJNER - DVA STUPCA (STRUKTURA ZA RAČUNALA) */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 3%;
    box-sizing: border-box;
}
main {
    width: 65%; /* Uklonjen !important da mobitel može prelomiti stranicu */
    flex: none;
}
.sidebar {
    width: 32%; /* Uklonjen !important da mobitel može prelomiti stranicu */
    flex: none;
}

/* 4. ZAJEDNIČKI STIL ZA SVE BIJELE BOXEVE (ZBIJENI RAZMAK 10PX) */
.box, section, .ostalo-container, .najava-sekcija {
    background-color: #ffffff;
    padding: 5px 15px 15px 15px; /* SMANJENO: Gornji razmak je sada samo 5px, ostali su ostali na 15px */
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box:hover, section:hover, .ostalo-container:hover, .najava-sekcija:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}
h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-top: 0 !important; /* Osigurano da nema nikakve gornje margine */
    margin-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 4px;
}
/* ==========================================================================
   ČISTI I SIGURNI CSS ZA www.vid.hr - 2. DIO (VIJESTI, PLAKATI I OSTALO)
   ========================================================================== */

/* 5. NAJNOVIJE VIJESTI I MISA LISTE */
.kontejner-vijesti, .misa-lista {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vijest-box-link, .misa-link-obicni, .misa-link-istaknut {
    display: block;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}
.vijest-box-link, .misa-link-obicni {
    background-color: #fcfcfc;
    color: #333333;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e1;
    transition: all 0.2s ease-in-out;
}
.vijest-box-link:hover, .misa-link-obicni:hover {
    padding-left: 17px;
    background-color: #f8fafc;
    border-left-color: #34495e;
    color: #2b6cb0;
}
.misa-link-istaknut {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fecaca;
    border-left: 4px solid #e53e3e;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}
.misa-link-istaknut:hover {
    padding-left: 17px;
    background-color: #fed7d7;
    color: #9b2c2c;
}
.gosti-naslov-link {
    text-decoration: none;
}

/* 6. NAJAVA DOGAĐANJA (AUTOMATSKO KLIZANJE PLAKATA) */
.plakat-prozor {
    overflow: hidden !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 10px 0 !important;
}
.plakat-traka {
    display: block !important;
    white-space: nowrap !important;
}
.automatska-vrtnja {
    display: inline-block !important;
    animation: vrtiPlakateLijevo 25s linear infinite !important;
}
.automatska-vrtnja:hover {
    animation-play-state: paused !important;
}
.thumbnail-container {
    cursor: pointer !important;
    width: 200px !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin-right: 15px !important;
    white-space: normal !important;
    transition: transform 0.2s ease-in-out !important;
}
.thumbnail-container:hover {
    transform: scale(1.06) !important;
}
.thumbnail-img {
    width: 100% !important;
    height: auto !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    display: block !important;
}
@keyframes vrtiPlakateLijevo {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 7.5px)); }
}

/* 7. KUTIJA OSTALO (DVIJE PJESME VODORAVNO, TREĆI BOX ISPOD NJIH) */
.ostalo-grid {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
.ostalo-grid::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}
.ostalo-box:nth-child(1), .ostalo-box:nth-child(2) {
    width: 48% !important;
    float: left !important;
    margin-right: 4% !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
}
.ostalo-box:nth-child(2) {
    margin-right: 0 !important;
}
.ostalo-box:nth-child(3) {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 5px !important;
    padding: 15px !important;
    text-align: center !important;
    color: #777777 !important;
    font-style: italic !important;
    box-sizing: border-box !important;
}
.image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 146px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    display: block !important;
    background-color: #000000 !important;
}
.image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease-in-out !important;
}
.image-sjenilo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-align: center !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}
/* ==========================================================================
   ČISTI I SIGURNI CSS ZA www.vid.hr - 3. DIO (SIDEBAR I RESPONSIVE)
   ========================================================================== */

/* 8. ELEMENTI SIDEBARA (METEO RED, OTPAD, UDRUGE) */
.meteo-gosti-red {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}
.meteo-gosti-red::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}
.meteo-gosti-red .box {
    width: 48% !important;
    float: left !important;
    margin-right: 4% !important;
    height: 182px !important; 
    margin-bottom: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.meteo-gosti-red .box:last-child {
    margin-right: 0 !important;
}
.meteo-plavi-box {
    background-color: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; 
}
.meteo-sadrzaj {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}
.meteo-sadrzaj iframe {
    display: block !important;
    margin: 0 auto !important;
    border: none !important;
}
.gosti-desni-box {
    background-color: #ffffff !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: background-color 0.2s ease !important;
}
.gosti-desni-box h2 {
    color: #2c3e50 !important;
    border-bottom: none !important;
    margin-bottom: 6px !important;
    font-size: 20px !important; 
    font-weight: bold !important;
}
.gosti-tekst-podrska {
    font-size: 12px !important;
    color: #64748b !important;
    font-style: italic !important;
    line-height: 1.2 !important;
    display: block !important;
}
.gosti-desni-box:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.gosti-desni-box:hover h2 {
    color: #2b6cb0 !important;
}
.otpad-slika {
    width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    display: block !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
.box:hover .otpad-slika {
    transform: scale(1.03) !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important; 
}
.udruge-box h2 {
    text-align: center !important;
    margin-bottom: 15px !important;
}
.udruge-grid {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important; 
    gap: 15px !important; 
    width: 100% !important;
    padding: 5px 0 !important;
}
.udruga-link-slika {
    display: block !important;
    max-width: 160px !important; 
    width: 100% !important;
    height: auto !important; 
    border-radius: 6px !important; 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
.udruga-link-slika:hover {
    transform: scale(1.06) !important; 
}

/* 9. HOVER ISTIKANJE ZA OSTALO */
.ostalo-box a:hover .image-wrapper img {
    transform: scale(1.05) !important; 
}
.ostalo-box a:hover .image-sjenilo {
    background: rgba(0, 0, 0, 0.75) !important; 
}

/* ==========================================================================
   10. PRILAGODBA ZA MOBITELE (RESPONSIVE)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .container {
        display: block !important;
        padding: 0 10px !important;
        margin: 10px auto !important;
    }
    main {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
    .sidebar {
        width: 100% !important;
        float: none !important;
        display: block !important;
    }
    .meteo-gosti-red {
        display: flex !important;
        gap: 10px !important;
    }
    .meteo-gosti-red .box {
        width: 50% !important;
        margin-right: 0 !important;
        height: 182px !important;
    }
    .gosti-desni-box h2 {
        font-size: 16px !important;
    }
    .ostalo-box:nth-child(1), .ostalo-box:nth-child(2) {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    .panorama-tekst {
        font-size: 1.3rem !important;
        padding: 0 10px !important;
    }
}
/* Potpuno uklanja podcrtavanje i s podebljanog teksta unutar linka arhive */
.arhiva-link strong {
    text-decoration: none !important;
}
/* NEPROBOJNO BRISANJE CRTE S LINKA ARHIVE */
a.arhiva-link, 
a.arhiva-link *, 
.arhiva-link strong {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Osigurava da se crta ne vrati ni kada se mišem prođe preko linka */
a.arhiva-link:hover, 
a.arhiva-link:hover * {
    text-decoration: none !important;
    border-bottom: none !important;
}