﻿:root {
    --navy-800: #1b2f5c;
    --navy-900: #16264d;
    --navy-light: #1e2f6e; /* ← DODATO: falilo je u :root, koristi se u hero gradientu */
    --active-bg: #28407e;
    --blue-600: #2451a3;
    --blue-500: #3062bd;
    --blue-50: #eaf1fc;
    --bg: #f2f4f8;
    --paper: #ffffff;
    --ink: #1b2436;
    --ink-soft: #5b6478;
    --line: #e1e5ee;
    --green: #1a9c6a;
    --green-50: #e9f8f1;
    --gold: #c9a14a;
    --gold-50: #fbf3e2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans',sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.app2 {
    display: flex;
    min-height: 100vh;
}

.sidebar2 {
    width: 236px;
    flex-shrink: 0;
    background: var(--navy-900);
    color: #aab4cc;
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.brand2 {
    padding: 2px 8px 20px;
    margin-bottom: 12px;
}

.brand-word2 {
    font-size: 19px;
    font-weight: 700;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}

    .brand-word2 .e2 {
        color: var(--blue-500);
    }

    .brand-word2 .rest2 {
        color: #fff;
    }

    .brand-word2::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1.5px;
        background: var(--blue-500);
    }

.nav-section2 {
    font-size: 10.5px;
    letter-spacing: .06em;
    color: #6b7794;
    font-weight: 600;
    padding: 4px 10px 8px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-item2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #b7c0d8;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3;
}

    .nav-item2 svg {
        flex-shrink: 0;
        opacity: .8;
    }

    .nav-item2:hover {
        background: rgba(255,255,255,.05);
        color: #e4e9f6;
    }

    .nav-item2.active2 {
        background: var(--active-bg);
        color: #fff;
    }

        .nav-item2.active2 svg {
            opacity: 1;
        }

.sidebar-foot2 {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.main2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

    .topbar2 h1 {
        font-size: 15px;
        font-weight: 600;
        margin: 0;
        color: var(--ink);
    }

.contact-link2 {
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.content2 {
    padding: 0 0 48px;
    /* probija padding iz master .content da hero ide od ivice do ivice */
    margin: -5px -20px 0;
}

/* ===== HERO ===== */
.hero2 {
    background: linear-gradient(90deg, #1a2a63 0%, #1e2f6e 30%, var(--navy-light) 100%);
    padding: 44px 60px 38px;
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ⭐ RAZVUČENO preko cele širine */
.hero-inner2 {
    width: 100%;
    max-width: 100%;
}

.hero2 h1 {
    font-size: 27px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
    max-width: 900px; /* naslov ne ide preko celog ekrana — ostaje čitljiv */
}

    .hero2 h1 .accent2 {
        color: var(--blue-500);
    }

/* Uvodni pasus (hero-lead) */
.hero-lead {
    font-size: 14.5px;
    color: #b7c0d8;
    margin: 0 0 22px;
    line-height: 1.65;
    max-width: 900px; /* malo širi od starog 560px */
}

.hero-stats2 {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 26px;
    width: 100%;
}

.hero-stat2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hero-stat2 .l2 {
        font-size: 12.5px;
        color: #dbe2f2;
        font-weight: 500;
    }

/* ⭐ SEO tekst ispod hero-a — dve kolone na širokim ekranima */
.hero-seo-text {
    max-width: 100%;
    margin: 36px 0 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    column-count: 2;
    column-gap: 60px;
}

    .hero-seo-text p {
        margin: 0 0 14px 0;
        break-inside: avoid;
    }

    .hero-seo-text strong {
        color: #ffffff;
        font-weight: 600;
    }

/* ===== KATEGORIJE ===== */
.cat-section2 {
    padding: 32px 26px 8px;
}

.cat-head2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

    .cat-head2 h3 {
        font-size: 15px;
        font-weight: 700;
        color: var(--navy-800);
        margin: 0;
    }

    .cat-head2 .count2 {
        font-size: 12px;
        color: var(--ink-soft);
    }

.tool-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width:1100px) {
    .tool-grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:720px) {
    .tool-grid2 {
        grid-template-columns: 1fr;
    }
}

.tool-card2 {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

    .tool-card2:hover {
        border-color: var(--blue-500);
        box-shadow: 0 4px 14px rgba(27,47,92,.08);
    }

.tool-icon2 {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card2 h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0;
}

.tool-card2 p {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

.tool-card2 .go2 {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
}

.cat-divider2 {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0 26px;
}

.footer-note2 {
    padding: 28px 26px 0;
    font-size: 11.5px;
    color: var(--ink-soft);
    text-align: center;
}

/* ===== RESPONZIVNOST ZA HERO ===== */
@media (max-width: 1100px) {
    .hero2 {
        padding: 36px 40px 32px;
    }

    .hero-seo-text {
        column-gap: 40px;
    }
}

@media (max-width: 900px) {
    .hero2 {
        padding: 32px 24px 28px;
    }

        .hero2 h1 {
            font-size: 23px;
        }

    .hero-lead {
        font-size: 14px;
    }

    .hero-stats2 {
        gap: 20px;
    }
    /* Vrati SEO tekst u jednu kolonu na tabletima/mobilnim */
    .hero-seo-text {
        column-count: 1;
        column-gap: 0;
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .hero2 {
        padding: 26px 18px 24px;
    }

        .hero2 h1 {
            font-size: 20px;
        }

    .hero-stats2 {
        flex-direction: column;
        gap: 12px;
    }
}
