/* =========================================
   1. UKŁAD WRAPPERA I ROZMYTEGO TŁA
   ========================================= */
   .adwentysci-hero-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 120px 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.adwentysci-hero-blur-bg {
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px; 
    background-size: cover;
    background-position: center;
    filter: blur(40px); 
    opacity: 0.6; 
    z-index: 0;
}

.adwentysci-hero-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    min-height: 500px;
    z-index: 1;
}

/* =========================================
   2. EFEKTY TŁA, TEKSTU I HOVER (Główna kolumna)
   ========================================= */
.hero-main-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-main-column {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.hero-bg-inner {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; background-position: center;
    animation: kenBurnsEffect 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes kenBurnsEffect {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, -1%); }
}

.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 70%);
    z-index: 2;
}

.hero-content {
    position: static; 
    z-index: 3;
}

.hero-content .date-badge { 
    display: inline-flex;
    width: fit-content;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff; 
    font-size: 0.8rem; 
    font-weight: 600;
    margin-bottom: 8px !important; 
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.hero-main-column { text-decoration: none; }
.hero-content .hero-date { color: #e2e8f0; font-size: 0.9rem; margin-bottom: 5px; display: block; }
.hero-content .hero-title { 
    color: #ffffff !important; 
    font-size: 2.5rem; 
    margin-top: 0 !important; /* To zlikwiduje pustą przestrzeń nad tytułem */
    margin-bottom: 0; 
    font-weight: bold; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}
/* =========================================
   3. EFEKTY EKRANU SZKLANEGO (Prawy kafel)
   ========================================= */
.hero-side-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.glass-card {
    flex: 1; position: relative; border-radius: 16px; overflow: hidden;
    background-size: cover; background-position: center;
    padding: 30px; display: flex; align-items: flex-end; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.glass-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}
a.card-main-link:hover {
    color: #3b82f6;
}
.glass-content { 
    position: static; 
    z-index: 2; 
    width: 100%; 
}
.glass-content .glass-title { color: #ffffff !important; font-size: 1.4rem; margin-top: 0; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* =========================================
   4. BOCZNY PASEK Z LOGO
   ========================================= */
.kads-sidebar {
    position: fixed; right: 0; top: 0;
    width: 180px; 
    height: 100vh; 
    background-color: #2f557f; 
    display: flex; 
    align-items: flex-start; 
    padding-top: 33vh; 
    justify-content: center;
    z-index: 9999;
    transition: background-color 0.4s ease; 
}
.kads-sidebar.is-scrolled {
    background-color: #d2f7fe !important;
}
.kads-sidebar .logo-kads {
    width: 130px; 
    transition: opacity 0.3s ease; 
}
/* =========================================
   DODATEK: SYMULACJA HOVERA DLA ANIMACJI BEZCZYNNOŚCI
   ========================================= */
   .hero-main-column.auto-hover-active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.glass-card.auto-hover-active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
/* =========================================
   5. OBSŁUGA KLIKALNOŚCI I NOWYCH TAGÓW
   ========================================= */
.card-main-link {
    color: inherit;
    text-decoration: none;
}
.card-main-link::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}

.glass-categories {
    position: relative;
    z-index: 20; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 10px;
}

a.glass-category-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    text-decoration: none;
    transition: all 0.3s ease;
}

a.glass-category-tag:hover {
    background: rgba(59, 130, 246, 0.8);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   6. PLAKIETKA ZACHODU SŁOŃCA
   ========================================= */
/* Nowa klasa dla kontenera pigułek pod głównym zdjęciem */
.hero-badges-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.sunset-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sunset-badge svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   7. RESPONSYWNOŚĆ (TABLETY I TELEFONY)
   ========================================= */
@media (max-width: 1024px) {
    .adwentysci-hero-grid { flex-direction: column; }
    .hero-main-wrapper { min-height: 400px; }
    .hero-side-column { flex-direction: row; }
    .kads-sidebar { display: none !important; }
}

@media (max-width: 768px) {
    /* PREMIUM: Zwiększamy padding od góry z 30px na 100px, by ominąć sticky header Kadence */
    .adwentysci-hero-wrapper { padding: 100px 15px 40px 15px; }
    
    /* PREMIUM: Mniejszy padding w głównej karcie dla lepszego proporcji na małym ekranie */
    .hero-main-column { padding: 25px; }
    
    .hero-side-column { flex-direction: column; gap: 15px; }
    .glass-card { padding: 50px; }
    
    /* PREMIUM: Lekkie zmniejszenie czcionki głównej i poprawa odstępów linii (line-height) */
    .hero-content .hero-title { 
        font-size: 1.6rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .glass-content .glass-title { 
        font-size: 1.15rem !important; 
        line-height: 1.4 !important;
    }
    
    /* PREMIUM: Odsunięcie pigułek kategorii na małych kartach od tytułu, by się nie sklejały */
    .glass-categories { margin-bottom: 15px; }

    /* PREMIUM: Zmiana układu pigułek z mówcami/zachodem na pionowy */
    .hero-badges-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }

    /* PREMIUM: Pigułki zajmują pełną dostępną szerokość dla wygody czytania */
    .sunset-badge { 
     display: none;
    }
    
    .hero-content .date-badge { 
        font-size: 0.8rem; 
        padding: 6px 12px; 
    }
}
/* =========================================
   8. WSPARCIE DLA TRYBU CIEMNEGO KADENCE
   ========================================= */

/* Tło paska bocznego w spoczynku (Tryb Ciemny) */
body[data-theme="dark"] .kads-sidebar {
    background-color: #1a294b !important; /* Bardzo ciemny granat / tło strony */
    border-left: 1px solid rgba(255,255,255,0.05) !important;
}

/* Tło paska po zescrollowaniu (Tryb Ciemny) */
body[data-theme="dark"] .kads-sidebar.is-scrolled {
    background-color: #1e293b !important; /* Odrobinę jaśniejszy, elegancki grafit zamiast żarówiastego błękitu */
    border-left: 1px solid rgba(255,255,255,0.08) !important;
}

/* Modyfikujemy też lekko tło widgetu słońca, by lepiej współgrało z bardzo ciemną resztą strony */
body[data-theme="dark"] .sunset-badge {
    background: rgba(0, 0, 0, 0.5); 
}

/* =========================================
   9. SEKCJA NEWSÓW - KOMPLETNY KOD
   ========================================= */
/* --- Nagłówek Sekcji Filtrów (Etykieta) --- */
.adwentysci-news-section .news-section-header {
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.adwentysci-news-section .news-section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3b82f6; /* Niebieski akcent */
    background: rgba(59, 130, 246, 0.1); /* Półprzezroczyste tło pigułki */
    padding: 6px 14px;
    border-radius: 30px;
}

.adwentysci-news-section .news-section-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #020617; /* Ciemny granat w trybie jasnym */
    margin: 0;
}

/* Dostosowanie Etykiety do Trybu Ciemnego */
body[data-theme="dark"] .adwentysci-news-section .news-section-title {
    color: #ffffff;
}
body[data-theme="dark"] .adwentysci-news-section .news-section-subtitle {
    color: #FBBF24; /* Złoty akcent zamiast niebieskiego w trybie ciemnym */
    background: rgba(251, 191, 36, 0.1);
}
/* --- Główny kontener (zapobiega rozciąganiu na 100% ekranu) --- */
.adwentysci-news-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* --- KLUCZOWE: Ukrywanie elementów przez JS --- */
.adwentysci-news-section .news-item.hidden {
    display: none !important;
}

/* --- Filtry / Zakładki (Duże Karty Premium) --- */
.news-filters-wrapper {
    width: 100%;
    margin-bottom: 50px;
}

.news-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* ==========================================================================
   TRYB JASNY: Czysty Minimalizm (Brak ramek, miękkie cienie, ciemny granat)
   ========================================================================== */
.adwentysci-news-section .news-filter-btn {
    background: #ffffff !important; /* Czysta biel */
    border: none !important; /* Brak ramek w trybie jasnym */
    padding: 25px 20px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    /* Miękkie cienie zamiast ramek */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; 
    height: 100%;
    font-family: 'Inter', sans-serif;
}

/* Hover i Stan Aktywny w trybie jasnym */
.adwentysci-news-section .news-filter-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.adwentysci-news-section .news-filter-btn.active {
    transform: translateY(-4px);
    /* Delikatna poświata akcentu (Shadow-glow) dla aktywnej karty w trybie jasnym */
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15) !important; 
    background: #f8fafc !important; /* Bardzo jasny błękit/beż dla wyróżnienia */
}

/* Wewnętrzne elementy (Tryb Jasny) */
.adwentysci-news-section .news-filter-icon {
    color: #3b82f6; /* W trybie jasnym elegancki, czysty niebieski */
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.adwentysci-news-section .news-filter-btn .news-filter-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #020617 !important; /* Ciemny granat */
    margin: 0 0 10px 0;
}

.adwentysci-news-section .news-filter-btn .news-filter-desc {
    font-size: 0.85rem;
    color: #64748b; /* Stonowany szary szlachetny dla jasnego tła */
    line-height: 1.5;
    margin: 0;
    white-space: normal; 
}


/* ==========================================================================
   TRYB CIEMNY: Efekt Glassmorphism (Półprzezroczysty grafit, złote ikony, 1px ramki)
   ========================================================================== */
body[data-theme="dark"] .adwentysci-news-section .news-filter-btn {
    background: rgba(255, 255, 255, 0.05) !important; /* Półprzezroczysty grafit */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Delikatna ramka (10% bieli) */
    box-shadow: none !important; /* Usuwamy jasny box-shadow */
}

/* Hover i Stan Aktywny w trybie ciemnym */
body[data-theme="dark"] .adwentysci-news-section .news-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-6px);
}

body[data-theme="dark"] .adwentysci-news-section .news-filter-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #FBBF24 !important; /* Złota ramka dla aktywnej karty */
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15) !important; /* Złoty shadow-glow */
}

/* Wewnętrzne elementy (Tryb Ciemny) */
body[data-theme="dark"] .adwentysci-news-section .news-filter-icon {
    color: #FBBF24 !important; /* Intensywne złoto */
}

body[data-theme="dark"] .adwentysci-news-section .news-filter-btn .news-filter-title {
    color: #ffffff !important; /* Biały tytuł w trybie ciemnym */
}

body[data-theme="dark"] .adwentysci-news-section .news-filter-btn .news-filter-desc {
    color: #94a3b8; /* Jasnoszary opis na ciemnym tle */
}

/* --- Siatka wpisów (Zabezpieczona przed Kadence) --- */
.adwentysci-news-section .news-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    padding: 0;
}

/* --- Karty wpisów --- */
.adwentysci-news-section .adwentysci-news-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%; 
    margin-bottom: 30px;
}

.adwentysci-news-section .adwentysci-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

/* --- Obrazek wpisu --- */
.adwentysci-news-section .news-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px !important; 
    overflow: hidden;
    flex-shrink: 0;
}

.adwentysci-news-section .news-card-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    display: block;
    margin: 0;
    transition: transform 0.6s ease;
}

.adwentysci-news-section .adwentysci-news-card:hover .news-card-image-wrap img {
    transform: scale(1.08);
}

/* --- Plakietka kategorii --- */
.adwentysci-news-section .news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3b82f6;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
    line-height: 1;
}

/* --- Treść tekstowa karty --- */
.adwentysci-news-section .news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.adwentysci-news-section .news-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.adwentysci-news-section .news-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 !important;
    line-height: 1.3;
}

.adwentysci-news-section .news-title a {
    color: #0f172a; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.adwentysci-news-section .news-title a:hover { color: #3b82f6; }

/* --- Przycisk Załaduj Więcej --- */
.news-load-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.news-load-more-btn {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-load-more-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .adwentysci-news-section .news-grid-container { grid-template-columns: repeat(2, 1fr) !important; }
    /* PREMIUM: Filtry w 2 kolumnach na tabletach i mniejszych ekranach */
    .news-filters { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .adwentysci-news-section .news-grid-container { grid-template-columns: 1fr !important; }
    
    /* PREMIUM: Ukrycie opisów na telefonach zgodnie z Twoim zaleceniem */
    .adwentysci-news-section .news-filter-btn .news-filter-desc { 
        display: none; 
    }
    
    /* PREMIUM: Zmniejszenie paddingów i dostosowanie przycisku dla kciuka */
    .adwentysci-news-section .news-filter-btn {
        padding: 15px 10px;
        height: auto;
    }
    
    /* PREMIUM: Proporcjonalne pomniejszenie ikon */
    .adwentysci-news-section .news-filter-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
    
    /* PREMIUM: Dostosowanie rozmiaru tytułu, aby idealnie mieścił się w 2 kolumnach */
    .adwentysci-news-section .news-filter-btn .news-filter-title {
        font-size: 1.05rem;
        margin: 0;
    }
}

/* --- Tryb Ciemny --- */
body[data-theme="dark"] .adwentysci-news-section .adwentysci-news-card { background: rgba(15, 23, 42, 0.6) !important; border-color: rgba(255,255,255,0.05); }
body[data-theme="dark"] .adwentysci-news-section .news-title a { color: #f8fafc; }
body[data-theme="dark"] .news-filter-btn { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #cbd5e1; }
body[data-theme="dark"] .news-filter-btn.active { background: #3b82f6; color: #fff; }

.entry-content-wrap {
    padding: 0 !important;
}
/* =========================================
   10. SEKCJA NEXT STEP (ZAPROSZENIE)
   ========================================= */
   .adwentysci-next-step-section {
    max-width: 1200px;
    margin: 60px auto;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 0 20px;
}

.ns-section-heading {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 40px;
}

/* --- Bleed Layout (Pół obraz, pół tekst) --- */
.ns-bleed-wrapper {
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    min-height: 500px;
}

.ns-bleed-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.ns-bleed-content {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ns-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3b82f6;
    margin-bottom: 15px;
}

.ns-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 20px 0 !important;
    color: #0f172a;
    line-height: 1.2;
}

.ns-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ns-info-box { display: flex; flex-direction: column; gap: 15px; }
.ns-info-item { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #1e293b; }
.ns-info-item svg { width: 24px; height: 24px; color: #3b82f6; }

/* --- Agendy (Karty) --- */
.ns-agendas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ns-agenda-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ns-agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}

.ns-agenda-icon { font-size: 3rem; }
.ns-agenda-card h4 { font-family: 'Urbanist', sans-serif; font-size: 1.5rem; margin-bottom: 15px; color: #0f172a; }
.ns-agenda-card p { color: #64748b; font-size: 0.95rem; line-height: 1.5; }

/* --- Timeline (Oś czasu z bazy danych) --- */
.ns-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
}

.ns-timeline-line {
    position: absolute;
    top: 50px; left: 0; right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

.ns-timeline-item {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.ns-timeline-dot {
    width: 24px; height: 24px;
    background: #FBBF24; /* Złoty akcent */
    border: 4px solid #ffffff;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.ns-timeline-day { font-family: 'Urbanist', sans-serif; font-size: 1.3rem; color: #3b82f6; margin: 0 0 10px 0; }

/* =========================================
   PREMIUM: KARTA WYDARZENIA NA OSI CZASU
   ========================================= */
.ns-timeline-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 16px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent; /* Zabezpieczenie na skoki wielkości */
}

/* Stan spoczynku i resetowania domyślnego koloru linków */
.ns-timeline-day, .ns-timeline-title, .ns-timeline-desc {
    transition: color 0.3s ease;
}

.ns-timeline-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    width: 100%;
}

.ns-timeline-title {
    font-size: 1.15rem;
    color: #0f172a;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    margin: 0;
}

.ns-timeline-content-block svg {
    width: 18px; height: 18px; color: #3b82f6;
    transition: transform 0.3s ease;
}

/* ================== HOVER: MAGIA UX ================== */
.ns-timeline-content-block:hover {
    background: rgba(59, 130, 246, 0.04); /* Subtelny niebieski szron */
    border-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-4px); /* Płynne uniesienie */
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08); /* Miękki cień */
}

.ns-timeline-content-block:hover .ns-timeline-title {
    color: #3b82f6;
}

.ns-timeline-content-block:hover svg {
    transform: translateX(6px); /* Strzałka wskazuje "Wejdź" */
}

/* ================== WSPARCIE TRYBU CIEMNEGO ================== */
body[data-theme="dark"] .ns-timeline-title {
    color: #ffffff;
}
@media (max-width: 992px) {
    body[data-theme="dark"] .ns-timeline-content-block {
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(255, 255, 255, 0.05);
    }
}
body[data-theme="dark"] .mobile-only {
    color: #94a3b8;
}
body[data-theme="dark"] .ns-timeline-content-block:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.ns-timeline-desc { font-size: 0.85rem; color: #64748b; }
/* Domyślnie ukrywamy datę wewnątrz karty na komputerach */
.mobile-only { 
    display: none; 
}
/* =========================================
   10B. PREMIUM MODAL (Oś Czasu)
   ========================================= */
.premium-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-modal-backdrop.active {
    opacity: 1; visibility: visible;
}

.premium-modal-content {
    background: #ffffff;
    width: 90%; max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.premium-modal-backdrop.active .premium-modal-content {
    transform: scale(1) translateY(0);
}

.premium-modal-close {
    position: absolute; top: 20px; right: 20px;
    background: #f1f5f9; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.5rem; color: #64748b;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.premium-modal-close:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }

.premium-modal-header {
    padding: 40px 40px 20px 40px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid #e2e8f0;
}

#modal-event-title {
    font-family: 'Urbanist', sans-serif; font-size: 2rem; font-weight: 800;
    color: #0f172a; margin: 15px 0 10px 0; line-height: 1.2;
}

.modal-event-meta {
    display: flex; align-items: center; gap: 8px;
    color: #64748b; font-weight: 500; font-size: 0.95rem;
}
.modal-event-meta svg { width: 18px; height: 18px; color: #3b82f6; }

.premium-modal-body { padding: 30px 40px 40px 40px; }

.premium-loader { text-align: center; color: #3b82f6; font-weight: 600; padding: 40px 0; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.modal-desc { line-height: 1.7; color: #475569; margin-bottom: 25px; }

.modal-address-box {
    background: rgba(59, 130, 246, 0.05); border-left: 4px solid #3b82f6;
    padding: 15px 20px; border-radius: 0 12px 12px 0;
    margin-bottom: 20px; color: #1e293b; font-size: 0.95rem;
}

.premium-map-container {
    width: 100%; 
    height: 250px;
    min-height: 250px; 
    border-radius: 16px;
    overflow: hidden; 
    background: #e2e8f0;
    /* USUNIĘTO: display: block !important; aby JS mógł swobodnie chować element */
}

/* --- Wsparcie dla Trybu Ciemnego (Kadence Dark Mode) w Modalu --- */
body[data-theme="dark"] .premium-modal-content { background: #0f172a; border: 1px solid rgba(255,255,255,0.1); }
body[data-theme="dark"] .premium-modal-header { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
body[data-theme="dark"] #modal-event-title { color: #ffffff; }
body[data-theme="dark"] .modal-event-meta, body[data-theme="dark"] .modal-desc { color: #94a3b8; }
body[data-theme="dark"] .premium-modal-close { background: rgba(255,255,255,0.1); color: #cbd5e1; }
body[data-theme="dark"] .modal-address-box { background: rgba(59,130,246,0.1); color: #cbd5e1; }
body[data-theme="dark"] .ns-timeline-title.premium-timeline-link { color: #ffffff; }

/* --- Aktualizacja Timeline: Dodanie stylu dla tagu kategorii --- */
.ns-timeline-cat-badge {
    display: table; /* KRYTYCZNE: Zmusza tag do zajęcia własnej linii, ale szerokość dopasowuje się do tekstu */
    margin: 0 auto 12px auto; /* Centruje tag nad tytułem i daje odstęp z dołu */
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Aktualizacja Agend: Nowoczesne Ikony SVG --- */
.ns-agenda-icon svg { 
    width: 50px; 
    height: 50px; 
    color: #3b82f6; /* Niebieski akcent */
    transition: transform 0.3s ease;
}

.ns-agenda-card:hover .ns-agenda-icon svg {
    transform: scale(1.1);
    color: #2563eb; /* Ciemniejszy odcień po najechaniu */
}

/* USUŃ STARE STYLE TABELI: 
   .ns-table-container, .ns-service-table, itd. 
   I ZAMIEŃ JE NA PONIŻSZE: 
*/

/* --- Nowe Karty Nabożeństwa (Zamiast Tabeli) --- */
.ns-service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ns-service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #3b82f6; /* Kolorowy akcent na górze */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ns-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.1);
}

.ns-service-time {
    display: inline-block;
    background: #f1f5f9;
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.ns-service-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.ns-service-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Responsywność dla nowych kart --- */
@media (max-width: 992px) {
    .ns-service-cards-grid { grid-template-columns: 1fr; }
}

/* --- Tryb Ciemny dla nowych kart --- */
body[data-theme="dark"] .ns-service-card { 
    background: rgba(15, 23, 42, 0.8); 
    border-color: #3b82f6; /* Zostawiamy niebieski akcent na górze */
}
body[data-theme="dark"] .ns-service-time { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
body[data-theme="dark"] .ns-service-title { color: #ffffff; }
body[data-theme="dark"] .ns-service-desc { color: #cbd5e1; }

/* --- Responsywność --- */
@media (max-width: 992px) {
    .ns-bleed-wrapper { flex-direction: column; }
    .ns-bleed-image { min-height: 220px; } /* Przeniesione z poprzedniej poprawki dla porządku */
    .ns-bleed-content { padding: 40px 25px; } /* Przeniesione z poprzedniej poprawki */
    .ns-agendas-grid { grid-template-columns: 1fr; }
    
    /* PREMIUM TIMELINE MOBILE */
    .ns-timeline { flex-direction: column; gap: 25px; padding-left: 10px; }
    
    /* Idealne pozycjonowanie linii i kropki */
    .ns-timeline-line { left: 24px; top: 15px; bottom: 0; width: 3px; height: auto; }
    .ns-timeline-item { display: block; position: relative; padding-left: 55px; text-align: left; padding-bottom: 10px; }
    .ns-timeline-dot { position: absolute; left: 13px; top: 4px; margin: 0 !important; width: 22px; height: 22px; border-width: 3px; }
    
 /* PREMIUM: Ukrywamy datę nad osią czasu na małych ekranach */
    .desktop-only { display: none !important; }
    
    /* PREMIUM: Pokazujemy i stylizujemy datę wewnątrz karty obok "Sobota" */
    .mobile-only { 
        display: inline-block; 
        color: #64748b; 
        text-transform: none; /* Wyłączamy wielkie litery odziedziczone po "Sobota" */
        letter-spacing: normal;
        font-weight: 500;
        margin-left: 6px;
    }
    
    /* Karta Premium dla klikalnego obszaru */
    .ns-timeline-content-block { 
        background: #ffffff; 
        border: 1px solid #e2e8f0; 
        border-radius: 16px; 
        padding: 20px; 
        width: 100%; 
        box-sizing: border-box;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        display: block; /* Wymuszenie bloku zamiast flex, by tekst naturalnie spływał */
    }
    
    /* Wyrównanie pigułki kategorii do lewej */
    .ns-timeline-cat-badge { margin: 0 0 12px 0 !important; display: inline-block !important; font-size: 0.65rem; }
    
    /* Uspokojenie słowa "Sobota" */
    .ns-timeline-day { font-size: 0.85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
    
    /* Tytuł gra pierwsze skrzypce + strzałka po prawej */
    .ns-timeline-title-wrapper { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; width: 100%; margin-bottom: 5px; }
    .ns-timeline-title { font-size: 1.25rem; line-height: 1.3; margin: 0; }
    .ns-timeline-title-wrapper svg { flex-shrink: 0; margin-top: 5px; } /* Strzałka nie zgniata się i trzyma się góry tekstu */
    
    .ns-timeline-desc { margin-top: 8px; }
}

@media (max-width: 768px) {
    /* PREMIUM: Proporcje zdjęcia dostosowane do ekranu smartfona (zamiast gigantycznych 400px) */
    .ns-bleed-image { min-height: 220px; }
    
    /* PREMIUM: Mniejszy padding wewnętrzny daje tekstowi "oddychać" i nie zgniata go po bokach */
    .ns-bleed-content { padding: 40px 25px; }
    
    /* PREMIUM: Lekkie zmniejszenie czcionki nagłówka */
    .ns-title { font-size: 2.2rem; }
    
    /* PREMIUM: Zabezpieczenie ikon przed zgniataniem przez tekst */
    .ns-info-item svg { flex-shrink: 0; }
}

/* --- Tryb Ciemny (Kadence Dark Mode) --- */
body[data-theme="dark"] .ns-section-heading,
body[data-theme="dark"] .ns-title,
body[data-theme="dark"] .ns-agenda-card h4,
body[data-theme="dark"] .ns-timeline-title,
body[data-theme="dark"] .ns-service-table td { color: #ffffff; }

body[data-theme="dark"] .ns-bleed-wrapper,
body[data-theme="dark"] .ns-agenda-card,
body[data-theme="dark"] .ns-table-container {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.05);
}

body[data-theme="dark"] .ns-desc,
body[data-theme="dark"] .ns-info-item,
body[data-theme="dark"] .ns-timeline-desc { color: #cbd5e1; }

body[data-theme="dark"] .ns-service-table th { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
body[data-theme="dark"] .ns-service-table td { border-color: rgba(255,255,255,0.05); }
body[data-theme="dark"] .ns-service-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
body[data-theme="dark"] .ns-timeline-line { background: rgba(255,255,255,0.1); }
body[data-theme="dark"] .ns-timeline-dot { border-color: #0f172a; }
/* =========================================
   11. SEKCJA SOCIAL MEDIA (Życie Zboru)
   ========================================= */
   .adwentysci-social-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.social-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Równe proporcje 50/50 */
    gap: 60px;
    align-items: center; /* Wyśrodkowanie w pionie */
}

/* --- Lewa Kolumna (Tekst i Ikony) --- */
.social-info-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3b82f6; /* Niebieski akcent */
}

.social-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.social-desc {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Ikony społecznościowe */
.social-icons-wrapper {
    display: flex;
    gap: 20px;
}

.premium-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 16px; /* Nowoczesny zaokrąglony kwadrat */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.premium-social-icon svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

/* Hover - jasnoniebieski akcent i uniesienie */
.premium-social-icon:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* --- Prawa Kolumna (Feed z FB) --- */
.social-feed-column {
    width: 100%;
}

.premium-feed-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    max-height: 600px;
    overflow-y: auto; /* Pasek przewijania, jeśli feed jest długi */
}

/* --- Upiększenie samego Smash Balloon (opcjonalnie) --- */
.premium-feed-container #cff {
    margin: 0 !important;
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .social-grid-container {
        grid-template-columns: 1fr; /* Na tabletach i telefonach jedno pod drugim */
        gap: 40px;
    }
    .social-title { font-size: 2.2rem; }
    .social-info-column { text-align: center; align-items: center; }
}

@media (max-width: 768px) {
    .adwentysci-social-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    /* PREMIUM: Dopasowanie tekstów do wąskich ekranów */
    .social-subtitle { font-size: 0.8rem; letter-spacing: 1px; }
    .social-title { font-size: 1.9rem; }
    .social-desc { font-size: 0.95rem; margin-bottom: 30px; }

    /* PREMIUM: Całkowicie ukrywamy feed Facebooka na urządzeniach mobilnych */
    .social-feed-column {
        display: none !important;
    }
    
    /* PREMIUM: Dopasowanie rozmiaru ikon społecznościowych */
    .premium-social-icon { width: 50px; height: 50px; }
    .premium-social-icon svg { width: 24px; height: 24px; }
}

/* --- Tryb Ciemny (Kadence Dark Mode) --- */
body[data-theme="dark"] .social-title { color: #ffffff; }
body[data-theme="dark"] .social-desc { color: #cbd5e1; }

body[data-theme="dark"] .premium-social-icon { 
    background: rgba(255,255,255,0.05); 
    color: #94a3b8; 
    border: 1px solid rgba(255,255,255,0.1);
}

body[data-theme="dark"] .premium-social-icon:hover { 
    background: #3b82f6; 
    color: #ffffff; 
    border-color: #3b82f6;
}

body[data-theme="dark"] .premium-feed-container {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255,255,255,0.05);
}
.single-content h1, .single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6 {
     margin: 0 !important; 
}
h3.ns-section-heading {
    margin-bottom: 40px !important;
    margin-top: 50px !important;
}
/* =========================================
   12. KADENCE STICKY HEADER - PREMIUM GLASSMORPHISM
   ========================================= */

/* Reagujemy na nową klasę: item-is-stuck */
#masthead .kadence-sticky-header.item-is-stuck {
    /* Ustawiamy lekko przezroczyste białe tło (85% krycia) */
    background: rgba(255, 255, 255, 0.85) !important; 
    
    /* Efekt rozmycia tła pod spodem (Glassmorphism) */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* Wsparcie dla przeglądarek opartych na Safari */
    
    /* Miękki, rozmyty cień oddzielający menu od treści */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; 
    
    /* Subtelna, półprzezroczysta dolna ramka odcinająca */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important; 
    
    /* Zapewnienie płynnego przejścia przy zmianie tła i cienia */
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* KRYTYCZNE: Wymuszamy przezroczystość wewnętrznego wiersza, aby szkło zadziałało */
#masthead .kadence-sticky-header.item-is-stuck .site-header-row {
    background: transparent !important;
}

/* --- Wsparcie dla Trybu Ciemnego (Kadence Dark Mode) --- */
body[data-theme="dark"] #masthead .kadence-sticky-header.item-is-stuck {
    background: rgba(15, 23, 42, 0.85) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
/* =========================================
   13. PRZEŁĄCZNIK TRYBU CIEMNEGO I ZMIENNE KADENCE
   ========================================= */

/* --- Wygląd przycisku --- */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #0f172a; /* Ciemny granat w trybie jasnym */
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s ease;
}

/* KRYTYCZNE: Wymuszenie stylów bezpośrednio na ścieżkach (path) wewnątrz SVG */
.theme-toggle-btn svg path {
    fill: none !important;             /* Usuwa wewnętrzne wypełnienie plamki */
    stroke: currentColor !important;   /* Rysuje linie w kolorze aktualnego tekstu */
    stroke-width: 2px !important;      /* Gwarantuje odpowiednią grubość linii */
}

/* Domyślny stan (jasny tryb) - Słońce widoczne, Księżyc ukryty */
.theme-toggle-btn .moon-icon { display: none; }
.theme-toggle-btn .sun-icon { display: block; }

/* --- Stan przycisku w Trybie Ciemnym --- */
body[data-theme="dark"] .theme-toggle-btn {
    color: #f8fafc; /* Jasny kolor ikon w trybie ciemnym */
}

body[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .theme-toggle-btn .sun-icon { display: none; }
body[data-theme="dark"] .theme-toggle-btn .moon-icon { display: block; }

/* --- Globalne Zmienne Kadence w Trybie Ciemnym --- */
body[data-theme="dark"] {
    /* 
     * Poniżej nadpisujemy globalne zmienne kolorów Kadence.
     * Kadence standardowo używa palety od palette1 do palette9.
     * Dostosuj te kody HEX do palety, którą założyłeś w projekcie.
     */
    --global-palette1: #3b82f6; /* Twój główny akcent (niebieski) */
    --global-palette2: #2563eb; /* Akcent hover */
    --global-palette3: #f8fafc; /* Najjaśniejszy (np. tytuły) */
    --global-palette4: #e2e8f0; /* Zwykły tekst (silny) */
    --global-palette5: #cbd5e1; /* Zwykły tekst (łagodny) */
    --global-palette6: #64748b; /* Szary tekst (opisy, daty) */
    --global-palette7: #1e293b; /* Kolor tła ramek/elementów */
    --global-palette8: #0f172a; /* Głębokie tło */
    --global-palette9: #020617; /* Najciemniejsze tło (np. stopka) */
    
    /* Główne wymuszenie koloru tła i tekstu dla całego dokumentu */
    background-color: var(--global-palette8);
    color: var(--global-palette5);
}

/* =========================================
   14. POJEDYNCZY WPIS - UKŁAD EDITORIAL (GRID OSTATECZNY)
   ========================================= */

/* 0. Naprawa działania STICKY w Kadence */
body.single-post #primary,
body.single-post .site-content,
body.single-post .content-area,
body.single-post .entry-content-wrap,
body.single-post .entry-content {
    overflow: visible !important;
    clip-path: none !important;
}

/* --- BEZSZWOWA INTEGRACJA NAGŁÓWKA --- */
/* Usuwamy tło i cień w spoczynku, by nagłówek stopił się z tłem strony */
body.single-post #masthead {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body[data-theme="dark"].single-post #masthead {
    background: transparent !important; 
    box-shadow: none !important;
    border: none !important;
}

/* 1. Zewnętrzny kontener */
body.single-post .entry-content-wrap {
    display: block !important;
    max-width: 1200px;
    margin: 130px auto 60px auto !important; /* MEGA ZMIANA: Zwiększono z 80px na 180px dla oddechu! */
    padding: 0 20px !important;
}

/* 2. NOWY KONTENER GRID: Właściwa treść wpisu */
/* Tu znajduje się nasz wstrzyknięty panel, odtwarzacz AI i tekst artykułu */
body.single-post .entry-content {
    display: grid !important;
    grid-template-columns: 40% minmax(0, 1fr) !important;
    gap: 0 60px !important;
    align-items: start !important;
    padding: 0 !important;
}

/* 3. PRAWA KOLUMNA: Wszystko (tekst, wtyczki) OPRÓCZ naszego panelu premium */
body.single-post .entry-content > *:not(.adwentysci-editorial-sidebar) {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
}

/* 4. LEWA KOLUMNA: Nasz panel premium */
body.single-post .adwentysci-editorial-sidebar {
    grid-column: 1 !important;
    grid-row: 1 / 1000 !important; 
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 140px !important; 
    align-self: start !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    height: max-content !important;
    z-index: 10;
    
    /* --- EFEKT WYSKOKU (Czysta biel + miękki cień) --- */
    background: #ffffff !important; /* ZMIANA: Z #f8fafc na czystą biel */
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08); /* Lekko wzmocniony cień dla głębi */
}

/* Tryb ciemny dla nowej karty premium */
body[data-theme="dark"] .single-post .adwentysci-editorial-sidebar {
    background: rgba(30, 41, 59, 0.5) !important; /* Półprzezroczysty grafit */
    border-color: rgba(255,255,255,0.05) !important;
}

/* -- Wygląd elementów w lewym pasku -- */
/* -- Wygląd tagów kategorii w lewym pasku -- */
.single-category-badges {
    display: flex;
    flex-wrap: wrap; /* Pozwala tagom zawinąć się do nowej linii, gdy brakuje miejsca */
    gap: 10px;
    margin-bottom: 20px;
}

.single-category-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none; /* Usuwa domyślne podkreślenie linku */
    transition: all 0.3s ease;
}

a.single-category-badge:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px); /* Lekkie uniesienie przy najechaniu */
}

/* PREMIUM: Odseparowany styl dla tytułu w panelu wpisu */
.premium-editorial-title {
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 20px 0 !important;
}

.single-meta {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px 20px; /* ZMIANA: Zmniejszono odstęp w pionie do 12px dla lepszego grupowania wizualnego */
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 30px;
    width: 100%;
    margin-top: 20px !important;
}

/* KRYTYCZNE: Wymuszamy, by pierwszy element (Data) zajął pełną szerokość i złamał linię */
.single-meta .meta-item:first-child {
    flex-basis: 100%;
}

.meta-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    white-space: nowrap; 
}

.meta-item svg { 
    width: 18px; 
    height: 18px; 
    color: #3b82f6; 
    flex-shrink: 0; 
}

/* Obrazek 3D */
.single-hero-image-wrap {
    width: 100%;
    perspective: 1000px;
    margin-bottom: 25px; 
}

.tilt-card {
    /* Domyślne zmienne dla światła (środek i delikatne krycie) */
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0.15;
    
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    background: #000;
    position: relative; /* KRYTYCZNE: Punkt odniesienia dla światła */
}

.tilt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(20px); /* Wyniesienie obrazka w 3D */
    position: relative;
    z-index: 1;
}

/* --- TWORZENIE LATARKI (SPOTLIGHT) --- */
.tilt-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Tworzy okrągłe rozmyte światło w punktach wyznaczonych przez JavaScript */
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, var(--glow-opacity)) 0%, transparent 60%);
    z-index: 2; /* Musi być nad obrazkiem */
    pointer-events: none; /* KRYTYCZNE: Ignoruje kliknięcia, aby vanilla-tilt mógł działać! */
    transform: translateZ(30px); /* Unosi światło wyżej niż obrazek! To potęguje głębię 3D */
    transition: background 0.15s ease; /* Płynność ruchu światła */
}

/* Odtwarzacz Audio (Placeholder) */
.single-audio-teaser {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    width: 100%;
}

.audio-teaser-title { margin: 0 0 10px 0; font-size: 0.85rem; font-weight: 700; color: #475569; }
.audio-placeholder { display: flex; align-items: center; gap: 10px; color: #3b82f6; font-weight: 600; font-size: 0.95rem; }
.audio-placeholder svg { width: 24px; height: 24px; }


/* =========================================
   15. Prawa Kolumna (Tekst Artykułu) + RESPONSYWNOŚĆ
   ========================================= */
body.single-post .entry-content {
    padding-top: 10px;
    font-size: 1.1rem !important; 
    line-height: 1.8 !important;   
    color: #334155;                
}

body.single-post .entry-content p {
    margin-bottom: 1.5em;
}

/* --- Responsywność dla układu Editorial --- */
@media (max-width: 992px) {
    body.single-post .entry-content,
    body.single-post .entry-content-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    body.single-post .entry-content-wrap {
        margin-top: 100px !important;
    }

    body.single-post .adwentysci-editorial-sidebar {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        padding: 30px 25px !important; 
    }

body.single-post .entry-content > *,
    body.single-post .entry-content-wrap > * {
        width: 100% !important;
    }

    .premium-editorial-title { font-size: 2rem !important; }
}

@media (max-width: 768px) {
    /* PREMIUM: Zmniejszenie marginesów zewnętrznych strony, by odzyskać szerokość */
    body.single-post .entry-content-wrap {
        padding: 0 10px !important; 
    }

/* PREMIUM: Kompaktowa karta z węższym paddingiem wewnętrznym */
    body.single-post .adwentysci-editorial-sidebar {
        padding: 20px 15px !important; 
        border-radius: 16px !important; 
    }
    
    /* PREMIUM: Znaczne zmniejszenie tytułu (Unikalna klasa) */
    .premium-editorial-title { 
        font-size: 1.45rem !important; 
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        letter-spacing: -0.5px; 
    }
    
    /* PREMIUM: Zbliżenie metadanych i pigułek do siebie */
    .single-category-badges { margin-bottom: 15px; }
    
    .single-meta { 
        gap: 8px 15px; 
        margin-bottom: 25px !important; 
        font-size: 0.9rem;
    }

    /* PREMIUM: Delikatne powiększenie czcionki tekstu artykułu dla lepszej czytelności */
    body.single-post .entry-content {
        font-size: 1.15rem !important; 
        line-height: 1.7 !important;
    }
}
/* =========================================
   15b. TAGI WPISU (NOWOCZESNE PIGUŁKI / PILLS)
   ========================================= */

/* Oddzielenie tagów od tekstu artykułu */
body.single-post .entry-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0; /* Subtelna linia oddzielająca */
    width: 100%;
}

/* Kontener grupujący tagi */
body.single-post .entry-tags .tags-links {
    display: flex;
    flex-wrap: wrap; /* Pozwala tagom "zawracać" do nowej linii, gdy brakuje miejsca */
    gap: 12px;
    align-items: center;
}

/* Wygląd pojedynczej pigułki taga */
body.single-post .entry-tags .tag-link {
    background: #f1f5f9; /* Bardzo jasny, chłodny szary */
    color: #475569; /* Ciemniejszy szary dla wysokiej czytelności */
    padding: 8px 18px;
    border-radius: 30px; /* Całkowite zaokrąglenie brzegów */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none; /* Ukrywa podkreślenie linku */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

/* Wyróżniony znak # (Hasztag) */
body.single-post .entry-tags .tag-hash {
    color: #3b82f6; /* Nasz główny niebieski akcent */
    margin-right: 4px;
    font-weight: 800;
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* Efekt po najechaniu kursorem (Hover) */
body.single-post .entry-tags .tag-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px); /* Lekkie "uniesienie" przycisku */
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.25); /* Miękki cień */
}

/* Przy hoverze # również staje się biały, by nie zlać się z tłem */
body.single-post .entry-tags .tag-link:hover .tag-hash {
    color: #ffffff; 
    opacity: 1;
}

/* --- Wsparcie dla Trybu Ciemnego (Dark Mode) --- */
body[data-theme="dark"].single-post .entry-footer {
    border-top-color: rgba(255, 255, 255, 0.05); /* Przyciemniona linia oddzielająca */
}

body[data-theme="dark"].single-post .entry-tags .tag-link {
    background: rgba(30, 41, 59, 0.6); /* Półprzezroczysty grafit */
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"].single-post .entry-tags .tag-link:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}
/* =========================================
   16. TRYB CIEMNY DLA POJEDYNCZEGO WPISU
   ========================================= */

body[data-theme="dark"] .single-title,
body[data-theme="dark"] .premium-editorial-title { color: #ffffff; }
body[data-theme="dark"] .single-meta { color: #94a3b8; }
body[data-theme="dark"] .single-audio-teaser { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
body[data-theme="dark"] .audio-teaser-title { color: #cbd5e1; }
body[data-theme="dark"] .tilt-card { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); }

/* Rozjaśnienie głównego tekstu artykułu w trybie ciemnym */
body[data-theme="dark"].single-post .entry-content p,
body[data-theme="dark"].single-post .entry-content li {
    color: #f8fafc !important; 
}

/* Opcjonalnie: Czysta biel dla nagłówków w treści, aby mocniej się odcinały od akapitów */
body[data-theme="dark"].single-post .entry-content h2,
body[data-theme="dark"].single-post .entry-content h3,
body[data-theme="dark"].single-post .entry-content h4,
body[data-theme="dark"].single-post .entry-content h5,
body[data-theme="dark"].single-post .entry-content h6 {
    color: #ffffff !important;
}
/* Tryb ciemny dla nowej karty premium - NAPRAWIONY SELEKTOR */
body[data-theme="dark"].single-post .adwentysci-editorial-sidebar {
    background: rgba(30, 41, 59, 0.5) !important; /* Półprzezroczysty grafit */
    border-color: rgba(255, 255, 255, 0.05) !important;
}
/* Mniejszy kontrast w kolumnie czytania dla ochrony wzroku w nocy */
body[data-theme="dark"] .single-post .entry-content {
    color: #e9ebee !important; /* Bardzo jasna szarość, nie oślepiająca biel */
}

/* Responsywność dla Hero */
@media (max-width: 992px) {
    .single-hero-container { flex-direction: column-reverse; gap: 40px; }
    .single-title { font-size: 2.5rem !important; }
}
/* Ukrycie domyślnego Hero Kadence */
.single-post .entry-hero,
.single-post .post-thumbnail {
    display: none !important;
}
/* =========================================
   17. SEKCJA POWIĄZANYCH WPISÓW (RELATED POSTS)
   ========================================= */

/* Ukrycie brzydkich, domyślnych powiązanych wpisów z motywu Kadence */
.single-post .entry-related {
    display: none !important;
}

/* Nasza nowa sekcja powiązanych wpisów - PRZEŁAMANIE GRIDA (Wymuszenie 100% szerokości) */
body.single-post .adwentysci-related-section {
    grid-column: 1 / 3 !important; /* Łamie podział 40/60 z góry i zajmuje cały ekran */
    width: 100% !important;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0; /* Subtelna linia separująca główny artykuł od polecanych */
}

/* Nagłówki sekcji powiązanych */
.related-section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.related-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
}

.related-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #020617;
    margin: 0;
}

/* --- Wsparcie Dark Mode dla nagłówków powiązanych wpisów --- */
body[data-theme="dark"].single-post .adwentysci-related-section {
    border-top-color: rgba(255, 255, 255, 0.05);
}
body[data-theme="dark"] .related-title { color: #ffffff; }
body[data-theme="dark"] .related-subtitle { color: #FBBF24; background: rgba(251, 191, 36, 0.1); }

/* --- KOMPRESJA KART W SEKCJI POWIĄZANYCH (Pro-Tip UX) --- */

/* 1. Zwiększenie odstępu między kartami (gap) */
body.single-post .adwentysci-related-section .news-grid-container {
    gap: 50px !important; /* Zwiększono z 30px na 50px dla lepszego oddechu */
}

/* 2. Zmniejszenie marginesów wewnętrznych (paddingu) tekstu */
body.single-post .adwentysci-related-section .news-card-content {
    padding: 15px 20px 20px 20px !important; /* Delikatniejszy padding względem głównej */
}

/* Opcjonalnie: Zmniejszenie wysokości samego obrazka na karcie (kompresja w pionie) */
body.single-post .adwentysci-related-section .news-card-image-wrap {
    height: 180px !important; /* Zmniejszono z 220px */
}

/* 3. Zmniejszenie rozmiaru czcionki tytułu (o ok. 3px) */
body.single-post .adwentysci-related-section .news-title {
    font-size: 1.1rem !important; /* Zredukowane z 1.25rem */
    line-height: 1.4 !important;
}

/* Subtelne dopasowanie daty do mniejszego tytułu */
body.single-post .adwentysci-related-section .news-meta {
    font-size: 0.75rem !important;
    margin-bottom: 8px !important;
}
p.wp-block-paragraph {
    color: #7f7f7f;
}
/* =========================================
   18. GLOBALNA KOREKTA PRZESTRZENI DLA PASKA Z LOGO
   ========================================= */
@media (min-width: 1025px) {
    /* 1. Cała strona przesuwa się w lewo, robiąc miejsce na boczny pasek (180px) */
    #wrapper {
        padding-right: 180px !important;
        box-sizing: border-box !important;
    }
    
    /* 2. Zwykły nagłówek domyślnie siedzi w #wrapper, więc naturalnie będzie 
       ściśnięty. Nadajemy mu 100% szerokości dostępnego dla niego miejsca. */
    #masthead {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. KRYTYCZNE: Główny kontener Kadence (Ten z Twojego kodu HTML).
       Gdy skrypt nadaje mu klasę 'item-is-fixed', przypinamy go sztywno
       współrzędnymi do ekranu. Zatrzymuje się dokładnie 180px przed prawą krawędzią! */
    .site-header-inner-wrap.item-is-fixed,
    .site-header-inner-wrap.item-is-stuck {
        left: 0 !important;
        right: 180px !important; 
        width: auto !important;  /* Wyłączamy narzucane 100% szerokości */
        max-width: none !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 4. Pasek boczny z logo (zawsze przyklejony do samej krawędzi okna) */
    .kads-sidebar {
        right: 0 !important;
        z-index: 99999 !important;
    }
}
/* Stopka - kolory */
h4.wp-block-heading {
    color: #d2f7fed6;
}
.footer-html-inner {
    color: #b2d3dc;
    font-size: 0.9rem;
}
p.wp-block-paragraph a {
    color: #1877f2;
}

/* =========================================
   19. SZABLON ARCHIWUM PREMIUM
   ========================================= */

/* --- 1. Hero Archiwum (Zaktualizowane na Premium Gradient) --- */
.premium-archive-hero {
    position: relative;
    width: 100%;
    /* Zwiększony dolny padding, aby dać więcej oddechu filtrom i odsunąć Hero */
    padding: 140px 20px 100px 20px; 
    /* Nowoczesny, głęboki gradient premium (zamiast płaskiego #0f172a) */
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.archive-breadcrumbs {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.archive-breadcrumbs a {
    color: #3b82f6; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-breadcrumbs a:hover {
    color: #60a5fa;
}

.archive-breadcrumbs .sep {
    color: #475569;
}

.archive-title {
    font-family: 'Urbanist', 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* --- 2. Mikro-Filtrowanie (Pills & Dropdown) --- */
.premium-archive-filters-section {
    margin: 40px auto 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.archive-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.archive-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 24px;
    border-radius: 40px; /* Elegancka pigułka */
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.archive-pill:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.archive-pill.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Dropdown na pozostałe kategorie */
.archive-pill-dropdown {
    position: relative;
}

.archive-pill-dropdown summary {
    list-style: none; /* Ukrywa standardową strzałkę */
    user-select: none;
}

.archive-pill-dropdown summary::-webkit-details-marker {
    display: none;
}

.archive-pill-dropdown .arrow {
    font-size: 0.7rem;
    margin-left: 6px;
    vertical-align: middle;
}

/* Glassmorphism panelu rozwijanego */
.archive-pill-dropdown .dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 50;
}

.dropdown-item {
    padding: 10px 15px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropdown-item:hover, .dropdown-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* --- 3. Siatka - Korygujemy ułożenie na Archiwum --- */
.archive-news-layout {
    margin-top: 30px;
}

/* --- Wsparcie dla Trybu Ciemnego --- */
body[data-theme="dark"] .archive-pill { background: rgba(255,255,255,0.05); color: #cbd5e1; }
body[data-theme="dark"] .archive-pill:hover { background: rgba(255,255,255,0.1); }
body[data-theme="dark"] .archive-pill.active { background: #3b82f6; color: #fff; }
body[data-theme="dark"] .archive-pill-dropdown .dropdown-content { background: rgba(15, 23, 42, 0.95); border-color: rgba(255,255,255,0.1); }
body[data-theme="dark"] .dropdown-item { color: #cbd5e1; }
body[data-theme="dark"] .dropdown-item:hover, body[data-theme="dark"] .dropdown-item.active { background: rgba(255,255,255,0.1); color: #fff; }
/* --- Wsparcie dla Trybu Ciemnego (Paginacja) --- */
body[data-theme="dark"] .premium-pagination li .page-numbers { 
    background: rgba(255, 255, 255, 0.05) !important; 
    color: #cbd5e1 !important; 
}

body[data-theme="dark"] .premium-pagination li .page-numbers:hover { 
    background: rgba(255, 255, 255, 0.1) !important; 
}

body[data-theme="dark"] .premium-pagination li .page-numbers.current { 
    background: #3b82f6 !important; 
    color: #ffffff !important; 
}

body[data-theme="dark"] .premium-pagination li .page-numbers.dots {
    background: transparent !important;
    color: #94a3b8 !important;
}


/* --- 4. Tradycyjna Paginacja Premium (Ostateczna naprawa Kadence) --- */
.premium-pagination {
    margin: 60px 0 100px 0 !important; 
    width: 100%;
    display: block; 
}

/* 1. Super-silny selektor z "body", wymuszający poziomą oś */
body .premium-pagination ul,
body .premium-pagination ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* 2. KRYTYCZNE: Odblokowanie "li" - zakaz rozciągania na 100% szerokości */
body .premium-pagination ul li,
body .premium-pagination ul.page-numbers li {
    display: flex !important;
    flex: 0 0 auto !important; /* Blokuje rozciąganie we Flexboxie */
    width: auto !important;    /* Kadence często narzuca tu width: 100% */
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;    /* Usuwa ewentualne łamanie wierszy (float) */
}

/* Wygląd pojedynczego przycisku paginacji (omijamy tag ul) */
body .premium-pagination li .page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

body .premium-pagination li .page-numbers:hover {
    background: #e2e8f0 !important;
    transform: translateY(-3px) !important;
}

body .premium-pagination li .page-numbers.current {
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3) !important;
}

body .premium-pagination li .page-numbers svg {
    display: block !important; 
}

body .premium-pagination li .page-numbers.dots {
    background: transparent !important;
    box-shadow: none !important;
    color: #64748b !important;
    width: auto !important;
    padding: 0 10px !important;
}

/* Responsywność dla Hero Archiwum i Paska Filtrów */
@media (max-width: 768px) {
    /* 1. Kompaktowe Hero - mniejsze marginesy i tytuł */
    .premium-archive-hero { padding: 100px 15px 40px 15px !important; }
    .archive-title { font-size: 1.9rem !important; margin-bottom: 0 !important; }
    .archive-breadcrumbs { font-size: 0.75rem; margin-bottom: 12px; }

    /* 2. Przewijany palcem pasek filtrów (Swipeable Row) */
    .premium-archive-filters-section { padding: 0 !important; }
    
    .archive-pills-wrapper {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Płynne przewijanie na iOS */
        padding: 15px 15px 20px 15px; 
        justify-content: flex-start !important; 
        gap: 10px;
        scrollbar-width: none; /* Ukrywa pasek w Firefox */
    }

    /* Ukrywa pasek przewijania w Chrome, Safari i Edge */
    .archive-pills-wrapper::-webkit-scrollbar { display: none; }

    /* 3. Kompaktowe pigułki dla lepszego klikania */
    .archive-pill, .archive-pill-dropdown summary.archive-pill {
        white-space: nowrap; 
        font-size: 0.85rem;
        padding: 8px 18px;
        flex-shrink: 0; 
    }

    /* Paginacja ze starego kodu */
    .premium-pagination .page-numbers { width: 42px; height: 42px; font-size: 1rem; }
}
/* =========================================
   20. PODMIANA LOGO W GŁÓWNYM NAGŁÓWKU (TYLKO DLA WPISÓW)
   ========================================= */

/* Wymuszenie nowego logo w trybie jasnym */
body.single-post .site-header img.custom-logo {
    /* Podmień poniższy adres URL na ścieżkę do Twojego nowego logo */
    content: url('/wp-content/uploads/2023/03/logo-adwentysci-lodz-pl-blue.png') !important;
    
}

/* Wymuszenie nowego logo w trybie ciemnym (jeśli potrzebujesz np. białego wariantu) */
body[data-theme="dark"].single-post .site-header img.custom-logo {
    /* Podmień poniższy adres URL na ścieżkę do wersji dla trybu ciemnego */
    content: url('/wp-content/uploads/2023/03/logo-adwentysci-lodz-pl-blue.png') !important;
}
/* =========================================
   21. POPRAWKI UI: KARTY I PAGINACJA
   ========================================= */

/* Wyciągamy pigułkę z kategorią wyżej, by można było w nią kliknąć */
.adwentysci-news-section .news-category-badge {
    z-index: 20 !important;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.adwentysci-news-section .news-category-badge:hover {
    transform: scale(1.05);
    background: #2563eb; /* Ciemniejszy niebieski na hover */
}
@media (max-width: 992px) {
    .ns-timeline-cat-badge { margin: 0 0 10px 0 !important; }
    .ns-timeline-title.premium-timeline-link { justify-content: flex-start !important; }
}
/* =========================================
   OŚ CZASU: DATA NAD KROPKĄ (PREMIUM)
   ========================================= */
.ns-timeline-date-above {
    position: absolute;
    top: -35px; /* Podnosi tekst ponad szarą linię osi */
    left: 50%;
    transform: translateX(-50%); /* Idealne centrowanie na środku kropki */
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

body[data-theme="dark"] .ns-timeline-date-above {
    color: #94a3b8;
}
/* =========================================
   NOWOCZESNA IKONA KALENDARZA W NAWIGACJI (MINIMALIZM)
   ========================================= */
.premium-nav-calendar-btn {
    background: transparent;
    border: none;
    color: #0f172a; /* Ciemny granat w trybie jasnym - tak samo jak słońce */
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}

/* Okrągłe, subtelne tło po najechaniu */
.premium-nav-calendar-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.premium-nav-calendar-btn svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s ease;
}

/* KRYTYCZNE: Wymuszenie stylów jak w przycisku Trybu Ciemnego */
.premium-nav-calendar-btn svg path {
    fill: none !important;             
    stroke: currentColor !important;   
    stroke-width: 2px !important;      
}

/* Efekt na hover (zostawiłem delikatne "bujnięcie" kalendarza) */
.premium-nav-calendar-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

/* --- Stan przycisku w Trybie Ciemnym --- */
body[data-theme="dark"] .premium-nav-calendar-btn {
    color: #f8fafc; /* Jasny kolor ikony w trybie ciemnym */
}

body[data-theme="dark"] .premium-nav-calendar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* =========================================
   22. STRONA KONTAKTOWA PREMIUM
   ========================================= */

.adwentysci-contact-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* --- 1. Split Layout 40/60 --- */
.contact-split-layout {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 60px;
    align-items: stretch;
}

/* --- 2. Lewa Kolumna (Informacje) --- */
.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-main-title {
    font-family: 'Montserrat', 'Urbanist', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0 0 15px 0 !important;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-glass-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-glass-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

.contact-icon {
    background: #e0f2fe;
    color: #0284c7;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
}

.contact-details p, .contact-details a {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover { color: #3b82f6; }
.contact-micro-text { font-size: 0.8rem; color: #94a3b8; display: block; margin-top: 5px; font-weight: 600; text-transform: uppercase; }

/* --- 3. Prawa Kolumna (Formularz Premium) --- */
.contact-form-column {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin-top: 70px;
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 30px 0 !important;
}

/* Animacja Pływających Etykiet (Floating Labels) */
.premium-floating-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.floating-group {
    position: relative;
    width: 100%;
}

.floating-group input, 
.floating-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    padding: 12px 0 8px 0;
    font-size: 1rem;
    color: #0f172a;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: none;
}

.floating-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* MAGIA CSS: Kiedy klikamy pole, LUB gdy pole NIE jest puste, przenieś label do góry */
.floating-group input:focus, 
.floating-group textarea:focus { border-bottom-color: #3b82f6; }

.floating-group input:focus ~ label, 
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label, 
.floating-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
}

/* RODO i Przycisk */
.form-gdpr {
    font-size: 0.8rem;
    color: #94a3b8;
}
.form-gdpr a { color: #3b82f6; text-decoration: underline; }

.premium-submit-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.premium-submit-btn:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.3);
}

/* --- 4. Zoptymalizowana Mapa (Fasada) --- */
.contact-map-facade {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: #e2e8f0; /* Kolor zastępczy przed załadowaniem obrazka */
}

.facade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.contact-map-facade:hover .facade-image {
    transform: scale(1.05); /* Delikatne przybliżenie mapy na hover */
}

.facade-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.3); /* Ciemny overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.contact-map-facade:hover .facade-overlay {
    background: rgba(15, 23, 42, 0.5); /* Ciemniejszy overlay na hover */
}

.facade-btn {
    background: #ffffff;
    color: #0f172a;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.facade-btn svg { width: 20px; height: 20px; color: #3b82f6; }

.facade-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
}
.facade-btn:hover svg { color: #ffffff; }

/* --- 5. Responsywność --- */
@media (max-width: 992px) {
    .contact-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-column { padding: 30px 20px; }
    .contact-main-title { font-size: 2.4rem; }
    .premium-submit-btn { width: 100%; text-align: center; justify-content: center; }
}

/* --- 6. Tryb Ciemny (Kadence Dark Mode) --- */
body[data-theme="dark"] .contact-main-title,
body[data-theme="dark"] .form-title,
body[data-theme="dark"] .contact-details h4,
body[data-theme="dark"] .contact-form-column input,
body[data-theme="dark"] .contact-form-column textarea { color: #ffffff !important; }

body[data-theme="dark"] .contact-subtitle,
body[data-theme="dark"] .contact-details p,
body[data-theme="dark"] .contact-details a { color: #cbd5e1; }

body[data-theme="dark"] .contact-glass-card { 
    background: rgba(30, 41, 59, 0.6); 
    border-color: rgba(255, 255, 255, 0.05); 
}
body[data-theme="dark"] .contact-icon { background: rgba(59, 130, 246, 0.15); }

body[data-theme="dark"] .contact-form-column { 
    background: #1e293b; 
    border-color: rgba(255, 255, 255, 0.05); 
}

/* Dostosowanie dolnego obramowania pól Kadence w trybie ciemnym */
body[data-theme="dark"] .contact-form-column input,
body[data-theme="dark"] .contact-form-column textarea { border-bottom-color: #334155 !important; }

body[data-theme="dark"] .premium-submit-btn { background: #3b82f6; }
body[data-theme="dark"] .premium-submit-btn:hover { background: #2563eb; }

/* =========================================
   22B. HERO KONTAKTOWE (CIEMNY GRADIENT)
   ========================================= */

.premium-contact-hero {
    position: relative;
    width: 100%;
    /* Górny padding odsunięty tak samo jak w Archiwum pod przyklejone menu */
    padding: 140px 20px 100px 20px; 
    /* Identyczny ciemny gradient premium */
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.contact-hero-title {
    font-family: 'Montserrat', 'Urbanist', sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff; /* Biały tekst dla kontrastu z ciemnym tłem */
    margin: 0 0 20px 0 !important;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1; /* Bardzo jasny szary, miły dla oka */
    line-height: 1.6;
    margin: 0;
}

/* KOREKTA: Zmniejszamy trochę górny margines sekcji z kartami i formularzem,
   aby nie było zbyt dużej pustej przestrzeni pod nowym nagłówkiem */
.adwentysci-contact-wrapper {
    margin-top: -30px !important; 
    position: relative;
    z-index: 10;
}

/* Zapewnienie dobrego wyglądu napisów na urządzeniach mobilnych */
@media (max-width: 768px) {
    /* PREMIUM: Znacznie mniejszy tytuł i dopasowany podtytuł */
    .contact-hero-title {
        font-size: 1.7rem !important;
        margin-bottom: 12px !important;
    }
    .contact-hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
    
    /* PREMIUM: Zwiększamy dolny padding (z 60px na 90px), by ciemne tło zeszło niżej i dało miejsce kartom */
    .premium-contact-hero {
        padding: 100px 15px 90px 15px !important;
    }
    
    /* PREMIUM: Odsunięcie kart od tekstu i zmniejszenie bocznych marginesów */
    .adwentysci-contact-wrapper {
        margin-top: -40px !important;
        gap: 30px !important; /* Zmniejsza gigantyczną lukę między kartami a formularzem */
        padding: 0 15px !important;
    }
    
    /* PREMIUM: Formularz nie musi tak mocno odstawać od kart z adresem na telefonie */
    .contact-form-column {
        margin-top: 10px !important;
    }
}
/* =========================================
   23. PREMIUM PRELOADER
   ========================================= */
#premium-page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f8fafc;
    z-index: 9999999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}


body[data-theme="dark"] #premium-page-preloader {
    background-color: #0f172a;
}

/* Nowoczesny, minimalistyczny kręciołek (Spinner) */
.preloader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(59, 130, 246, 0.15); /* Półprzezroczysty niebieski */
    border-top-color: #3b82f6; /* Twój główny akcent */
    border-radius: 50%;
    animation: preloader-spin 0.8s linear infinite;
}

@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}

/* Klasa, którą wstrzyknie JavaScript, by ukryć preloader */
#premium-page-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* =========================================
   STRONA WSPARCIA (PREMIUM FINTECH)
   ========================================= */

/* --- 1. Minimalistyczne Hero --- */
.support-hero {
    position: relative;
    width: 100%;
    padding: 120px 20px 80px 20px; 
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    text-align: center;
    margin-bottom: 60px;
}

.support-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0 !important;
    line-height: 1.2;
}

.support-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #cbd5e1;
    margin: 0;
}

/* --- 2. Karty Bankowe Fintech --- */
.support-cards-section {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    margin-top: -100px; /* Wyciągamy karty na Hero */
    position: relative;
    z-index: 10;
}

.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.fintech-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 70px;
}

.fintech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.12);
}

.fintech-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.fintech-icon {
    background: #f0f9ff;
    color: #0ea5e9;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fintech-icon svg { width: 28px; height: 28px; }

.fintech-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 !important;
}

.fintech-account-wrapper { margin-bottom: 30px; }

.fintech-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.fintech-account-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    letter-spacing: 1px;
}

.mono-block { display: inline-block; }

.fintech-copy-btn {
    width: 100%;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #334155;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fintech-copy-btn svg { width: 20px; height: 20px; }

.fintech-copy-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f9ff;
}

.fintech-copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* --- 3. Kategoryzacja Funduszy (Underline Tabs) --- */
.support-funds-section {
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.funds-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 50px !important; /* Zwiększony margines oddzielający tytuł od zakładek (z 30px na 50px) */
}

.fintech-tabs-header {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
}

.fintech-tab-btn {
    background-color: transparent !important; /* Wymuszenie przezroczystości */
    border: none;
    padding: 0 0 15px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

/* KRYTYCZNE: Zabezpieczenie przed brzydkim tłem ze stylów Kadence przy najechaniu, kliknięciu lub aktywnym stanie */
.fintech-tab-btn:hover,
.fintech-tab-btn:focus,
.fintech-tab-btn.active {
    background-color: transparent !important; 
    outline: none !important;
}

.fintech-tab-btn:hover { color: #0f172a; }

.fintech-tab-btn.active { color: #3b82f6; }

.fintech-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.fintech-tab-btn.active::after { transform: scaleX(1); }

.fintech-tab-pane {
    display: none;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

.fintech-tab-pane.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 4. Społeczny Dowód (Partnerzy Premium) --- */
.support-partners-section {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    text-align: center;
}

.partners-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 30px !important;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 20px !important;
}

.partner-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}
.fintech-tabs-wrapper {
    margin-top: 50px !important;
}
.partner-logo-link:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    /* PREMIUM: Mniejszy tytuł, dopasowany podtytuł i spójny padding ciemnego tła */
    .support-hero { padding: 100px 15px 90px 15px !important; }
    .support-hero-title { font-size: 1.7rem !important; margin-bottom: 12px !important; }
    .support-hero-subtitle { font-size: 0.95rem !important; padding: 0 10px; }

    .support-cards-grid { grid-template-columns: 1fr; }
    .support-cards-section { margin-top: -40px; }
    .fintech-tabs-header { flex-direction: column; gap: 15px; border-bottom: none; }
    .fintech-tab-btn { border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
    .fintech-account-number { font-size: 1.1rem; }
}

/* --- TRYB CIEMNY (KADENCE DARK MODE) --- */
body[data-theme="dark"] .fintech-card { background: rgba(30, 41, 59, 0.8); border-color: rgba(255, 255, 255, 0.05); }
body[data-theme="dark"] .fintech-title, body[data-theme="dark"] .funds-heading { color: #ffffff; }
body[data-theme="dark"] .fintech-account-number { background: rgba(15, 23, 42, 0.6); color: #f8fafc; border-color: rgba(255, 255, 255, 0.1); }
body[data-theme="dark"] .fintech-copy-btn { border-color: rgba(255, 255, 255, 0.1); color: #cbd5e1; }
body[data-theme="dark"] .fintech-copy-btn:hover { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: #3b82f6; }
body[data-theme="dark"] .fintech-copy-btn.copied { background: #059669; border-color: #059669; color: #ffffff; }
body[data-theme="dark"] .fintech-icon { background: rgba(59, 130, 246, 0.15); }
body[data-theme="dark"] .fintech-tab-btn { color: #94a3b8; }
body[data-theme="dark"] .fintech-tab-btn:hover { color: #ffffff; }
body[data-theme="dark"] .fintech-tab-btn.active { color: #60a5fa; }
body[data-theme="dark"] .fintech-tabs-header { border-color: rgba(255, 255, 255, 0.1); }
body[data-theme="dark"] .fintech-tab-pane { color: #cbd5e1; }

/* =========================================
   22. SZABLON "DLA GOŚCI" (PLAN WIZYTY)
   ========================================= */

.guest-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    background-color: #f8fafc; /* Delikatne tło dla całej strony, na którym wybije się biel kart */
    padding-bottom: 80px;
}

/* --- 1. HERO --- */
.guest-hero {
    position: relative;
    width: 100%;
    padding: 160px 20px 120px 20px;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.guest-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Jeśli chcesz wrzucić tu zdjęcie ze zboru, podmień URL i odkomentuj: */
    /* background: url('/wp-content/uploads/rok/miesiac/twoje-zdjecie.jpg') center/cover; */
    /* opacity: 0.3; */
    /* filter: blur(10px); */
    z-index: 1;
}

.guest-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.guest-title {
    font-family: 'Montserrat', 'Urbanist', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guest-title .highlight {
    color: #3b82f6; /* Błękitny akcent */
}

.guest-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Wspólne nagłówki sekcji */
.guest-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.guest-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.guest-section .section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.guest-section .section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* --- 2. OŚ CZASU (3 Kolumny) --- */
.guest-timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.timeline-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.timeline-icon {
    width: 60px; height: 60px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.timeline-icon svg { width: 30px; height: 30px; }
.timeline-time { display: inline-block; font-weight: 800; color: #3b82f6; background: rgba(59, 130, 246, 0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 15px; }
.timeline-heading { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: #0f172a; margin-bottom: 15px; }
.timeline-box p { color: #475569; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* --- 3. KARTA DLA RODZIN (Glassmorphism) --- */
.guest-family-section {
    padding-top: 0; /* Zbliżenie do osi czasu */
}

.guest-glass-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Wzór tła dla wzmocnienia wrażenia premium */
.guest-glass-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    border-radius: 50%; transform: translate(30%, -30%); z-index: 0;
}

.glass-icon {
    flex-shrink: 0;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 24px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    position: relative; z-index: 1;
}

.glass-icon svg { width: 40px; height: 40px; }

.glass-content { position: relative; z-index: 1; }
.glass-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.glass-content p { font-size: 1.05rem; color: #475569; line-height: 1.7; margin: 0; }

/* --- 4. FAQ AKORDEON --- */
.guest-faq-section {
    max-width: 900px;
}

.guest-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.faq-question {
    padding: 20px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Ukrywa strzałkę w nowoczesnych przeglądarkach */
}

.faq-question::-webkit-details-marker { display: none; /* Ukrywa strzałkę w Safari */ }

.faq-icon {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-answer {
    padding: 0 25px 25px 25px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    animation: fadeIn 0.4s ease-in-out;
}

.faq-answer p { margin-bottom: 15px; }
.faq-answer p:last-child { margin-bottom: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 5. CTA BOTTOM --- */
.guest-cta-section {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.cta-content {
    background: #0f172a;
    border-radius: 24px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.cta-text h2 { font-family: 'Montserrat', sans-serif; color: #ffffff; font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.cta-text p { color: #94a3b8; font-size: 1.05rem; margin: 0; }

/* Przyciski */
.guest-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guest-btn.solid-btn { background: #3b82f6; color: #ffffff; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.guest-btn.solid-btn:hover { background: #2563eb; transform: translateY(-3px); }

.guest-btn.outline-btn { background: transparent; color: #3b82f6; border: 2px solid #3b82f6; }
.guest-btn.outline-btn:hover { background: #3b82f6; color: #ffffff; }

/* --- RESPONSOWNOŚĆ --- */
@media (max-width: 992px) {
    .guest-timeline-grid { grid-template-columns: 1fr; }
    .cta-content { flex-direction: column; text-align: center; gap: 30px; padding: 40px 30px; }
    .guest-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* PREMIUM: Zmniejszenie fontów i dostosowanie tła identycznie jak w sekcji Kontakt */
    .guest-hero { padding: 100px 15px 90px 15px !important; }
    .guest-title { font-size: 1.7rem !important; margin-bottom: 12px !important; }
    .guest-subtitle { font-size: 0.95rem !important; padding: 0 10px; }

    .guest-glass-card { flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
}

/* --- WSPARCIE DLA TRYBU CIEMNEGO --- */
body[data-theme="dark"] .guest-page-wrapper { background-color: #020617; }
body[data-theme="dark"] .guest-section .section-header h2, body[data-theme="dark"] .timeline-heading, body[data-theme="dark"] .glass-content h3, body[data-theme="dark"] .faq-question { color: #ffffff; }
body[data-theme="dark"] .timeline-box, body[data-theme="dark"] .faq-item { background: rgba(15, 23, 42, 0.6); border-color: rgba(255,255,255,0.05); }
body[data-theme="dark"] .guest-glass-card { background: rgba(15, 23, 42, 0.8); border-color: rgba(255,255,255,0.1); }
body[data-theme="dark"] .guest-section p, body[data-theme="dark"] .faq-answer { color: #cbd5e1; }
body[data-theme="dark"] .timeline-icon { background: rgba(59, 130, 246, 0.1); }

/* title page */
.entry-hero-container-inner {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
}
header.entry-header.page-title.title-align-inherit.title-tablet-align-inherit.title-mobile-align-inherit h1 {
    color: #d7d7d7 !important;
    font-size: 2.4rem !important; 
        padding: 80px 0px 100px 0px !important;
}

/* =========================================
   OBSŁUGA KLIKALNOŚCI CAŁYCH KART
   ========================================= */
/* Niewidzialna warstwa klikalna rozciągnięta na cały kafel */
.global-card-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    text-decoration: none;
}

/* Teksty przepuszczają kliknięcie (pointer-events: none) */
.hero-content, .glass-content {
    position: relative;
    z-index: 15;
    pointer-events: none;
}

/* Tagi łapią kliknięcia zanim polecą niżej (pointer-events: auto) */
.glass-categories {
    position: relative;
    z-index: 20; 
    pointer-events: auto; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 10px;
}
/* =========================================
   SEKCJA VOD (Transmisje na żywo)
   ========================================= */
.adwentysci-vod-wrapper {
    width: 100vw; /* Na całą szerokość ekranu */
    margin-left: calc(-50vw + 50%); /* Wyrwanie na pełną szerokość z Kadence */
   background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif; /* Wymuszenie fontu */
    color: #ffffff;
    box-shadow: inset 0 20px 30px -10px rgba(0,0,0,0.5); /* Cień rzucany z górnego brzegu (oddziela jasną sekcję) */
    padding-bottom: 140px;
}

.adwentysci-vod-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vod-header {
    text-align: left; /* Wyrównanie do lewej strony - nowoczesny kinowy standard */
}

.vod-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 20px 0; /* Margines oddzielający od podtytułu */
    padding-bottom: 15px; /* Fizyczne miejsce "wewnątrz" nagłówka na nasz pasek */
    color: #ffffff !important;
    letter-spacing: -0.5px;
    position: relative;
    display: block; /* ZMIANA: Usunięto inline-block, co zapobiegnie nakładaniu */
}

.vod-subtitle {
    font-size: 1.1rem;
    color: #94a3b8; 
    margin: 0; /* ZMIANA: Wyzerowany margines, odstęp kontroluje teraz vod-title */
    font-weight: 400;
}

/* Upewnienie się, że sam player dostanie nasz kinowy cień */
.vod-player-container {
    width: 100%;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
}
#yottie_1 .yottie-widget-feed-section-slide {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
}

/* --- Responsywność dla sekcji VOD --- */
@media (max-width: 768px) {
    /* PREMIUM: Mniejsze marginesy wewnętrzne na telefonach */
    .adwentysci-vod-wrapper {
        padding: 60px 15px 80px 15px; 
    }
    
    /* PREMIUM: Zmniejszenie luki pomiędzy tekstem a playerem */
    .adwentysci-vod-container {
        gap: 30px; 
    }

    /* PREMIUM: Wyśrodkowanie nagłówka na ekranach mobilnych */
    .vod-header {
        text-align: center; 
    }

    /* PREMIUM: Zmniejszenie rozmiaru czcionki i marginesów dla tytułu */
    .vod-title {
        font-size: 1.8rem; 
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    /* PREMIUM: Delikatne pomniejszenie i wyśrodkowanie podtytułu */
    .vod-subtitle {
        font-size: 1rem; 
        line-height: 1.5;
        margin: 0 auto;
        max-width: 90%; /* Zapobiega rozciąganiu tekstu od krawędzi do krawędzi */
    }
}
#yottie_1 .yottie-widget-feed-section-slide {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%) !important;
}

/* =========================================
   23. SZABLON "O NAS" (MISJA, STRUKTURA, HISTORIA)
   ========================================= */

.about-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: #334155;
    background-color: #ffffff;
    padding-bottom: 60px;
}

/* --- HERO O NAS --- */
.about-hero {
    position: relative;
    width: 100%;
    padding: 160px 20px 120px 20px;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.about-title {
    font-family: 'Montserrat', 'Urbanist', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* --- OGÓLNE SEKCJE --- */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-section .section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.about-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- KARTA GLASSMORPHISM --- */
.about-glass-card {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.about-glass-card .glass-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 20px;
}

.about-glass-card .glass-icon svg { width: 30px; height: 30px; }
.about-glass-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.about-glass-card p { font-size: 1rem; color: #475569; line-height: 1.7; margin: 0; }

/* --- LISTA STRUKTURY --- */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.styled-list li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- HISTORIA AKORDEON (Używamy stylów z faq-item) --- */
.history-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #475569;
}

/* --- RESPONSOWNOŚĆ --- */
@media (max-width: 992px) {
    .about-grid-2col { grid-template-columns: 1fr; gap: 40px; }
    .about-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .about-hero { padding: 120px 20px 80px 20px; }
    .about-glass-card { padding: 30px; }
}

/* --- TRYB CIEMNY KADENCE --- */
body[data-theme="dark"] .about-page-wrapper { background-color: #020617; }
body[data-theme="dark"] .about-section .section-heading, body[data-theme="dark"] .about-glass-card h3 { color: #ffffff; }
body[data-theme="dark"] .about-text-content p, body[data-theme="dark"] .styled-list li, body[data-theme="dark"] .history-content p { color: #cbd5e1; }
body[data-theme="dark"] .about-glass-card { background: rgba(15, 23, 42, 0.8); border-color: rgba(255,255,255,0.1); }
.ns-agendas-wrapper {
    margin-top: 120px;
}
/* --- PRZYCISK O NAS --- */
.about-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px; /* Odstęp od tekstu powyżej */
}

.about-btn.solid-btn {
    background: #3b82f6; /* Główny kolor akcentu */
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); /* Miękki cień */
}

.about-btn.solid-btn:hover {
    background: #2563eb; /* Przyciemnienie po najechaniu */
    transform: translateY(-3px); /* Efekt uniesienia */
}

/* --- WSPARCIE DLA TRYBU CIEMNEGO --- */
body[data-theme="dark"] .about-btn.solid-btn {
    color: #ffffff !important;
}
/* --- TŁO SEKCJI STRUKTURY (Zamiast stylu liniowego) --- */
.about-structure-section {
    background-color: #f1f5f9; /* Jasny szary w trybie domyślnym */
}

/* --- WSPARCIE DLA TRYBU CIEMNEGO --- */
body[data-theme="dark"] .about-structure-section {
    background-color: rgba(255, 255, 255, 0.03); /* Bardzo delikatne odcięcie od ciemnego tła reszty strony */
}