/* ==========================================================================
   DZIENNIK POLICKI — DP CUSTOM CSS
   Plik własnych reguł portalu. Ładować PO template.css GK Technews.
   Źródło uporządkowane: 29.09.2026

   ZASADA:
   - template.css = baza szablonu GK Technews (nie edytujemy przy poprawkach DP)
   - dp-custom.css = wszystkie własne reguły i świadome nadpisania Dziennika Polickiego
   ========================================================================== */

/* DP DESIGN TOKENS — używać w nowych i przebudowywanych regułach */
:root {
    --dp-navy: #01182a;
    --dp-navy-soft: #013f5c;
    --dp-red: #c0130e;
    --dp-white: #ffffff;
    --dp-bg: #f5f5f5;
    --dp-text: #2d2d2d;
    --dp-space-xs: 12px;
    --dp-space-sm: 20px;
    --dp-space-md: 32px;
    --dp-space-lg: 44px;
    --dp-space-xl: 52px;
    --dp-title-weight: 600;
    --dp-hero-weight: 700;
}

/*
   ARCHITEKTURA KASKADY:
   1) reguły komponentów, 2) responsive komponentów, 3) UI KIT jako świadome
   nadpisanie wspólnych wzorców. Nie dopisuj kolejnych "hotfixów" na końcu;
   poprawiaj regułę w jej sekcji lub w UI KIT, jeśli zmiana ma być globalna.
*/

/* ==========================================================================
   1. USTAWIENIA OGÓLNE I TYPOGRAFIA
   ========================================================================== */
body {
    font-size: 2.2rem;
    text-align: left;
    color: #2d2d2d;
}

h1 {
    font-size: 4.4rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 2.8rem;
}

.item-body h2,
.item-body h3,
.item-body h4 {
    margin-top: 6rem;
}

p {
    margin: 0.5em 0 1.5em;
}

a {
    color: #444;
}

a:hover,
a:active,
a:focus {
    text-decoration: underline !important;
}

img {
    max-width: 100%;
    height: auto;
}

#gkBg:after {
    background: #e5e5e5;
}

/* ==========================================================================
   2. NAWIGACJA (HEADER & FOOTER)
   ========================================================================== */
#gkHeaderNav {
    background: repeating-linear-gradient(to right, var(--dp-navy) 0%, var(--dp-navy) 40%, #013f5c 100%);
}

#gkHeaderNav .gkMainMenu {
    font-size: 2.1rem;
}

#gkHeaderNav .gkMainMenu .gkmenu.level0 > li > a.active {
    border-bottom: 3px solid var(--dp-red);
    background: #ffcc00;
    color: #181D24;
}

#gkFooter {
    background: transparent;
    padding: 0 !important;
}

#gkFooterNav {
    margin: 0;
    padding:0
}

#gkFooter strong {
    color: var(--dp-white);
}

#gkCopyrights {
    font-size: 1.8rem;
    color: #e5e5e5;
    text-align: center;
}

/* ==========================================================================
   3. WYSZUKIWARKA (BELKA W NAGŁÓWKU ORAZ STRONA WYNIKÓW)
   ========================================================================== */

/* --- Belka wyszukiwarki (gkSearch) --- */
#gkSearch {
    float: right !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: var(--dp-navy) !important;
    height: 52px !important;
    padding: 0 !important;
    margin: 5px 0 !important;
    border-bottom: 3px solid var(--dp-red) !important;
    width: 250px !important;
    box-sizing: border-box !important;
}

#gkSearch label,
.gkSearch label,
#gkSearch br {
    display: none !important;
}

#gkSearch form {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    margin: 0 !important;
}

#gkSearch input[type="text"],
#gkHeaderNav .gkSearch input#mod-search-searchword {
    background: transparent !important;
    border: none !important;
    color: var(--dp-white) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.6rem !important;
    text-transform: uppercase !important;
    padding: 0 15px !important;
    width: 200px !important;
    height: 100% !important;
    outline: none !important;
    box-shadow: none !important;
}

#gkSearch input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

#gkSearch .btn-search,
#gkSearch i.fa-search,
#gkSearch i.icon-search {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--dp-white) !important;
    font-size: 1.8rem !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

#gkSearch:hover i.fa-search {
    color: #ffcc00 !important;
}

/* --- Strona wyszukiwania (Finder/SearchForm) --- */
.finder fieldset.word,
#searchForm fieldset.word {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.finder fieldset.word label,
#searchForm fieldset.word label {
    display: block !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #333 !important;
}

.finder fieldset.word input#q,
#searchForm fieldset.word input#q {
    width: 300px !important;
    height: 50px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 0 15px !important;
    font-size: 1.8rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
}

.finder fieldset.word button,
#searchForm fieldset.word button {
    height: 50px !important;
    padding: 0 25px !important;
    background-color: var(--dp-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: background 0.3s ease;
}

.finder fieldset.word button:hover {
    background-color: var(--dp-red) !important;
}

#advanced-search-toggle {
    display: block !important;
    margin-top: 15px !important;
    color: var(--dp-red) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

/* --- Wyniki wyszukiwania --- */
.search-results ul.item-list {
    padding: 0 !important;
    margin: 30px 0 !important;
    list-style: none !important;
}

.result-item-custom {
    background: #fff !important;
    border-left: 5px solid var(--dp-red) !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.result-title-custom a {
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: var(--dp-navy) !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.result-date-custom {
    color: var(--dp-red) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.result-lead-custom {
    font-size: 1.8rem !important;
    line-height: 1.5 !important;
    color: #444 !important;
}

span.highlight {
    background-color: #ffeb3b !important;
    color: #000 !important;
    padding: 0 2px;
}

/* ==========================================================================
   4. LISTA ARTYKUŁÓW (BLOG / KATEGORIE / TAGI)
   ========================================================================= */

/* --- Główny kontener wpisu blogowego (dp-custom-blog) --- */
article.dp-custom-blog,
article.item-view.blog-view {
    display: block !important;
    width: 100% !important;
    margin-bottom: 50px !important;
    padding-bottom: 40px !important;
    border-bottom: 2px solid !important;
    border-image: linear-gradient(to right, var(--dp-red) 60px, #e0e0e0 60px) 1 !important;
    position: relative !important;
    clear: both !important;
    overflow: visible !important;
}

.dp-header-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.dp-item-image {
    flex: 0 0 40%;
}

.dp-item-image img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.dp-item-title-box {
    flex: 1;
}

.dp-item-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0 0 10px 0 !important;
}

.dp-item-title a {
    color: #1a1a1a !important;
    text-decoration: none;
}

.dp-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 1.8rem;
}

.dp-item-meta .micon {
    color: var(--dp-red);
}

.dp-item-intro {
    font-size: 2.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

/* --- "Czytaj więcej" w dp-custom-blog --- */
.dp-readmore-box {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dp-readmore-box a.readmore {
    display: inline-block;
    background: var(--dp-red) !important;
    color: #fff !important;
    padding: 8px 18px !important; /* ujednolicony padding */
    font-size: 1.6rem !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.dp-readmore-box a.readmore:hover {
    background: #1a1a1a !important;
}

/* --- Widok listy tagów (com_tags) --- */
.subpage.tag-category ul.category {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
}

.subpage.tag-category ul.category li {
    background: var(--dp-white) !important;
    border-left: 5px solid var(--dp-red) !important;
    margin-bottom: 12px !important;
    padding: 15px 25px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border-radius: 2px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.subpage.tag-category ul.category li a {
    background: transparent !important;
    color: var(--dp-navy) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.subpage.tag-category ul.category li a:hover {
    color: var(--dp-red) !important;
}

/* ==========================================================================
   5. POJEDYNCZY ARTYKUŁ (SINGLE PAGE)
   ========================================================================== */
.single-page .item-title {
    font-size: 5.4rem !important;
    font-weight: 700;
    color: #000;
    text-align: left;
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.single-page .item-top-info {
    color: #444;
    font-size: 2rem;
    font-weight: 600;
    background-color: #f0f0f0;
    margin: 0 0 20px 0;
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
}

.single-page > .item-content figure {
    margin: 0 0 0 -160px;
    text-align: center;
}

.single-page > .item-content figure img {
    width: 87%;
    height: auto;
}

.single-page > .item-content figure figcaption {
    font-family: "Saira Condensed", sans-serif;
    font-size: 1.8rem !important;
    line-height: 1.5;
    color: #091929;
    margin: 10px 0 10px 50px;
    padding: 8px 15px;
    background: #fafafa;
    border-left: 4px solid var(--dp-red);
    display: table;
}

blockquote {
    position: relative;
    margin: 35px 0;
    padding: 24px 30px;
    background: #f8f9fb;
    color: var(--dp-navy);
    font-size: 2.2rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 400;
    text-align: left;
    border-left: 4px solid var(--dp-red);
    border: 1px solid #ececec;
    border-left: 4px solid var(--dp-red);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    transition: .25s ease;
}

blockquote:hover {
    border-color: #d8d8d8;
    border-left-color: var(--dp-red);
    background: #fbfbfc;
}

blockquote::before {
    content: "”";
    position: absolute;
    top: -12px;
    right: 18px;
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
    color: #d9d9d9;
    opacity: .25;
    pointer-events: none;
    user-select: none;
}

blockquote p {
    margin: 0;
}

blockquote p + p {
    margin-top: 15px;
}

blockquote strong {
    font-style: normal;
    font-weight: 700;
    color: var(--dp-navy);
}

@media (max-width: 768px) {
    blockquote {
        margin: 25px 0;
        padding: 18px 20px;
    }

    blockquote::before {
        top: -8px;
        right: 12px;
        font-size: 52px;
    }
}

/* ==========================================================================
   6. TAGI I DATY (KOMPONENTY WEWNĘTRZNE)
   ========================================================================== */

/* --- Tagi w artykule - Dziennik Policki UI: wersja bardzo lekka --- */
.item-body .itemTags {
    margin: 55px 0 55px;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none !important;
}

.item-body .itemTags > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Etykieta TAGI */
.tags-label,
span.tags-label {
    margin: 0 16px 0 0 !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 2.2rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    font-style: italic;
    text-transform: uppercase !important;
    color: var(--dp-navy) !important;
    display: inline-flex !important;
    align-items: center;
}

/* Usunięcie automatycznych hashtagów i ozdobników */
.tag-body a::before,
.tagsList li a::before,
.article-tags a::before,
.tags a::before,
ul.itemTags li a::before,
.item-body .itemTags > li > a::before,
.tag-body a::after,
.tagsList li a::after,
.article-tags a::after,
.tags a::after,
ul.itemTags li a::after,
.item-body .itemTags > li > a::after {
    content: none !important;
    display: none !important;
}

/* Linki tagów */
.tag-body a,
.tagsList li a,
.article-tags a,
.tags a,
ul.itemTags li a,
.item-body .itemTags > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 0 8px 0 !important;
    padding: 0 12px !important;

    background: transparent !important;
    color: var(--dp-navy) !important;

    border: 0 !important;
    border-radius: 0 !important;

    font-family: "Saira Condensed", sans-serif !important;
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    font-style: normal !important;

    box-shadow: none !important;
    transform: none !important;
    transition: color .2s ease;
}

/* Subtelny separator między tagami */
.item-body .itemTags > li:not(:last-child) > a::after,
ul.itemTags > li:not(:last-child) > a::after {
    content: "·" !important;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-left: 14px !important;
    background: none !important;
    color: var(--dp-red) !important;
    transform: none !important;
}

/* Delikatna linia hover */
.tag-body a > span,
.tagsList li a > span,
.article-tags a > span,
.tags a > span,
ul.itemTags li a > span,
.item-body .itemTags > li > a > span {
    position: relative;
}

/* Hover */
.tag-body a:hover,
.tagsList li a:hover,
.article-tags a:hover,
.tags a:hover,
ul.itemTags li a:hover,
.item-body .itemTags > li > a:hover {
    color: var(--dp-red) !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Fallback: cienka linia bez potrzeby zmiany HTML */
.item-body .itemTags > li > a {
    background-image: linear-gradient(var(--dp-red), var(--dp-red)) !important;
    background-size: 0 2px !important;
    background-position: 12px 100% !important;
    background-repeat: no-repeat !important;
}

.item-body .itemTags > li > a:hover {
    background-size: 50% 2px !important;
}

@media (max-width: 768px) {

    /* Cała sekcja tagów */
    .item-body .itemTags,
    ul.itemTags {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 30px 0 !important;
        padding: 0 !important;
        list-style: none !important;
        text-align: left !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Napis TAGI */
    .item-body .itemTags .tags-label,
    .item-body .itemTags span.tags-label,
    ul.itemTags .tags-label,
    ul.itemTags span.tags-label {
        display: block !important;
        flex: 0 0 100% !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    /* Elementy listy */
    .item-body .itemTags > li,
    ul.itemTags > li {
        display: inline-flex !important;
        align-items: center !important;
        float: none !important;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Linki tagów */
    .tag-body a,
    .tagsList li a,
    .article-tags a,
    .tags a,
    ul.itemTags li a,
    .item-body .itemTags > li > a {
        display: inline-flex !important;
        align-items: center !important;
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 6px 10px !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        font-size: 17px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   7. MODUŁY I UKŁAD (SIDEBAR, LAYOUT, SOCIAL SHARE)
   ========================================================================== */

/* --- Layout --- */
.subpage {
    background: #fff;
    margin: 40px 40px 0 40px;
    padding: 50px 40px 0px 40px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

#gkSidebar {
    padding: 0 40px 20px 0px;
}

#gkTop1,
#gkTop2 {
    padding: 20px 80px;
    background: #fff;
}


/* --- Moduł Ostatnie Wiadomości (dp-latest-news) --- */
.dp-latest-news {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.dp-latest-news li {
    background: #fff;
    padding: 10px 20px;
    margin-bottom: 18px;
}

.dp-latest-news li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.dp-square {
    display: block;
    width: 15px;
    height: 15px;
    background-color: #001f3f;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dp-latest-news li a:hover .dp-square {
    background-color: #e60000;
    transform: rotate(45deg);
}

.dp-title {
    color: #222;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.dp-latest-news li a:hover .dp-title {
    color: #e60000;
}

.dp-date {
    color: var(--dp-red);
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Social Share --- */
.dp-share-label {
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 1.5px;
    text-align: center;
}

.dp-share-buttons-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.dp-share-btn {
    width: 85px !important;
    height: 85px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #333333 !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.dp-share-btn i {
    color: var(--dp-white) !important;
    font-size: 38px !important;
    font-family: "FontAwesome" !important;
}

.dp-share-btn:hover {
    background-color: #000000 !important;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   8. PAGINACJA I PRZYCISKI GLOBALNE
   ========================================================================== */
.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.pagination li a,
.pagination li span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
    border-radius: 10px;
}

.pagination li.active span {
    background: var(--dp-red);
    color: #fff;
    border-color: var(--dp-red);
}

/* Ogólne Readmore (jeśli używane poza dp-custom-blog) */
.readmore a,
.btn.readmore-link,
.readmore-link a,
.btn {
    background-color: var(--dp-red) !important;
    color: var(--dp-white) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    text-transform: uppercase !important;
    padding: 12px 25px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    line-height: 1.4 !important;
}

.readmore a:hover {
    background-color: var(--dp-navy) !important;
    transform: translateY(-2px);
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #091929 !important;
    color: var(--dp-white) !important;
    width: 60px;
    height: 60px;
    font-family: "Saira Condensed" !important;
    font-size: 24px !important;
    cursor: pointer !important;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSYWNOŚĆ)
   ========================================================================== */
@media (max-width: 768px) {
    .dp-header-row {
        flex-direction: column;
    }
    .dp-item-image {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .dp-share-btn {
        width: 60px !important;
        height: 60px !important;
    }
    .dp-share-btn i {
        font-size: 24px !important;
    }
    .dp-share-buttons-row {
        gap: 15px;
    }
}

/* ==========================================================================
   10. BANER REDAKCJA DZIENNIKA POLICKIEGO
   ========================================================================== */
.dp-redakcja-banner {
    background: linear-gradient(135deg, var(--dp-navy) 0%, #013f5c 100%);
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    color: #fff;
}

.dp-redakcja-banner h2 {
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 4.5rem !important;
    font-weight: 800;
    margin: 0;
    color: #fff !important;
    text-transform: uppercase;
}

.dp-redakcja-banner p {
    font-size: 2.2rem;
    color: #e5e5e5;
    margin: 10px 0 20px 0;
}

.dp-redakcja-line {
    width: 100px;
    height: 5px;
    background: var(--dp-red);
    margin: 0 auto;
}

/* ==========================================================================
   11. BANERY REKLAMOWE
   ========================================================================== */
.banneritem img {
    display: block;
    margin: auto auto 40px auto;
}

.bannerheader {
    font-size: 1.6rem;
    margin-top: 10px;
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   12. INNE
   ========================================================================== */
.pagination li a {
    font-weight: 500;
}

a {
    color: var(--dp-red);
}

#gkFooterNav {
    font-size: 2.2rem;
    font-weight: 400;
}

#gkFooterNav a {
    color: #e5e5e5;
    padding: 0 15px;
    display: block;
}

#gkFooterNav a:hover {
    color: #fff;
}

#gkPageContent {
    padding: 62px 0 0 0;
}

.component-header {
    background: transparent;
    margin: 40px 40px 0 40px;
    padding: 0;
}

.item-body .itemTags > li > a:hover {
    color: var(--dp-red) !important;
}

#gkHeaderNav .gkMainMenu .gkmenu > li div.childcontent li {
    font-size: 1.8rem;
}

#backToTopBtn {
    display: none; /* Ukryty domyślnie */
    position: fixed; /* Stała pozycja na ekranie */
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #c0130f; /* Twój czerwony kolor */
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%; /* Okrągły przycisk */
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#backToTopBtn:hover {
    background-color: #091929; /* Granat po najechaniu */
    transform: scale(1.1);
}

.blog-page .item-list .item-list-row {
    margin: 0 0 40px 0;
}

@media (max-width: 767px) {
    .nomobile {
        display: none !important;
    }
}

/* ==========================================================================
   13. RAXO PRIME
   ========================================================================== */
.raxo-prime {
    margin: 0px;
    display: block !important;
    width: 100% !important;
}

.raxo-prime article {
    margin: 1px;
}

.raxo-prime .raxo-block-name {
    background: repeating-linear-gradient(to right, var(--dp-red) 0%, var(--dp-navy) 35%, var(--dp-navy) 100%);
    font-family: "Saira Condensed", sans-serif;
    font-size: 3.4rem;
    font-weight: 600;
    padding: 20px;
    height: 65px;
}

.prime-red .raxo-title::after {
    background-color: repeating-linear-gradient(to right, var(--dp-red) 0%, var(--dp-navy) 35%, var(--dp-navy) 100%);
}

.prime-blue .raxo-block-name {
    background: repeating-linear-gradient(to right, var(--dp-navy) 0%, var(--dp-navy) 25%, #013f5c 100%);
}

.wydarzenia-dnia {
    padding: 20px 0 0 0;
    background: #f5f5f5;
}

.wydarzenia-dnia-pozostale {
    padding: 3px 0 0 0;
    background: #fff;
}

.raxo-prime .raxo-title {
    font-family: "Saira Condensed" !important;
    font-size: 2.2rem;
    line-height: 24px;
    font-weight: 400;
    color: #fff;
}

.raxo-prime .raxo-title span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
}

.fotorelacje-raxo {
    padding: 3px 0 20px 0;
    background: #fff;
}

.raxo-prime .raxo-top .raxo-title {
    font-family: "Saira Condensed", sans-serif;
    max-height: 96px;
    font-size: 34px;
    font-weight: 400;
    line-height: 36px;
    background: linear-gradient(to top, rgba(1, 24, 42, 0.95) 0%, rgba(1, 24, 42, 0.6) 50%, rgba(1, 24, 42, 0) 100%);
    opacity: 0.90;
    padding: 15px 10px;
    width: 90%;
    text-align: center;
}

.raxo-prime .raxo-top .raxo-title span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
}

.raxo-prime .raxo-category {
    font-family: "Saira Condensed", sans-serif;
    font-size: 2.0rem;
    font-weight: 400;
    margin: 0 0 auto 0px !important;
    padding: 5px 20px 6px 20px;
    border-radius: 8px !important;
}

.raxo-prime .raxo-block-name,
.raxo-prime .raxo-block-button {
    margin: 10px 0;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .raxo-prime .raxo-top .raxo-title {
        font-size: 2.4rem;
        line-height: 24px;
    }
}

.raxo-prime .raxo-block-intro {
    font-size: 2rem;
    background: repeating-linear-gradient(to right, var(--dp-navy) 0%, var(--dp-navy) 25%, #013f5c 100%);
    padding: 12px 0 12px 32px;
    margin-bottom: 10px !important;
    color: #fff;
}

/* DP HERO - RAXO PRIME */

.dp-hero-raxo .raxo-body {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
    margin: 0;
}

.dp-hero-raxo .raxo-top,
.dp-hero-raxo .raxo-normal {
    display: grid;
    gap: 14px;
    margin: 0;
}

.dp-hero-raxo .raxo-top article,
.dp-hero-raxo .raxo-normal article {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dp-navy);
}

.dp-hero-raxo .raxo-top article {
    min-height: 520px;
}

.dp-hero-raxo .raxo-normal article {
    min-height: 253px;
}

.dp-hero-raxo .raxo-image::after {
    height: 80%;
    background: linear-gradient(to bottom, transparent 0%, rgba(1,24,42,.30) 45%, rgba(1,24,42,.92) 100%);
}

.dp-hero-raxo .raxo-overlay {
    padding: 28px;
    background: transparent;
}

.dp-hero-raxo .raxo-category {
    position: absolute;
    top: 22px;
    left: 22px;
    margin: 0;
    padding: 8px 14px;
    background: var(--dp-red);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
}

.dp-hero-raxo .raxo-title {
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.dp-hero-raxo .raxo-top .raxo-title {
    font-size: 44px;
    line-height: 48px;
    max-height: none;
}

.dp-hero-raxo .raxo-normal .raxo-title {
    font-size: 24px;
    line-height: 28px;
}

.dp-hero-raxo .raxo-title span {
    max-height: none;
}

/* DP HERO — podkreślenie tytułu definiowane centralnie w sekcji UI KIT. */

.dp-hero-raxo .raxo-text {
    margin-top: 12px;
    color: var(--dp-white);
    font-size: 20px;
    line-height: 1.35;
}

.dp-hero-raxo .raxo-meta {
    margin: 16px 0 0;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: 13px;
}

.dp-hero-raxo .raxo-image img {
    transition: transform .35s ease;
}

.dp-hero-raxo article:hover .raxo-image img {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .dp-hero-raxo .raxo-body {
        grid-template-columns: 1fr;
    }

    .dp-hero-raxo .raxo-top article {
        min-height: 420px;
    }

    .dp-hero-raxo .raxo-normal article {
        min-height: 260px;
    }

    .dp-hero-raxo .raxo-top .raxo-title {
        font-size: 34px;
        line-height: 38px;
    }
}

/* ==========================================================
   DP PODCAST PRIME — układ 1 + 3
   ========================================================== */

.dp-podcast-module .raxo-prime {
    margin: 0;
}

.dp-podcast-module .raxo-body {
    display: block !important;
    margin: 0 !important;
}

/* HERO */

.dp-podcast-module .raxo-top {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px 0 !important;
}

.dp-podcast-module .raxo-top article {
    width: 100% !important;
    margin: 0 !important;
    min-height: 330px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dp-navy);
}

/* LISTA 3 KAFELKÓW */

.dp-podcast-module .raxo-normal {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100% !important;
    margin: 0 !important;
}

.dp-podcast-module .raxo-normal article {
    margin: 0 !important;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dp-navy);
}

/* OBRAZY I GRADIENTY */

.dp-podcast-module .raxo-image::after {
    height: 90%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(1,24,42,.35) 45%,
        rgba(1,24,42,.94) 100%
    );
}

.dp-podcast-module .raxo-top .raxo-image::after {
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(1,24,42,.94) 0%,
        rgba(1,24,42,.76) 45%,
        rgba(1,24,42,.24) 70%,
        rgba(1,24,42,.88) 100%
    );
}

.dp-podcast-module .raxo-image img {
    transition: transform .35s ease;
}

.dp-podcast-module article:hover .raxo-image img {
    transform: scale(1.04);
}

/* TREŚĆ */

.dp-podcast-module .raxo-overlay {
    padding: 20px;
}

.dp-podcast-module .raxo-top .raxo-overlay {
    padding: 34px 38px;
    justify-content: center;
}

.dp-podcast-module .raxo-category {
    margin: 0 0 auto 0 !important;
    padding: 8px 13px;
    background: var(--dp-red);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
}

.dp-podcast-module .raxo-title::after {
    display: none;
}

.dp-podcast-module .raxo-top .raxo-title {
    max-width: 620px;
    font-size: 38px;
    line-height: 42px;
}

.dp-podcast-module .raxo-top .raxo-title span {
    max-height: none;
}

.dp-podcast-module .raxo-top .raxo-text {
    display: block;
    max-width: 620px;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.4;
}

.dp-podcast-module .raxo-normal .raxo-title {
    font-size: 22px;
    line-height: 26px;
}

.dp-podcast-module .raxo-normal .raxo-title span {
    max-height: 78px;
}

.dp-podcast-module .raxo-normal .raxo-text {
    display: none;
}

.dp-podcast-module .raxo-meta {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.9);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 900px) {
    .dp-podcast-module .raxo-normal {
        grid-template-columns: 1fr;
    }

    .dp-podcast-module .raxo-top article {
        min-height: 300px;
    }

    .dp-podcast-module .raxo-top .raxo-title {
        font-size: 30px;
        line-height: 34px;
    }
}

/* ==========================================================================
   14. KOLUMNY NA STRONIE W POZYCJACH
   ========================================================================== */
.gkCols3 .box.gkmod-2 {
    width: 100%;
    padding: 0 50px 50px 50px;
}

.gkCols3 .box.gkmod-3 {
    width: 100%;
    padding: 1px 50px;
}

.gkCols3 .box.gkmod-more {
    width: 100%;
    padding: 1px 50px;
}

.gkCols3 .box.gkmod-more.gkmod-last-2:last-child,
.gkCols3 .box.gkmod-more.gkmod-last-2:nth-last-child(2) {
    width: 100% !important;
}

/* ==========================================================================
   15. BLOKI W POZYCJACH
   ========================================================================== */
.zapowiedzi-wydarzen {
    background: #e5e5e5;
    margin: 5px 0 40px 0;
}

.dziennikpolicki-poleca {
    padding: 3px 0 0 0;
    background: #fff;
}

#gkBottom2 {
    padding: 20px 50px 50px 50px;
    background: var(--dp-white);
}

#gkBottom7 {
    padding: 20px 50px 50px 50px;
    background: repeating-linear-gradient(to right, var(--dp-navy) 0%, var(--dp-navy) 75%, var(--dp-red) 100%);
}

#gkBottom4 {
    padding: 0;
}

/* ==========================================================================
   16. RELACJA LIVE
   ========================================================================== */

.dp-live-page {
  max-width: 100%;
}

.dp-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 22px;
  color: #222;
  font-size: 18px;
}

.dp-live-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #091929;
  color: #fff;
  border-left: 6px solid var(--dp-red);
  border-radius: 8px;
  padding: 20px 26px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.dp-live-badge {
  display: inline-block;
  background: var(--dp-red);
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dp-live-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #ff1d25;
  border-radius: 50%;
  margin-right: 8px;
}

.dp-live-update {
  text-align: right;
  font-size: 15px;
}

.dp-live-update strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  margin-top: 4px;
}

.dp-live-summary {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 24px 26px;
  margin: 24px 0 30px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(9,25,41,.06);
}

.dp-live-summary h2 {
  margin-top: 0;
  font-size: 22px;
}

.dp-live-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.dp-live-highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-right: 1px solid #ccd5e1;
  padding-right: 16px;
}

.dp-live-highlight:last-child {
  border-right: 0;
}

.dp-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.dp-icon.green { background: #0b8f22; }
.dp-icon.yellow { background: #f1b400; }
.dp-icon.blue { background: #1459b8; }
.dp-icon.red { background: var(--dp-red); }

.dp-live-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: var(--dp-red);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.dp-live-timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 28px;
}

.dp-live-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d9e0ea;
}

.dp-live-entry {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 230px;
  gap: 22px;
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #d9e0ea;
}

.dp-live-time {
  display: inline-block;
  background: var(--dp-red);
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  min-width: 68px;
}

.dp-live-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.35;
  color: #091929;
}

.dp-live-content p {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.6;
}

.dp-live-card {
  align-self: start;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 17px;
}

.dp-vote {
  background: #f4fbf1;
  border: 1px solid #cfe7c7;
}

.dp-status {
  background: #f7fbff;
  border: 1px solid #c7ddf3;
}

.dp-discussion {
  background: #fffaf0;
  border: 1px solid #f3d48a;
}

.dp-live-card strong {
  display: block;
  margin-bottom: 8px;
  color: #091929;
  text-transform: uppercase;
  font-size: 18px;
}

.dp-live-card p {
  margin: 3px 0;
}

.dp-vote .yes { color: #0b8f22; font-weight: 800; }
.dp-vote .no { color: var(--dp-red); font-weight: 800; }
.dp-vote .result { color: #0b8f22; font-weight: 800; margin-top: 8px; }

.dp-live-start {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--dp-red);
  font-weight: 800;
  justify-content: center;
  margin: 20px 0 30px;
}

.dp-live-start::before,
.dp-live-start::after {
  content: "";
  height: 1px;
  background: #d9e0ea;
  flex: 1;
}

.dp-live-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin: 30px 0;
}

.dp-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.dp-live-table th {
  background: #091929;
  color: #fff;
  text-align: center;
  padding: 10px;
}

.dp-live-table td {
  border: 1px solid #d9e0ea;
  padding: 10px;
  text-align: left;
}

.dp-live-table .passed {
  color: #0b8f22;
  font-weight: 800;
}

.dp-live-table .pending {
  color: #c58a00;
  font-weight: 800;
}

.dp-live-footer {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 16px 20px;
  color: #5d6a7d;
  font-size: 15px;
  margin: 28px 0;
  background: #fff;
}

.dp-live-footer strong {
  color: #091929;
}

/* Mobile */

@media (max-width: 900px) {
  .dp-live-top {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .dp-live-update {
    text-align: left;
  }

  .dp-live-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .dp-live-highlight {
    border-right: 0;
  }

  .dp-live-entry {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dp-live-card {
    grid-column: 2;
  }

  .dp-live-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dp-live-highlights {
    grid-template-columns: 1fr;
  }

  .dp-live-entry {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .dp-live-time {
    width: fit-content;
  }

  .dp-live-card {
    grid-column: auto;
  }

  .dp-live-timeline {
    padding-left: 20px;
  }

  .dp-live-entry::before {
    left: -19px;
  }
}

/* ==========================================================================
   17. RELACJA LIVE - STRONA GŁÓWNA
   ========================================================================== */

.dp-home-live {
  margin: 24px 0 30px;
}

.dp-home-live-link {
  display: grid;
  grid-template-columns: 240px 1.4fr 1.2fr 230px;
  align-items: center;
  gap: 28px;
  background: linear-gradient(120deg, #091929 0%, #061320 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-left: 7px solid var(--dp-red);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dp-home-live-link:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  color: #fff !important;
  text-decoration: none;
}

.dp-home-live-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dp-home-live-icon {
  width: 50%;
  height: 72px;
  border-radius: 50%;
  background: var(--dp-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  line-height: 1;
  box-shadow: 0 0 0 8px rgba(192,19,14,.18);
  animation: dpLivePulse 1.8s infinite;
}

@keyframes dpLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192,19,14,.45);
  }
  70% {
    box-shadow: 0 0 0 13px rgba(192,19,14,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192,19,14,0);
  }
}

.dp-home-live-label {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: .3px;
}

.dp-home-live-label span {
  display: block;
}

.dp-home-live-main {
  border-right: 1px solid rgba(255,255,255,.35);
  padding-right: 28px;
}

.dp-home-live-main h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.dp-home-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,.86);
  font-size: 17px;
}

.dp-home-live-meta span:first-child {
  color: #fff;
}

.dp-home-live-meta span:first-child::first-letter {
  color: var(--dp-red);
}

.dp-home-live-last {
  border-right: 1px solid rgba(255,255,255,.35);
  padding-right: 28px;
}

.dp-home-live-last span {
  display: block;
  color: #ff2b26;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dp-home-live-last p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.dp-home-live-button {
  justify-self: end;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 5px;
  padding: 13px 20px;
  color: #fff;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.dp-home-live-button span {
  display: inline-block;
  margin-left: 12px;
  font-size: 28px;
  line-height: 0;
  vertical-align: -2px;
}

/* Tablet */

@media (max-width: 1100px) {
  .dp-home-live-link {
    grid-template-columns: 200px 1fr;
  }

  .dp-home-live-main,
  .dp-home-live-last {
    border-right: 0;
    padding-right: 0;
  }

  .dp-home-live-button {
    justify-self: start;
  }
}

/* Telefon */

@media (max-width: 700px) {
  .dp-home-live-link {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .dp-home-live-left {
    align-items: center;
  }

  .dp-home-live-icon {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }

  .dp-home-live-label {
    font-size: 23px;
  }

  .dp-home-live-main h2 {
    font-size: 24px;
  }

  .dp-home-live-last p {
    font-size: 16px;
  }

  .dp-home-live-button {
    width: 100%;
    text-align: center;
  }

.dp-home-live-link:hover {
    background: linear-gradient(120deg, #0d2238 0%, #0a1828 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,.30);
}
}

/* ==========================================================================
   18. DP UI KIT — KOŃCOWE NADPISANIA PORZĄDKUJĄCE
   ========================================================================== */

/* --- Spójny system nagłówków sekcji --- */
.raxo-prime .raxo-block-name,
.box .header,
#gkSidebarTop .header,
.dp-events-block-name,
.raxo-block-name.dp-events-block-name {
    display: inline-block !important;
    height: auto !important;
    margin: 22px 0 0 0 !important;
    padding: 14px 22px 12px !important;
    background: var(--dp-navy) !important;
    color: var(--dp-white) !important;
    border: 0 !important;
    border-bottom: 4px solid var(--dp-white) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .2px !important;
}

/* --- Spójne belki opisowe modułów --- */
.raxo-prime .raxo-block-intro,
.dp-events-intro,
.dp-podcast-intro {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 14px 0 !important;
    padding: 14px 28px !important;
    background: var(--dp-navy) !important;
    color: var(--dp-white) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

/* --- Globalne zabezpieczenie przed niechcianym podkreślaniem w kartach --- */
.raxo-prime article a:hover,
.dp-events-wrap a:hover,
.dp-podcast-wrap a:hover,
.dp-home-live-link:hover {
    text-decoration: none !important;
}

/* --- Spójny hover zdjęć w kartach RAXO --- */
.raxo-prime article {
    overflow: hidden !important;
}

.raxo-prime article .raxo-image img {
    transition: transform .35s ease !important;
}

.raxo-prime article:hover .raxo-image img {
    transform: scale(1.04) !important;
}

/* --- Wyjątki: moduły, w których zoom ma być wyłączony --- */
.dp-hero-raxo article:hover .raxo-image img,
.dp-podcast-module article:hover .raxo-image img {
    transform: scale(1.04) !important;
}

/* --- DP HERO: czerwone podkreślenie tytułu --- */
.dp-hero-raxo .raxo-title {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 12px !important;
}

.dp-hero-raxo .raxo-title::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 2px !important;
    display: block !important;
    background: var(--dp-red) !important;
    transition: width .25s ease !important;
}

.dp-hero-raxo .raxo-top article:hover .raxo-title::after {
    width: 50% !important;
}

.dp-hero-raxo .raxo-normal article:hover .raxo-title::after {
    width: 50% !important;
}

.dp-hero-raxo .raxo-title a,
.dp-hero-raxo .raxo-title a:hover,
.dp-hero-raxo .raxo-title span {
    color: inherit !important;
    text-decoration: none !important;
}

/* --- Zwykły RAXO Prime: subtelniejsza linia pod tytułem --- */
.raxo-prime:not(.dp-hero-raxo) .raxo-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.raxo-prime:not(.dp-hero-raxo) .raxo-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--dp-red);
    transition: width .25s ease;
}

.raxo-prime:not(.dp-hero-raxo) article:hover .raxo-title::after {
    width: 50%;
}

/* --- Nie dublujemy linii w dedykowanym layoucie podcastów --- */
.dp-podcast-module .raxo-title::after {
    display: none !important;
}

/* --- Spójne przyciski akcji --- */
.dp-events-details-btn,
.dp-podcast-btn,
.dp-readmore-box a.readmore,
.readmore a,
.btn.readmore-link,
.readmore-link a {
    border-radius: 6px !important;
    background: var(--dp-red) !important;
    color: var(--dp-white) !important;
    font-family: "Saira Condensed", sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background .25s ease, transform .25s ease !important;
}

.dp-events-details-btn:hover,
.dp-podcast-btn:hover,
.dp-readmore-box a.readmore:hover,
.readmore a:hover,
.btn.readmore-link:hover,
.readmore-link a:hover {
    background: #a90f0b !important;
    color: var(--dp-white) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* --- Mobile: mniejsze nagłówki i belki --- */
@media (max-width: 700px) {
    .raxo-prime .raxo-block-name,
    .box .header,
    #gkSidebarTop .header,
    .dp-events-block-name,
    .raxo-block-name.dp-events-block-name {
        font-size: 24px !important;
        padding: 12px 18px 10px !important;
    }

    .raxo-prime .raxo-block-intro,
    .dp-events-intro,
    .dp-podcast-intro {
        padding: 12px 18px !important;
        font-size: 16px !important;
    }

    .dp-hero-raxo .raxo-top article:hover .raxo-title::after,
    .dp-hero-raxo .raxo-normal article:hover .raxo-title::after {
        width: 50% !important;
    }
}

/* ==========================================================
   19. DP REKLAMY — spójna prezentacja modułu Ogłoszenia / mod_banners
   Ustaw w polu "Klasa modułu": dp-reklama
   ========================================================== */

.dp-reklama {
    margin: 34px 0;
}

/* Wspólny kontener reklamy */
.dp-reklama .mod-banners,
.dp-reklama .bannergroup {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 26px 22px 22px;
    overflow: hidden;
    background: var(--dp-white);
    border: 1px solid rgba(1,24,42,.09);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,.055);
    box-sizing: border-box;
}

/* Jedyny napis nad reklamą */
.dp-reklama .mod-banners::before,
.dp-reklama .bannergroup::before {
    content: "REKLAMA";
    display: block;
    margin: 0 0 14px;
    color: #7a8790;
    font-family: "Saira Condensed", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-align: center;
    text-transform: uppercase;
}

/* Każda pozycja reklamowa */
.dp-reklama .mod-banners__item,
.dp-reklama .banneritem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Kilka reklam w jednym module */
.dp-reklama .mod-banners__item + .mod-banners__item,
.dp-reklama .banneritem + .banneritem {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(1,24,42,.08);
}

/* Link reklamy */
.dp-reklama .mod-banners__item > a,
.dp-reklama .banneritem > a {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Obraz reklamy — zachowanie proporcji */
.dp-reklama .mod-banners img,
.dp-reklama .bannergroup img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    object-fit: contain;
    transition: transform .22s ease, opacity .22s ease;
}

/* Bardzo subtelny hover */
.dp-reklama .mod-banners__item:hover img,
.dp-reklama .banneritem:hover img {
    transform: translateY(-1px);
    opacity: .98;
}

/* Ukrycie header/footer modułu, jeśli nie są potrzebne */
.dp-reklama .bannerheader,
.dp-reklama .bannerfooter,
.dp-reklama .mod-banners__footer {
    display: none;
}

/* Reset konfliktów z GK Technews */
.dp-reklama,
.dp-reklama *,
.dp-reklama *::before,
.dp-reklama *::after {
    box-sizing: border-box;
}

.dp-reklama .mod-banners__item,
.dp-reklama .banneritem {
    float: none !important;
    max-width: none !important;
}

/* Wersja szeroka — opcjonalnie dodaj drugą klasę: dp-reklama-wide */
.dp-reklama.dp-reklama-wide .mod-banners,
.dp-reklama.dp-reklama-wide .bannergroup {
    padding-left: 14px;
    padding-right: 14px;
}

/* Wersja całkowicie lekka — opcjonalnie: dp-reklama-light */
.dp-reklama.dp-reklama-light .mod-banners,
.dp-reklama.dp-reklama-light .bannergroup {
    padding: 20px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.dp-reklama.dp-reklama-light .mod-banners::before,
.dp-reklama.dp-reklama-light .bannergroup::before {
    margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 700px) {
    .dp-reklama {
        margin: 26px 0;
    }

    .dp-reklama .mod-banners,
    .dp-reklama .bannergroup {
        padding: 20px 12px 14px;
        border-radius: 6px;
    }

    .dp-reklama .mod-banners::before,
    .dp-reklama .bannergroup::before {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .dp-reklama .mod-banners__item + .mod-banners__item,
    .dp-reklama .banneritem + .banneritem {
        margin-top: 14px;
        padding-top: 14px;
    }
}

/* ==========================================================================\n   20. MOBILE — GK TOP + POJEDYNCZY ARTYKUŁ\n   ========================================================================== */
@media (max-width: 767px) {
    /* Pozycje górne: bez desktopowego paddingu 80 px */
    #gkTop1,
    #gkTop2 {
        padding: 16px 12px !important;
    }
	
	.gkCols3 .box.gkmod-more {
		padding: 1px 12px !important;
	}
	
	#gkBottom2 {
		padding: 20px 12px !important;
	}

    /* Kontener podstrony: desktopowe 40 px + 40 px zabierało szerokość telefonu */
    .subpage {
        margin: 12px 0 0 0 !important;
        padding: 24px 14px 0 14px !important;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        box-sizing: border-box;
    }

    /* Artykuł ma wykorzystywać całą szerokość kontenera */
    .single-page,
    .single-page > .item-content,
    .single-page .item-body {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* GK Technews na desktopie rezerwuje 160 px na boczne info autora */
    .single-page .item-info + .item-body {
        padding-left: 0 !important;
    }

    .single-page .item-info {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important;
    }

    /* Tytuł z desktopowych 5.4rem na czytelny rozmiar mobilny */
    .single-page .item-title {
        font-size: 3.4rem !important;
        line-height: 1.08 !important;
        letter-spacing: -0.4px !important;
        margin-bottom: 20px !important;
        overflow-wrap: break-word;
    }

    .single-page .item-top-info {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
        padding: 9px 11px !important;
        border-radius: 10px !important;
    }

    /* Zdjęcia/figury: kasujemy desktopowe przesunięcie -160 px */
    .single-page > .item-content figure {
        margin: 28px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-page > .item-content figure img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .single-page > .item-content figure figcaption {
        margin: 8px 0 0 0 !important;
        padding: 8px 10px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Treść i multimedia nie mogą poszerzać viewportu */
    .single-page .itemIntroText,
    .single-page .itemFullText,
    .single-page .item-content,
    .single-page iframe,
    .single-page video,
    .single-page table {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .single-page .itemIntroText,
    .single-page .itemFullText {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* ==========================================================================
   21. MOBILE — WYSZUKIWARKA ROZWIJANA Z IKONY
   ========================================================================== */
@media (max-width: 767px) {
  #gkHeaderNav { overflow: visible !important; }

  #gkSearch {
    float: right !important; position: static !important; display: block !important;
    width: 52px !important; height: 62px !important; margin: 0 !important;
    padding: 0 !important; background: transparent !important; border: 0 !important;
    box-sizing: border-box !important;
  }

  #gkSearch > .micon {
    display: block !important; float: none !important; width: 52px !important;
    height: 62px !important; padding: 0 !important; line-height: 62px !important;
    text-align: center !important; color: #fff !important; font-size: 2.6rem !important;
    cursor: pointer !important;
  }

  #gkSearch.open > .micon { color: var(--dp-red) !important; }

  #gkSearch > .search, #gkSearch > div:not(.micon) {
    position: static !important; width: 0 !important; height: 0 !important;
    margin: 0 !important; padding: 0 !important;
  }

  #gkSearch form {
    position: absolute !important; z-index: 1005 !important; top: 100% !important;
    left: 12px !important; right: 12px !important; width: auto !important;
    height: 52px !important; margin: 0 !important; padding: 0 48px 0 14px !important;
    display: flex !important; align-items: center !important; background: #fff !important;
    border: 1px solid rgba(1,24,42,.14) !important;
    border-bottom: 3px solid var(--dp-red) !important; border-radius: 0 0 6px 6px !important;
    box-shadow: 0 10px 24px rgba(1,24,42,.18) !important; box-sizing: border-box !important;
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  }

  #gkSearch.open form {
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  #gkSearch form input[type="text"], #gkSearch form input[type="search"],
  #gkHeaderNav .gkSearch input#mod-search-searchword {
    display: block !important; width: 100% !important; min-width: 0 !important;
    height: 49px !important; line-height: 49px !important; margin: 0 !important;
    padding: 0 !important; background: transparent !important; border: 0 !important;
    box-shadow: none !important; outline: none !important; color: var(--dp-navy) !important;
    font-family: "Saira Condensed", sans-serif !important; font-size: 1.7rem !important;
    font-weight: 600 !important; text-transform: none !important;
  }

  #gkSearch form input::placeholder {
    color: rgba(1,24,42,.52) !important; text-transform: none !important;
  }
}
