/* --- 1. OSNOVNA PODEŠAVANJA --- */

/* open-sans-regular - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-cyrillic_latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-600 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v44-cyrillic_latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-700 - cyrillic_latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v44-cyrillic_latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: #333; line-height: 1.6; background-color: #fff; }



/* --- COMPACT TOP META BAR (30px) --- */
.top-meta-bar {
    background-color: #f5f5f5; /* Veoma svetla siva */
    height: 30px; /* FIKSNA VISINA */
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.meta-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px; /* Razmak između linkova */
}

.meta-links li a {
    color: #555;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 30px; /* Ista kao visina kontejnera za savršeno centriranje */
    display: block;
    transition: color 0.2s ease;
}

.meta-links li a:hover {
    color: #00629B; /* IEEE Plava na hover */
}

/* Sakrivanje na mobilnom uređaju radi preglednosti */
@media (max-width: 768px) {
    .top-meta-bar { display: none; }

    /* Smanjujemo visinu belog dela zaglavlja */
    .main-header {
        padding: 8px 0 !important;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    }

    /* Sve ide u jedan red, logo levo - dugme desno */
    .header-flex {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    /* Logo i naslov sekcije */
    .logo-area {
        gap: 10px; /* Smanjen razmak između logoa i teksta */
    }

    .ieee-logo {
        height: 30px !important; /* Tanji logo za više prostora */
    }

    .section-title {
        font-size: 10px !important;
        padding-left: 10px !important;
        border-left: 1px solid #00629B !important;
    }

    /* Dugme Contact Us - minimalistički stil */
    .contact-btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
        white-space: nowrap;
        margin: 0 !important;
    }

/* --- PRILAGOĐAVANJE ZA MOBILNE UREĐAJE --- */

    .chapters-bar {
        padding: 8px 0;
    }

    .chapters-label {
        font-size: 10px;
        margin-right: 12px;
    }

    .chapters-links a {
        padding: 4px 10px;
        font-size: 10.5px;
    }

    
/* --- RESPONZIVNOST --- */

    .footer-bottom {
        text-align: center;
    }
    .footer-legal {
        font-size: 12px !important;
    }
    
 /* --- 9. RESPONSIVE (MOBILNI) --- */

    .header-flex {flex-direction: row; align-items: center; justify-content: space-between; }
    .section-title { border: none; padding: 0; margin-top: 5px; }
    
    .nav-container { justify-content: space-between; padding: 0 15px; }
    .mobile-label { display: block; color: white; font-weight: bold; font-size: 14px; }
    
    .menu-toggle { 
        display: none; flex-direction: column; justify-content: space-between; 
        width: 25px; height: 18px; background: none; border: none; cursor: pointer;
    }
    .bar { width: 100%; height: 3px; background: white; transition: 0.3s; }
    

    
    

 /*   .hero { min-height: 350px; text-align: center; }
    .hero h1 { font-size: 28px; }  */
    
    .main-grid { grid-template-columns: 1fr; gap: 30px; padding: 20px 15px; }
    
    /* Na mobilnom slika ide iznad teksta u vestima */
    .news-item { flex-direction: column; }
    .news-image-side { width: 100% !important; flex: none; margin-bottom: 15px; }
    .news-img { height: 180px; }

/* MOBILE */

    #backToTop {
        width: 42px;
        height: 42px;
        bottom: 18px;
        right: 18px;
    }

    /* Prilagođavanje za Samsung A55 i ostale telefone */

    /* Dugme za zatvaranje modala */
    .custom-modal-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    /* SMANJIVANJE RAZMAKA IZNAD I ISPOD NASLOVA NEWS */
    main.container.my-5 {
        margin-top: 20px !important; /* Primakni NEWS slajderu */
        padding-top: 0 !important;
    }

    .section-heading {
        margin-bottom: 15px !important; /* Smanji razmak ispod naslova NEWS */
        font-size: 18px !important;    /* Malo smanji slova naslova */
    }
        /* Uklanjamo fiksnu širinu kontejnera slike na mobilnom */
    .news-image-side {
        width: 100% !important;
        flex: none !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
        text-align: center; /* Centriranje slike ako nije skroz do ivica */
    }

    /* Slika se širi da popuni prostor, ali ne postaje preogromna */
    .news-img {
        width: 100% !important; /* Širi sliku od ivice do ivice */
        height: auto !important; /* Održava proporcije slike */
        max-width: 300px; /* Sprečava da portret postane previsok */
        max-height: none !important; 
        object-fit: cover; /* Za portrete je bolje cover, za logotipe contain */
        border-radius: 8px;
    }
    
    /* Poseban tretman za logotipe (ako imaju belu pozadinu) */
    .news-image-side img[src*="logo"], 
    .news-image-side img[src*="summit"] {
        object-fit: contain !important;
        background: #f8f9fa; /* Blaga siva pozadina da popuni prazninu oko logotipa */
        padding: 10px;
    }
/* Prilagođavanje za mobilni */

    .cookie-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        margin-top: 10px;
    }
    .cookie-text {
        max-width: 100%;
    }
/* Mobilni režim */
    /* --- JEDINSTVENI I ISPRAVNI STILOVI ZA MOBILNI MENI --- */
    .nav-list {
        display: none !important;
        position: absolute;
        top: 100%; /* Podesi na 50px ili 100% zavisinski od visine tvog hedera */
        left: 0;
        width: 100%;
        background: #004a75; /* Prepoznatljiva plava pozadina */
        flex-direction: column;
        text-align: left;
        z-index: 2000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        pointer-events: none;
    }

    .nav-list.active {
        display: flex !important; /* Mora biti flex da bi poređao stavke */
        pointer-events: auto !important; /* Omogućava klikove tek kada se otvori */
    }

    .nav-list li a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px 25px;
        color: white; /* Da se tekst vidi na plavoj pozadini */
    }

    #mobile-menu {
        display: flex !important; /* Hamburger dugme mora biti vidljivo na mobilnom */
    }

/* MOBILE LOGO */

    .main-header {
        padding: 8px 0 !important;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    }

    .ieee-logo {
        height: 42px;
    }

    .section-title {
        font-size: 12px;
        line-height: 1.2;
    }
}



/* --- 2. HEADER --- */
/* --- 2. HEADER SEKCIJA (UNAPREĐENA) --- */
/* --- 2. HEADER SEKCIJA (PROČIŠĆENO) --- */
.main-header { 
    padding: 20px 0; /* Blago povećan prostor za "prozračniji" izgled */
    background: #fff; 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* LEVA STRANA: Logo i naslov */
.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.ieee-logo { 
    height: 52px; 
    width: auto; 
    display: block; 
}

.section-title { 
    color: #00629B; 
    font-weight: 700; 
    font-size: 18px; 
    line-height: 1.2;
    border-left: 2px solid #00629B; 
    padding-left: 20px;
    text-transform: uppercase;
}

/* Poništava stil linka za naslov sekcije */
.title-link {
    text-decoration: none !important; /* Uklanja podvlačenje */
    color: inherit !important;       /* Uzima boju od roditeljskog elementa (section-title) */
    cursor: pointer;                 /* Zadržava kursor u obliku ruke da bi se znalo da je klikabilno */
    display: inline-block;           /* Osigurava da link obuhvati ceo tekst */
}

.title-link:hover, 
.title-link:focus, 
.title-link:active {
    text-decoration: none !important; /* Sprečava pojavu linije pri prelasku mišem */
    color: inherit !important;       /* Sprečava promenu boje u plavu pri kliku */
}


/* DESNA STRANA: Samo dugme za kontakt */
.header-right {
    align-items: center;
}

/* Glavno narandžasto dugme */
.contact-btn { 
    display: inline-block;
    background-color: #005b96;
    color: white !important; 
    padding: 11px 24px; 
    border: 2px solid #005b96;
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 91, 150, 0.15);
}

.contact-btn:hover { 
    background-color: #E97D2E; 
    border-color: #E97D2E;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 125, 46, 0.25);
    text-decoration: none;
}

/* Prilagođavanje za tablete */
@media (max-width: 992px) {
    .section-title { font-size: 16px; }
    .ieee-logo { height: 45px; }
}


/* --- MOBILNI HEADER (Samo Logo i Contact dugme) --- */
/* --- MOBILNI HEADER (Kompaktna verzija za Samsung A55) --- */


/* --- 3. NAVIGACIJA --- */
/* --- Glavna Navigacija --- */
/* --- OSNOVNI STILOVI (Zajednički) --- */
.main-nav { 
    background-color: #00629B !important; 
    min-height: 50px; 
    width: 100%; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.nav-container { 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    height: 50px;
    max-width: 1320px; 
    margin: 0 auto;    
    padding: 0 15px; 
}

/* --- DESKTOP VERZIJA (Samo iznad 768px) --- */
@media screen and (min-width: 769px) {

    .nav-list { 
        display: flex !important; 
        flex-direction: row !important; 
        justify-content: flex-start !important; 
        list-style: none; 
        margin: 0; 
        padding: 0;
        position: static !important; 
        width: auto !important; 
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        box-shadow: none !important;
    }

    .nav-list li {
        width: auto !important; 
    }

    .nav-list li a { 
        color: white !important; 
        padding: 14px 18px;
        display: block; 
        font-size: 14px; 
        font-weight: 600; 
        text-decoration: none;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .nav-list li a:hover {
        background-color: #004a75;
    }

    /* Aktivna stranica */
    .nav-list li a.active {
        background-color: #004a75 !important;
        box-shadow: inset 0 -4px 0 0 #E97D2E;
        color: #ffffff !important;
    }

    /* Sakrij mobilne elemente na desktopu */
    .menu-toggle,
    .mobile-label { 
        display: none !important; 
    }

}

/* --- SREDNJE REZOLUCIJE (Laptopovi) --- */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    /* Osiguravamo da je i ovde traka centrirana po visini */
    .nav-container {
        display: flex !important;
        align-items: center !important;
        height: 50px;
    }

    .nav-list li a {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px !important;
        text-transform: none !important; /* Da ExCom ostane ExCom i ovde */
        padding-top: 15px !important;    /* Održava visinu klika */
        padding-bottom: 15px !important;
    }
}




    /* 1. GLAVNA PLAVA TRAKA - Forsiramo visinu i flex centriranje */
@media screen and (max-width: 768px) {

    .main-nav {
        position: relative !important;
        height: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }



    .nav-container {
        display: flex !important;
        align-items: center !important;
        /* Gura sadržaj skroz desno */
        justify-content: flex-end !important; 
        width: 100% !important;
        padding-right: 15px !important; /* Razmak od desne ivice ekrana */
    }


    /* 2. HAMBURGER DUGME - Centriranje bez margina */
 .menu-toggle {
        display: none !important;
        flex-direction: column;
        justify-content: space-around; /* Ravnomerni razmak između linija */
        height: 20px !important; /* Fiksna visina za centriranje */
        width: 26px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer;

        /* KLJUČNE LINIJE ZA POZICIJU */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important; /* Gura hamburger na desnu stranu */
        margin-right: 10px !important; /* Razmak od desne ivice ekrana */
        
        align-self: center !important; /* Forsira vertikalno centriranje */
    }

    /* Linije hamburgera */
    .menu-toggle .bar {
        height: 3px !important;
        width: 100% !important;
        background-color: #8c8c8c !important;
        display: block !important;
    }

    /* 3. PADUJUĆI MENI */
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #00629B !important;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-list.active {
        display: flex !important;
    }

       .nav-list li a {
        padding: 10px 25px !important; 
        color: white !important;
        
        /* UKLANJA PODVLAČENJE SLOVA */
        text-decoration: none !important; 
        
        /* OSTAVLJA TANKU LINIJU RAZGRANIČENJA IZMEĐU STAVKI */
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        
        display: block;
        font-size: 14px; 
        transition: background 0.2s;
    }
    
    .nav-list li a.active {
        background-color: rgba(255, 255, 255, 0.1) !important; /* Blago svetlija pozadina */
        border-left: 5px solid #E97D2E !important; /* Narandžasta traka levo */
        padding-left: 20px !important; /* Smanjen padding da tekst ostane u ravni */
        font-weight: bold;
    }
    
     .chapters-bar {
        display: none !important;
    }
    
}



/* Hover efekti (važe svuda) */
.nav-list li a:hover, .nav-list li a.active { 
    background-color: #004a75; 
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}




/* --- MOBILNA VERZIJA (Ispod 768px) --- */


/* --- POPRAVKA ZA SREDNJE REZOLUCIJE (900px - 1050px) --- */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .nav-list li a {
        padding-left: 8px !important;   /* Smanjuje razmak sa strana */
        padding-right: 8px !important;
        font-size: 13px !important;    /* Smanjuje font da sve stane */
    }
    
    .nav-list {
        justify-content: space-around; /* Ravnomernije raspoređuje stavke */
        gap: 0;                        /* Briše dodatni razmak ako postoji */
    }
}





/* --- CHAPTERS QUICK LINKS BAR --- */
/* --- CHAPTERS BAR KONTEJNER --- */
/* --- CHAPTERS BAR OSNOVNI STIL --- */
.chapters-bar {
    background-color: #002855; 
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    color: white;
    width: 100%;
    overflow: hidden; /* Sprečava curenje sadržaja van trake */
}

.chapters-bar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Forsiramo jednu liniju */
}

.chapters-label {
    font-weight: 700;
    font-size: 11px;
    margin-right: 20px; /* Razmak između labela i prvog linka */
    text-transform: uppercase;
    color: #00B5E2; 
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.chapters-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; 
    overflow-x: auto; /* Omogućava skrolovanje levo-desno */
    -webkit-overflow-scrolling: touch; /* Glatko skrolovanje na mobilnom */
    scrollbar-width: none; /* Sakriva scrollbar na Firefoxu */
    gap: 0; 
}

/* Sakrivanje scrollbar-a za Chrome, Safari i Edge */
.chapters-links::-webkit-scrollbar {
    display: none;
}

.chapters-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 12px; 
    border-right: 1px solid rgba(255,255,255,0.2); 
    transition: all 0.3s ease;
    line-height: 1;
}

.chapters-links a:last-child {
    border-right: none;
}

.chapters-links a:hover {
    color: #E97D2E; /* IEEE narandžasta */
}

/* --- STIL ZA AKTIVNI CHAPTER --- */
.chapters-links a.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -3px 0 0 #E97D2E; 
    border-right: 1px solid transparent;
}





/* --- HERO SLIDER OSNOVA --- */
/* 1. Neka hero sekcija uvek zauzima 100% visine svog roditelja (slajda) */
.hero { 
    height: 100%; 
    width: 100vw;
    /* Ako za desktop želite contain, ovde to naglasite: */
    background: #001224 url('image/slide1.webp') center center / contain no-repeat !important;
    display: flex; 
    align-items: center; 
    color: #ffffff; 
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

/* Specijalno pravilo samo za slajd sa mapom Srbije i Crne Gore */
.hero-contain-map {
    width: 100%;
    height: 100% !important;
    background-repeat: no-repeat !important;
    background-color: #00162d !important;
    display: flex;
    align-items: center;
    flex: 1;
}

/* --- PODEŠAVANJE ZA 1920px i veće --- */
@media screen and (min-width: 1920px) {
    .hero-contain-map {
        height: 520px !important;
        min-height: 520px !important;
        background: #001224 url('image/slide1.webp') center center / contain no-repeat !important;
        background-size: 50% auto !important;
        background-position: center 60% !important;
    }
}







/* MOBILE */

/* ==========================================================================
   UJEDINJENA I OPTIMIZOVANA MEDIJA UPIT ZA MOBILNE UREĐAJE (MAX-WIDTH: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

 
/* 1. Forsiramo veliku visinu celog karusela na mobilnom */
/* Fiksiramo visinu na optimalnih 480px da nema praznina */
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 440px !important;    
        min-height: 440px !important;
    }

    .hero-contain-map,
    .hero {
        height: 440px !important;
        min-height: 440px !important;
        background-image: url('image/slide1.webp') !important;
/*        background-color: #001224 !important;  */
        background-position: 93% center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important; 
        
        /* Centriramo sav sadržaj savršeno po vertikali i horizontali */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 0 !important;
        text-align: center !important;
    }

    /* 4. Poravnanje i senka tekstualnog kontejnera za maksimalnu čitljivost */
    .hero-text {
        text-align: center !important;
        padding-left: 15px !important; 
        padding-right: 15px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9) !important; /* Senka koja odvaja tekst od mape */
    } 

    /* 5. Ujednačene i čitljive veličine slova na telefonu */
    .hero-text h1, 
    .hero h1 {
        font-size: 1.75rem !important; /* Naslov staje u dva reda i ne zaklanja gradove */
        margin-top: -5px !important;
        margin-bottom: 12px !important;
        line-height: 1.25 !important;
    }

    .hero-text p, 
    .hero p {
        font-size: 0.95rem !important;        
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
    }

    /* 6. Sitna podešavanja za dugme i kontrolne strelice */
    .hero-btn {
        padding: 7px 18px !important;
        font-size: 12px !important;
        margin-top: 1px !important;
    }

    .carousel-control-prev-icon, 
    .carousel-control-next-icon {
        width: 20px !important;
        height: 20px !important;
    }
}




/* Osiguravamo da slike u carouselu uvek popune prostor pravilno */
.carousel-item {
    height: 70vh; 
    min-height: 500px; 
    display: flex !important;
    align-items: center;
}

/* Osiguravamo da se unutrašnja hero sekcija savršeno razvuče preko cele visine slajda */
.carousel-item .hero {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    align-items: center;
}


/* 3. Popravka indikatora (linija) */
.carousel-indicators {
    bottom: 20px !important; /* Ovo ih drži uz samu donju ivicu slike */
    z-index: 15;
    margin-bottom: 1rem; /* Bootstrap-ov podrazumevani razmak */
}

.carousel-indicators [button], 
.carousel-indicators button {
    width: 30px !important;      /* Dužina crtice */
    height: 4px !important;      /* Debljina crtice - Povećano da se vidi! */
    background-color: #00629B !important; /* IEEE tamno plava boja */
    border: 1px solid white !important;   /* Bela ivica oko plave crtice za kontrast */
    opacity: 0.7;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: white !important; /* Svetlo plava za aktivni slajd */
    opacity: 1;
    width: 60px !important; /* Aktivna crtica je duža */
}
#ieeeHeroCarousel {
    margin-bottom: 0 !important; /* Uklanja spoljni razmak ispod slidera */
}

.carousel-inner {
    margin-bottom: 0 !important;
}


.hero-text { 
    position: relative; 
    z-index: 1; 
    max-width: 700px; 
}

.hero h1 { 
    font-size: 42px; 
    margin: 10px 0; 
    line-height: 1.2; 
    font-weight: 700; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Dodato radi čitljivosti */
}

.hero p { 
    font-size: 18px; 
    margin-bottom: 25px; 
    opacity: 0.9; 
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-btn { 
    border: 2px solid white; 
    padding: 10px 25px; 
    color: white;
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s;
    display: inline-block;
}

.hero-btn:hover { 
    background: white; 
    color: #00629B; 
}



/* Glatko kretanje */
html {
    scroll-behavior: smooth;
}

/* Pravi prazan prostor iznad vesti kada se na nju "skoči" */
/* 80px je otprilike visina tvoje plave navigacione trake */
[id] {
    scroll-margin-top: 80px; 
}


/* Smanjivanje visine cele trake SEkcija statistika */
/* Maksimalno smanjivanje cele trake */
/* Primarno smanjivanje celog bloka */
/* --- ZAJEDNIČKI STILOVI --- */
/* --- OSNOVNI STIL (Minimalna visina) --- */
.stats-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 5px 0 !important; /* Ekstremno mala visina */
    overflow: hidden;
}

.custom-stat-row {
    display: block; /* Menjamo sa flex na block za sigurniji skrol */
    white-space: nowrap; /* Forsira sve elemente u jedan red */
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.custom-stat-col {
    display: inline-block; /* Elementi idu jedan do drugog */
    vertical-align: middle;
    padding: 5px 0;
}

/* Stil za brojeve i tekst */
.stats-bar h3 {
    font-size: 20px !important; /* Smanjen font za manju visinu */
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 800;
    color: #00629B;
}

.stats-bar small {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}


/* Dodatni fiks da se ukloni praznina iznad NEWS naslova */
.news-section, #news {
    margin-top: 0 !important;
    padding-top: 15px !important;
}


/* --- DESKTOP (Vraćanje na 4 u redu) --- */
@media (min-width: 992px) {
    .custom-stat-col {
        width: 24%; /* 4 kolone u redu */
    }
    .custom-stat-row {
        display: flex;
        justify-content: space-between;
        overflow: hidden; /* Gasi skrol na desktopu */
    }
    .custom-stat-col h3 {
        font-size: 2.5rem; /* Veliki brojevi na desktopu */
    }
}


/* Sakrivanje scrollbar-a */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }






/* --- 5. MAIN LAYOUT --- */
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 40px 20px; }
.section-heading { 
    border-bottom: 3px solid #00629B; 
    color: #00629B;
    display: inline-block; 
    margin-bottom: 25px; 
    padding-bottom: 5px; 
    font-weight: 700; 
    text-transform: none !important; /* PROMENJENO: Isključuje velika slova */
    font-size: 22px;
}


/* --- 6. VESTI (NEWS) --- */
.news-item {
    border-left: 4px solid #00629B; 
    background: #fff;
    padding: 15px; 
    margin-bottom: 20px; 
    transition: all 0.3s ease; /* Glatka tranzicija za sve elemente */
    position: relative;
    cursor: pointer; /* Sugeriše da je cela vest klikabilna */
}

/* --- HOVER EFEKAT ZA CELU VEST --- */
.news-item:hover { 
    background: #fcfcfc; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* Nešto jača senka za dubinu */
    transform: translateX(5px); /* Blago pomeranje udesno */
    border-left-color: #E97D2E; /* Promena boje linije u narandžastu na hover */
}

/* Promena boje naslova kada se pređe mišem preko bilo kog dela vesti */
.news-item:hover .news-title {
    color: #002855; /* Tamnija plava na hover za jači fokus */
}

/* Slika u vestima */
.news-image-side {
    flex: 0 0 180px !important; 
    margin-right: 20px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    background-color: #fff; 
}

.news-image-container img {
    width: 150px;    /* ili širina koju već koristiš */
    height: 100px;   /* fiksna visina */
    object-fit: contain; /* ovo će sačuvati proporcije slike bez rastezanja */
    background: #f8f9fa; /* lagana siva pozadina ako je slika manja */
}



.news-img {
    width: 100% !important; 
    height: auto !important; 
    max-height: 120px; 
    object-fit: contain !important; 
    border-radius: 0; 
}

/* Tekst u vestima */
.news-body-side { flex: 1; }

.news-date { 
    color: #ffffff; /* Bela slova za savršen kontrast */
    background-color: #00629B; /* Zvanična IEEE tamnoplava boja (IEEE Blue) */
    font-weight: 700; 
    font-size: 12px; /* Blago smanjen font jer bedž sam po sebi daje na važnosti */
    display: inline-block; /* Drži pozadinu tačno oko teksta, ne širi se preko celog ekrana */
    padding: 3px 10px; /* Unutrašnji razmak (gore-dole 3px, levo-desno 10px) za lep oblik bedža */
    border-radius: 4px; /* Blago zaobljene ivice u stilu modernih komponenti */
    margin-bottom: 8px; /* Razmak između bedža i plavog naslova ispod njega */
    text-transform: uppercase; /* Pretvara tekst u velika slova za čistiji i profesionalniji izgled */
    letter-spacing: 0.5px; /* Blagi razmak između slova radi bolje čitljivosti */
}


.news-title { 
    color: #00629B; 
    font-size: 19px; 
    margin-bottom: 5px; 
    font-weight: 700; 
    line-height: 1.3; 
    transition: color 0.3s ease;
}

.news-excerpt { 
    font-size: 14px; 
    color: #555; 
    margin-bottom: 10px; 
    text-align: justify;
    hyphens: auto;
}

/* Dugme Read More */
.more-btn, .more-link {
    background: none; 
    border: none; 
    color: #00629B;
    font-weight: 700; 
    font-size: 14px; 
    cursor: pointer;
    text-decoration: none; 
    transition: all 0.2s ease; 
    display: inline-block;
}

/* Hover efekat za Read More (uključujući pomeranje kad se pređe preko cele vesti) */
.news-item:hover .more-link { 
    color: #E97D2E; 
    padding-left: 8px; /* Strelica se blago pomera udesno */
}

/* --- MODAL I COLLAPSE (Tvoji originalni stilovi) --- */
.modal-backdrop.show {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(0, 0, 0, 0.85) !important;
}

#modalImg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: transform 0.3s ease-out;
}

.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.collapse { transition: all 0.35s ease; }

.news-full-text {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    color: #444;
    font-size: 14px;
}

.news-full-text p {
    text-align: justify;
    hyphens: auto;
}

/* --- MOBILNA OPTIMIZACIJA --- */
@media (max-width: 576px) {
    .news-excerpt, .news-full-text p {
        text-align: left;
    }
    .news-item:hover {
        transform: none; /* Isključujemo pomeranje na mobilnom radi stabilnosti */
    }
}
/* --- 7. SIDEBAR --- */
/* --- SIDEBAR KONTEJNERI --- */
/* Kutija sidebara - Čista podloga */
/* --- SIDEBAR BOX KONTEJNER --- */
.sidebar-box {
    background: #ffffff;
    padding: 0 20px 20px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

/* NASLOV SIDEBARA - IEEE plava linija */
.sidebar-heading {
    font-size: 16px;
    font-weight: 700;
    color: #002855;
    text-transform: uppercase;
    border-bottom: 3px solid #00629B;
    padding-bottom: 8px;
    margin-bottom: 15px; /* Smanjeno sa 20px */
}

/* --- KARTICA DOGAĐAJA --- */
.event-card {
    border: 1px solid #eee;
    margin-bottom: 15px; 
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    /* NOVO: Dodata tranzicija za glatko podizanje i senku */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/* NOVO: Hover efekat na nivou cele kartice (podizanje i senka) */
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* LEVA STRANA - Tamno plavi datum */
.event-date-column {
    background-color: #002855;
    color: white;
    width: 120px !important;     
    min-width: 120px !important; 
    padding: 10px 5px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 700;
    /* NOVO: Dodata tranzicija za promenu pozadinske boje */
    transition: background-color 0.25s ease;
}

/* NOVO: Kada se pređe preko kartice, leva kolona dobija IEEE narandžastu boju */
.event-card:hover .event-date-column {
    background-color: #E87722 !important; /* Zvanična IEEE narandžasta */
}

.date-range {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap; 
}

.year {
    font-size: 11px; 
    opacity: 0.8;
}

/* DESNA STRANA - Krem info kolona */
.event-info-column {
    background-color: #FFF9F2;
    padding: 8px 12px; 
    flex-grow: 1;
}

/* ===== EVENT TITLE ===== */
.event-title-link {
    color: #00629B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease;
}

.event-title-link .arrow {
    margin-left: 6px;
    transition: transform 0.25s ease; /* Blago usporeno radi uglađenosti */
}

/* IZMENA: Efekat se aktivira čim miš uđe na KARTICU, ne samo na link */
.event-card:hover .event-title-link {
    color: #002855; /* Naslov postaje tamniji i uočljiviji */
}

.event-card:hover .event-title-link .arrow {
    transform: translateX(5px); /* Strelica se pomera udesno */
}


/* ===== EVENT LOCATION ===== */
.event-location-link {
    color: #00629B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.25s ease;
    font-weight: 600; 
}

/* SVG ikonica (Google Maps pin stil) */
.event-location-link svg {
    fill: #d93025 !important;
    flex-shrink: 0;    
    margin-right: 5px;
    transition: fill 0.25s ease;
}

/* Hover efekat kada se pređe direktno preko lokacije */
.event-location-link:hover {
    color: #002855;
    text-decoration: underline;
}

.event-location-link:hover svg {
    fill: #00629B;
}


/* TEKSTUALNI DETALJI */
.event-full-name {
    font-size: 12px;
    color: #444;
    line-height: 1.3;
    margin-bottom: 4px !important; 
}

.event-location {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 0 !important; 
}

/* Dugme u sidebaru (npr. Contact) */
.sidebar-box .contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background: #00629B;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* Ovo utiče SAMO na ovo dugme i nigde više */
.btn-ieee-sidebar {
    color: #00629B;
    border: 1px solid #00629B;
    background-color: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Osigurava velika slova */
}

.btn-ieee-sidebar:hover {
    background-color: #00629B !important;
    color: #ffffff !important;
    text-decoration: none;
}



/* --- BRZI LINKOVI (Korisni linkovi) --- */
.simple-list { 
    list-style: none; 
    padding: 0; 
}

.simple-list li { 
    margin-bottom: 10px; 
}

.simple-list a { 
    text-decoration: none; 
    color: #444; 
    font-size: 14px; 
    font-weight: 600;
    transition: 0.2s; 
}

.simple-list a:hover { 
    color: #00629B; 
    padding-left: 5px; 
}

/* Univerzalna lista oficira */
.officer-list-shared {
    list-style: none;
    padding: 0;
    margin: 0;
}

.officer-list-shared li {
    display: flex;
    align-items: center;
    padding: 15px 0; /* Razmak za linije */
    border-bottom: 1px solid #eee; /* Sive linije između */
}

.officer-list-shared li:last-child {
    border-bottom: none; /* Uklanja liniju poslednjem */
}

/* Stilovi za slike i zoom */
.officer-img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00629B;
    margin-right: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Zoom na 1.4x pri prelasku mišem preko celog reda */
.officer-list-shared li:hover .officer-img {
    transform: scale(1.4);
    border-color: #F38134;
    z-index: 10;
}

/* Tekst oficira */
.officer-info {
    display: flex;
    flex-direction: column;
}

.officer-info .role {
    font-size: 12px;
    color: #666;
}

.officer-info .name {
    font-size: 14px;
    font-weight: 700; /* Boldovano ime */
    color: #333;
}

.officer-info a {
    font-size: 12px;
    color: #00629B;
    text-decoration: none;
}

.officer-info a:hover {
    text-decoration: underline;
}


/* --- NARANDŽASTO IEEE DUGME --- */
/* --- ZA IEEE-CHAPTERE --- */
.btn-ieee-orange {
    background-color: #00629b !important; /* Osnovno stanje je i dalje IEEE plava */
    border-color: #00629b !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.btn-ieee-orange:hover {
    background-color: #F38134 !important; /* Na hover postaje originalna narandžasta sa Contact Us dugmeta */
    border-color: #F38134 !important;
    transform: translateY(-3px) !important; /* Zadržavamo premium efekat lebdenja */
    box-shadow: 0 6px 18px rgba(243, 129, 52, 0.35) !important; /* Senka dobija blagi narandžasti odsjaj */
}





/* --- 8. FOOTER --- */
/* --- FOOTER STIL --- */
/* --- GLAVNI FOOTER KONTEJNER --- */
.footer-main {
    background-color: #002855 !important; /* IEEE Midnight Blue */
    color: #ffffff;
    padding-top: 20px;
    margin-top: 50px;
}

/* --- LOGO I NASLOVI --- */
.footer-logo {
    height: 35px !important; 
    filter: brightness(0) invert(1); /* Pretvara logo u beli */
}

.footer-heading {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #E97D2E;
    margin-top: 5px;
}

/* LEVA STRANA (Quick Links) - Linija ide levo (podrazumevano) */
.footer-heading {
    align-items: flex-start; 
}


/* DESNA STRANA (Contact) */
.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
    margin-bottom: 22px;

    font-size: 15px;
}

.footer-contact-line i {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

.footer-contact-line a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact-line a:hover {
    color: #f7941d;
}

.archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;

    color: #ffffff;
    text-decoration: none;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;

    transition: all 0.25s ease;
}

.archive-btn:hover {
    border-color: #f7941d;
    color: #ffffff;
    background-color: rgba(247,148,29,0.12);
}

.archive-btn i {
    font-size: 10px;
}




/* Nadogradnja Vaše postojeće klase .btn-old-site prema novoj slici */
.btn-old-site.footer-archive-btn {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Tanka bela ivica sa slike */
    background-color: transparent !important;
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
}

/* Hover efekat: punjenje i ivica prelaze u zvaničnu IEEE narandžastu */
.btn-old-site.footer-archive-btn:hover {
    background-color: #E87722 !important;
    border-color: #E87722 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(232, 119, 34, 0.2) !important;
}






/* Cookie*/

/* Prilagođavanje glavnog banera na dnu */
#cookieBanner {
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08) !important;
    animation: slideUp 0.4s ease-out;
}
/* Popravka kontrasta za Privacy Policy link unutar banera za kolačiće */
#cookieBanner a.text-primary {
    color: #004b87 !important; /* Tamnija, bogata IEEE plava koja garantovano prolazi Google test */
    font-weight: 600 !important; /* Blago podebljan tekst za još bolju čitljivost */
}

/* Hover efekat kada korisnik pređe mišem preko linka */
#cookieBanner a.text-primary:hover {
    color: #F38134 !important; /* Postaje narandžast na hover, prateći stil celog sajta! */
}

/* Animacija za pojavljivanje banera */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Zvanična IEEE plava boja za glavnu dugmad */
.ieee-blue-btn {
    background-color: #00629b !important;
    border-color: #00629b !important;
    transition: background-color 0.2s ease-in-out;
}

.ieee-blue-btn:hover {
    background-color: #004b77 !important;
    border-color: #004b77 !important;
}

/* Boja aktivnih (uključenih) Bootstrap prekidača */
.form-check-input:checked {
    background-color: #00629b !important;
    border-color: #00629b !important;
}

/* Stil za fokusirane elemente radi bolje pristupačnosti */
.form-check-input:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 98, 155, 0.25) !important;
}

/* Podešavanje linkova unutar sekcija */
.cookie-section a {
    color: #00629b;
    transition: color 0.2s ease;
}

.cookie-section a:hover {
    color: #004b77;
    text-decoration: underline !important;
}






/* --- QUICK LINKS (Gornji deo footera) --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px !important;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #F38134 !important; /* IEEE narandžasta */
    padding-left: 5px; /* Suptilno pomeranje */
}
/* Svi linkovi u QUICK LINKS listi moraju biti beli */
.footer-links li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}

/* Samo na hover (prelaz mišem) postaju narandžasti */
.footer-links li a:hover {
    color: #F38134 !important; /* IEEE narandžasta */
    padding-left: 5px; /* Blagi pomeraj udesno */
    text-decoration: underline !important;
}



/* --- EMAIL I TEKST KONTAKTA --- */
.footer-text a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s;
}

.footer-text a:hover {
    color: #F38134 !important; /* IEEE narandžasta */
    text-decoration: underline !important;
}

/* --- FOOTER BOTTOM (Pravni deo sa linkovima) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    padding-bottom: 20px;
}

/* Stil za pravne tekstove i misiju */
.footer-legal {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 8px !important;
}

/* Stil za linkove u pravnom delu (Home, Byelaws, itd.) */
.footer-legal a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.2s;
    padding: 0 2px;
}

.footer-legal a:hover {
    color: #F38134 !important; /* Narandžasta na hoveru */
    text-decoration: underline !important;
}

/* Poseban stil za tvoj potpis */
.webmaster-link {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

.webmaster-link:hover {
    color: #F38134 !important;
    text-decoration: underline !important;
}




/* --- 10. DESKTOP PODEŠAVANJA VESTI --- */
@media (min-width: 769px) {
    .news-item {
        display: flex; /* Koristimo flex umesto grida za bolju kontrolu slike */
        align-items: flex-start;
    }
}
/* --- BACK TO TOP dugme STIL --- */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background-color: #00629B;
    border: 2px solid #E97D2E;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#backToTop:hover {
    background-color: #E97D2E;
    border-color: #E97D2E;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(233, 125, 46, 0.35);
    color: white;
}

#backToTop .arrow {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}



/* --- STIL ZA KRUŽNO "X" DUGME U MODALU --- */
.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: #002855; /* IEEE Teget */
    color: white;
    border: 2px solid white;
    border-radius: 50%; /* Pravi krug */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: 0.3s ease;
    padding: 0;
}

.custom-modal-close span {
    margin-top: -3px; /* Fino podešavanje centra krstića */
}

.custom-modal-close:hover {
    background-color: #E97D2E; /* IEEE Narandžasta na hover */
    transform: scale(1.1);
}


/* Cookie bar */ 
.cookie-bar {
    position: fixed !important; /* Prisilio sam da uvek bude fiksno */
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 60px; /* Dodata minimalna visina */
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 15px 0 !important;
    z-index: 999999 !important; /* Ekstremno visok nivo da bude preko svega */
    display: block !important; /* Osiguravamo da nije skriveno */
}


.cookie-text {
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
}

.cookie-text a {
    color: #ffffff;
    text-decoration: underline;
}

.btn-cookie {
    background-color: #ffffff; /* Belo dugme */
    color: #000000;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-cookie:hover {
    background-color: #e0e0e0;
}


/* Stranica chapters*/
    /* Dodatni stilovi za lepši izgled kartica */
    .chapter-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border-radius: 12px;
    }
    .chapter-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }
    .x-small {
        font-size: 0.7rem;
    }
    .chapter-logos img {
        filter: grayscale(20%);
        transition: filter 0.3s;
    }
    .chapter-card:hover .chapter-logos img {
        filter: grayscale(0%);
    }





/* Desktop režim */
@media (min-width: 768px) {
    .nav-list { 
        display: flex !important; /* Vraća flex strukturu za velike ekrane */
    }
}


/* Osnovno stanje dugmeta */
.contact-submit-btn {
    background-color: #00629B; /* IEEE Plava */
    color: #ffffff;            /* Beli tekst */
    border: 2px solid #00629B;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease; /* Glatka promena boje */
    border-radius: 4px;
}

/* Stanje kada se mišem stane na dugme (Hover) */
.contact-submit-btn:hover {
    background-color: #ffffff; /* Bela pozadina */
    color: #00629B;            /* Plavi tekst */
    border: 2px solid #00629B; /* Plavi okvir ostaje */
    cursor: pointer;
}
/* Stilovi za About stranicu */
.date-badge {
    background-color: #00629B;
    color: white;
    font-weight: bold;
    min-width: 70px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-heading {
    border-left: 5px solid #00629B;
    padding-left: 15px;
    color: #333;
    font-weight: 700;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 98, 155, 0.03) !important;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.counter {
    display: inline-block;
    min-width: 80px; /* Rezerviše prostor za broj */
    transition: all 0.3s ease;
}
/* Slike u tabeli predsednika */
.chair-img-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover efekat uvećanja od 40% */
.chair-img-circle:hover {
    transform: scale(1.4);
    border-color: #00629B;
    position: relative;
    z-index: 10;
    cursor: zoom-in;
}

/* Counter animacija */
.counter {
    display: inline-block;
}

.btn-old-site {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem; /* Manji font da ne odskače */
    color: #bbb; /* Diskretna siva boja teksta */
    text-decoration: none;
    border: 1px solid #555; /* Tamniji sivi okvir */
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-old-site:hover {
    color: #fff;
    background-color: #00629B; /* IEEE plava na hover */
    border-color: #00629B;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* 1. OSNOVNI STIL ZA DUGME (VAŽI SVUDA) */
#mobile-menu {
    position: relative;
    z-index: 9999 !important;
    cursor: pointer;
}



/* 3. DESKTOP REŽIM (od 768px pa naviše) */
@media (min-width: 768px) {
    .nav-list {
        display: flex !important; /* Uvek vidljivo na desktopu */
        pointer-events: auto !important; /* Uvek klikabilno na desktopu */
        position: static !important;
    }

    #mobile-menu {
        display: none !important; /* Sakriveno na desktopu jer ne treba */
    }
}


@media screen and (max-width: 768px) {
    .header-search-container {
        display: none !important;
    }
}



/*------------------*/
/* 1. Osnova za link */
.webmaster-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

/* 2. Glavni kontejner za tooltip (kartica) */
.tooltip-card {
    visibility: hidden;
    opacity: 0;
    width: 200px; /* Malo šire da sve stane komotno */
    background-color: #ffffff;
    color: #333;
    text-align: center;
    border-radius: 12px;
    padding: 15px;
    position: absolute;
    z-index: 999;
    bottom: 135%; /* Pozicija iznad linka */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Centriranje i startna pozicija za animaciju */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    
    /* Raspored elemenata unutra */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 3. Stil za sliku */
.tooltip-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid #00629b; /* IEEE plava */
    display: block;
}

/* 4. Kontejner za tekst (da sve bude jedno ispod drugog) */
.tooltip-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tooltip-text-container strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.tooltip-text-container span {
    display: block;
    font-size: 13px;
    color: #666;
}

/* 5. Strelica na dnu kartice */
.tooltip-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* 6. Prikazivanje na hover */
.webmaster-link:hover .tooltip-card {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Klizne na gore do prave pozicije */
}



/*PRETRAGA
/* 1. OSIGURAVANJE VIDLJIVOSTI */
.header-right, 
.main-header, 
.header-search-container {
    overflow: visible !important;
}

/* 2. KONTEJNER ZA PRETRAGU (Oštre ivice i crni kontrast) */
/* 1. KONTEJNER I RAZMAK (Obezbeđuje prostor do Contact dugmeta) */
/* --- DESKTOP PRETRAGA (Vaš kod, blago utegnut) --- */
.header-search-container {
    position: relative;
    margin-right: 25px;
    overflow: visible !important;
}

.search-wrapper {
    display: flex;
    border: 1px solid #ccc;
    background: white;
    height: 38px;
    width: 250px; /* Fiksno za desktop */
}

.search-wrapper input {
    border: none !important;
    padding: 0 12px !important;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
}

.search-wrapper button {
    background: #000 !important;
    border: none !important;
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lupa-ikona {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: bold;
    /* transform: rotate(-45deg); Ako vam je ikona nagnuta, ostavite ovo */
}

/* --- MOBILNA KOREKCIJA (Obavezno ispod desktop koda) --- */
/* --- NOVA, JEDINSTVENA MOBILNA VERZIJA (Ispod 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. HEADER I LOGO */
    .ieee-logo {
        height: 26px !important; 
    }

/* 2. MOBILE SEARCH KONTEJNER */
    #mobileSearch {
        width: 100% !important;
        display: none !important; /* Inicijalno sakriveno */
        margin-top: 10px !important;
    }

    /* Kada se ukloni d-lg-none klasa (preko JS-a), forma postepeno/trenutno izlazi */
    #mobileSearch:not(.d-lg-none) {
        display: block !important;
    }

    .mobile-search-form {
        display: flex !important;
        width: 100% !important;
        height: 38px !important;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
        background: #fff;
    }

    .mobile-search-form input[type="text"] {
        flex: 1;
        min-width: 0;
        font-size: 13px !important;
        padding: 4px 12px !important;
        border: none !important;
        outline: none !important;
    }

    .mobile-search-form button[type="submit"] {
        width: 45px !important;
        background: #000 !important;
        color: #fff !important;
        border: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    } 
    
    .mobile-icon-btn svg, 
    .mobile-search-form svg {
        pointer-events: none;
    }
    
    
    
    
    
    
    /* 2. SEARCH BAR - POPRAVKA DA SE VIDI LUPICA */
    .header-search-container {
        max-width: 155px !important; /* Povećano da stane i lupa */
        margin-right: 0 !important; 
        flex: 1;
    }

    .search-wrapper {
        display: flex !important;
        width: 100% !important;
        height: 30px !important;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
    }

    #trazi-polje {
        flex: 1;
        min-width: 0;
        font-size: 12px !important;
        padding: 2px 8px !important;
        border: none !important;
    }

    #dugme-pretraga {
        width: 35px !important; /* Fiksna širina za lupu */
        background: #000 !important; /* Crna pozadina */
        color: #fff !important;
        border: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 3. NAVIGACIJA I HAMBURGER */
    .nav-container {
        height: 38px !important;
        justify-content: flex-start !important;
    }

    .mobile-label {
        font-size: 13px !important;
        margin-right: 10px !important;
    }

    /* 4. PADUJUĆI MENI (LISTA) */
    .nav-list li a {
        padding: 10px 25px !important; /* VAŠ PADDING */
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    /* 5. CHAPTERS BAR */
    .chapters-bar {
        padding: 5px 0 !important;
    }
}

 /* 1. STIL ZA PLIVAJUĆU IKONICU KOLAČIĆA (U donjem levom uglu) */
 .ieee-srb-mne-cookie-widget {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important;
    width: 44px !important;     /* Optimalna širina za srazmeru na ekranu */
    height: 44px !important;    /* Optimalna visina za srazmeru na ekranu */
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    z-index: 9999 !important;   /* Sloj iznad futera */
    display: block !important;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease !important; 
}

/* Osigurava da se SVG pravilno raširi unutar 44px */
.ieee-srb-mne-cookie-widget svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Efekat blagog uvećanja kada korisnik pređe mišem preko kolačića */
.ieee-srb-mne-cookie-widget:hover {
    transform: scale(1.06) !important;
    transition: transform 0.2s ease;
}


    /* 2. STIL ZA GLAVNI BANER NA DNU EKRENA */
    #cookieBanner {
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08) !important;
        z-index: 1050 !important;      /* Nalazi se iznad regularnog sadržaja stranice */
    }


    /* 3. ZVANIČNE IEEE BOJE I PREKIDAČI (Za dugme Save i prekidače u meniju) */
    .ieee-blue-btn {
        background-color: #00629b !important;
        border-color: #00629b !important;
        transition: background-color 0.2s ease-in-out !important;
    }

    .ieee-blue-btn:hover {
        background-color: #004b77 !important;
        border-color: #004b77 !important;
    }

    /* Boja za aktivne (uključene) Bootstrap prekidače u meniju */
    .form-check-input:checked {
        background-color: #00629b !important;
        border-color: #00629b !important;
    }

    /* Boja za linkove unutar sekcija u meniju */
    .cookie-section a {
        color: #00629b !important;
        text-decoration: none !important;
    }

    .cookie-section a:hover {
        color: #004b77 !important;
        text-decoration: underline !important;
    }

/* Okrugli ram za ikonicu - aktivira se i prikazuje ISKLJUČIVO na desktopu */
.ieee-stat-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 98, 155, 0.06) !important; 
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ieee-stat-icon-wrapper svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}

/* Na mobilnim uređajima tekst ostaje strogo centriran, na desktopu (lg) se poravnava ulevo */
.custom-stat-col {
    text-align: center !important;
}

@media (min-width: 992px) {
    .custom-stat-col {
        text-align: left !important;
    }
}

/* MOBILE HEADER */

.mobile-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-icon-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 24px;
    color: #bdbdbd;
    line-height: 1;
}

.mobile-search {
    display: none;
    padding: 12px 15px 15px;
    background: #fff;
}

.mobile-search.active {
    display: block;
}

.mobile-search-form {
    display: flex;
}

.mobile-search-form input {
    flex: 1;
    height: 42px;
    border: 1px solid #dcdcdc;
    border-right: none;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.mobile-search-form button {
    width: 48px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 16px;
}


/* Anti-spam Honeypot stil */
.d-none {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}