﻿.section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2em;
    padding-bottom: 2em;
}

    .section.alternate-bg {
        background-color: var(--mud-palette-surface);
    }

.container {
    display: flex;
    width: 100%;
    max-width: 800px;
}

.column {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.onecolumn {
    display: grid;
    width: 100%;
    max-width: 800px;
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 250px;
    margin: 20px auto;
    max-width: 250px;
    display: block; /* centriranje */
}

h1 span {
    font-weight: bold;
    color: var(--mud-palette-primary);
}

p {
    line-height: 1.5;
    margin-top: 10px;
}

.container.reverse {
    flex-direction: row-reverse;
}

.footersection {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text) !important;
}

.footercontainer {
    display: flex;
    width: 100%;
    max-width: 1200px;
}

    .footercontainer a {
        color: var(--mud-palette-secondary-text) !important;
    }

/* 🔹 Responzivne prilagodbe */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

        .container.reverse {
            flex-direction: column;
        }

    .column {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5em;
    }

    .image-container img {
        max-width: 50%;
        max-height: none;
        margin: 0 auto; /* centrirano */
    }

    .footercontainer {
        flex-direction: column;
        text-align: center;
        padding: 1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }

    .image-container img {
        max-width: 50%;
        margin: 10px auto; /* centrirano */
    }
}
