/* ---------- Theme colours ---------------- */
:root {
    --bg-color:     #121212;   /* page background */
    --text-color:   #e0e0e0;   /* body text */
    --accent-color: #2ecc71;   /* optional green accents */

    /* Button palette – green */
    --button-bg:          transparent;
    --button-border:      #2ecc71;
    --button-text:        #2ecc71;
    --button-hover-bg:    #27ae60;
    --button-hover-text:  #ffffff;
}

/* -------------------- Base layout -------------------- */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, sans-serif;
    text-align: center;               /* default centering for headings, etc. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wrapper that grows to push the footer down */
.page-wrapper {
    flex: 1 0 auto;               /* takes all remaining height */
    display: flex;
    flex-direction: column;
    align-items: center;           /* keep inner content centred */
}

/* ------- Headings -------------------------------------------------- */
.main-heading {
    color: #fff;
    margin-top: 10px;      /* unified top spacing for both pages */
    margin-bottom: 0.4rem;
}

/* Slight separation between the two H1 lines on the home page */
.title-group h1 + h1 { margin-top: 0.2rem; }

/* -------------------- Contact block -------------------- */
.contact {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact p { margin: 0.3rem 0; }
.contact .value { color: var(--accent-color); }

/* -------------------- Images -------------------- */
.img-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.img-wrapper img {
    max-width: 100%;
    height: auto;
    min-width: 150px;   /* avoid overly tiny images */
}
.img-wrapper + .img-wrapper { margin-top: 10px; }
@media (max-width: 480px) {
    .img-wrapper { flex-direction: column; align-items: center; }
}

/* -------------------- Footer -------------------- */
.site-footer {
    width: 100%;                 /* full‑width line spans the screen */
    text-align: center;
    padding: 0.8rem 0;           /* a bit more space above & below the text */
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    margin-top: auto;
}
.site-footer::before {
    content: "";
    display: block;
    height: 1px;
    background: #555;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* -------------------- Buttons -------------------- */
.styled-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem 0;
    font-size: 1rem;
    text-decoration: none;
    color: var(--button-text);
    background: var(--button-bg);
    border: 2px solid var(--button-border);
    border-radius: 6px;
    transition: background-color .25s ease, color .25s ease;
}
.styled-button:hover,
.styled-button:focus {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
}

/* -----------------------------------------------------------------
   INFO‑BUTTON – restored to the original spacing
   ----------------------------------------------------------------- */
.info-button {
    margin-top: 2rem;      /* space above the button (as on the index page) */
    margin-bottom: 0.5rem; /* space below the button – matches the index button */
}

/* ----------- Button bar (top navigation) ----------- */
.button-bar {
    display: flex;
    flex-wrap: wrap;          /* wrap on very narrow screens */
    gap: 0.5rem;              /* space between buttons */
    justify-content: center;  /* centre the row */
    margin: 1rem 0;
}
.button-bar .styled-button {
    flex: 1 1 120px;          /* grow, shrink, base ≈120 px */
    max-width: 250px;
    box-sizing: border-box;
}

/* -------------------- Mobile adjustments -------------------- */
@media (max-width: 480px) {
    .styled-button {
        max-width: none;
        display: inline-block;
        padding: 0.5rem 0.8rem;
        margin: 0;
    }

    /* Keep the original mobile spacing for .info-button */
    .info-button {
        margin-top: 2.5rem;   /* a little extra top space on tiny screens */
        margin-bottom: 0.5rem;/* original bottom space */
    }
}

/* -------------------------------------------------
   PAGE‑SPECIFIC ADJUSTMENTS FOR “JO TUDNI”
   ------------------------------------------------- */

/* 1️⃣ Tighter horizontal margin – limit width and add inner padding */
.jo-tudni .page-wrapper {
    max-width: 600px;          /* tighter than the previous 800 px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 2️⃣ Keep headings centered (they inherit the global `text-align:center`) */
.jo-tudni .page-wrapper h1,
.jo-tudni .page-wrapper h2 {
    text-align: center;        /* override any later justification */
}

/* 3️⃣ Paragraphs: full justification with centered last line */
.jo-tudni .page-wrapper p {
    font-size: 1.17rem;        /* default size for a former <h4> */
    margin: 0.5em 0;           /* similar vertical spacing */
    text-align: justify;       /* spread lines to both edges */
    text-align-last: center;   /* last line sits in the middle */
    hyphens: auto;             /* nicer line‑breaks */
}

/* 4️⃣ Allow hyphenation for any other block elements if needed */
.jo-tudni .page-wrapper {
    hyphens: auto;
}

/* ------------------------------------------------------------------ */
/* (All other styles from the original stylesheet remain unchanged)   */
/* ------------------------------------------------------------------ */
