.section-overlay .container {
    position: relative;
    z-index: 1;
}
.sppb-addon-articles .sppb-article-text-wrap .sppb-readmore {
    color: #000;
}
#sp-header {
    background: #fff;
    top: 20px;
}
.sppb-addon-clients-image {
    max-height: 100px;
    margin: 0 auto;
}
.mod-languages {
    float: right;
}
.sppb-slideshow-fullwidth-item-text .sppb-fullwidth-title {
    display: inline;
    background-color: #fff;

    /* Pozadie a odsadenie samostatne pre každý riadok */
    padding: 0.08em 0.18em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.sppb-slideshow-fullwidth-item .sppb-slideshow-fullwidth-item-bg .sppb-slideshow-fullwidth-item-text .sppb-fullwidth-title {
    line-height: 1.35;
}
#sp-page-title .sp-page-title h2 {
    background: #fff;
    display: inline;
    padding: 0 10px;
}
.sppb-addon-articles .sppb-article-text-wrap {
    max-width: 360px;
}
/* Rovnaká výška kariet v sekcii Novinky */
@media (min-width: 768px) {
    .novinky-equal.sppb-addon-articles > .sppb-addon-content > .sppb-row {
        align-items: stretch;
    }

    .novinky-equal.sppb-addon-articles .sppb-col-sm-4 {
        display: flex;
        flex-direction: column;
    }

    .novinky-equal .sppb-addon-article {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        width: 100%;
    }

    .novinky-equal .sppb-article-text-wrap {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .novinky-equal .sppb-readmore {
        margin-top: auto;
    }
}

/* =====================================================
   KULTÚRNE PODUJATIA
   Stránka: /kulturne-podujatia
   ===================================================== */


/* -----------------------------------------------------
   ZÁKLADNÉ ROZLOŽENIE
   ----------------------------------------------------- */

/* Jemné pozadie obsahovej časti */
body.itemid-504 #sp-main-body {
    background-color: #f5f6f7;
}

/* Maximálna šírka obsahu */
body.itemid-504 #sp-component > .sp-column {
    width: 100%;
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}


/* -----------------------------------------------------
   KARTY ČLÁNKOV
   ----------------------------------------------------- */

body.itemid-504 .blog .article-list article.item {
    position: relative;
    overflow: hidden;
    margin: 0 0 44px;
    padding: 30px 34px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-left: 5px solid #eb212e;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Jemný efekt pri prejdení myšou */
@media (hover: hover) {
    body.itemid-504 .blog .article-list article.item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.11);
    }
}


/* -----------------------------------------------------
   HLAVIČKA ČLÁNKU
   ----------------------------------------------------- */

body.itemid-504 .blog article.item .entry-header {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

/* Názov článku */
body.itemid-504 .blog article.item .entry-header h2 {
    margin: 10px 0 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
}

/* Odkaz v názve */
body.itemid-504 .blog article.item .entry-header h2 a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.itemid-504 .blog article.item .entry-header h2 a:hover,
body.itemid-504 .blog article.item .entry-header h2 a:focus {
    color: #eb212e;
}


/* -----------------------------------------------------
   DÁTUM ČLÁNKU
   ----------------------------------------------------- */

body.itemid-504 .blog article.item .article-info {
    margin: 0;
}

body.itemid-504 .blog article.item .article-info dd {
    margin: 0;
}

body.itemid-504 .blog article.item .published {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 11px;
    color: #a71922;
    background-color: #fbeaec;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.3;
}


/* -----------------------------------------------------
   TEXT ČLÁNKU
   ----------------------------------------------------- */

body.itemid-504 .blog article.item p {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.7;
}


/* -----------------------------------------------------
   OBRÁZKY
   ----------------------------------------------------- */

body.itemid-504 .blog article.item img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    border-radius: 5px;
}


/* -----------------------------------------------------
   FOTOGALÉRIA
   ----------------------------------------------------- */

body.itemid-504 .blog article.item .entry-gallery {
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: 6px;
    background-color: #eee;
}


/* -----------------------------------------------------
   STRÁNKOVANIE
   Opravené pre HTML generované Joomlou
   ----------------------------------------------------- */

body.itemid-504 .blog .pagination-wrapper {
    width: 100%;
    margin: 12px 0 42px;
}

/*
 * Nepoužíva sa gap.
 * Joomla generuje medzi reálne tlačidlá prázdne LI prvky.
 */
body.itemid-504 .blog ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Reset všetkých LI vrátane prázdnych pomocných prvkov */
body.itemid-504 .blog ul.pagination > li.page-item {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Vzhľad jednotlivých tlačidiel */
body.itemid-504 .blog ul.pagination > li.page-item > .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 4px !important;
    padding: 0 11px;
    color: #333;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px !important;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Aktuálna stránka */
body.itemid-504 .blog ul.pagination > li.active > .page-link {
    color: #fff;
    background-color: #eb212e;
    border-color: #eb212e;
}

/* Klikateľné čísla a šípky */
body.itemid-504 .blog ul.pagination > li > a.page-link:hover,
body.itemid-504 .blog ul.pagination > li > a.page-link:focus {
    color: #fff;
    background-color: #c91925;
    border-color: #c91925;
}

/* Neaktívne šípky */
body.itemid-504 .blog ul.pagination > li.disabled > .page-link {
    color: #999;
    background-color: #f4f4f4;
    border-color: #e2e2e2;
    opacity: 0.7;
    cursor: default;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 991.98px) {

    body.itemid-504 #sp-component > .sp-column {
        max-width: 760px;
    }

    body.itemid-504 .blog .article-list article.item {
        margin-bottom: 34px;
        padding: 26px 28px;
    }

    body.itemid-504 .blog article.item .entry-header h2 {
        font-size: 27px;
    }
}


/* =====================================================
   MOBIL
   ===================================================== */

@media (max-width: 575.98px) {

    body.itemid-504 .blog .article-list article.item {
        margin-bottom: 26px;
        padding: 20px 18px;
        border-left-width: 4px;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    }

    body.itemid-504 .blog article.item .entry-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    body.itemid-504 .blog article.item .entry-header h2 {
        font-size: 23px;
        line-height: 1.3;
    }

    body.itemid-504 .blog article.item p {
        line-height: 1.6;
    }

    /* Menšie tlačidlá stránkovania */
    body.itemid-504 .blog ul.pagination > li.page-item > .page-link {
        min-width: 35px;
        height: 35px;
        margin: 3px !important;
        padding: 0 8px;
        font-size: 14px;
        border-radius: 5px !important;
    }
}


/* =====================================================
   OBMEDZENIE ANIMÁCIÍ
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    body.itemid-504 .blog .article-list article.item,
    body.itemid-504 .blog article.item .entry-header h2 a,
    body.itemid-504 .blog ul.pagination .page-link {
        transition: none;
    }
}