* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f3faef;
    color: #29452d;
}


/* NAVIGACIJA */

nav {
    background: #3d7541;
    padding: 14px 20px;

    position: sticky;
    top: 0;
    z-index: 100;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1100px;
    margin: auto;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

nav a {
    color: white;
    text-decoration: none;

    padding: 8px 14px;

    border-radius: 6px;

    font-weight: bold;

    transition: 0.2s;
}

nav a:hover {
    background: #5c985e;
}


/* UVOD */

.hero {
    background: #dff4d3;

    padding: 55px 20px;
}

.hero-container {
    max-width: 1100px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: #285c2e;

    font-size: 42px;
    line-height: 1.2;

    margin-bottom: 18px;
}

.hero-text p {
    color: #47744a;
    font-size: 20px;
}


/* SLIKA */

.hero-image-box {
    width: 320px;
    height: 320px;

    flex-shrink: 0;

    background: white;

    border-radius: 20px;

    padding: 15px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 10px;
}


/* SPLOŠNO */

.container {
    max-width: 1100px;
    margin: auto;

    padding: 55px 20px;
}

section h2 {
    color: #285c2e;

    font-size: 30px;

    margin-bottom: 20px;
}

section p {
    font-size: 17px;

    margin-bottom: 15px;
}


/* DEJAVNOSTI */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    margin-top: 30px;
}

.card {
    background: white;

    padding: 30px;

    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(0,0,0,0.08);

    border-top:
        5px solid #79ad67;
}

.card h3 {
    color: #3d7541;

    margin-bottom: 12px;

    font-size: 22px;
}


/* KNJIŽNICA */

.library {
    background: #e5f6dd;
}


/* OBVESTILA */

.news {
    background: white;
}


/* GUMBI */

.buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
}

.button {
    display: inline-block;

    background: #3d7541;

    color: white;

    text-decoration: none;

    padding: 13px 22px;

    border-radius: 7px;

    font-weight: bold;

    transition: 0.2s;
}

.button:hover {
    background: #285c2e;

    transform: translateY(-2px);
}


/* KONTAKT */

.contact {
    background: #dff4d3;
}

.contact-box {
    background: white;

    padding: 25px;

    border-radius: 10px;

    display: inline-block;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.08);
}


/* NOGA */

footer {
    background: #285c2e;

    color: white;

    text-align: center;

    padding: 25px 20px;
}

footer p {
    font-size: 14px;
}


/* MOBILNI TELEFONI */

@media (max-width: 800px) {

    .hero-container {
        flex-direction: column-reverse;

        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-image-box {
        width: 250px;
        height: 250px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    nav a {
        padding: 7px 9px;
        font-size: 14px;
    }
}