/* =============================================
   1. STRONA GŁÓWNA: LIKWIDACJA "DZIUR" I PRZERW
   ============================================= */
/* Celujemy we wszystkie możliwe kontenery rzędów */
.blog .items-row, 
.blog-featured .items-row, 
.items-leading, 
.blog .row, 
.blog-featured .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Usuwamy puste przestrzenie generowane przez framework pod kafelkami */
.blog .items-row:after, 
.blog .items-row:before,
.t3-content:after,
.t3-content:before {
    display: none !important;
    content: none !important;
}

/* Zacieśniamy sam kafelek od dołu */
.blog .item, .blog-featured .item {
    margin-bottom: 10px !important; /* Minimalny odstęp między rzędami */
    padding: 0 15px 25px 15px !important; 
    border: none !important;
}

/* Wywalamy niewidoczne linie separatorów raz na zawsze */
hr, .article-separator, .item-separator, .separator, .separator-level {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* =============================================
   2. TYTUŁY: MAŁE NA STARCIE, DUŻE W ARTYKULE
   ============================================= */
/* Strona główna - Blokada na 1.1rem */
.blog .item-title, .blog-featured .item-title, 
.blog .item-title a, .blog-featured .item-title a,
.blog h1, .blog-featured h1, .blog h2 {
    font-size: 1.15rem !important;
    text-transform: none !important;
    font-weight: 700 !important;
    margin: 5px 0 10px 0 !important;
}

/* Pełny artykuł - Powrót do 2.5rem i wyrównanie do góry */
.item-page .page-header { margin-top: 0 !important; padding-top: 0 !important; }
.item-page h1, .item-page .page-header h1 {
    font-size: 2.5rem !important;
    text-transform: none !important;
    margin-top: 0 !important;
    line-height: 1.1 !important;
}

/* =============================================
   3. ARTYKUŁ: KOLUMNA I ZDJĘCIE (BRAK "ZĘBA")
   ============================================= */
.item-page .item-image, .item-page .pull-left {
    margin: 0 30px 25px 0 !important;
    float: left !important;
}

.item-page .article-content, .item-page section {
    overflow: hidden !important; /* To trzyma tekst w kolumnie obok foto */
    display: block !important;
}

/* =============================================
   4. KAFELKI: RÓWNE GUZIKI "CZYTAJ WIĘCEJ"
   ============================================= */
.blog .items-row, .blog-featured .items-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.blog .item, .blog-featured .item {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.blog .readmore, .blog-featured .readmore {
    margin-top: auto !important; /* Pcha guzik na dół kafelka */
    padding-top: 15px;
}

.readmore a {
    background: #f4f4f4 !important;
    border: 1px solid #ddd !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
}
/* Żeby tytuł w menu był czarny i bez podkreślenia */
.t3-megamenu .ja-content-listing .item-title a {
    color: #333 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Żeby po najechaniu myszką lekko zmieniał kolor */
.t3-megamenu .ja-content-listing .item-title a:hover {
    color: #000 !important;
}
/* 1. Stylizacja głównego i jedynego pola */
.t3-off-canvas .search input {
    display: block !important;
    width: 100% !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    height: 45px !important;
    box-sizing: border-box !important;
}
/* 2. UKRYWANIE DRUGIEGO ELEMENTU (I WSZYSTKICH NASTĘPNYCH) */
/* Ten zapis celuje w każdy element, który występuje PO pierwszym polu tekstowym */
.t3-off-canvas .search input ~ *,
.t3-off-canvas .search button,
.t3-off-canvas .search label {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}
/* Karta Patronite w panelu bocznym */
.patronite-karta {
    background: #ffffff !important;
    border-radius: 18px !important;
    margin: 15px 20px !important;
    padding: 20px 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    text-align: center;
}

/* Wygląd przycisku Patronite */
.btn-patronite {
    display: inline-block;
    background-color: #e3001b; /* Czerwony kolor Patronite */
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-patronite:hover {
    background-color: #b30015; /* Ciemniejszy odcień przy najechaniu */
    transform: scale(1.05);
    text-decoration: none;
    color: #ffffff !important;
}
/* --- KOMPLETNY KOD SIDEBARA --- */

/* Maksymalne upakowanie do góry */
.t3-off-canvas .t3-off-canvas-body {
    padding-top: 5px !important; 
}
.t3-off-canvas .t3-module {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Wyszukiwarka - wyśrodkowana i wyżej */
.t3-off-canvas .head-search {
    width: 100% !important;
    padding: 0 20px !important;
    margin: 5px 0 10px 0 !important;
    display: flex !important;
    justify-content: center !important;
}
.t3-off-canvas .head-search form {
    width: 100% !important;
}

/* Karty (Białe tło, cienie, układ) */
.patronite-karta, .kawa-karta {
    background: #ffffff !important;
    border-radius: 15px !important;
    margin: 5px 20px !important;
    padding: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-align: center !important;
}

/* Typografia w kartach */
.patronite-karta p, .kawa-karta p {
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
    color: #555 !important;
}
.patronite-karta h4, .kawa-karta h4 {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* Obrazek w karcie z kawą */
.kawa-karta img {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
}
/* =============================================
   ZDJĘCIE TYTUŁOWE (POZYCJA SLIDESHOW)
   ============================================= */
.wgr-hero-banner {
    position: relative;
    width: 100%;
    /* TUTAJ PODMIEŃ ŚCIEŻKĘ NA SWOJE ZDJĘCIE: */
    background-image: url('/images/banners/top_wmm.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 450px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ciemny filtr na zdjęcie - gwarantuje czytelność tekstu */
.wgr-hero-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* 50% przyciemnienia */
    z-index: 1;
}

/* Ułożenie tekstu */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-tag {
    display: block;
    color: #00b97c; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-content .hero-title {
    color: #ffffff !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin: 0 0 15px 0 !important;
    line-height: 1.1 !important;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content .hero-subtitle {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Główny przycisk */
.btn-hero {
    display: inline-block;
    background-color: #00b97c; 
    color: #ffffff !important;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-hero:hover {
    background-color: #009664;
    transform: scale(1.05);
    text-decoration: none;
    color: #ffffff !important;
}

/* Dopasowanie na telefony komórkowe */
@media (max-width: 768px) {
    .wgr-hero-banner { height: 350px; }
    .hero-content .hero-title { font-size: 2.2rem !important; }
    .hero-content .hero-subtitle { font-size: 1rem; }
}