/* POZADINA SAME STRANICE */
body.bg-gradilista {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('../images/background1.webp') no-repeat center center fixed;
    background-size: cover;
}
/* NASLOV – kao na kontakt stranici */
.ponuda-naslov {
    font-family: 'Century Gothic', Arial, sans-serif !important;
    text-align: center !important;
    font-size: 3rem !important;
    color: white !important;
    margin: 40px 0 25px 0 !important;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7) !important;
    display: block !important;
}
/* SEKCIJA KOJA DRŽI SVE */
.ponuda-section {
    padding: 20px 40px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* TAMNI BLOK */
.ponuda-box {
    background: rgba(0,0,0,0.55);
    padding: 35px 45px;
    border-radius: 18px;
    color: white;
    text-align: center;
    font-family: 'Century Gothic', sans-serif;
}

/* NASLOV */
.ponuda-box h1 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* UVODNI TEKST */
.ponuda-box .intro {
    font-size: 17px;
    line-height: 1.5;
    margin: 10px 0 20px 0;
}

/* TABELE */
.ponuda-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 16px;
}

.ponuda-tabela th {
    border: 2px solid white;
    padding: 8px;
    font-weight: bold;
    font-size: 17px;
}

.ponuda-tabela td {
    border: 2px solid white;
    padding: 8px;
    text-align: left;
}

/* TEKST ISPOD TABELA */
.ispod {
    margin-top: 15px;
    font-size: 17px;
    line-height: 1.5;
}
/* Završni moto */
.moto {
    margin-top: 35px;
    font-size: 22px;
    letter-spacing: 3px; /* blago razmaknuta slova */
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Ensure the plain/mobile variant is hidden by default (desktop) and only
   shown on mobile via the media query below. This prevents both versions
   appearing on desktop. */
.moto-mobile {
    display: none;
}

/* DUGME ZA PDF */
.ponuda-download {
    margin-top: 25px;
}

.ponuda-download a {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(to bottom, #00ff00, #057c82);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
}

.ponuda-download a:hover {
    background: linear-gradient(to bottom, #00ff00, #057c82);
    transform: scale(1.05);
}

/* Mobile adjustments: make tables fit and be readable without horizontal scroll
   - apply only for small screens (mobile) */
@media (max-width: 768px) {
    .ponuda-section {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .ponuda-box {
        padding: 18px 16px;
    }

    .ponuda-tabela {
        width: 100% !important;
        table-layout: auto; /* let columns size to content and wrap */
        font-size: 14px;
        margin: 12px 0;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        word-break: break-word;
        word-wrap: break-word;
    }

    .ponuda-tabela th,
    .ponuda-tabela td {
        padding: 6px 8px;
        font-size: 14px;
        white-space: normal; /* allow wrapping */
    }

    .ponuda-tabela th {
        font-size: 15px;
    }

    /* reduce border thickness visually on small screens */
    .ponuda-tabela th, .ponuda-tabela td {
        border-width: 1px;
    }

    /* Widen left column (weekday names) on mobile so full names fit */
    .ponuda-tabela th:first-child,
    .ponuda-tabela td:first-child {
        width: 40% !important;
        min-width: 120px;
    }

    .ponuda-tabela th:last-child,
    .ponuda-tabela td:last-child {
        width: 60% !important;
    }
}

/* Mobile only: improve readability of the first intro paragraph */
@media (max-width: 768px) {
    .ponuda-box .intro {
        letter-spacing: normal !important; /* ensure no extra spacing between letters */
        line-height: 1.65 !important;
        font-size: 15px !important;
        margin-bottom: 12px !important;
        padding-right: 2px; /* small padding to avoid tight edges */
        text-align: center !important; /* center-align intro on mobile */
        box-sizing: border-box;
        hyphens: auto;
    }
}

/* Mobile-only: remove extra letter-spacing for the closing moto so words stay on one line */
@media (max-width: 768px) {
    .moto {
        letter-spacing: normal !important;
        /* allow wrapping so the phrase fits on narrow screens */
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        text-align: center !important;
        hyphens: auto !important;
    }
    /* hide mobile-specific replacement by default on desktop; will be shown only on mobile below */
    .moto-mobile { display: none; }
}

/* Show mobile motto and hide desktop spaced moto only on mobile */
@media (max-width: 768px) {
    .moto { display: none !important; }
    .moto-mobile {
        display: block !important;
        margin-top: 35px;
        font-size: 22px;
        letter-spacing: normal !important;
        text-align: center !important;
        font-weight: 600;
        color: #ffffff;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    }
}
