/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'TuskerGrotesk', sans-serif;
    background-color: #0b0f1a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #0a1e5e, #071a4a);
    padding: 12px 40px;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

/* Navigation list */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Links */
.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-link.active {
    background: #203a9a;
    border-radius: 4px;
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .navbar-nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
/* ================= HEADINGS ================= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    color: #080843; 
    background-color: white;
    margin-left: 265px;
    margin-right: 265px;
}
.section-header2 {
    text-align: left;
    margin-bottom: 50px;
    color: #080843; 
    font-size: 15px;
}
.section-header h1,
.section-header h2 {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding:10px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ================= HERO / ABOUT ================= */
.hero-about {
    position: relative;
    background-image: url("images/background1.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 13px;
    font-weight: 100;
}
.hero-about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 45, 0.65); /* blagi tamno-plavi overlay */
    z-index: 1;
}
.hero-about .container {
    position: relative;
    z-index: 2;
}
.about-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.discipline-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-item {
    width: 120px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.logo-item a {
    display: flex;           /* ili block */
    align-items: center;
    justify-content: center;
    width: 100%;             /* zadrži širinu roditelja */
    height: 100%;            /* zadrži visinu roditelja */
    text-decoration: none;   /* uklanja underline */
}

.logo-item a img {
    max-width: 100%;         /* slika ostaje unutar boxa */
    max-height: 100%;        /* visina ne prelazi box */
    display: block;          /* uklanja default inline spacing */
}
/* ================= MISSION & VISION ================= */
.mission-vision {
    background-color: #ffffff;
    color: #0b0f1a;
}

.mission-vision-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-left: 100px;
    padding-right: 100px;
    max-width: 1200px;
    margin: 0 auto; /* centriranje */

}

.media-item {
    height: 180px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
 
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 

}
/* ================= ECOSYSTEM ================= */
.ecosystem {
    background: white;
    color: #080843;
}

.ecosystem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ecosystem-diagram .diagram-placeholder {
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ecosystem-diagram {
    width: 100%;
    max-width: 300px; /* po potrebi */
    margin: auto;
}

.ecosystem-diagram img {
    width: 100%;
    height: auto;
    display: block;
}
/* ================= CORE RESPONSIBILITIES ================= */
.core-responsibilities {
    background-image: 
        linear-gradient(rgba(0, 0, 139, 0.507), rgba(0, 0, 139, 0.4)),
        url(images/media1.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}kground-size: cover;

.core-responsibilities::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 139, 0.5); /* Blagi tamno-plavi overlay */
    pointer-events: none; /* Omogućava da klikovi prolaze kroz overlay */
}
.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.responsibility-card {
    background: #ffffff1e;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    overflow: hidden; /* KLJUČNO – ništa ne izlazi iz kartice */
}

.responsibility-card img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= INTERNATIONAL COOPERATION ================= */
.international-cooperation {
    background-color: #ffffff;
    color: #0b0f1a;
}

.cooperation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cooperation-visual .image-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Pozadinska slika */
    background-image: url('images/ruk1.png'); /* stavi svoju sliku */
    background-position: center;   /* centrira sliku */
    background-size: cover;        /* slika popunjava cijeli div proporcionalno */
    background-repeat: no-repeat;  /* sprečava ponavljanje slike */
}

.cooperation-additional {
    margin-top: 50px;
}
.cooperation-layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cooperation-visual-2 .image-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Pozadinska slika */
    background-image: url('images/KNJIGA\ .png'); /* stavi svoju sliku */
    background-position: center;   /* centrira sliku */
    background-size: cover;        /* slika popunjava cijeli div proporcionalno */
    background-repeat: no-repeat;  /* sprečava ponavljanje slike */
}

.cooperation-additional {
    margin-top: 50px;
}
/* ================= PARTNERS ================= */
.partners {
    background-color: white;
}

.partners-logos {
       display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.partner-logo {
    width: 140px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-item {
    width: 120px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.partners-logos {
   display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.partner-logo img {
    max-width: 120px;        
    height: auto;             
    display: block;
}
.partners {
    width: 100%;
    margin: 0;
    padding: 0;
}

.partner-fullwidth {
    width: 100%;
    height: auto; /* automatski prilagođava visinu */
    display: block;
}
/* ================= Banner ================= */
.bannner {
    background: #ffffff; /* bijela pozadina */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.bannner-box {
    max-width: 1200px; /* nije full width */
    width: 100%;
    padding: 20px;
}

.bannner-box img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .mission-vision-text,
    .ecosystem-layout,
    .cooperation-layout {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

    /* GLOBAL */
    body {
        font-size: 14px;
    }

    .container {
        padding: 20px 15px;
    }

    /* NAVBAR */
    .navbar {
        padding: 12px 16px;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .nav-link {
        padding: 8px 12px;
        width: 100%;
        text-align: center;
    }

    /* HEADERS */
    .section-header {
        margin-left: 0;
        margin-right: 0;
        padding: 8px;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 22px;
    }

    .section-header2 {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* HERO / ABOUT */
    .hero-about {
        font-size: 14px;
    }

    .about-content {
        margin-bottom: 30px;
        padding: 0 5px;
        text-align: center;
    }

    .discipline-logos {
        gap: 12px;
    }

    .logo-item {
        width: 90px;
        height: 70px;
    }

    /* MISSION & VISION */
    .mission-vision-text {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
        gap: 15px;
    }

    .media-item {
        height: 180px;
    }

    /* ECOSYSTEM */
    .ecosystem-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .ecosystem-diagram {
        max-width: 220px;
    }

    /* CORE RESPONSIBILITIES */
    .responsibilities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .responsibility-card {
        padding: 20px;
    }

    .responsibility-card img {
        max-width: 40%;
        margin-bottom: 10px;
    }

    /* INTERNATIONAL */
    .cooperation-layout,
    .cooperation-layout-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cooperation-visual .image-placeholder,
    .cooperation-visual-2 .image-placeholder {
        height: 220px;
    }

    /* PARTNERS */
    .partners-logos {
        gap: 15px;
    }

    .partner-logo img {
        max-width: 90px;
    }

    /* BANNER */
    .bannner {
        padding: 40px 10px;
    }

    .bannner-box {
        padding: 0;
    }
}