/* =========================================================
   4SiM • CLEAN CSS (grouped, deduped)
   - Tokens & base
   - Header / Nav
   - Logo / Hero
   - Buttons / Badges / Tags
   - Sections / About / KPIs
   - Grid / Cards / News
   - Photos
   - Two-column / Post layout
   - Forms / Contact
   - Footer / EU strip
   - Chyron (ticker)
   - Accessibility & Utils
   - Responsive breakpoints
   ========================================================= */


/* ===================== */


/* TOKENS & BASE         */


/* ===================== */

:root {
    --bg: #f6f8ff;
    --panel: #ffffff;
    --panel-2: #eef2ff;
    --text: #0f172a;
    --muted: #475569;
    --accent: #0e45ba;
    --accent-2: #60a5fa;
    --ring: rgba(37, 99, 235, .35);
    --radius: 1rem;
    --shadow: 0 10px 30px rgba(2, 6, 23, .08);
    --elev-1: 0 1px 0 rgba(2, 6, 23, .04), 0 8px 24px rgba(2, 6, 23, .06);
    --elev-2: 0 2px 0 rgba(2, 6, 23, .04), 0 10px 28px rgba(2, 6, 23, .10);
    --elev-3: 0 6px 20px rgba(2, 6, 23, .10);
    /* page width */
    --grid: min(1120px, 92vw);
    /* two-column layout */
    --col-main: 680px;
    --col-aside: 240px;
    --col-gap: 1.25rem;
    /* layered background */
    --bg-1: conic-gradient(from 210deg at 70% -10%, rgba(37, 99, 235, .08), transparent 40%);
    --bg-2: radial-gradient(900px 500px at -10% 10%, rgba(78, 134, 203, 0.1), transparent 55%);
    --bg-3: linear-gradient(180deg, var(--panel-2) 0%, var(--bg) 65%);
    --bg-noise: radial-gradient(1px 1px at 25% 25%, rgba(2, 6, 23, .04) 0 1px, transparent 1px);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: monospace;
    overflow-x: hidden;
}

body {
    background: var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-noise);
    background-size: cover, cover, cover, 24px 24px;
    background-attachment: fixed, fixed, fixed, fixed;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--grid);
    margin-inline: auto;
    padding-inline: clamp(2rem, 8vw, 6rem);
    padding-block: 0;
}

.container.layout-wide {
    max-width: min(1040px, 92vw);
}

@keyframes animationGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* ===================== */


/* HEADER / NAV          */


/* ===================== */


/* ===================== */


/* HERO HEADER sa neon talasom */


/* ===================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(1.1) blur(10px);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, .75)), url("/img/neon-header1.png");
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: 100% auto;
    border-bottom: 1px solid rgba(252, 252, 253, 0.06);
    /*background-color: #f6f8ff; /* ista boja kao body */
    background-clip: content-box;
}

header .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: .6rem 0;
    position: relative;
    /* anchor za mobilni panel */
}

.brand {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.brand img {
    height: 40px;
    width: auto;
    border-radius: .5rem;
}


/* glavni meni */

header .nav nav>ul,
nav ul.top-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}


/* linkovi */

header .nav nav a,
header .nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border-radius: .75rem;
    font-size: 1.1rem;
    letter-spacing: .2px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: var(--text);
}

nav a:hover,
nav a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
    transform: translateY(2px);
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.25), inset 0px 0px 0px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.15);
    background: #e8e8e8;
    /* malo tamnija nijansa za efekt */
    text-decoration: none;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-link:hover,
.brand-link:focus {
    text-decoration: none;
}


/* ABOUT kao dropdown */

.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    font: inherit;
}

.dropdown-toggle .caret {
    font-size: .9em;
    opacity: .75;
}


/* submenu – default sakriven */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: .4rem;
    border-radius: .75rem;
    background: var(--panel, #fff);
    border: 1px solid rgba(2, 6, 23, .12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
    z-index: 80;
}


/* PRAVO CSS REŠENJE:
   - :hover za desktop
   - :focus-within za desktop i mobilni (tap na dugme About) */

.has-dropdown:hover>.submenu,
.has-dropdown:focus-within>.submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: .45rem .6rem;
    border-radius: .5rem;
    text-decoration: none;
    color: inherit;
}

.submenu li a:hover,
.submenu li a:focus-visible {
    background: rgba(2, 6, 23, .06);
    text-decoration: none;
}


/* burger – po defaultu skriven (desktop) */

.menu-btn {
    display: none;
}


/* ===================== */


/* LOGO / HERO           */


/* ===================== */

.logo-wrap {
    max-width: clamp(220px, 46vw, 520px);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
}

.logo {
    display: block;
    max-width: 120%;
    height: auto;
    object-fit: contain;
    image-rendering: crisp-edges;
}

svg.logo {
    max-width: 100%;
    height: auto;
}

.hero {
    position: relative;
    padding: 3.2rem 0 2.4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.6rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
}

.hero h2 {
    font-size: clamp(1.8rem, 3.2vw + .5rem, 3rem);
    margin: .6rem 0 .45rem;
    line-height: 1.1;
}

.hero p {
    color: var(--muted);
    max-width: 60ch;
}

.cta {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
}

.hero-card {
    background: var(--panel);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(2, 6, 23, .08);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    border-radius: .9rem;
}

.hero-note {
    font-size: .9rem;
    color: var(--muted);
    margin-top: .5rem;
}

.hero-image-box {
    margin-top: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: linear-gradient(to right, #719494, #8b7996, #7c7286, #6971bb, rgb(67, 145, 194));
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
}

.hero-image-box .robot-box {
    width: 98.5%;
    height: 98%;
    overflow: hidden;
    position: relative;
    border-radius: .9rem;
}

.hero-image-box .robot-box img {
    width: 100%;
    height: 100%;
    mix-blend-mode: hard-light;
}


/* ===================== */


/* BUTTONS / BADGES / TAGS*/


/* ===================== */

.btn {
    appearance: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.05rem;
    border-radius: .95rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(2, 6, 23, .10);
    background: linear-gradient(180deg, #ffffff, #f7faff);
    color: var(--text);
    box-shadow: var(--elev-1);
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease, translate .15s ease;
}

.btn:hover {
    translate: 0 -1px;
    box-shadow: var(--elev-2);
}

.btn:active {
    translate: 0 0;
    box-shadow: var(--elev-1);
}

.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    color: #fff;
    border: 1px solid rgba(37, 99, 235, .55);
    background: linear-gradient(180deg, #3b82f6, #2563eb 55%, #1d4ed8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 22px rgba(37, 99, 235, .28), 0 3px 8px rgba(2, 6, 23, .08);
}

.btn-ghost {
    background: rgba(2, 6, 23, .04);
    border: 1px solid rgba(2, 6, 23, .10);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(2, 6, 23, .06);
    border-color: rgba(2, 6, 23, .16);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(37, 99, 235, .45);
    color: #1e40af;
}

.btn.sm {
    padding: .62rem .85rem;
    font-size: .92rem;
    border-radius: .8rem;
}

.btn.lg {
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    border-radius: 1.05rem;
}

.btn>svg,
.btn>img {
    width: 1.1em;
    height: 1.1em;
}

.badge--glass {
    color: #2a2f3a;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 2px 20px rgba(0, 170, 255, .15) inset, 0 2px 10px rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px) saturate(120%);
}

.badge--glass .dot {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: #60a5fa;
}

.badge--eu {
    color: #eaf0ff;
    background: rgba(10, 12, 20, .55);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}

.tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.tag {
    font-size: .8rem;
    padding: .25rem .5rem;
    border-radius: .5rem;
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1e3a8a;
    background: rgba(37, 99, 235, .10);
}


/* ===================== */


/* SECTIONS / ABOUT / KPI */


/* ===================== */

section {
    padding: 1rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}


/* moderniji h3 */

.section-head h3 {
    font-size: clamp(1.35rem, 2vw + .4rem, 1.75rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    position: relative;
    padding-bottom: 0.35rem;
}


/* futuristička linija ispod naslova */

.section-head h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 42px;
    /* moderni AI gradient */
    background: linear-gradient( 90deg, rgba(96, 165, 250, 0.8), rgba(37, 99, 235, 0.9));
    border-radius: 6px;
    transition: width .3s ease, opacity .3s ease;
    opacity: .9;
}


/* animacija pri hoveru celog section-head bloka */

.section-head:hover h3::after {
    width: 64px;
    opacity: 1;
}


/* suptilan highlight na naslov pri hoveru */

.section-head:hover h3 {
    color: var(--accent);
    transition: color .3s ease;
}


/* opcioni podnaslov */

.section-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.section-tight {
    padding: 1.25rem 0;
}

.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.kpi {
    background: var(--panel);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: 1rem;
    padding: 1rem;
}

.kpi strong {
    font-size: 1.4rem;
}


/* ===================== */


/* GRID / CARDS / NEWS    */


/* ===================== */

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .9rem;
}

.card {
    grid-column: span 6;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* da pseudo-elementi ostanu u okviru kartice */
    /* suptilan futuristički panel */
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18), transparent 55%), var(--panel);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--elev-1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}


/* Svetlosni “AI highlight” koji se pojavi na hoveru */

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.22), transparent 55%);
    opacity: 0;
    transform: translate3d(-20%, -20%, 0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: -1;
}


/* Hover efekat – blagi lift + jači border/shadow */

.card:hover {
    /*transform: translateY(-4px);*/
    box-shadow: var(--elev-3);
    border-color: rgba(37, 99, 235, 0.45);
}

.card:hover::before {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.card h4 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.card .meta {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cards-3 .card {
    grid-column: span 4;
}

.card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: .75rem;
    padding: .35rem;
}

.card .meta {
    font-size: .85rem;
    color: var(--muted);
}

img.logo-gray {
    background: gray;
}


/* news section variants */

.news .card {
    grid-column: span 6;
}

.news .card h4 {
    margin: .25rem 0 .35rem;
}

a.read-more {
    display: inline-block;
    padding: .6rem 1.2rem;
    border-radius: .7rem;
    font-weight: 600;
    font-size: .95rem;
    color: #2563eb;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, .3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    text-decoration: none;
    transition: all .25s ease;
}

a.read-more:hover {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

a.read-more:active {
    translate: 0 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .15);
}


/* ===================== */


/* PHOTOS                 */


/* ===================== */

.photo-hero {
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
    overflow: hidden;
    margin: 0 0 .5rem 0;
}

.photo-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16/6;
    object-fit: cover;
}

.photo-hero figcaption {
    padding: .6rem .9rem;
    font-size: .9rem;
    color: var(--muted);
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-top: 1px solid rgba(2, 6, 23, .06);
}

.photo-hero--narrow {
    max-width: clamp(560px, 70vw, 860px);
    margin: 0 auto .75rem;
}

.photo-hero--small {
    max-width: 600px;
    margin: 0 auto .75rem;
}

.photo-hero--contain img {
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #fff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .75rem;
}

.photo-grid .item {
    grid-column: span 6;
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: .9rem;
    overflow: hidden;
    box-shadow: var(--elev-3);
    /* Smooth movement + fade/scale */
    transition: transform .35s ease, opacity .25s ease, box-shadow .25s ease;
    will-change: transform, opacity;
}


/* Optional: subtle “pop-in” when item becomes visible */

.photo-grid .item.is-entering {
    opacity: 0;
    transform: scale(.96);
}

.photo-grid .item.is-entering.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* Optional: hidden state */

.photo-grid .item.is-hidden {
    pointer-events: none;
}

.photo-grid .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(2, 6, 23, .10);
}

.photo-grid img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.photo-grid .cap {
    padding: .5rem .75rem;
    font-size: .85rem;
    color: var(--muted);
    border-top: 1px solid rgba(2, 6, 23, .06);
    background: #fff;
}


/* ===================== */


/* LIGHTBOX (GALLERY)    */


/* ===================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 10% 10%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.92));
    backdrop-filter: blur(10px) saturate(130%);
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: min(960px, 90vw);
    max-height: 80vh;
    margin: 0;
    position: relative;
    background: var(--panel);
    border-radius: 1rem;
    box-shadow: var(--elev-3);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .5);
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.lightbox-content figcaption {
    padding: .75rem 1rem;
    font-size: .9rem;
    color: var(--muted);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, .16), transparent 55%), #fff;
    border-top: 1px solid rgba(226, 232, 240, .9);
}


/* Close button */

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    border: 0;
    border-radius: 999px;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(15, 23, 42, .75);
    color: #e5edff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}


/* Prev / Next buttons */

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    width: 2.6rem;
    height: 2.6rem;
    cursor: pointer;
    background: rgba(15, 23, 42, .7);
    color: #e5edff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.lightbox-prev {
    left: 1.4rem;
}

.lightbox-next {
    right: 1.4rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(37, 99, 235, .9);
}

.active-filter {
    background: rgba(37, 99, 235, .20) !important;
    border-color: rgba(37, 99, 235, .40) !important;
    color: #1e3a8a !important;
}


/* ===================== */


/* GALLERY PAGINATION    */


/* ===================== */

.gallery-pagination {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    font-size: .9rem;
    color: var(--muted);
}

.gallery-pagination .page-label {
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, .45);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}

.gallery-pagination button[disabled] {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}


/* Simple appearance animation for items on page change */

.photo-grid .item {
    /* existing props ostaju, samo proveri da imaš i ovo: */
    transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
    will-change: transform, opacity;
}

.photo-grid .item.page-hidden {
    display: none;
}

.photo-grid .item.page-visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.photo-grid .item.page-enter {
    opacity: 0;
    transform: scale(.96);
}


/* Mobile tweaks */

@media (max-width: 720px) {
    .lightbox {
        padding: .75rem;
    }
    .lightbox-content figcaption {
        font-size: .85rem;
    }
}


/* ===================== */


/* TWO-COLUMN / POST      */


/* ===================== */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, var(--col-main)) minmax(0, var(--col-aside));
    gap: var(--col-gap);
    align-items: start;
    justify-content: center;
    padding-block: 1rem;
}

.two-col .main,
.two-col aside {
    min-width: 0;
}

@supports (position: sticky) {
    .two-col aside>.sticky {
        position: sticky;
        top: calc(64px + .75rem);
    }
}

.two-col.wide {
    grid-template-columns: minmax(0, 720px) minmax(0, 220px);
}

.two-col.aside-left {
    grid-template-columns: minmax(0, var(--col-aside)) minmax(0, var(--col-main));
}

.two-col.aside-left>aside {
    order: -1;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
    align-items: start;
}

.post-layout>* {
    min-width: 0;
}

.post-layout aside img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: .6rem;
}


/* ===================== */


/* FORMS / CONTACT        */


/* ===================== */

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

input,
textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: .9rem;
    border: 1px solid rgba(2, 6, 23, .12);
    background: #fff;
    color: var(--text);
}

input:focus,
textarea:focus {
    outline: 2px solid var(--ring);
    border-color: transparent;
}

textarea {
    min-height: 140px;
}


/* ===================== */


/* FOOTER / EU STRIP      */


/* ===================== */

footer {
    position: relative;
    padding: 3rem 0 2.5rem;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, .75)), url("/img/neon-header1.png");
    color: rgba(21, 21, 21, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px) saturate(120%);
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: 100% auto;
    border-bottom: 1px solid rgba(252, 252, 253, 0.06);
    /*background-color: #f6f8ff; /* ista boja kao body */
}


/* grid re-balance */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

footer h4 {
    margin: 0 0 .6rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: rgba(21, 21, 21, 0.7);
}


/* text */

.disclaimer {
    font-size: .9rem;
    color: rgba(21, 21, 21, 0.7);
    line-height: 1.55;
}


/* EU strip modern look */

.eu-strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eu-flag {
    width: 140px;
    border-radius: .35rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}


/* EU note */

.eu-note {
    margin: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.75);
}


/* footer links */

.footer-links,
.social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li+li {
    margin-top: .4rem;
}

.footer-links a {
    color: rgba(21, 21, 21, 0.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .25s ease, transform .25s ease;
}

.footer-links a:hover {
    color: var(--accent-2);
    transform: translateX(3px);
}


/* social icons */

.social {
    display: flex;
    gap: .6rem;
    margin-top: .9rem;
}

.social a {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.social a:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-3px);
}


/* ===================== */


/* CHYRON (ticker)        */


/* ===================== */

.chyron {
    padding: .5rem 0 0;
}

.chyron-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: color-mix(in oklab, var(--panel) 84%, transparent);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: .9rem;
    padding: .45rem .6rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px) saturate(110%);
}

.chyron-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .3px;
    color: #0f1a35;
    background: rgba(96, 165, 250, .18);
    border: 1px solid rgba(37, 99, 235, .22);
    padding: .25rem .5rem;
    border-radius: 999px;
}

.chyron-viewport {
    overflow: hidden;
    /* BEZ OVOGA NIŠTA SE NE VIDI */
    min-height: 1.75rem;
    flex: 1 1 auto;
}

.chyron-track {
    display: flex;
    align-items: center;
    will-change: transform;
    transition: transform .5s ease;
}

.chyron-item {
    flex: 0 0 100%;
    padding: .1rem .25rem;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: .95rem;
}

.chyron-controls {
    display: flex;
    gap: .3rem;
}

.chyron-controls .btn.sm {
    padding: .35rem .55rem;
    border-radius: .6rem;
}

.chyron-inner:hover {
    border-color: rgba(2, 6, 23, .14);
}

@media (prefers-reduced-motion: reduce) {
    .chyron-track {
        transition: opacity .4s ease;
    }
}


/* ===================== */


/* ACCESSIBILITY & UTILS  */


/* ===================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 1000;
    background: #000;
    color: #fff;
    padding: .6rem .9rem;
    border-radius: .5rem;
    outline: 3px solid;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

nav a:focus-visible {
    outline: 3px auto -webkit-focus-ring-color;
    outline-offset: 2px;
    text-decoration: none;
}


/* ne menjamo vizuelni identitet: */

.accent-2 {
    color: inherit;
}


/* ===================== */


/* RESPONSIVE             */


/* ===================== */


/* Desktop (≥ 981px) */

@media (min-width: 981px) {
    /* nema hamburgera */
    .menu-btn {
        display: none;
    }
    header .nav nav>ul {
        display: flex;
        position: static;
        box-shadow: none;
        background: transparent;
    }
    /* dropdown About na hover/focus */
    .has-dropdown:where(:hover,
     :focus-within)>.submenu {
        display: block;
    }
    /* CTA u meniju malo mirniji */
    nav ul.top-level>li:last-child .btn.btn-primary {
        padding: .5rem .8rem;
        border-radius: .7rem;
    }
}


/* Mobilni (≤ 980px) */

@media (max-width: 980px) {
    .hero-inner,
    .about,
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card,
    .news .card,
    .cards-3 .card {
        grid-column: span 12;
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .two-col aside {
        order: 2;
    }
    .container {
        padding-inline: 1rem;
    }
    nav a {
        font-size: .95rem;
        padding: .6rem .75rem;
    }
    /* Samo hamburger je vidljiv u headeru */
    .menu-btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .5rem .75rem;
        border-radius: .75rem;
        border: 1px solid rgba(2, 6, 23, .12);
        background: #fff;
        color: var(--text);
        font: inherit;
        cursor: pointer;
    }
    /* sakrij glavni meni dok nav nije otvoren */
    header .nav nav>ul {
        display: none;
    }
    /* panel uvek TAČNO ispod header .nav (samim tim i ispod hamburgera) */
    header .nav.open nav>ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.4rem);
        /* odmah ispod donje ivice .nav */
        right: 0;
        /* poravnat sa desnom ivicom (pored hamburgera) */
        background: var(--panel);
        border: 1px solid rgba(2, 6, 23, .12);
        border-radius: .75rem;
        padding: .5rem;
        width: min(260px, 85vw);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
        z-index: 60;
    }
    /* kada .nav dobije .open (klik na hamburger) → panel */
    header .nav.open nav>ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 3.25rem;
        right: 1rem;
        background: var(--panel);
        border: 1px solid rgba(2, 6, 23, .12);
        border-radius: .75rem;
        padding: .5rem;
        width: min(260px, 85vw);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
        z-index: 60;
    }
    header .nav.open nav>ul>li {
        width: 100%;
    }
    /* sve stavke (uključujući About) centrirane u panelu */
    header .nav.open nav a,
    header .nav.open .dropdown-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    /* submenu u mobilnom – ugnježden ispod About */
    header .nav.open .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin-top: .25rem;
        padding: .25rem;
        border-radius: .6rem;
        border: 1px solid rgba(2, 6, 23, .1);
        background: var(--panel, #fff);
        box-shadow: none;
    }
    /* kada je About otvoren na mobilnom (.has-dropdown.open) */
    header .nav.open .has-dropdown.open>.submenu {
        display: block;
    }
    /* malo uvučene stavke u About meniju */
    header .nav.open .submenu li a {
        padding-left: .85rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        /* sve kolone vertikalno */
        text-align: left;
        /* ili center ako želiš */
        gap: 1rem;
        /* malo više razmaka */
    }
    .footer-grid h4 {
        margin-bottom: .25rem;
    }
    .footer-grid ul,
    .footer-grid address,
    .footer-grid p {
        margin: 0;
    }
    .chyron-item {
        flex: 0 0 100%;
        padding: .1rem .25rem;
        color: var(--text);
        white-space: normal;
        /* omogućava prelamanje */
        overflow-wrap: break-word;
        /* lomi dugačke reči */
        font-size: .75rem;
    }
    nav ul {
        display: none;
    }
}


/* Very wide screens keep it narrow */

@media (min-width: 1000px) {
     :root {
        --grid: minmax(0, 860px);
    }
}


/* Mobile background perf */

@media (max-width: 720px) {
    body {
        background: var(--bg-3), var(--bg-noise);
        background-size: cover, 24px 24px;
        background-attachment: scroll, scroll;
    }
}

@media (max-width: 980px) {
    /* GLAVNI LINKOVI U PANELU */
    header .nav.open nav>ul>li {
        opacity: 0;
        transform: translateY(-8px);
        animation: navLinkSlide 0.35s ease forwards;
    }
    /* kašnjenje po stavci da bi ulazilo kaskadno */
    header .nav.open nav>ul>li:nth-child(1) {
        animation-delay: 0.05s;
    }
    header .nav.open nav>ul>li:nth-child(2) {
        animation-delay: 0.10s;
    }
    header .nav.open nav>ul>li:nth-child(3) {
        animation-delay: 0.15s;
    }
    header .nav.open nav>ul>li:nth-child(4) {
        animation-delay: 0.20s;
    }
    header .nav.open nav>ul>li:nth-child(5) {
        animation-delay: 0.25s;
    }
    header .nav.open nav>ul>li:nth-child(6) {
        animation-delay: 0.30s;
    }
    /* SUBMENU (ABOUT) – FADE + SLIDE ZA SVAKU STAVKU */
    header .nav.open .has-dropdown.open>.submenu li {
        opacity: 0;
        transform: translateY(-6px);
        animation: navSubmenuSlide 0.30s ease forwards;
    }
    header .nav.open .has-dropdown.open>.submenu li:nth-child(1) {
        animation-delay: 0.05s;
    }
    header .nav.open .has-dropdown.open>.submenu li:nth-child(2) {
        animation-delay: 0.10s;
    }
    header .nav.open .has-dropdown.open>.submenu li:nth-child(3) {
        animation-delay: 0.15s;
    }
    header .nav.open .has-dropdown.open>.submenu li:nth-child(4) {
        animation-delay: 0.20s;
    }
    header .nav.open .has-dropdown.open>.submenu li:nth-child(5) {
        animation-delay: 0.25s;
    }
    @keyframes navLinkSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    @keyframes navSubmenuSlide {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}