/* ============================================================
           BLOG INDEX — stilovi
           ============================================================ */

        /* Navbar — transparentan na vrhu, bijeli kad scrolla (isto kao index.html) */
        /* is-scrolled i is-menu-open klase dodaje main.js automatski */

        /* ---- Page ---- */
        .blog-page {
            background: var(--color-background);
            min-height: 100vh;
        }

        /* ============================================================
           HERO SA SLIKOM — navbar ide PREKO slike (kao na index.html)
           ============================================================ */
        .blog-page-hero {
            position: relative;
            width: 100%;
            height: 55vh;
            min-height: 380px;
            max-height: 560px;
            overflow: hidden;
            margin-top: calc(-1 * var(--navbar-height)); /* ide ispod navbara kao hero na index.html */
        }

        .blog-page-hero__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 40%;
            display: block;
        }

        .blog-page-hero__overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to bottom,
                rgba(10,28,18,0.35) 0%,
                rgba(10,28,18,0.62) 70%,
                rgba(10,28,18,0.80) 100%
            );
        }

        .blog-page-hero__content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 0 0 3rem;
        }

        .blog-page-hero__content-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 2.5rem;
        }

        .blog-page-hero__eyebrow {
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: hsl(142, 65%, 65%);
            margin-bottom: 0.75rem;
        }

        .blog-page-hero__title {
            font-family: 'Fraunces', serif;
            font-size: clamp(2.25rem, 5vw, 3.5rem);
            font-weight: 700;
            color: #fff;
            line-height: 1.1;
            letter-spacing: -0.025em;
            margin-bottom: 0.875rem;
        }

        .blog-page-hero__sub {
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            color: rgba(255,255,255,0.72);
            line-height: 1.6;
            max-width: 560px;
        }

        /* ============================================================
           BLOG GRID
           ============================================================ */
        .blog-main {
            max-width: 1100px;
            margin: 0 auto;
            padding: 3rem 2.5rem 6rem;
        }

        /* Broj postova + divider */
        .blog-count {
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--color-muted);
            margin-bottom: 1.75rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid hsl(155,15%,90%);
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        /* ---- Kartica ---- */
        .blog-card {
            background: #fff;
            border-radius: 0.875rem;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1.5px solid hsl(155,15%,91%);
            transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
            opacity: 0;
            transform: translateY(14px);
            animation: cardIn 0.45s ease forwards;
        }

        .blog-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(21,40,30,0.12);
            border-color: hsl(148,40%,78%);
        }

        @keyframes cardIn {
            to { opacity: 1; transform: translateY(0); }
        }

        /* Animacioni delay */
        .blog-card:nth-child(1) { animation-delay: 0ms; }
        .blog-card:nth-child(2) { animation-delay: 70ms; }
        .blog-card:nth-child(3) { animation-delay: 140ms; }
        .blog-card:nth-child(4) { animation-delay: 210ms; }
        .blog-card:nth-child(5) { animation-delay: 280ms; }
        .blog-card:nth-child(6) { animation-delay: 350ms; }
        .blog-card:nth-child(7) { animation-delay: 420ms; }
        .blog-card:nth-child(8) { animation-delay: 490ms; }
        .blog-card:nth-child(9) { animation-delay: 560ms; }

        /* Thumbnail */
        .blog-card__thumb {
            display: block;
            aspect-ratio: 16/9;
            overflow: hidden;
            background: hsl(148,25%,90%);
            flex-shrink: 0;
            text-decoration: none;
        }

        .blog-card__thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.42s ease;
        }

        .blog-card:hover .blog-card__thumb img {
            transform: scale(1.06);
        }

        /* Kategorija badge */
        .blog-card__category {
            display: inline-flex;
            align-items: center;
            font-family: 'Inter', sans-serif;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: hsl(148,50%,24%);
            background: hsl(148,40%,93%);
            border-radius: 999px;
            padding: 0.2rem 0.625rem;
        }

        /* Body */
        .blog-card__body {
            padding: 1.125rem 1.25rem 1.375rem;
            display: flex;
            flex-direction: column;
            flex: 1;
            gap: 0;
        }

        /* Meta */
        .blog-card__meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.625rem;
            flex-wrap: wrap;
        }

        .blog-card__meta-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.6875rem;
            color: #aaa;
        }

        .blog-card__meta-item svg { opacity: 0.65; flex-shrink: 0; }

        /* Naslov */
        .blog-card__title {
            font-family: 'Fraunces', serif;
            font-size: 1rem;
            font-weight: 700;
            color: #111;
            line-height: 1.35;
            margin-bottom: 0.5rem;
            text-decoration: none;
            display: block;
            transition: color 0.2s;
        }

        .blog-card__title:hover { color: hsl(148,50%,24%); }

        /* Excerpt */
        .blog-card__excerpt {
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            color: #777;
            line-height: 1.65;
            flex: 1;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* CTA */
        .blog-card__cta {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.8125rem;
            font-weight: 600;
            color: hsl(148,50%,24%);
            text-decoration: none;
            margin-top: auto;
            transition: gap 0.2s ease;
        }

        .blog-card__cta:hover { gap: 0.55rem; }

        /* ---- Placeholder thumbnail (bez slike) ---- */
        .blog-card__thumb-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, hsl(148,30%,92%) 0%, hsl(148,40%,85%) 100%);
        }

        .blog-card__thumb-placeholder svg {
            opacity: 0.35;
            width: 48px;
            height: 48px;
        }

        /* ---- Loading ---- */
        .blog-loading {
            grid-column: 1 / -1;
            text-align: center;
            padding: 5rem 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.875rem;
        }

        .blog-loading__spinner {
            width: 36px;
            height: 36px;
            border: 2.5px solid hsl(148,20%,88%);
            border-top-color: hsl(148,50%,30%);
            border-radius: 50%;
            animation: spin 0.75s linear infinite;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .blog-loading p,
        .blog-empty p {
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
            color: #aaa;
        }

        .blog-error p {
            font-family: 'Inter', sans-serif;
            font-size: 0.875rem;
            color: hsl(0,65%,50%);
        }

        .blog-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 5rem 0;
        }

        .blog-empty__icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        /* ============================================================
           RESPONZIVNOST
           ============================================================ */

        /* Tablet */
        @media (max-width: 900px) {
            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem;
            }
            .blog-main {
                padding: 2.5rem 1.5rem 5rem;
            }
            .blog-page-hero__content-inner {
                padding: 0 1.5rem;
            }
        }

        /* Mobilni */
        @media (max-width: 560px) {
            .blog-page-hero {
                height: 55vh;
                min-height: 300px;
            }
            .blog-page-hero__content-inner {
                padding: 0 1.25rem;
            }
            .blog-page-hero__title {
                font-size: 2rem;
            }
            .blog-main {
                padding: 2rem 1.25rem 4rem;
            }
            .blog-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            /* Horizontalne kartice na mobilnom */
            .blog-card {
                flex-direction: row;
                border-radius: 0.75rem;
            }
            .blog-card__thumb {
                width: 110px;
                min-width: 110px;
                aspect-ratio: auto;
                align-self: stretch;
            }
            .blog-card__body {
                padding: 0.875rem 1rem 1rem;
            }
            .blog-card__excerpt {
                display: none;
            }
            .blog-card__title {
                font-size: 0.9375rem;
                -webkit-line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .blog-card:hover {
                transform: none;
            }
        }