/*
Theme Name: Mniejszość Niemiecka Ma Wartość
Author: Jarosław Kunysz
Version: 1.4
*/

/* Reset & Czcionki */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'PT Sans Narrow', sans-serif !important;
    color: #fff;
    background-color: #1a1a1a;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}

h1, h2, h3, h4, h5, h6, p, a, span, button, input, textarea {
    font-family: 'PT Sans Narrow', sans-serif !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
a:hover {
    color: #f7d315;
    text-decoration: none;
}

/* ========================================================
   STICKY NAVBAR Z PRZEWIJANIEM I PODŚWIETLANIEM
   ======================================================== */
#mainNav {
    border-color: transparent !important;
    background-color: transparent !important;
    transition: all .35s;
    font-family: 'PT Sans Narrow', sans-serif;
    letter-spacing: 1px;
    padding: 0 !important;
    z-index: 1030;
    display: none !important; /* Całkowicie niewidoczne na górze strony */
    visibility: hidden;
}

/* Po przewinięciu w dół poza widoczność menu głównego (#menu2) pojawia się na biało */
#mainNav.navbar-shrink {
    display: block !important;
    visibility: visible !important;
    border-color: rgba(34, 34, 34, .1) !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

#mainNav .navbar-toggler {
    font-size: 18px;
    padding: 10px 16px;
    color: #222;
    margin: 8px auto;
    border-color: #ccc;
}

/* WYŚRODKOWANIE ELEMENTÓW W STICKY MENU I WIĘKSZE ODSTĘPY */
#mainNav .navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 30px;
}

#mainNav .navbar-nav > li {
    display: inline-block;
}

#mainNav .navbar-nav > li > a {
    font-size: 16px;
    font-family: 'PT Sans Narrow', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #222222 !important;
    padding: 12px 15px;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 3em;
    transition: all 0.25s ease;
}

/* Hover w sticky menu: czerwona obwódka jak w oryginale */
#mainNav .navbar-nav > li > a:hover {
    border: 2px solid #E30011 !important;
    border-radius: 3em;
    color: #222222 !important;
}

/* Aktywna zakładka w sticky menu (szary kolor tekstu) */
#mainNav .navbar-nav > li > a.active {
    color: #888888 !important;
    background-color: transparent;
}

/* ========================================================
   GŁÓWNE TŁO I OPACITY
   ======================================================== */
.site-wrapper {
    position: relative;
    background: linear-gradient(to right, rgba(83, 83, 83, 0.8), rgba(83, 83, 83, 0.8), rgba(83, 83, 83, 0.8)), url('images/tlo.jpg') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
}

.site-overlay {
    background: transparent;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* NAGŁÓWEK I LOGO */
.masthead-header {
    padding: 60px 15px 10px 15px;
    text-align: center;
}

.masthead-header .site-logo img {
    max-height: 170px !important;
    width: auto;
    display: inline-block;
    margin-bottom: 25px;
}

/* MENU W NAGŁÓWKU #menu2 (.pact_questions) */
.pact_questions ul {
    margin: 20px 0 35px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
}

.pact_questions ul li {
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3em;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.pact_questions ul li a {
    color: #fff;
    padding: 6px 20px;
    display: block;
}

/* Efekt najechania: czerwona obwódka jak na screenie! */
.pact_questions ul li:hover,
.pact_questions ul li.active {
    border-color: #E30011 !important;
    border-radius: 3em;
}

.pact_questions ul li img.lang-flag {
    width: 26px;
    height: auto;
    vertical-align: middle;
}

/* SEKCJE I TYTUŁY (LEKKIE, NIE POGRUBIONE) */
.section {
    padding: 40px 0;
    position: relative;
}
.text_header {
    font-size: 32px;
    text-transform: none;
    letter-spacing: 0.5px;
    color: #fff;
    font-weight: 400 !important;
    margin-bottom: 8px;
    text-align: center;
}
.section hr,
.text_div hr {
    max-width: 90px;
    margin: 8px auto 25px auto;
    border: 0;
    border-top: 2px solid #E30011;
    opacity: 0.9;
}
.sub_title {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0;
    font-weight: 400;
}
.sub_title p {
    margin-bottom: 15px;
}

/* PRZYCISKI */
.btn-outline,
.btn-outline-red {
    display: inline-block;
    margin: 10px auto;
    padding: 10px 28px;
    border: 2px solid #E30011 !important;
    border-radius: 300px;
    color: #fff !important;
    font-size: 19px;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-outline:hover,
.btn-outline-red:hover {
    background-color: #E30011 !important;
    color: #fff !important;
}

/* ========================================================
   SEKCJA HISTORIE - EFEKT FLEX-CONTAINER / FLEX-SLIDE
   ======================================================== */
.stories-rows {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.flex-container {
    height: 75vh;
    min-height: 520px;
    width: 100%;
    display: -webkit-flex;
    display: flex;
    overflow: hidden;
    position: relative;
}

.flex-slide {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    cursor: pointer;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    overflow: hidden;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}

.flex-slide:hover {
    -webkit-flex-grow: 2.4;
    flex-grow: 2.4;
}

/* RAMKA Z NAZWISKIEM - DOPASOWANA ELASTYCZNIE */
.flex-title {
    color: #f1f1f1;
    position: absolute;
    font-size: 1.25vw;
    margin: 0;
    text-align: center;
    top: 79%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border: 2px solid #f1f1f1;
    width: max-content;
    max-width: 95%;
    border-radius: 10px;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    white-space: nowrap;
    z-index: 5;
    font-weight: 400;
}

/* RAMKA Z OPISEM PO NAJECHANIU */
.flex-about {
    opacity: 0;
    color: #f1f1f1;
    position: absolute;
    width: 80%;
    max-width: 320px;
    font-size: 1.2vw;
    padding: 3% 4%;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #f1f1f1;
    border-radius: 10px;
    text-align: center;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 4;
    pointer-events: none;
    font-weight: 400;
}
.flex-about p {
    margin: 0 !important;
}

.flex-slide.is-hovered .flex-title {
    top: 50% !important;
}
.flex-slide.is-hovered .flex-about {
    opacity: 1 !important;
}

@media screen and (max-width: 768px) {
    .section-stories {
        padding: 30px 0 10px 0 !important;
    }
    .stories-rows {
        display: block !important;
        width: 100% !important;
    }
    .flex-container {
        display: block !important;
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 20px 0 !important;
        clear: both !important;
    }
    .flex-slide {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 340px !important;
        min-height: 340px !important;
        max-height: none !important;
        flex: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        margin: 0 auto 35px auto !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
        padding-bottom: 20px !important;
        clear: both !important;
        overflow: hidden !important;
    }
    .flex-slide:hover {
        flex-grow: 0 !important;
        transform: none !important;
    }
    .flex-title {
        position: absolute !important;
        top: auto !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        white-space: normal !important;
        width: max-content !important;
        max-width: 90% !important;
        padding: 6px 16px !important;
        font-size: 18px !important;
        border: 2px solid #f1f1f1 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        z-index: 10 !important;
        border-radius: 8px !important;
        text-align: center !important;
    }
    .flex-about {
        display: none !important; /* Na mobile opis ukryty, widoczny w modalu po tapnięciu */
    }
}

/* ========================================================
   SEKCJA MEDIOTEKA / WYSTAWA - 3 KOLUMNY (9 ZDJĘĆ + WIĘCEJ)
   ======================================================== */
.tz-gallery {
    padding: 15px 0;
}
.tz-gallery .gallery-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.tz-gallery .gallery-col {
    padding: 12px 15px;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}
@media (max-width: 991px) {
    .tz-gallery .gallery-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .tz-gallery .gallery-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.tz-gallery .lightbox {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: #111;
}
.tz-gallery .lightbox img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.tz-gallery .lightbox:hover img {
    transform: scale(1.05);
}

/* ========================================================
   MATERIAŁY PRASOWE
   ======================================================== */
.badges {
    text-align: center;
    margin: 25px 0;
}
.badges .btn-outline {
    color: #fff;
    border: 1px solid #fff !important;
    background: transparent;
    border-radius: 300px;
    font-size: 13px !important;
    padding: 10px 22px !important;
    margin: 6px 8px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.badges .btn-outline:hover {
    color: #fff !important;
    border-color: #bbb !important;
    background-color: #bbb !important;
}

/* ========================================================
   SPONSORZY (KARUZELA Z 5 ELEMENTAMI)
   ======================================================== */
.sponsors-carousel-wrap {
    margin-top: 30px;
    width: 100%;
}
.owl-carousel .owl-stage {
    display: flex;
    align-items: center;
}
.owl-carousel .item {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.owl-carousel .item img {
    display: block;
    width: auto !important;
    max-height: 85px;
    max-width: 180px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}
.owl-carousel .item img:hover {
    transform: scale(1.05);
}

/* ========================================================
   KONTAKT - BIAŁE IKONKI, DELIKATNY SZARY HOVER
   ======================================================== */
.contact-section-content {
    font-size: 19px;
    line-height: 1.8;
}
.contact-section-content p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.contact-section-content p i.fas {
    color: #ffffff !important;
    font-size: 18px;
    width: 22px;
    text-align: center;
}
.contact-section-content a {
    color: #ffffff;
    transition: color 0.3s ease;
}
.contact-section-content a:hover {
    color: #cccccc !important;
}
.contact-section-content img.lang-flag {
    width: 20px;
    height: auto;
}

/* ========================================================
   STOPKA (CIEMNE TŁO #222)
   ======================================================== */
footer.site-footer-dark {
    padding: 40px 0 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    background-color: #222222 !important;
    width: 100%;
}
footer.site-footer-dark p {
    font-size: 15px;
    margin: 8px 0;
}
footer.site-footer-dark img.financing-img {
    width: 300px;
    max-width: 90%;
    height: auto;
    margin-bottom: 20px;
}
footer.site-footer-dark .btn-rodo {
    font-size: 12px !important;
    border: 2px solid red !important;
    padding: 8px 24px !important;
    border-radius: 300px;
    color: #fff !important;
}
footer.site-footer-dark .btn-rodo:hover {
    background: red !important;
}

/* ========================================================
   MODAL BOHATERA - DOPRACOWANE KARTY (WIDEO, POCZTÓWKA, WYWIAD)
   ======================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    overflow-y: auto;
    padding: 30px 15px;
}
.modal-backdrop.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.modal-dialog {
    max-width: 1050px;
    width: 100%;
    margin: auto;
    position: relative;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s;
}
.modal-close-btn:hover {
    color: #f7d315;
}

/* Baner billboardowy u góry */
.modal-billboard-banner {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.modal-billboard-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Medioteka z 3 kafelkami */
.modal-medioteka-section {
    text-align: center;
}
.modal-medioteka-section h4 {
    font-size: 28px;
    margin-bottom: 6px;
    font-weight: 400;
}
.modal-medioteka-section p.sub-p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 25px;
}
.modal-medioteka-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.modal-media-col {
    flex: 0 0 300px;
    width: 300px;
    height: 200px;
    position: relative;
}

/* KARTA 2: POCZTÓWKA - PEŁNE WYSKALOWANIE BEZ UCINANIA */
.hovereffect-pocztowka {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    text-align: center;
    border-radius: 4px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hovereffect-pocztowka img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: all 0.4s ease-in-out;
}
.hovereffect-pocztowka .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0,0,0,0.65);
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hovereffect-pocztowka:hover .overlay {
    opacity: 1;
}
.hovereffect-pocztowka h2 {
    text-transform: uppercase;
    color: #fff;
    font-size: 18px !important;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    margin-bottom: 10px;
}
.hovereffect-pocztowka a.info {
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease-in-out;
}
.hovereffect-pocztowka a.info:hover {
    box-shadow: 0 0 8px #fff;
    background: rgba(255,255,255,0.2);
}

/* KARTA 3: WYWIAD PDF - SZARE TŁO Z GRAFIKĄ DOKUMENTU */
.pdf-card-box {
    width: 100%;
    height: 100%;
    background: #555555;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    cursor: pointer;
}
.pdf-card-box .pdf-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pdf-card-box .pdf-icon-wrap i.fas {
    font-size: 54px;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 8px;
}
.pdf-card-box .pdf-download-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.pdf-card-box:hover .pdf-download-btn {
    background: #ffffff;
    color: #222222;
}
.pdf-card-box .pdf-bottom-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222222;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 0;
    text-transform: uppercase;
}

/* WIDEO YOUTUBE */
.video-box-wrap {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
.video-box-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================================
   SEKCJA NEWS / AKTUALNOŚCI (GRID, KARTY, POJEDYNCZY WPIS)
   ======================================================== */
.news-card {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    border-color: #E30011;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.news-card-img-wrap {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #151515;
}
.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img-wrap img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}
.news-card-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.news-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.news-card-title a:hover {
    color: #E30011;
}
.news-card-excerpt {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.news-card-readmore {
    font-size: 16px;
    font-weight: 700;
    color: #E30011;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.news-card-readmore:hover {
    color: #ff3344;
    transform: translateX(4px);
    text-decoration: none;
}

/* PAGINACJA */
.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: #E30011;
    border-color: #E30011;
    color: #fff;
}

/* POJEDYNCZY ARTYKUŁ */
.single-post-card {
    background: rgba(25, 25, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 35px 30px;
}
.single-post-date {
    font-size: 16px;
    color: #aaa;
}
.single-post-content p {
    margin-bottom: 20px;
}
.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}
@media (max-width: 768px) {
    .single-post-card {
        padding: 22px 18px;
    }
    .single-post-title {
        font-size: 26px !important;
    }
}