/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #2e8b57;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Main */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.blok {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.blok.obrnut {
    flex-direction: row-reverse;
}

.tekst {
    flex: 1;
    min-width: 280px;
}

.slika {
    flex: 1;
    min-width: 280px;
}

.placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 18px;
    border: 2px dashed #aaa;
    border-radius: 5px;
    margin: 0 auto;
}

footer {
    background-color: #2e8b57;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Hero sekcija */
.hero {
    background: url("../img/z10.jpg") center/cover no-repeat;
    background-size: auto;
    border-radius: 10px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .overlay {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tekst-siroko {
    background-color: #fff;
    max-width: 100%;
    padding: 3rem 2rem;
    text-align: center;
}

.tekst-siroko h2 {
    margin-bottom: 1.5rem;
}

img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .blok,
    .blok.obrnut {
        flex-direction: column;
        text-align: center;
    }

    .tekst,
    .slika {
        flex: 1 1 100%;
    }

    .hero {
        height: 250px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .tekst-siroko {
        padding: 2rem 1rem;
    }
}
