﻿body {
    background: url('/images/forest.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

html {
    position: static;
    height: auto;
    min-height: 0;
}

header {
    background-color: none;
}

main {
    flex: 1 0 auto;
}

footer {
    background-color: rgba(13, 41, 34, 1);
    color: white;
    position: static !important;
    width: 100%;
    flex-shrink: 0;
    line-height: normal;
    padding-bottom:30px;
}

.pad-t{
    padding-top:5%;
}

.footer-p {
    position: relative;
    color: white;
}

.footer-copy {
    position: relative;
    z-index: 15;
}

.eco-footer {
    width: 40%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.ax-footer {
    width: 80%;
    position: relative;
    max-width: 350px !important;
}

.footer-link{
    text-decoration:none;
    color:white !important;
}

.footer-link:hover {
    color: #4f95fe !important;
}

.logo-footer {
    width: 80%;
    z-index: 5;
    position: relative;
    left: 50px;
    margin-bottom: 20px;
}

.project-card {
    background-color: rgba(13, 41, 34, 0.8); 
    color:white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 99, 255, 0.05);
    margin: 20px;
}

.project-card a{
    text-decoration:none;
    color:white;
}

.project-card:hover {
    background: rgba(13, 41, 34, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.1);
}


.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

    .project-image img {
        padding:15px;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.05);
}


.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.project-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(108, 99, 255, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}



.project-body {
    padding: 25px 25px 30px;
    position: relative;
   
}

.project-body-news {
    padding: 25px 25px 30px;
    position: relative;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 1rem;
    color: #d9d9d9;
    line-height: 1.6;
    margin-bottom: 15px;
    margin-top: 15px;
}


.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

    .project-tech span {
        padding: 4px 14px;
        color: #6C63FF;
        font-size: 0.75rem;
        font-weight: 500;
        border-radius: 50px;
        transition: all 0.3s ease;
    }

    .project-tech span {
        background: #6C63FF;
        color: white;
    }


.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6C63FF;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

    .project-link:hover {
        color: #5a52d5;
        border-bottom-color: #6C63FF;
        gap: 12px;
    }

    .project-link i {
        transition: transform 0.3s ease;
    }

    .project-link:hover i {
        transform: translateX(4px);
    }


#loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f7f2;
    background-image: url("/images/loader-pozadina.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity .4s ease, visibility .4s ease;
}

    #loader.skriven {
        opacity: 0;
        visibility: hidden;
    }

    /* varijanta B: slika šume, zamućena, s bijelom karticom iza sove */
    #loader.sa-slikom {
        background: url('/img/suma-pozadina.jpg') center / cover no-repeat;
    }

    #loader.sa-slikom::before {
        content: "";
        position: absolute;
        inset: 0;
        backdrop-filter: blur(6px);
        background: rgba(255, 255, 255, .35);
    }

.loader-kartica {
    position: relative;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

    .loader-kartica img {
        display: block;
        max-width: 60vw;
        height: auto;
        background: transparent;
    }


.upute {
    max-width: 820px;
    background-color: rgba(13, 41, 34, 0.7);
    padding: 40px;
    border-radius: 10px 10px;
    color: white;
    margin-top: 40px !important;
    margin-bottom: 80px !important;
}

    .upute h2 {
        margin-top: 2.2rem;
        color: #A7E8A8;
    }

    .upute h1 {
        margin-bottom: 2.2rem;
        color: #A7E8A8;
    }

.upute a {
    color: #4f95fe;
}

.upute a:hover {
    color: #9ac3fe;
}

.upute h3 {
    margin-top: 1.4rem;
    font-size: 1.1rem;
}

.upute-slika {
    margin: 1.2rem 0;
}

    .upute-slika img {
        max-width: 100%;
        height: auto;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .upute-slika figcaption {
        font-size: .9rem;
        color: #666;
        margin-top: .3rem;
    }

.slika-mjesto {
    border-radius: 6px;
    color: #777;
    padding: 2rem 1rem;
    text-align: center;
    margin: 1.2rem 0;
    font-size: .95rem;
}

.slika-mjesto img{
    width:80%;
}
.slika-mjesto.mobitel {
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1rem;
}

.kvadratic {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    vertical-align: -2px;
    margin-right: 6px;
}

.upute .savjet {
    border-left: 4px solid #2e7d32;
    background: #f1f8f1;
    padding: .7rem 1rem;
    margin: 1rem 0;
    color: black;
}

.upute .oprez {
    border-left: 4px solid #b9770e;
    background: #fdf6e9;
    padding: .7rem 1rem;
    margin: 1rem 0;
    color:black;
}

.upute dt {
    font-weight: 600;
    margin-top: .6rem;
}

.upute dd {
    margin-left: 0;
}

.brojevi-okvir {
    container-type: inline-size;
}

.brojevi {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    width: 100%;
    margin: 0;
}

    .brojevi > div {
        background: transparent;
        box-shadow: none;
        border-left: 5px solid var(--b);
        padding: 4px 0 4px 12px;
        min-width: 0;
    }

    .brojevi dt {
        font-size: 1.2rem;
        margin: 0;
    }

    .brojevi dd {
        margin: 2px 0 0;
        font-size: 1.7rem;
        font-weight: 700;
        line-height: 1.15;
    }

    .brojevi small {
        display: block;
        font-size: 0.8rem;
        font-weight: 400;
        margin-top: 2px;
    }
.map-panel {
    margin: 0;
}

map-panel__map {
    width: min(100%, 560px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #1d2b24;
    box-shadow: 0 6px 24px #8DC48F;
    isolation: isolate;
}

.map-panel__caption {
    text-align: center;
}

.map-panel__attr {
    display: block;
    font-size: .75rem;
    opacity: .75;
    margin-top: .25rem;
}

.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: -2px;
}

.swatch--full {
    background: rgba(46, 125, 50, .35);
    border: 2px solid #2e7d32;
}

.map-panel__error {
    padding: 1rem;
}

.eco-trustmark{
    width:100px;
}

.pad-t a{
    text-decoration:none;
}

@media (max-width: 992px) {
    .logo-footer {
        width: 50%;
        margin-left: 25%;
        left: 0;
        padding-top: 50px;
    }

    .eco-footer {

        margin-top: 30px;
    }

    .div-center {
        text-align: center;
    }

    .pad-t {
        padding-top: 50px;
    }

    .page-header {
        padding: 20px 40px 100px 40px;
    }
}