/* ==========================================================================
   PANEL DOSTĘPNOŚCI - KOMPLETNY STYL
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body {
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px; /* Optymalna wielkość dla systemów danych */
    -webkit-font-smoothing: antialiased;
    font-weight: 100;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.separator{
    height:1px;
    background:#ccc;
    margin:2rem 0;
}
/* 2. Ukrycie poziomego przewijania - "gilotyna" */


p {
    line-height: 1.4;
}
.text-red{color:#c00000;}
/* 1. PRZYCISK WYWOŁUJĄCY (TRIGGER) */
*, *::before, *::after {
    box-sizing: border-box;
}
a {
    text-decoration: none !important;
}
/* Nagłówki */
h1, .h1 {
    font-size: 2.3rem;    /* ok. 40px */
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2, .h2 {
    font-size: 2rem;      /* ok. 32px */
    font-weight: 300;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3, .h3 {
    font-size: 1.5rem;    /* ok. 24px */
    font-weight: 300;
    margin-bottom: 1rem;
}

h4, .h4 {
    font-size: 1.25rem;   /* ok. 20px */
    font-weight: 600;
    margin-bottom: .8rem;
    margin-top: 1rem;
}

h5, .h5 {
    font-size: 1.1rem;    /* ok. 18px */
    font-weight: 600;
    letter-spacing: 0.5px;
}

h6, .h6 {
    font-size: 0.9rem;      /* 16px */
    font-weight: 500;
    color: #6c757d;
}
small {
    display: inline-block; /* To odblokowuje pełne działanie line-height i marginów */
    line-height: 1.2;
}
/* Upewnienie się, że po najechaniu myszką podkreślenie nie wróci */
a:hover, a:focus, a:active {
    text-decoration: none !important;
}

.accessibility-trigger {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 60px !important;
    border-radius: 15px 0 0 15px !important;
    background-color: #002d5d !important;
    color: #ffffff !important;
    border: 2px solid #ffc107 !important;
    border-right: none !important;
    z-index: 10005 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease-in-out !important;
}

.accessibility-trigger:hover {
    width: 65px !important;
    background-color: #ffc107 !important;
    color: #002d5d !important;
}

.accessibility-trigger i {
    font-size: 1.8rem !important;
    font-style: normal !important;
}

/* 2. PANEL OFF-CANVAS (BOOSTRAP) */
#accessibilityPanel {
    z-index: 10004 !important;
}

/* 3. TRYBY KONTRASTU - WERSJA "PANCERNA" */

/* --- TRYB ŻÓŁTY (Yellow Mode) --- */
body.yellow-mode {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

/* Wymuszenie żółtego tła na WSZYSTKICH elementach strony */
body.yellow-mode #page-wrapper,
body.yellow-mode #page-wrapper *, 
body.yellow-mode .hero-portal,
body.yellow-mode .card,
body.yellow-mode .navbar,
body.yellow-mode footer,
body.yellow-mode section,
body.yellow-mode div {
    background-color: #ffff00 !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* --- TRYB CZARNY (High Contrast) --- */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

/* Wymuszenie czarnego tła na WSZYSTKICH elementach strony */
body.high-contrast #page-wrapper,
body.high-contrast #page-wrapper *,
body.high-contrast .hero-portal,
body.high-contrast .card,
body.high-contrast .navbar,
body.high-contrast footer,
body.high-contrast section,
body.high-contrast div {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

/* Linki w kontrastach */
body.yellow-mode a { color: #000 !important; text-decoration: underline !important; font-weight: bold !important; }
body.high-contrast a { color: #ffff00 !important; text-decoration: underline !important; font-weight: bold !important; }

/* Wyjątek dla przycisku zamykania panelu (żeby nie zniknął) */
body.yellow-mode .btn-close-white, body.high-contrast .btn-close-white {
    filter: invert(1) !important;
}

/* 4. DODATKI (CZCIONKA, LINKI, UKRYWANIE) */
body.underline-links a { 
    text-decoration: underline !important; 
    text-underline-offset: 4px;
}

body.dyslexic-font, body.dyslexic-font * { 
    font-family: 'OpenDyslexic', sans-serif !important; 
}

body.hide-bg img, 
body.hide-bg .post-featured-image, 
body.hide-bg .card-img-top, 
body.hide-bg [style*="background-image"] { 
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 5. FILTRY DALTONIZMU (WARSTWA ::BEFORE) */
body.protanopia::before, 
body.deuteranopia::before, 
body.tritanopia::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9998;
    pointer-events: none;
    display: block;
}

body.protanopia::before { backdrop-filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="f"><feColorMatrix type="matrix" values="0.567, 0.433, 0, 0, 0, 0.558, 0.442, 0, 0, 0, 0, 0.242, 0.758, 0, 0, 0, 0, 0, 1, 0"/></filter></svg>#f'); }
body.deuteranopia::before { backdrop-filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="f"><feColorMatrix type="matrix" values="0.625, 0.375, 0, 0, 0, 0.7, 0.3, 0, 0, 0, 0, 0.3, 0.7, 0, 0, 0, 0, 0, 1, 0"/></filter></svg>#f'); }
body.tritanopia::before { backdrop-filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="f"><feColorMatrix type="matrix" values="0.95, 0.05, 0, 0, 0, 0, 0.433, 0.567, 0, 0, 0, 0.475, 0.525, 0, 0, 0, 0, 0, 1, 0"/></filter></svg>#f'); }

/* --- BEZPIECZNY I WYRAŹNY FOCUS DLA KONTRASTÓW --- */

/* 1. Globalna zasada: Gruba ramka dla każdego elementu (linki, guziki, inputy) */
body.yellow-mode *:focus,
body.high-contrast *:focus {
    outline: 5px solid currentColor !important;
    outline-offset: 3px !important;
    background-color: transparent !important; /* Gwarantuje, że tło nie zasłoni tekstu */
    text-decoration: underline !important;   /* Dodatkowe wyróżnienie dla tekstu */
    box-shadow: none !important;
}

/* 2. Fix dla Hovera (najechanie myszką) - musi być tak samo wyraźny jak focus */
body.yellow-mode .nav-link:hover,
body.high-contrast .nav-link:hover,
body.yellow-mode .dropdown-item:hover,
body.high-contrast .dropdown-item:hover {
    outline: 3px dashed currentColor !important;
    outline-offset: 2px !important;
    background-color: transparent !important;
    color: currentColor !important;
}

/* 3. Naprawa Dropdownów (żeby napisy w menu nie znikały) */
body.yellow-mode .dropdown-menu, 
body.high-contrast .dropdown-menu {
    background-color: inherit !important; /* Dziedziczy żółty lub czarny z body */
    border: 3px solid currentColor !important;
}

body.yellow-mode .dropdown-item, 
body.high-contrast .dropdown-item {
    color: currentColor !important;
}

/* 4. Specyficzna poprawka dla Twojego przycisku CTA w menu */
body.yellow-mode .btn-nav-cta,
body.high-contrast .btn-nav-cta {
    border: 2px solid currentColor !important;
    background: transparent !important;
    color: currentColor !important;
}
/* --- FIX DLA PODMENU (DROPDOWN) W KONTRASTACH --- */

/* Tryb Żółty */
body.yellow-mode .dropdown-menu {
    background-color: #ffff00 !important;
    border: 3px solid #000000 !important;
    border-radius: 0 !important; /* WCAG lubi ostre, wyraźne krawędzie */
}

body.yellow-mode .dropdown-item {
    color: #000000 !important;
    background-color: #ffff00 !important;
}

/* Tryb Czarny */
body.high-contrast .dropdown-menu {
    background-color: #000000 !important;
    border: 3px solid #ffff00 !important;
    border-radius: 0 !important;
}

body.high-contrast .dropdown-item {
    color: #ffff00 !important;
    background-color: #000000 !important;
}

/* Efekt najechania (Hover) wewnątrz podmenu - Inwersja */
body.yellow-mode .dropdown-item:hover, 
body.yellow-mode .dropdown-item:focus {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast .dropdown-item:hover, 
body.high-contrast .dropdown-item:focus {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

/* Naprawa strzałki w dropdownie (jeśli występuje) */
body.yellow-mode .dropdown-toggle::after { border-top-color: #000 !important; }
body.high-contrast .dropdown-toggle::after { border-top-color: #ffff00 !important; }

/* --- HAMBURGER MENU W KONTRASTACH --- */

/* Tryb Żółty */
body.yellow-mode .navbar-toggler {
    border: 3px solid #000000 !important;
    background-color: #ffff00 !important;
}
body.yellow-mode .navbar-toggler-icon {
    /* Filtr zmieniający domyślny biały/niebieski hamburger na czarny */
    filter: brightness(0) !important;
}

/* Tryb Czarny (High Contrast) */
body.high-contrast .navbar-toggler {
    border: 3px solid #ffff00 !important;
    background-color: #000000 !important;
}
body.high-contrast .navbar-toggler-icon {
    /* Filtr zmieniający hamburger na żółty */
    filter: invert(90%) sepia(100%) saturate(500%) hue-rotate(10deg) !important;
}

/* --- PRZYCISKI W OFFCANVAS --- */

/* Wspólne dla obu trybów wewnątrz panelu */
body.yellow-mode .offcanvas *, 
body.high-contrast .offcanvas * {
    border-color: currentColor !important;
}

/* Specyficzne dla trybu żółtego */
body.yellow-mode .offcanvas .btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.yellow-mode .offcanvas .btn:hover {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

/* Specyficzne dla trybu czarnego */
body.high-contrast .offcanvas .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

body.high-contrast .offcanvas .btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

/* Przycisk zamknięcia (X) w Offcanvas */
body.yellow-mode .offcanvas .btn-close {
    filter: brightness(0) !important;
    opacity: 1 !important;
}
body.high-contrast .offcanvas .btn-close {
    filter: invert(1) !important;
    opacity: 1 !important;
}
body.yellow-mode .hamburger-inner, 
body.yellow-mode .hamburger-inner::before, 
body.yellow-mode .hamburger-inner::after {
    background-color: #000 !important;
}

body.high-contrast .hamburger-inner, 
body.high-contrast .hamburger-inner::before, 
body.high-contrast .hamburger-inner::after {
    background-color: #ff0 !important;
}
/* --- SKALOWANIE TEKSTU --- */

/* Standard to 1rem (zazwyczaj 16px) */

body.font-lg, body.font-lg * {
    font-size: 1.15rem !important; /* Powiększenie o ok. 15% */
}

body.font-xl, body.font-xl * {
    font-size: 1.3rem !important; /* Powiększenie o ok. 30% */
}

/* Wyjątek: Ikony i logo muszą mieć swoją wagę */
body.font-lg .logo-icon, body.font-lg i { font-size: 1.4rem !important; }
body.font-xl .logo-icon, body.font-xl i { font-size: 1.7rem !important; }

/* Zapobieganie nachodzeniu na siebie linii przy dużym tekście */
body.font-lg, body.font-xl {
    line-height: 1.6 !important; 
}
/* Ukrywamy link poza ekranem */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107; /* Kolor TechNGO */
    color: #002d5d;
    padding: 10px 20px;
    z-index: 100000; /* Musi być nad wszystkim */
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    transition: top 0.3s;
}

/* Pokazujemy link, gdy otrzyma focus (klawisz Tab) */
.skip-link:focus {
    top: 0;
    outline: 3px solid #000;
}

/* Obsługa w trybach kontrastu */
body.high-contrast .skip-link {
    background: #ffff00;
    color: #000;
}

body.yellow-mode .skip-link {
    background: #000;
    color: #ffff00;
}



:root {
    --ngo-blue: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #002d5d 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Nowoczesna karta wpisu */
.portal-card {
    border: 1px solid #edf2f7;
    background: #ffffff;
    border-radius: 15px; /* Większe zaokrąglenie dla nowoczesności */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--ngo-blue);
}
.portal-card a:focus-visible {
  outline: none; /* usuwamy domyślny focus na tekście */
}

.portal-card a:focus-visible::after {
  content: ""; /* musi być content, inaczej pseudo-element nie istnieje */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #005fcc;
  pointer-events: none; /* żeby nie blokowało kliknięć */
  box-sizing: border-box;
  border-radius: 0.5rem; /* jeśli chcesz zaokrąglone rogi karty */
}
/* Obrazek z subtelnym przyciemnieniem */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 0); /* Fix dla zaokrągleń w Safari */
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
    opacity: 0;
    transition: 0.3s;
}

.portal-card:hover .card-img-wrapper::after {
    opacity: 1;
}

/* Tag/Badge w stylu "Glass" */
.badge-tech {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--ngo-blue);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}
/* --- NOWE HERO PREMIUM --- */
.hero-portal {
    min-height: 500px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 8px solid var(--ngo-yellow);
}

/* Subtelny wzór techniczny (Grid) w tle */
.hero-portal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Dekoracyjna łuna światła */
.hero-portal::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.4) 0%, transparent 70%);
    z-index: 2;
    filter: blur(50px);
}

.hero-portal .container {
    position: relative;
    z-index: 10; /* Nad tłem i wzorem */
}

/* Stylizacja tekstu w Hero */
.hero-portal h1 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-portal .lead {
    font-size: 1.25rem;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.85);
}

/* Przyciski w Hero */
.btn-lg {
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 12px; /* Nowoczesne, niezbyt okrągłe, ale nie ostre */
}



.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Element wizualny po prawej (Placeolder dla grafiki) */
.hero-visual-element {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* RESET I PODSTAWA */
nav.navbar-modern {
    transition: all 0.4s ease-in-out !important;
    padding: 20px 0 !important;
    background: transparent !important; /* Startowo przezroczyste */
}

/* STAN PO SCROLLU */
nav.navbar-modern.scrolled {
    padding: 10px 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* LOGO */
.logo-icon {
    display: inline-block !important;
    background: #ffc107 !important; /* var(--ngo-yellow) */
    color: #002d5d !important;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 6px;
    transform: skewX(-10deg);
}

.logo-text {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.4rem;
    margin-left: 10px;
}

nav.navbar-modern.scrolled .logo-text {
    color: #002d5d !important;
}

/* LINKI */
nav.navbar-modern .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 1rem;
    padding: 10px 15px !important;
    background: none !important;
}

nav.navbar-modern.scrolled .nav-link {
    color: #2d3436 !important;
}

nav.navbar-modern .nav-link:hover {
    color: #ffc107 !important;
}

/* PRZYCISK CTA */
.btn-nav-cta {
    background: #ffc107 !important;
    color: #002d5d !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    border: none !important;
}
/* 1. PASEK DOSTĘPNOŚCI - Zawsze na samej górze, statyczny */
.accessibility-bar {
    position: relative;
    z-index: 1100;
    height: 40px; /* Sztywna wysokość ułatwia obliczenia */
    display: flex;
    align-items: center;
}

/* 2. MENU - Stałe, białe, przyklejane (Sticky) */
nav.navbar-modern {
    background: #ffffff !important;
    position: sticky !important;
    top: 0; /* Przyklei się do góry ekranu zaraz po tym, jak zniknie pasek dostępności */
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 3. LOGO I LINKI - Zawsze ciemne dla czytelności */
.logo-icon {
    display: inline-block !important;
    background: #ffc107 !important;
    color: #002d5d !important;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 6px;
    transform: skewX(-10deg);
}

.logo-text {
    color: #002d5d !important;
    font-weight: 800;
    font-size: 1.4rem;
    margin-left: 10px;
}

nav.navbar-modern .nav-link {
    color: #2d3436 !important;
    font-weight: 600 !important;
    padding: 8px 15px !important;
    font-size: 1.1rem;
}

nav.navbar-modern .nav-link:hover {
    color: #0056b3 !important;
}

/* 4. HAMBURGER - Zawsze ciemny (bo tło menu jest białe) */
.hamburger-box {
    width: 30px; height: 24px; display: inline-block; position: relative;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px; height: 3px; 
    background-color: #002d5d !important; /* Ciemny kolor */
    position: absolute; border-radius: 4px; transition: 0.3s;
}
.hamburger-inner { top: 50%; }
.hamburger-inner::before { content: ""; top: -8px; left: 0; }
.hamburger-inner::after { content: ""; top: 8px; left: 0; }

/* Animacja X */
.navbar-toggler:not(.collapsed) .hamburger-inner { background: transparent !important; }
.navbar-toggler:not(.collapsed) .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* 5. HERO - Dopasowany odstęp */
.hero-portal {
    /* Skoro menu jest sticky i nie "pływa" nad treścią, wystarczy standardowy padding */
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* 6. KONTROLKI KONTRASTU */
.contrast-controls button {
    border-radius: 4px;
    font-weight: bold;
    padding: 2px 8px;
    border: 1px solid #fff;
    transition: 0.2s;
}
/* Dodajemy .hero-portal przed klasą, żeby wymusić priorytet */
.hero-portal .glass-card {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px); /* Dla Safari */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
}

.hero-portal .glass-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3) !important;
    z-index: 10;
}
/* Klucz do efektu wow - różne czasy animacji dla każdej karty */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-slow { animation: float 7s ease-in-out infinite; }
.animate-float-fast { animation: float 4s ease-in-out infinite; }

/* Subtelny cień pod grafiką */
.hero-visual-element::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 1;
}


/* Wyłączamy efekty wizualne w trybie wysokiego kontrastu */
.contrast-high-mode .glass-card {
    background: #000 !important;
    color: #fff000 !important;
    border: 2px solid #fff000 !important;
    backdrop-filter: none !important;
    animation: none !important; /* Osoby z zaburzeniami błędnika nie lubią pływających elementów */
}

.contrast-high-mode .glass-card code, 
.contrast-high-mode .glass-card span,
.contrast-high-mode .glass-card small {
    color: #fff000 !important;
}

.contrast-high-mode .progress {
    background: #444 !important;
    border: 1px solid #fff000;
}
/* --- FOOTER STYLE --- */
.footer-ngo {
    background-color: #1f262d !important; /* Głęboki granat pasujący do logo */
    border-top: 5px solid #ffc107; /* Żółty akcent na górze */
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, 
.footer-secondary-links a {
    color: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: #ffc107 !important;
    opacity: 1 !important;
    padding-left: 5px; /* Subtelny efekt wysunięcia */
}

.footer-secondary-links a:hover {
    opacity: 1 !important;
    color: #fff !important;
}

/* Stylizacja inputa w newsletterze dla lepszego kontrastu */
.footer-ngo .form-control {
    background-color: #000;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    height: 4rem;
}

.footer-ngo .form-control::placeholder {
    color: #fff;
}

.footer-ngo .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff;
}

/* --- POST CONTENT STYLE --- */
.post-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2d3436;
    font-size: 1.15rem;
    line-height: 1.2;
}

.post-content h2, .post-content h3 {
    color: #002d5d;
    margin-top: 1.5rem;
    letter-spacing: -0.5px;
    font-size:1.5rem;
}

/* Terminal style for code */
.code-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

.code-terminal .dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* Meta data icons */
.post-meta i {
    font-size: 1.1rem;
}

/* Hover effects for navigation */
.transition { transition: 0.3s ease; }
.hover-bg-light:hover {
    background-color: #f8f9fa;
    border-color: var(--ngo-yellow) !important;
}

/* Dostosowanie dla urządzeń mobilnych */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .post-content { font-size: 1.05rem; }
}
/* --- SIDEBAR CUSTOM STYLE --- */
.sidebar-nav .list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    background: #fff;
}

.sidebar-nav .list-group-item.active {
    background-color: #f8f9fa !important;
    color: #002d5d !important;
    border-left-color: #ffc107 !important; /* Nasz żółty z logo */
    border-bottom: none;
}

.sidebar-nav .list-group-item:hover:not(.active) {
    background-color: #fdfdfd;
    border-left-color: #dee2e6;
    padding-left: 1.5rem;
}

/* Zapobieganie ucinaniu długich tytułów w sidebarze */
.sidebar-nav h6 {
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Responsywność - na mobile sidebar ląduje pod spodem, wyłączamy sticky */
@media (max-width: 991px) {
    .sticky-top {
        position: static !important;
        margin-top: 3rem;
    }
}

.contrast-high-mode .card[style*="background-color: #002d5d"] {
    background-color: #000000 !important;
    border: 2px solid #fff000 !important;
}

.contrast-high-mode .card[style*="background-color: #002d5d"] p,
.contrast-high-mode .card[style*="background-color: #002d5d"] h5 {
    color: #fff000 !important;
}

.contrast-high-mode .card[style*="background-color: #002d5d"] .btn-warning {
    background-color: #fff000 !important;
    color: #000000 !important;
    border: none !important;
}
/* Styl spoczynkowy - musi być wyraźny! */
.custom-cta-btn {
    background-color: #ffc107 !important; /* Wyrazisty żółty */
    color: #000000 !important;           /* Czarny tekst dla kontrastu */
    border: 2px solid #ffc107 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

/* Styl po najechaniu - pogłębiamy kolor */
.custom-cta-btn:hover {
    background-color: #e6af06 !important; /* Ciemniejszy żółty / pomarańczowy */
    border-color: #e6af06 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: #000000 !important;
}

/* Styl dla Focusa (klawiatura) - bardzo ważne dla WCAG */
.custom-cta-btn:focus {
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.5) !important;
    outline: none;
}
.typing-animation {
    display: inline-block;
    /* Liczba kroków (steps) musi odpowiadać liczbie znaków w kodzie (tutaj 24 znaki) */
    animation: 
        typing 3.5s steps(24, end),
        blink-caret 0.75s step-end infinite;
    max-width: fit-content;
}

/* Animacja wpisywania - zmieniamy szerokość od 0 do 100% */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Animacja mrugającego kursora */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffc107 }
}

/* Ważne: Jeśli użytkownik ma włączony tryb "Reduced Motion" w systemie, wyłączamy animację */
@media (prefers-reduced-motion: reduce) {
    .typing-animation {
        animation: none;
        border-right: none;
    }
}


.card-code-header {
    background-color: #282a36 !important; /* Tło typu terminal */
    border-bottom: 3px solid #ffc107;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Styl kafelka */
.rounded-5 { border-radius: 2rem !important; } /* Główne zaokrąglenie karty */
.rounded-4 { border-radius: 1rem !important; } /* Zaokrąglenie obrazka */

#posts-grid .card {
    transition: all 0.3s ease;
    background: #ffffff;
}

#posts-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Paginacja - Okrągłe przyciski */
.pagination .page-link {
    color: #333;
    font-weight: bold;
    background-color: #e9ecef;
}

.pagination .page-item.active .page-link {
    background-color: #ffc107 !important; /* Ten sam żółty co w headerze */
    color: #822222 !important;
}

.pagination .page-link:hover {
    background-color: #dee2e6;
}

/* Badge - pozycjonowanie na dole obrazka */
.badge {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 8px;
}

.custom-badge {
    position: absolute;
    /* Jeśli karta ma p-3 (1rem), to left: -1rem wysunie badge na białe obramowanie */
    left: -0.5rem; 
    bottom: 1.2rem;
    
    /* Brak zaokrąglenia z lewej, zaokrąglona tylko prawa strona */
    border-radius: 0 8px 8px 0 !important; 
    
    padding: 0.2rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    
    /* Cień, który podkreśli, że badge leży "nad" białą ramką */
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
    z-index: 5;
}

/* 4. Dopasowanie kolorów */
.badge-mysql { background-color: #00758f; color: white; }
.badge-wcag { background-color: #007000; color: white; }
.badge-php   { background-color: #4f5b93; color: white; }

/* Opcjonalnie: efekt uniesienia karty */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Ramka dla obrazu w artykule */
.img-frame {
    transition: transform 0.3s ease;
}

/* Wystający badge wewnątrz artykułu */
.post-featured-image .custom-badge {
    position: absolute;
    /* Przesunięcie, aby badge wystawał poza białą ramkę obrazu */
    left: -15px; 
    bottom: 40px;
    
    background-color: #002d5d; /* Granat NGO */
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 0 10px 10px 0 !important;
    z-index: 10;
}

/* Styl terminala dla kodu w treści */
.code-terminal pre {
    border-left: 4px solid #ffc107; /* Żółty akcent przy kodzie */
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* --- NOWOCZESNY STEPPER SIDEBAR --- */

/* 1. Kontener listy - relative pozwala linii pozycjonować się względem niego */
.sidebar-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-left: 5px; /* Delikatny oddech od krawędzi */
}

/* 2. Pionowa linia łącząca kropki */
.sidebar-steps::before {
    content: "";
    position: absolute;
    left: 20px; /* Połowa szerokości kółka (16px) + padding (5px) - 1px szerokości */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e9ecef;
    z-index: 1;
}

/* 3. Pojedynczy element (link) */
.step-item {
    display: flex;
    align-items: center; /* <-- zamiast flex-start */
    gap: 15px;
    text-decoration: none !important;
    color: #6c757d !important;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease-in-out;
}

/* 4. Okrągła ikona / Numerka */
.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* 5. Styl dla aktywnego (aktualnego) wpisu */
.step-item.active {
    color: #002d5d !important; /* Aktywny tekst staje się ciemny */
}

.step-item.active .step-icon {
    background: #002d5d; 
    border-color: #002d5d;
    color: #ffc107;
    box-shadow: 0 0 0 4px rgba(0, 45, 93, 0.1); /* Delikatna poświata */
}

/* 6. Hover - interakcja */
.step-item:hover {
    color: #002d5d !important;
}


.step-item:hover .step-icon {
    border-color: #002d5d;
    background: #0d6efd;
    color: #fff;
}

.step-item:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.step-content {
    display: flex;
    flex-direction: column;
}
/* 7. Styl tekstu */
.step-content h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.step-content small {
    font-size: 0.75rem;
    display: block;
    opacity: 0.8;
}

/* 8. Estetyczny Scrollbar */
.sidebar-scroll-area::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}
.sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #002d5d;
}

/* --- TRYB: WYSOKI KONTRAST (Czarno-Żółty) --- */
body.high-contrast {
    background: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast .navbar-modern, 
body.high-contrast .card, 
body.high-contrast .accessibility-bar,
body.high-contrast .footer-ngo {
    background: #000000 !important;
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}

/* Naprawa Twoich przycisków NGO w trybie kontrastu */
body.high-contrast .btn-warning, 
body.high-contrast .btn-nav-cta,
body.high-contrast .step-item.active .step-icon {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffff00 !important;
    font-weight: 900 !important;
}

body.high-contrast a, 
body.high-contrast .nav-link,
body.high-contrast .logo-text,
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3 {
    color: #ffff00 !important;
}

body.high-contrast .hero-portal::before, 
body.high-contrast .hero-portal::after {
    display: none !important; /* Usuwamy ozdobniki tła */
}

/* --- TRYB: ODWRÓCONY KONTRAST --- */
body.inverted-contrast {
    filter: invert(100%) hue-rotate(180deg);
    background: #fff;
}

/* Przywracamy naturalny wygląd zdjęć w inwersji */
body.inverted-contrast img, 
body.inverted-contrast .post-featured-image,
body.inverted-contrast .hero-visual-element {
    filter: invert(100%) hue-rotate(180deg) !important;
}

/* --- CZCIONKA DLA DYSLEKTYKÓW --- */
@import url('https://fonts.cdnfonts.com/css/open-dyslexic');
body.dyslexic-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}
body.dyslexic-font p, body.dyslexic-font h1, body.dyslexic-font h2, body.dyslexic-font h3, body.dyslexic-font span {
    font-family: 'OpenDyslexic', sans-serif !important;
}

body.hide-bg .hero-portal::before,
body.hide-bg .hero-portal::after,
body.hide-bg .hero-visual-element,
body.hide-bg .card-img-wrapper,
body.hide-bg img {
    display: none !important;
    background: none !important;
}

body.hide-bg .hero-portal {
    background: #002d5d !important;
    min-height: auto !important;
    padding: 40px 0 !important;
}
/* Dodaj do stylów panelu */
.accessibility-offcanvas {
    border-left: 2px solid rgba(0,0,0,0.1) !important;
}

/* W trybach kontrastu ramka musi być jeszcze mocniejsza */
body.high-contrast .accessibility-offcanvas {
    border-left: 3px solid #ffff00 !important;
}

body.yellow-mode .accessibility-offcanvas {
    border-left: 3px solid #000000 !important;
}
/* Całkowite ukrycie zaszarzenia dla panelu dostępności */
.offcanvas-backdrop {
    display: none !important;
}

/* Opcjonalnie: upewnij się, że strona pod spodem nie jest zablokowana */
body.offcanvas-open {
    overflow: auto !important;
}


.logostopka{width:100%;}
.logoheader{height:50px;}

@font-face {
  font-family: 'Open-Dyslexic';
  src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Zapobiega niewidocznemu tekstowi podczas ładowania */
}

/* Agresywne wymuszenie czcionki na wszystkim */
body.dyslexic-font, 
body.dyslexic-font *, 
body.dyslexic-font h1, body.dyslexic-font h2, body.dyslexic-font h3, 
body.dyslexic-font h4, body.dyslexic-font h5, body.dyslexic-font h6,
body.dyslexic-font .nav-link, body.dyslexic-font button, body.dyslexic-font input {
    font-family: 'Open-Dyslexic', sans-serif !important;
}

body.dyslexic,
body.dyslexic h1,
body.dyslexic h2,
body.dyslexic h3,
body.dyslexic h4,
body.dyslexic h5,
body.dyslexic h6,
body.dyslexic-font p,
body.dyslexic a,
body.dyslexic li,
body.dyslexic-font span,
body.dyslexic div {
  font-family: 'Open-Dyslexic', Arial, sans-serif !important;
}

/* WAŻNE: Ochrona ikon (żeby nie zamieniły się w kwadraty) */
body.dyslexic-font i, 
body.dyslexic-font .bi, 
body.dyslexic-font [class^="bi-"] {
    font-family: 'bootstrap-icons' !important;
}
/* Opcjonalnie: poprawienie czytelności dla dyslektyków */
body.dyslexic-font p {
    line-height: 1.8 !important; /* Większy odstęp między liniami */
    word-spacing: 0.2rem !important;
}



/* Kontener główny */
.tech-stream-container {
    display: flex;
    flex-direction: column;
}

/* Pojedynczy kafelek */
.stream-tile {
    display: block;
    text-decoration: none;
    padding: 16px 15px; /* Nieco szerszy padding dla oddechu */
    background: #f5f5f5;
    border-bottom: 1px dashed #dee2e6; /* Przerywana linia pod spodem */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid transparent; 
}

/* Zawartość kafelka */
.stream-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* Numeracja */
.stream-id {
    font-family: 'Consolas', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #232323;
    flex-shrink: 0;
}

/* Tytuł */
.stream-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50; /* Wysoki kontrast zgodny z WCAG */
    line-height: 1.3;
}

/* --- HOVER --- */
.stream-tile:hover {
    background-color: #f8f9fa; /* Subtelna zmiana tła */
    border-left-color: #adb5bd; /* Jasnoszara linia po lewej */
    padding-left: 20px; /* Efekt lekkiego "wepchnięcia" kafla */
}

/* --- ACTIVE --- */
.stream-tile.active {
    background-color: #fff9f2; /* Jasny bursztynowy odcień (kontrastowe tło) */
    border-left-color: #822222; /* Wyraźna linia bursztynowa po lewej (WCAG OK) */
    border-bottom-style: solid; /* Linia pod spodem staje się ciągła */
}

.stream-tile.active .stream-title {
    color: #822222; /* Kolor tytułu pasujący do linii */
    font-weight: 500; /* Lekkie wzmocnienie dla zaznaczenia aktywności */
}

.stream-tile.active .stream-id {
    color: #822222;
}

/* Usuwamy linię spod ostatniego elementu */
.stream-tile:last-child {
    border-bottom: none;
}

/* Link pod menu */
.hover-dark:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.post-content img {
    width: 100% !important;  /* Nadpisuje style inline z CKEditora */
    height: auto !important; /* Zapobiega rozciągnięciu zdjęcia (zachowuje proporcje) */
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

/* Kontener breadcrumb */
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    align-items: center;
}

/* Pojedyncze elementy listy */
.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: #adb5bd; /* Jasnoszary kolor dla tekstu statycznego i ikon */
}

/* Linki w breadcrumb */
.breadcrumb-list li a {
    color: #ffffff; /* Biały dla linków, żeby się wyróżniały */
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

/* Efekt najechania na link */
.breadcrumb-list li a:hover {
    color: #f39c12; /* Twój bursztynowy lub #822222 (bordo) */
    text-decoration: underline;
}

/* Odstępy między elementami a ikonami chevron */
.breadcrumb-list li i {
    font-size: 0.75rem;
    margin: 0 12px;
    color: #6c757d; /* Przyciemniona ikona, żeby nie odciągała uwagi */
}

/* Ostatni element (obecna strona) */
.breadcrumb-list li:last-child {
    color: #f39c12; /* Wyróżnienie obecnej lokalizacji kolorem akcentu */
    font-weight: 600;
}
/* Styl dla separatora Bootstrap Icons */
.breadcrumb-separator {
    color: #fff !important; /* Przygaszony biały */
    font-size: 0.75rem; /* Mniejsza niż tekst, by nie dominowała */
    margin: 0 12px;     /* Odstępy po bokach */
    display: flex;
    align-items: center;
    font-weight: bold;  /* Nadaje ikonie wyraźniejszy obrys */
}

/* Upewnij się, że lista breadcrumb nie ma domyślnych kropek */
.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}
.container-fluid {
    width: 100%;
    /* Ograniczamy szerokość tylko na dużych ekranach */
    max-width: 1530px; 
    /* Centrujemy kontener na środku ekranu */
    margin-left: auto;
    margin-right: auto;
    /* Standardowe zabezpieczenie odstępów bocznych */
    padding-left: 15px;
    padding-right: 15px;
}
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* Opcjonalnie: na bardzo małych telefonach można zmniejszyć padding, 
   żeby zyskać więcej miejsca na treść */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (min-width: 992px) {
    /* 1. Pokazuj menu gdy najeżdżasz myszką LUB gdy Tab ląduje wewnątrz dropdowna */
    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.dropdown:focus-within > .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        /* Animacja wejścia (opcjonalnie) */
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    /* 2. Domyślny stan ukryty (dla animacji) */
    .dropdown-menu {
        display: none;
        transform: translateY(10px);
    }
}


.nav-link.active {
    position: relative;
    color: #4e73df !important; /* Przykładowy niebieski */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #4e73df;
    transition: all 0.3s ease;
}

/* W dropdownie nie chcemy podkreślenia, tylko tło lub kolor */
.dropdown-item.active {
    background-color: #f8f9fa !important;
    color: #4e73df !important;
    font-weight: bold;
    border-left: 3px solid #4e73df;
}
.fixed-image{width:100%;}


/* --- LISTA NUMEROWANA (Główna - OL) --- */
.post-content ol {
    list-style-type: decimal;
    padding-left: 40px;
    margin: 20px 0;
}

.post-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: normal; /* Wyłączamy niechciane pogrubienie */
    position: relative;
}

/* Blokada: żadnych kwadracików wewnątrz listy numerowanej na pierwszym poziomie */
.post-content ol > li::before {
    content: none !important;
}

/* --- LISTA PUNKTOWANA (UL) --- */
/* Obsługuje zarówno samodzielne UL, jak i te wewnątrz OL */
.post-content ul, 
.post-content ol li ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 15px 20px;
    list-style-position: outside;
}

/* Selektor celujący bezpośrednio w punkty z kwadracikami */
.post-content ul li,
.post-content ol li ul li {
    position: relative !important;
    padding-left: 25px !important;
    margin-bottom: 8px;
}

/* Rysowanie kwadracika - teraz z wymuszeniem dla obu przypadków */
.post-content ul li::before,
.post-content ol li ul li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 10px;
    height: 10px;
    background-color: #800000 !important; /* Powrót do pełnego bordowego */
    border-radius: 2px;
    display: block !important;
}

/* Opcjonalnie: Jeśli chcesz, by podpunkty wewnątrz OL miały puste kwadraciki (obwódkę) */
.post-content ol li ul li::before {
    background-color: transparent !important;
    border: 3px solid #800000 !important;
    width: 8px;
    height: 8px;
}
/* Wrapper scroll dla tabel w post-content */
.post-content {
    overflow-x: auto;   /* pozwala przewijać w poziomie na wąskich ekranach */
}

.post-content table {
    width: 100%;        /* tabela zajmuje całą szerokość kontenera */
    max-width: 100%;    /* nie wychodzi poza kontener */
    display: table;     /* zachowuje standardowy model tabeli */
}

/* Kontener tabeli - opcjonalnie dodaj overflow-x dla urządzeń mobilnych */
.post-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse; /* Ważne: usuwa przerwy między komórkami */
    font-size: 0.95em;
    font-family: sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

/* Styl nagłówka */
.post-content table thead tr {
    background-color: #003876; /* Twój ciemnobordowy */
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

/* Styl komórek (padding zapewnia "oddech") */
.post-content table th,
.post-content table td {
    padding: 12px 15px;
}
.post-content table td {color: #202020;}
/* Linie na dole każdego wiersza */
.post-content table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* Kolorowanie co drugiego wiersza (Zebra) - opcjonalne */
.post-content table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}

/* Ostatni wiersz z ciemniejszą linią dla domknięcia tabeli */
.post-content table tbody tr:last-of-type {
    border-bottom: 2px solid #003876;
}

/* EFEKT HOVER */
.post-content table tbody tr:hover {
    background-color: #f5f5f5; /* Delikatny szary */
    color: #003876; /* Tekst zmienia kolor na bordowy przy hoverze */
    transition: all 0.2s ease;
    cursor: default;
}

/* Lekki, techniczny i bardzo przejrzysty */
blockquote {
    position: relative;
    margin: 40px auto;
    padding: 20px 40px;
    background: #ffffff;
    border: none;
    max-width: 85%;
    text-align: center; /* Wyśrodkowanie nadaje wagę słowom */
}

/* Górny lewy narożnik (nawias) */
blockquote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid #F57500;
    border-left: 2px solid #F57500;
}

/* Dolny prawy narożnik (nawias) */
blockquote::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid #F57500;
    border-right: 2px solid #F57500;
}

/* Tekst - elegancki, z większym światłem */
blockquote p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin-bottom: 0;
}

/* Autor - delikatnie i z klasą */
blockquote footer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* Styl dla kontenera linku */
.item a {
    display: block;
    text-decoration: none;
    overflow: hidden; /* Ważne, by obrazek nie wystawał poza zaokrąglone rogi */
}

/* Styl dla obrazka wewnątrz galerii */
.item a img {
    width: 100%;
    height: 150px; /* Ustalona stała wysokość dla wszystkich zdjęć */
    object-fit: cover; /* Magiczna właściwość: wypełnia kadr, przycinając boki/górę zamiast zgniatania */
    object-position: center; /* Centruje najważniejszą część zdjęcia */
    transition: transform 0.3s ease; /* Płynne przejście dla efektu najechana */
}

/* Efekt najechana myszką (opcjonalnie) */
.item a:hover img {
    transform: scale(1.05); /* Delikatne powiększenie obrazka */
}

/* Korekta dla mobile - żeby zdjęcia nie były zbyt wysokie na małych ekranach */
@media (max-width: 576px) {
    .item a img {
        height: 120px;
    }
}

.video-item-container {
    max-width: 800px; /* Ograniczamy szerokość, żeby film nie był gigantyczny na 1500px */
    position: relative;
    background: #000;
}

.cs-common-video {
    width: 100%;
    aspect-ratio: 16 / 9; /* Utrzymuje proporcje wideo niezależnie od urządzenia */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia kontener bez czarnych pasów po bokach miniatury */
    display: block;
}

/* Pozycjonowanie przycisku Play dokładnie na środku i stylizacja kółka */
.cs-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    
    /* Nowe style kółka */
    width: 80px;
    height: 80px;
    background: #ffc107; /* Kolor TechNGO */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Pulsowanie - animowany krąg pod spodem */
.cs-video-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

/* Animacja pulsowania */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.cs-video-btn:hover {
    /* Musimy zachować translate(-50%, -50%), żeby przycisk nie uciekł ze środka */
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffdb70;
}

/* Styl dla Twojego SVG wewnątrz przycisku */
.play-svg {
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
    position: relative;
    z-index: 3;
    width: 30px; /* Dopasuj rozmiar ikonki do kółka */
    height: auto;
}
/* --- Poprawiony Video Modal --- */
.cs_video_popup {
  position: fixed;
  z-index: 10000; /* Wyższy z-index, żeby był nad menu */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Używamy display zamiast left -100% dla stabilności */
  align-items: center;
  justify-content: center;
}

.cs_video_popup.active {
  display: flex !important;
}

.cs_video_popup_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Ciemniejsze, eleganckie tło */
  cursor: pointer;
}

.cs_video_popup_content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1100px;
  animation: fadeInVideo 0.4s ease-out;
}

@keyframes fadeInVideo {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs_video_popup_container {
  position: relative;
  background: #000;
  width: 100%;
  /* Trick na proporcje 16:9 */
  padding-bottom: 56.25%; 
  height: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.cs_video_popup_container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs_video_popup_close {
  position: absolute;
  top: -45px;
  right: -10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

/* Ikona X dla zamknięcia */
.cs_video_popup_close::before,
.cs_video_popup_close::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 30px;
  background-color: #fff;
}
.cs_video_popup_close::before { transform: rotate(45deg); }
.cs_video_popup_close::after { transform: rotate(-45deg); }

.cs_video_popup_close:hover::before,
.cs_video_popup_close:hover::after {
  background-color: #ffc107; /* Zółty kolor hovera pasujący do TechNGO */
}

/* Nowoczesna Paleta i Typografia */
.text-orange { color: #c75302 }
.bg-soft-orange { background: rgba(245, 117, 0, 0.1); }
.text-gradient { background: linear-gradient(45deg, #F57500, #ff9e42); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Hero Section */
.slownik-hero { background: #fff; padding-bottom: 80px; }
.custom-input { transition: all 0.3s ease; }
.custom-input:focus { box-shadow: 0 15px 30px rgba(245, 117, 0, 0.15) !important; transform: scale(1.02); }

/* Dictionary Cards - New Style */
.dictionary-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dictionary-card:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.dictionary-card:hover .card-title, 
.dictionary-card:hover .card-text {
    color: #fff !important;
}

.dictionary-card:hover .category-tag {
    background: #F57500;
    color: #fff;
}

.dictionary-card:hover .card-arrow {
    color: #F57500;
    transform: translateX(5px);
    opacity: 1;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f8f9fa;
    color: #666;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card-title { transition: color 0.3s ease; }
.card-text { font-size: 0.95rem; line-height: 1.6; transition: color 0.3s ease; }

.card-arrow {
    margin-top: 20px;
    color: transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Animacje */
.dictionary-item-wrapper {
    animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dekoracja Hero */
.hero-decoration {
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at center, rgba(245, 117, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}
/* Klasa aktywowana przez filtr */
.dictionary-card.is-highlighted {
    background: #1A1A1A;
    border-color: #1A1A1A;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.dictionary-card.is-highlighted .card-title, 
.dictionary-card.is-highlighted .card-text {
    color: #fff !important;
}

.dictionary-card.is-highlighted .category-tag {
    background: #F57500;
    color: #fff;
}

.dictionary-card.is-highlighted .card-arrow {
    color: #F57500;
    transform: translateX(5px);
    opacity: 1;
}
.card-icon-wrapper {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(245, 117, 0, 0.05);
    color: #F57500;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.dictionary-card:hover .card-icon-wrapper,
.dictionary-card.is-highlighted .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

/* Poprawka dla card-content, by tekst nie nachodził na ikonę */
.card-content {
    padding-right: 40px;
}

/* Subtelny sznyt dla ikon SVG */
.card-icon-wrapper svg {
    width: 100%;
    height: 100%;
}
.honeypot-field {
    /* Absolutnie ukrywa pole przed uÅ¼ytkownikiem */
    display: none !important; 
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    overflow: hidden;
}
.form-1 a {
    color: #fff;
    text-decoration: underline !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-1 a:hover {
    color: #F57500;
    border-bottom: 2px solid #F57500;
}
/* Zapewnienie widocznego focusu zgodnego z WCAG 2.2 */
.btn:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #F57500 !important;
}

/* Kontener główny - bez zbędnych ramek */
.civic-dashboard {
    padding-left: 10px;
}

/* Nowoczesny kafelek danych */
.info-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #f57500; /* Twój bursztynowy akcent */
    border-radius: 10px;
    padding: 6px 20px;
    margin-bottom: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-block:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Etykiety - polskie, techniczne */
.block-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b; /* Ciemny szary - bezpieczny kontrast */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Wartości - silne, czarne */
.block-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
}

/* Specjalny kafelek statusu z pulsującą kropką */
.status-indicator-live {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #1e293b;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #f57500;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(245, 117, 0, 0.4);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(245, 117, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 117, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 117, 0, 0); }
}

/* Ciemny moduł na koniec (Finansowanie) */
.dark-info-block {
    background: #1e293b;
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 5px solid #f57500;
}
.block-label i {
    color: #f57500;
    font-size: 0.9rem;
}

#listaWdrozen {
    display: none; /* jQuery zajmie się resztą */
    clear: both;
    /* Usuwamy height: auto !important, bo to zabija animację slideToggle */
}

/* To co ma się pojawić po otwarciu (np. dekoracja) */
#listaWdrozen.active-styles {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

#listaWdrozen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack-container {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1.25rem;
    }

    .block-label {
        color: #2c3e50;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-bottom: 0.35rem;
        display: flex;
        align-items: center;
    }

    /* Pille na pełną szerokość diva */
    .tech-pill {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 2px 15px;
        margin-bottom: 0.5rem;
        background: #fcfcfc;
        border: 1px solid #efefef;
        border-radius: 6px;
        color: #333;
        transition: all 0.2s ease;
    }

    .tech-pill:hover {
        background: #f8f9fa;
        border-color: #d1d1d1;
        transform: translateX(4px); /* Subtelne wysunięcie */
    }

    /* Grube akcenty kolorystyczne z lewej */
    .pill-php   { border-left: 4px solid #777bb4; }
    .pill-db    { border-left: 4px solid #00758f; }
    .pill-ai    { border-left: 4px solid #0dcaf0; background: #f0fbff; }
    .pill-wcag  { border-left: 4px solid #198754; background: #f4faf6; }
    .pill-front { border-left: 4px solid #7952b3; }
    .pill-js    { border-left: 4px solid #f7df1e; }
    .pill-seo   { border-left: 4px solid #ffc107; }

    .tech-name {
        font-weight: 700;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
    }

    .tech-name i {
        font-size: 1.1rem;
        width: 25px; /* Stała szerokość ikon dla wyrównania tekstu */
        margin-right: 8px;
    }

    .tech-version {
        font-family: 'Segoe UI Mono', 'Consolas', monospace;
        font-size: 0.75rem;
        background: rgba(0,0,0,0.05);
        padding: 2px 8px;
        border-radius: 4px;
        color: #555;
        font-weight: 600;
    }

    .section-divider {
        height: 1px;
        background: #eee;
        margin: 1rem 0;
    }


/* Gradient dla ikony tarczy - nadaje jej głębię i nowoczesność */
.text-primary-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Subtelny cień i tło dla ikony tarczy */
.repo-shield-icon {
    position: relative;
    display: inline-block;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 50%;
    margin-bottom: 30px;
}

/* Styl dla tytułu */
.repo-access-title {
    color: #333;
}

/* Styl dla głównego przycisku (dopasowany do Twoich pilli technologicznych) */
.repo-access-container .btn-primary {
    background-color: #0d6efd;
    border: none;
    transition: all 0.3s ease;
}

.repo-access-container .btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}
.text-primary-gradient { background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .repo-shield-icon { display: inline-block; padding: 20px; background-color: #f0f7ff; border-radius: 50%; margin-bottom: 20px; }    

.auth-form-wrapper {
        max-width: 400px;
        margin: 0 auto; /* Wyśrodkowanie */
    }

    /* Reszta stylów bez zmian */
    .text-primary-gradient { background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .repo-shield-icon { display: inline-block; padding: 20px; background-color: #f0f7ff; border-radius: 50%; margin-bottom: 20px; }    
    
 .portal-img-fixed {
    height: 200px; /* Ustaw taką wysokość, jaka Ci odpowiada */
    width: 100%;   /* Rozciąga na całą szerokość kolumny */
    object-fit: cover; /* Kluczowy element: przycina zdjęcie tak, aby wypełniło przestrzeń bez zniekształcania */
    object-position: center; /* Centruje zdjęcie, jeśli trzeba je przyciąć */
}  
/* Celujemy w link w stopce, który zawiera logo */
footer a:has(.logostopka), 
.logostopka-container a {
    display: inline-block; /* Pozwala na kontrolowanie wymiarów */
    min-height: 24px;      /* Spełnia wymóg WCAG 2.2 */
    min-width: 24px;
    line-height: 1;        /* Usuwa zbędne odstępy pod obrazkiem */
    vertical-align: middle;
}

.logostopka {
    display: block;        /* Usuwa domyślny margines dolny obrazka */
    height: auto;          /* Pozwól obrazkowi zachować proporcje */
    min-height: 24px;      /* Upewnij się, że sam obrazek też ma min. 24px */
}
/* Zastąpienie standardowego niebieskiego bezpieczniejszym odcieniem */
.btn-outline-primary {
    color: #0056b3; /* Ciemniejszy odcień niebieskiego */
    border-color: #0056b3;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* Zapewnienie widoczności fokusu (WCAG 2.2) */
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/*--------------------------------------------------------------
  13. Error 404 Page (Tech NGO Style)
----------------------------------------------------------------*/

/* Główny kontener błędu */
.error-wrapper {
    text-align: center;
    padding: 60px 0;
}

/* Kontener dla dużej liczby 404 */
.error-code-container {
    position: relative;
    display: block; /* Zmieniono z inline-block na block */
    margin: 0 auto 30px auto; /* Centrowanie i odstęp od dołu */
    width: fit-content; /* Kontener dopasuje się do szerokości tekstu, ale będzie blokiem */
}

/* Główna liczba 404 - Wysoki kontrast WCAG (13.5:1) */
.error-code-main {
    font-size: clamp(80px, 15vw, 180px); /* Responsywna wielkość */
    font-weight: 900;
    line-height: 1;
    color: #212529; /* Ciemny antracyt */
    position: relative;
    z-index: 2;
    display: block;
}

/* Żółte podkreślenie pod liczbą (akcent dekoracyjny) */
.error-code-main::before {
    content: "";
    position: absolute;
    bottom: 15%;
    left: -5%;
    width: 110%;
    height: 30%;
    background-color: #ffc107; /* Żółty Tech NGO */
    z-index: -1;
    opacity: 0.6;
}

/* Pulsujący okrąg wokół liczby (sygnał przerwanego połączenia) */
.error-code-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border: 4px solid #ffc107;
    border-radius: 50%;
    opacity: 0;
    animation: wcag-pulse 2.5s infinite;
    pointer-events: none; /* Nie blokuje kliknięć */
}

@keyframes wcag-pulse {
    0% {
        width: 70%;
        height: 70%;
        opacity: 0.6;
    }
    100% {
        width: 140%;
        height: 140%;
        opacity: 0;
    }
}

.console-box {
    display: inline-block; /* Zostaje inline-block, żeby tło nie było na 100% szerokości */
    margin: 0 auto 20px auto;
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 12px 24px;
    border-radius: 4px;
}
.console-text {
    color: #212529;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.console-prompt {
    color: #ffc107;
    margin-right: 8px;
    user-select: none; /* Zapobiega zaznaczaniu znaku zachęty */
}

/* Migający kursor tekstowy */
.console-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: #ffc107;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Przyciski i teksty pomocnicze */
.error-wrapper .h1 {
    color: #212529;
    margin-bottom: 15px;
}

.error-wrapper .lead {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Tryb Wysokiego Kontrastu (WCAG) */
.high-contrast .error-code-main {
    color: #fff !important;
}

.high-contrast .console-box {
    background: #000;
    border: 2px solid #fff;
}

.high-contrast .console-text {
    color: #fff;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 576px) {
    .error-wrapper {
        padding: 40px 15px;
    }
    .console-text {
        font-size: 0.9rem;
    }
    .error-code-container::after {
        display: none; /* Ukrywamy pulsowanie na bardzo małych ekranach, by uniknąć scrolla */
    }
}