/*
Theme Name: Kserointernetowe Child
Theme URI: https://kserointernetowe.pl
Description: Zoptymalizowany motyw potomny dla serwisu Kserointernetowe.pl. Wdroży lokalne czcionki (Inter i Fira Code) oraz zaawansowaną optymalizację szybkości bez ingerencji w paletę kolorów i układ zdefiniowany w Customizerze.
Author: Antigravity
Author URI: https://google.com
Template: blocksy
Version: 1.0.1
*/

/* 1. REJESTRACJA LOKALNYCH CZCIONEK (Self-hosted Webfonts) */

/* Inter - Light (300) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-300.woff2') format('woff2');
}

/* Inter - Regular (400) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400.woff2') format('woff2');
}

/* Inter - Medium (500) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500.woff2') format('woff2');
}

/* Inter - Semi-Bold (600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600.woff2') format('woff2');
}

/* Inter - Bold (700) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700.woff2') format('woff2');
}

/* Fira Code - Regular (400) */
@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/fira-code-400.woff2') format('woff2');
}

/* Fira Code - Medium (500) */
@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/fira-code-500.woff2') format('woff2');
}

/* Fira Code - Bold (700) */
@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/fira-code-700.woff2') format('woff2');
}

/* 1b. OPTYMALIZACJA LOGO - OGRANICZENIE ROZMIARU (Performance Fix) */
/* Problem: logo AI 2560x1396px = 539 KiB. Wymuszamy mały display size.         */
/* Przeglądarka przez srcset+sizes pobierze tylko wariant ~180-300px.            */
.site-logo img,
.ct-header .site-logo img,
.ct-header img[class*="custom-logo"],
header img[class*="custom-logo"],
.custom-logo-link img {
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    max-height: 70px !important;
    object-fit: contain !important;
    /* Unikaj wymuszania reflow przez przeglądarkę podczas ładowania */
    will-change: auto !important;
}

/* 2. PROGRAMISTYCZNE BLOKI KODU (Terminal Style Codeblocks) */
pre, code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace !important;
    font-variant-ligatures: common-ligatures;
}

/* Kod wewnątrz tekstu (inline code) */
:not(pre) > code {
    background-color: rgba(0, 0, 0, 0.06) !important;
    color: #e53e3e !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
}

/* Ciemny motyw dla inline code gdy strona ma ciemne tło (automatyczna detekcja) */
@media (prefers-color-scheme: dark) {
    :not(pre) > code {
        background-color: rgba(255, 255, 255, 0.08) !important;
        color: #f687b3 !important;
    }
}

/* Stylowy blok kodu stylizowany na terminal */
pre {
    background-color: #0d0e15 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 38px 18px 18px 18px !important;
    position: relative;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    margin: 1.5em 0 !important;
}

/* Belka górna terminala (trzy kolorowe kropki macOS style) */
pre::before {
    content: " ";
    position: absolute;
    top: 14px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
}

/* Etykieta 'Terminal' na belce */
pre::after {
    content: "Terminal";
    position: absolute;
    top: 11px;
    left: 70px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

pre code {
    color: #e2e8f0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
}

/* 3. OPTYMALIZACJE WIZUALNE I INTERAKTYWNE */

/* Pasek postępu czytania na górze strony (Reading Progress Bar) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(224, 34, 0, 0.5);
}

/* 4. PRZEMYSŁOWE ELEMENTY UI (Hazard Callouts, SCADA Badges, Datasheets, Blueprint BG) */

/* Ramka ostrzegawcza BHP w stylu przemysłowym (Hazard Callout) */
.hazard-callout {
    background-color: rgba(255, 193, 7, 0.05) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    border-left: 8px solid transparent !important;
    border-image: repeating-linear-gradient(-45deg, #ffc107, #ffc107 10px, #000 10px, #000 20px) 8 !important;
    padding: 18px 20px !important;
    border-radius: 4px !important;
    margin: 1.8em 0 !important;
    position: relative;
    color: inherit;
}

.hazard-callout::before {
    content: "⚠️ UWAGA BHP / ZASADA BEZPIECZEŃSTWA";
    display: block;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

/* Wariant zagrożenia wysokim napięciem / awarii (Danger Variant) */
.hazard-callout.danger {
    background-color: rgba(224, 34, 0, 0.04) !important;
    border-color: rgba(224, 34, 0, 0.2) !important;
    border-image: repeating-linear-gradient(-45deg, var(--theme-palette-color-1, #0A1128), var(--theme-palette-color-1, #0A1128) 10px, #000 10px, #000 20px) 8 !important;
}

.hazard-callout.danger::before {
    content: "⚡ NIEBEZPIECZEŃSTWO / WYSOKIE NAPIĘCIE";
    color: var(--theme-palette-color-1, #0A1128);
}

/* Wtyczki SCADA / HMI (SCADA Dashboard Badges) */
.scada-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-family: 'Fira Code', monospace !important;
    font-weight: 600;
    margin: 2px;
}

@media (prefers-color-scheme: dark) {
    .scada-badge {
        background-color: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

.scada-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00ff87;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 6px #00ff87;
    animation: led-pulse 2s infinite;
}

.scada-badge.offline::before {
    background-color: var(--theme-palette-color-1, #0A1128);
    box-shadow: 0 0 6px var(--theme-palette-color-1, #0A1128);
}

@keyframes led-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Profesjonalne tabele parametrów (Technical Datasheets) */
.tech-datasheet {
    margin: 2em 0 !important;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}

.tech-datasheet table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 14px !important;
}

.tech-datasheet th {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #1a202c !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
}

.tech-datasheet td {
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #2d3748 !important;
}

.tech-datasheet tr:last-child td {
    border-bottom: none !important;
}

.tech-datasheet tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

/* Druga kolumna jako monospace z parametrami katalogowymi */
.tech-datasheet td:nth-child(2) {
    font-family: 'Fira Code', monospace !important;
    color: var(--theme-palette-color-1, #0A1128) !important;
    font-weight: 600;
}

/* Tło schematu technicznego / sinusoidy falownika (Blueprint Technical Background) */
.blueprint-bg, article.post .hero-section, .ct-container-inner {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M 0 30 Q 30 5, 60 30 T 120 30' fill='none' stroke='rgba(255,42,0,0.018)' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-size: 30px 30px, 30px 30px, 120px 60px !important;
    background-repeat: repeat, repeat, repeat-x !important;
    background-position: center top !important;
}

/* 5. ELEGANCKI TRYB CIEMNY (Premium Dark Mode CSS variables override) */
:root {
    --theme-palette-color-1: #0A1128; /* Richer industrial red for light mode (guarantees WCAG AA 4.8:1 contrast against white) */
    --theme-palette-color-2: #00E676; /* Darker red for hover states */
}

[data-theme="dark"] {
    --theme-palette-color-1: #00E676 !important; /* Neon/industrial red brand accent */
    --theme-palette-color-2: #33ff99 !important; /* Soft red hover */
    --theme-palette-color-3: #ffffff !important; /* Pure white headings in dark mode for maximum contrast */
    --theme-palette-color-4: #e2e8f0 !important; /* High contrast body text (slate-200) */
    --theme-palette-color-5: rgba(255, 255, 255, 0.1) !important; /* Dark theme borders */
    --theme-palette-color-6: #1e293b !important; /* Soft slate dark background */
    --theme-palette-color-7: #0A1128 !important; /* Deep, rich space dark tło główne strony */
    --theme-palette-color-8: #121e42 !important; /* Card and content box tło */
    
    background-color: #0A1128 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] body,
[data-theme="dark"] #main,
[data-theme="dark"] .site-container,
[data-theme="dark"] article,
[data-theme="dark"] .ct-footer,
[data-theme="dark"] .ct-sidebar,
[data-theme="dark"] .ct-sidebar aside {
    background-color: #0A1128 !important;
    color: #e2e8f0 !important;
}

/* Wymuszenie wysokiego kontrastu dla WSZYSTKICH nagłówków i tytułów wpisów */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .entry-title,
[data-theme="dark"] .entry-title a,
[data-theme="dark"] .stk-block-heading__text,
[data-theme="dark"] .wp-block-heading,
[data-theme="dark"] .ct-module-title {
    color: #ffffff !important;
}

/* Wymuszenie wysokiego kontrastu dla akapitów, list, spanów i tekstów w blokach */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] a:not(.stk-button):not(.ct-button),
[data-theme="dark"] .stk-block-text__text,
[data-theme="dark"] .entry-meta,
[data-theme="dark"] .entry-excerpt {
    color: #e2e8f0 !important;
}

/* Wymuszenie jasnych linków w nawigacji i stopce */
[data-theme="dark"] .ct-menu-link,
[data-theme="dark"] .mobile-menu a {
    color: #f1f5f9 !important;
}
[data-theme="dark"] .ct-menu-link:hover,
[data-theme="dark"] .mobile-menu a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* KARTY WPISÓW NA STRONIE GŁÓWNEJ (High-Contrast Cyberpunk Archive Cards) */
[data-theme="dark"] .entry-card,
[data-theme="dark"] .ct-entry-card,
[data-theme="dark"] .ct-archive-container article {
    background-color: #121e42 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

[data-theme="dark"] .entry-card:hover,
[data-theme="dark"] .ct-entry-card:hover,
[data-theme="dark"] .ct-archive-container article:hover {
    transform: translateY(-2px) !important;
    border-color: var(--theme-palette-color-1) !important; /* Efekt neonowego czerwonego obramowania */
    box-shadow: 0 4px 20px rgba(255, 42, 0, 0.2) !important;
}

/* Dostosowanie kart premium dla Stackable Blocks w Dark Mode */
[data-theme="dark"] [class*="stk-"][class*="-container"],
[data-theme="dark"] [class*="-column__content"],
[data-theme="dark"] .wp-block-stackable-column,
[data-theme="dark"] .stk-column-wrapper,
[data-theme="dark"] .stk-block-team-member__content,
[data-theme="dark"] .stk-c111a11-container,
[data-theme="dark"] .stk-c222a22-container,
[data-theme="dark"] .stk-c333a33-container,
[data-theme="dark"] .stk-c444a44-container,
[data-theme="dark"] .stk-9d64bc7-container,
[data-theme="dark"] .stk-7ed4cd7-container {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: #e2e8f0 !important;
}

/* Elementy nagłówka w Trybie Ciemnym (Glassmorphism Dark) */
[data-theme="dark"] header.ct-header {
    background-color: rgba(11, 15, 25, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Wymuszenie uniwersalnego logo dla obu trybów (Universal Logo) */
.site-logo-container img,
.custom-logo-link img,
.site-title a img {
    content: url("assets/images/logo.png") !important;
}

[data-theme="dark"] .site-logo-container img {
    filter: none !important;
}

/* Dostosowanie blueprint background dla Dark Mode */
[data-theme="dark"] .blueprint-bg, 
[data-theme="dark"] article.post .hero-section, 
[data-theme="dark"] .ct-container-inner {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M 0 30 Q 30 5, 60 30 T 120 30' fill='none' stroke='rgba(255,42,0,0.018)' stroke-width='1.5'/%3E%3C/svg%3E") !important;
}

/* 6. VERCEL-STYLE SUN/MOON PILL SWITCH TOGGLE */
.theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
}

.theme-toggle-btn .toggle-track {
    width: 52px;
    height: 28px;
    border-radius: 999px;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 3px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.theme-toggle-btn .toggle-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn .toggle-thumb svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* Stylizacja dla trybu jasnego (Default Light) */
[data-theme="light"] .theme-toggle-btn .toggle-track {
    background-color: #fef3c7; /* Bardzo jasny żółty */
    border: 1px solid #fde68a;
}
[data-theme="light"] .theme-toggle-btn .toggle-thumb {
    background-color: #eab308; /* Ciepłe żółte słońce */
    transform: translateX(0px);
    color: #ffffff;
}
[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: block;
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: none;
}

/* Stylizacja dla trybu ciemnego (Premium Dark) */
[data-theme="dark"] .theme-toggle-btn .toggle-track {
    background-color: #1e293b; /* Ciemny, elegancki tor */
    border: 1px solid #334155;
}
[data-theme="dark"] .theme-toggle-btn .toggle-thumb {
    background-color: #38bdf8; /* Błękitny księżyc */
    transform: translateX(24px);
    color: #ffffff;
}
[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: block;
}

/* Dodatkowy odstęp w menu mobilnym dla estetyki */
div[data-device="mobile"] .theme-toggle-btn {
    margin-left: 10px;
    margin-right: 5px;
}

/* 7. DOPRACOWANIE TRYBU CIEMNEGO DLA PODSEKCJI I KONTRASTU (Dark Mode Subsections & Contrast Fixes) */

/* Wymuszenie przezroczystości dla wierszy nagłówka Blocksy, aby dziedziczyły tło ct-header */
[data-theme="dark"] header.ct-header [data-row="middle"],
[data-theme="dark"] header.ct-header [data-row="bottom"] {
    background-color: transparent !important;
}

/* Naprawa kontrastu dla rozwijanego menu podrzędnego (Sub-menu Dropdowns) */
[data-theme="dark"] .sub-menu {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .sub-menu a {
    color: #e2e8f0 !important;
    background-color: transparent !important;
}

[data-theme="dark"] .sub-menu a:hover {
    color: var(--theme-palette-color-1) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Naprawa Spisu Treści (LuckyWP Table of Contents) */
[data-theme="dark"] .lwptoc,
[data-theme="dark"] .lwptoc_i {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .lwptoc_title {
    color: #ffffff !important;
}

[data-theme="dark"] .lwptoc_toggle a,
[data-theme="dark"] .lwptoc_toggle_label {
    color: var(--theme-palette-color-1) !important;
}

[data-theme="dark"] .lwptoc_item a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .lwptoc_item a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* Naprawa Boksów "Zobacz także" (Inline Related Posts) */
[data-theme="dark"] .entry-content a:has(.ctaText),
[data-theme="dark"] .entry-content a:has(.postTitle) {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

[data-theme="dark"] .entry-content a:has(.ctaText) div,
[data-theme="dark"] .entry-content a:has(.postTitle) div {
    background-color: #121e42 !important;
    color: #e2e8f0 !important;
    transition: background-color 0.2s ease !important;
}

[data-theme="dark"] .entry-content a:has(.ctaText) .ctaText {
    color: var(--theme-palette-color-1) !important;
}

[data-theme="dark"] .entry-content a:has(.ctaText) .postTitle {
    color: #ffffff !important;
}

/* Wymuszenie ciemnego tła i czerwonej ramki przy najechaniu (Hover state) */
[data-theme="dark"] .entry-content a:has(.ctaText):hover,
[data-theme="dark"] .entry-content a:has(.postTitle):hover {
    background-color: #1e293b !important;
    border-color: var(--theme-palette-color-1) !important;
}

[data-theme="dark"] .entry-content a:has(.ctaText):hover div,
[data-theme="dark"] .entry-content a:has(.postTitle):hover div {
    background-color: #1e293b !important;
}

[data-theme="dark"] .entry-content a:has(.ctaText):hover .postTitle,
[data-theme="dark"] .entry-content a:has(.postTitle):hover .postTitle {
    color: #ffffff !important;
}

/* Naprawa sekcji "Baza Wiedzy Eksperckiej" */
[data-theme="dark"] .entry-content div[style*="background-color: #f8f9fa"],
[data-theme="dark"] .entry-content div[style*="background-color: rgb(248, 249, 250)"],
[data-theme="dark"] .entry-content div[style*="background-color"] {
    background-color: #121e42 !important;
    color: #e2e8f0 !important;
    border-color: var(--theme-palette-color-1) !important; /* Zamiana niebieskiej ramki na brandowy czerwony */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .entry-content div[style*="background-color"] h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .entry-content div[style*="background-color"] div[style*="color: #6c757d"] {
    color: #94a3b8 !important; /* Poprawa czytelności etykiety */
}

/* Przyciski i ikonki Toggle w nawigacji mobilnej i nagłówku */
[data-theme="dark"] .ct-toggle-close,
[data-theme="dark"] .ct-toggle-dropdown-mobile,
[data-theme="dark"] .ct-toggle-dropdown-desktop-ghost,
[data-theme="dark"] .ct-toggle-dropdown-desktop,
[data-theme="dark"] .mobile-menu .ct-toggle-dropdown-mobile {
    color: #ffffff !important;
}

[data-theme="dark"] .ct-toggle-close svg,
[data-theme="dark"] .ct-toggle-dropdown-mobile svg,
[data-theme="dark"] .ct-toggle-dropdown-desktop-ghost svg,
[data-theme="dark"] .ct-toggle-dropdown-desktop svg {
    fill: currentColor !important;
}

/* Stylowanie pól formularzy w Trybie Ciemnym */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #121e42 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="search"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--theme-palette-color-1) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 42, 0, 0.2) !important;
}

/* 8. PODSTAWOWE ELEMENTY ARTYKUŁU I POPRAWA KONTRASTU LINKÓW (Article Elements & Hyperlinks Polish) */

/* Nadanie wyróżniającej, brandowej czerwieni odnośnikom tekstowym (hyperlinks) w treści wpisu */
[data-theme="dark"] .entry-content a:not(.stk-button):not(.ct-button):not(.ctaText):not(.contact-email-btn):not(.category-load-more-btn) {
    color: var(--theme-palette-color-1) !important;
    border-bottom: 2px solid rgba(255, 42, 0, 0.25) !important;
}

[data-theme="dark"] .entry-content a:not(.stk-button):not(.ct-button):not(.ctaText):not(.contact-email-btn):not(.category-load-more-btn):hover {
    color: #33ff99 !important;
    border-bottom-color: #33ff99 !important;
}

/* Wyeliminowanie czarnego tekstu w nagłówku spisu treści i przyciskach */
[data-theme="dark"] .lwptoc_header,
[data-theme="dark"] .lwptoc_header * {
    color: #ffffff !important;
}

[data-theme="dark"] .lwptoc_toggle_label,
[data-theme="dark"] .lwptoc_toggle_label a {
    color: var(--theme-palette-color-1) !important;
}

/* Stylowanie cytatów blokowych i separatorów w treści */
[data-theme="dark"] blockquote,
[data-theme="dark"] .wp-block-quote {
    border-left: 4px solid var(--theme-palette-color-1) !important;
    color: #cbd5e1 !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    padding: 15px 20px !important;
    border-radius: 0 8px 8px 0 !important;
}

[data-theme="dark"] hr.wp-block-separator,
[data-theme="dark"] hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 9. PRZYCISK POWROTU NA GÓRĘ (Scroll to Top Button Customization) */
[data-theme="dark"] .ct-back-to-top {
    background-color: var(--theme-palette-color-1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 42, 0, 0.4) !important;
    border: none !important;
}

[data-theme="dark"] .ct-back-to-top:hover {
    background-color: #33ff99 !important;
    box-shadow: 0 4px 20px rgba(255, 82, 51, 0.6) !important;
}

[data-theme="dark"] .ct-back-to-top svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* 10. KONTRAST HOVERA DLA LINKÓW W SIDEBARZE I STOPCE (Sidebar & Footer Hover Contrast) */
[data-theme="dark"] .ct-sidebar a:hover,
[data-theme="dark"] .ct-sidebar a:focus,
[data-theme="dark"] .ct-footer a:hover,
[data-theme="dark"] .ct-footer a:focus {
    color: var(--theme-palette-color-1) !important;
    transition: color 0.2s ease !important;
}

/* 11. STYLIZACJA SEKCJI NEWSLETTERA NA STRONIE GŁÓWNEJ (Homepage Newsletter Section) */
.newsletter-section {
    padding: 60px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 40px 0 0 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #0A1128 0%, #121e42 100%) !important;
    border-top: 1px solid rgba(255, 42, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 42, 0, 0.15) !important;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .newsletter-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .newsletter-content {
        flex: 1;
        max-width: 55%;
    }
    .newsletter-form-wrapper {
        flex: 1;
        max-width: 40%;
    }
}

.newsletter-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--theme-palette-color-1, #0A1128);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

[data-theme="dark"] .newsletter-title {
    color: #ffffff !important;
}

.newsletter-desc {
    font-size: 15px;
    color: #475569; /* Zwiększony kontrast (Slate 600) z 3.5:1 do 5.1:1 dla WCAG AA */
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .newsletter-desc {
    color: #94a3b8 !important;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 576px) {
    .newsletter-fields {
        flex-direction: row;
    }
    .newsletter-input {
        flex: 1;
    }
}

.newsletter-input {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 34, 0, 0.15);
}

[data-theme="dark"] .newsletter-input {
    background-color: #0A1128 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 42, 0, 0.25) !important;
}

.newsletter-btn {
    padding: 12px 24px;
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(224, 34, 0, 0.2);
}

.newsletter-btn:hover {
    background-color: var(--theme-palette-color-2, #00E676) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(224, 34, 0, 0.35);
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
}

.newsletter-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.newsletter-consent-checkbox {
    margin-top: 3px;
    accent-color: var(--theme-palette-color-1, #0A1128);
    cursor: pointer;
}

.newsletter-consent-text {
    font-size: 12px;
    line-height: 1.4;
    color: #475569; /* Zwiększony kontrast dla WCAG AA */
}

[data-theme="dark"] .newsletter-consent-text {
    color: #94a3b8 !important;
}

.newsletter-consent-text a {
    color: var(--theme-palette-color-1, #0A1128) !important;
    text-decoration: underline;
}

.newsletter-consent-text a:hover {
    color: #33ff99 !important;
}


/* 12. STYLIZACJA PODSTRONY WSPÓŁPRACA (Cooperation Page `/wspolpraca/`) */
.cooperation-page-content {
    margin-top: 20px;
}

.cooperation-page-content .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 30px;
}

[data-theme="dark"] .cooperation-page-content .lead {
    color: #cbd5e1 !important;
}

/* Statystyki / Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0 40px 0;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.metric-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .metric-card {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .metric-card:hover {
    border-color: rgba(255, 42, 0, 0.3) !important;
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.4) !important;
}

.metric-val {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-palette-color-1, #0A1128);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.metric-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569; /* Zwiększony kontrast dla WCAG AA */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .metric-label {
    color: #94a3b8 !important;
}

/* Karta Kontaktowa / Contact Box */
.cooperation-page-content .contact-box {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(224, 34, 0, 0.02);
    border: 1px solid rgba(224, 34, 0, 0.25) !important;
    border-left: 8px solid transparent !important;
    border-image: repeating-linear-gradient(-45deg, var(--theme-palette-color-1, #0A1128), var(--theme-palette-color-1, #0A1128) 10px, #000 10px, #000 20px) 8 !important;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .cooperation-page-content .contact-box {
    background-color: rgba(255, 42, 0, 0.04) !important;
    border-image: repeating-linear-gradient(-45deg, var(--theme-palette-color-1), var(--theme-palette-color-1) 10px, #ffffff 10px, #ffffff 20px) 8 !important;
}

.cooperation-page-content .contact-box h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

[data-theme="dark"] .cooperation-page-content .contact-box h3 {
    color: #ffffff !important;
}

.cooperation-page-content .contact-box p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

[data-theme="dark"] .cooperation-page-content .contact-box p {
    color: #cbd5e1 !important;
}

.contact-email-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(224, 34, 0, 0.25);
    border: none !important;
}

.contact-email-btn:hover {
    background-color: #e02500 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 42, 0, 0.4);
    color: #ffffff !important;
}

/* ==========================================================================
   12. PASEK "NA TOPIE" (Trending/Popular Articles Bar)
   ========================================================================== */
.trending-bar-wrapper {
    background-color: var(--theme-card-background, #ffffff);
    border-bottom: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
    padding: 12px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: var(--theme-font-family, 'Inter', sans-serif);
}

[data-theme="dark"] .trending-bar-wrapper {
    background-color: #121e42 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.trending-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.trending-label {
    display: inline-flex;
    align-items: center;
    background-color: var(--theme-palette-color-1, #0A1128);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(224, 34, 0, 0.25);
    user-select: none;
}

.trending-label .trending-icon {
    margin-right: 6px;
    font-size: 12px;
}

.trending-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px; /* Wygodna wysokość dla tekstu */
}

.trending-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    width: 100%;
    height: 100%;
}

.trending-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
}

.trending-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.trending-item a {
    color: var(--theme-text-color, #1e293b);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    transition: color 0.2s ease;
    border-bottom: none !important; /* Usuwa domyślne podkreślenie linków */
}

[data-theme="dark"] .trending-item a {
    color: #e2e8f0 !important;
}

.trending-item a:hover {
    color: var(--theme-palette-color-1, #0A1128) !important;
}

.trending-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trending-nav-btn {
    background: transparent !important;
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1)) !important;
    color: var(--theme-text-color, #475569) !important; /* Zwiększony kontrast dla WCAG AA */
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    outline: none;
}

[data-theme="dark"] .trending-nav-btn {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

.trending-nav-btn:hover {
    background-color: rgba(224, 34, 0, 0.08) !important;
    color: var(--theme-palette-color-1, #0A1128) !important;
    border-color: var(--theme-palette-color-1, #0A1128) !important;
}

.trending-nav-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsywność */
@media (max-width: 576px) {
    .trending-nav {
        display: none; /* Ukryj nawigację na bardzo małych ekranach */
    }
    .trending-item a {
        font-size: 13px;
    }
    .trending-bar-content {
        gap: 12px;
    }
}

/* ==========================================================================
   13. KAFLOWY UKŁAD KATEGORII (Category Sections Grid Layout)
   ========================================================================== */
.category-section-wrapper {
    margin: 45px 0;
    font-family: var(--theme-font-family, 'Inter', sans-serif);
}

/* Czerwona belka nagłówkowa */
.category-section-header {
    background-color: var(--theme-palette-color-1, #0A1128); /* Brandowy czerwony */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .category-section-header {
    background-color: var(--theme-palette-color-1) !important;
}

.category-section-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-section-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
}

/* Linki do podkategorii */
.category-section-subcategories {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-section-subcategories a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
    border: none !important;
}

.category-section-subcategories a:hover {
    color: #ffffff !important; /* Efekt najechania - czysta biel na czerwonym tle */
    text-decoration: underline !important;
}

/* Siatka 3-kolumnowa */
.category-section-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

/* Lewa kolumna - Wyróżniony wpis */
.category-column-featured {
    display: flex;
    flex-direction: column;
}

.category-featured-article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-featured-thumb {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
    aspect-ratio: 16/10;
}

.category-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-featured-thumb:hover img {
    transform: scale(1.03); /* Elegancki hover zoom */
}

.category-featured-meta {
    margin-bottom: 8px;
}

.category-featured-badge {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--theme-palette-color-1, #0A1128);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

[data-theme="dark"] .category-featured-badge {
    background-color: rgba(255, 255, 255, 0.08);
}

.category-featured-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 5px 0 10px 0 !important;
}

.category-featured-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    border: none !important;
    transition: color 0.2s ease;
}

[data-theme="dark"] .category-featured-title a {
    color: #ffffff !important;
}

.category-featured-title a:hover {
    color: var(--theme-palette-color-1, #0A1128) !important;
}

.category-featured-excerpt {
    font-size: 14px;
    color: #475569; /* Zwiększony kontrast dla WCAG AA */
    line-height: 1.5;
}

[data-theme="dark"] .category-featured-excerpt {
    color: #cbd5e1 !important;
}

/* Środkowa i prawa kolumna - Listy wpisów */
.category-column-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-list-article {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.06));
}

.category-list-article:last-child {
    border-bottom: none;
}

[data-theme="dark"] .category-list-article {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.category-list-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.category-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.category-list-thumb:hover img {
    transform: scale(1.05);
}

.category-list-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-list-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 4px 0 !important;
}

.category-list-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    border: none !important;
    transition: color 0.2s ease;
}

[data-theme="dark"] .category-list-title a {
    color: #e2e8f0 !important;
}

.category-list-title a:hover {
    color: var(--theme-palette-color-1, #0A1128) !important;
}

.category-list-badge {
    font-size: 11px;
    color: var(--theme-palette-color-1, #0A1128);
    font-weight: 600;
}

/* Przycisk Załaduj Więcej */
.category-section-footer {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.category-load-more-btn {
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.15)) !important;
    color: var(--theme-text-color, #475569) !important; /* Zwiększony kontrast (Slate 600) dla WCAG AA */
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 8px 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.15)) !important;
}

[data-theme="dark"] .category-load-more-btn {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.category-load-more-btn:hover {
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
    border-color: var(--theme-palette-color-1, #0A1128) !important;
}

/* Responsywność */
@media (max-width: 991px) {
    .category-section-grid {
        grid-template-columns: 1fr 1fr;
    }
    .category-column-featured {
        grid-column: span 2;
        margin-bottom: 15px;
    }
    .category-featured-thumb {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .category-section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .category-column-featured {
        grid-column: span 1;
    }
    .category-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Ukrycie nagłówka (tytułu strony) na stronie głównej */
.home .entry-header,
.home .page-header,
.home .hero-section {
    display: none !important;
}

/* ==========================================================================
   14. SEKCJA HERO GRID (Siatka 3 Artykułów Wyróżnionych)
   ========================================================================== */
.hero-grid-wrapper {
    margin: 35px 0;
    font-family: var(--theme-font-family, 'Inter', sans-serif);
}

.hero-grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 420px;
}

.hero-grid-left {
    grid-area: 1 / 1 / 3 / 2;
    height: 100%;
}

.hero-grid-right-top {
    grid-area: 1 / 2 / 2 / 3;
    height: 100%;
}

.hero-grid-right-bottom {
    grid-area: 2 / 2 / 3 / 3;
    height: 100%;
}

.hero-grid-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background-color: var(--theme-border-color, rgba(0,0,0,0.06)); /* Fallback tła */
}

/* Wsparcie dla responsywnych obrazów (srcset) w kafelkach Hero */
.hero-grid-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.3s ease;
}

.hero-grid-item:hover .hero-grid-img {
    transform: scale(1.03); /* Elegancki hover zoom */
}

.hero-grid-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Ciemny gradient na dole kafelka */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero-grid-item:hover .hero-grid-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.hero-grid-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.hero-grid-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.hero-grid-title-small {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

/* Delikatne podniesienie tekstu przy najechaniu */
.hero-grid-item:hover .hero-grid-title,
.hero-grid-item:hover .hero-grid-title-small {
    transform: translateY(-2px);
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-grid-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .hero-grid-left,
    .hero-grid-right-top,
    .hero-grid-right-bottom {
        grid-area: auto;
        height: 220px;
    }
    .hero-grid-title {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   15. POPRAWKI KONTRASTU DLA TRYBU CIEMNEGO (Dark Mode Contrast Fixes)
   ========================================================================== */

/* Nadpisanie zbyt agresywnych reguł globalnych dla trybu ciemnego wewnątrz .entry-content */

/* 1. Nagłówek sekcji kategorii (tytuł i podkategorie na czerwonym tle) */
[data-theme="dark"] .entry-content .category-section-wrapper .category-section-title a:not(.stk-button):not(.ct-button):not(.ctaText) {
    color: #ffffff !important;
    border-bottom: none !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-section-subcategories a:not(.stk-button):not(.ct-button):not(.ctaText) {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: none !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-section-subcategories a:not(.stk-button):not(.ct-button):not(.ctaText):hover {
    color: #ffffff !important;
    border-bottom: none !important;
}

/* 2. Tytuły artykułów w sekcji kategorii (powinny być białe/jasnoszare, a czerwone tylko na hover) */
[data-theme="dark"] .entry-content .category-section-wrapper .category-featured-title a:not(.stk-button):not(.ct-button):not(.ctaText) {
    color: #ffffff !important;
    border-bottom: none !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-featured-title a:not(.stk-button):not(.ct-button):not(.ctaText):hover {
    color: var(--theme-palette-color-1) !important;
    border-bottom: none !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-list-title a:not(.stk-button):not(.ct-button):not(.ctaText) {
    color: #e2e8f0 !important;
    border-bottom: none !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-list-title a:not(.stk-button):not(.ct-button):not(.ctaText):hover {
    color: var(--theme-palette-color-1) !important;
    border-bottom: none !important;
}

/* 3. Przycisk "Załaduj więcej" (powinien być szary, a czerwony z białym tekstem tylko na hover) */
[data-theme="dark"] .entry-content .category-section-wrapper .category-load-more-btn:not(.stk-button):not(.ct-button):not(.ctaText) {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: transparent !important;
}

[data-theme="dark"] .entry-content .category-section-wrapper .category-load-more-btn:not(.stk-button):not(.ct-button):not(.ctaText):hover {
    background-color: var(--theme-palette-color-1) !important;
    color: #ffffff !important;
    border-color: var(--theme-palette-color-1) !important;
    border-bottom-color: var(--theme-palette-color-1) !important;
}

/* 4. Pasek Na Topie (Trending Bar) - nie jest wewnątrz .entry-content */
[data-theme="dark"] .trending-label span {
    color: #ffffff !important;
}

[data-theme="dark"] .trending-item a {
    color: #e2e8f0 !important;
    border-bottom: none !important;
}

[data-theme="dark"] .trending-item a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* 5. Etykiety i Badge kategorii */
[data-theme="dark"] .category-featured-badge {
    color: var(--theme-palette-color-1) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .category-list-badge {
    color: var(--theme-palette-color-1) !important;
}

/* 6. Kafelki Hero Grid */
[data-theme="dark"] .hero-grid-title,
[data-theme="dark"] .hero-grid-title-small {
    color: #ffffff !important;
}

/* 7. Stackable Hero & Columns Backgrounds and Overlays in Dark Mode */
[data-theme="dark"] .wp-block-stackable-hero,
[data-theme="dark"] .stk-block-hero,
[data-theme="dark"] .wp-block-stackable-columns,
[data-theme="dark"] .stk-block-columns,
[data-theme="dark"] .stk-column-wrapper,
[data-theme="dark"] .stk-row {
    background-color: #0A1128 !important;
}

[data-theme="dark"] .stk-container.stk--has-background-overlay::before,
[data-theme="dark"] .stk-block-hero__content::before,
[data-theme="dark"] .stk-block-hero__content-inner::before,
[data-theme="dark"] .stk-block-hero .stk-container::before {
    background-color: #0A1128 !important;
    opacity: 0.85 !important;
}

/* ==========================================================================
   16. SEKCJA SEO NA STRONIE GŁÓWNEJ (Homepage SEO Description Block)
   ========================================================================== */
.seo-homepage-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .seo-homepage-section {
    background-color: #0A1128 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.seo-homepage-section .ct-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.seo-homepage-intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.seo-homepage-intro h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

[data-theme="dark"] .seo-homepage-intro h1 {
    color: #ffffff !important;
}

.seo-homepage-intro h1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--theme-palette-color-1, #0A1128);
}

.seo-homepage-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-top: 15px;
}

[data-theme="dark"] .seo-homepage-intro p {
    color: #cbd5e1 !important;
}

.seo-homepage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .seo-homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seo-homepage-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

[data-theme="dark"] .seo-homepage-card {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.seo-homepage-card:hover {
    transform: translateY(-2px);
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    box-shadow: 0 10px 20px rgba(224, 34, 0, 0.15);
}

[data-theme="dark"] .seo-homepage-card:hover {
    box-shadow: 0 10px 20px rgba(255, 42, 0, 0.2) !important;
}

.seo-homepage-card h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #1e293b;
    border: none !important;
    padding: 0 !important;
    line-height: 1.3;
}

[data-theme="dark"] .seo-homepage-card h2 {
    color: #ffffff !important;
}

.seo-homepage-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: var(--theme-palette-color-1, #0A1128) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .seo-homepage-card h3 {
    color: var(--theme-palette-color-1) !important;
}

.seo-homepage-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569; /* Zwiększony kontrast (Slate 600) dla WCAG AA */
    margin: 0 0 15px 0;
}

.seo-homepage-card p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .seo-homepage-card p {
    color: #94a3b8 !important;
}

/* Wymuszenie koloru linków wewnątrz kart SEO strony głównej */
.seo-homepage-section a:not(.stk-button):not(.ct-button) {
    color: var(--theme-palette-color-1, #0A1128) !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(224, 34, 0, 0.2) !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.seo-homepage-section a:not(.stk-button):not(.ct-button):hover {
    color: #33ff99 !important;
    border-bottom-color: #33ff99 !important;
    text-decoration: none !important;
}

/* ==========================================================================
   17. STRONA ARTYKUŁU I SIDEBAR (Single Post & Sidebar Polish)
   ========================================================================== */

/* 1. Karty Widgetów w Sidebarze (Sidebar Widget Cards) */
.ct-sidebar .ct-widget {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ct-sidebar .ct-widget:hover {
    transform: translateY(-2px) !important;
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    box-shadow: 0 8px 20px rgba(224, 34, 0, 0.1) !important;
}

[data-theme="dark"] .ct-sidebar .ct-widget {
    background-color: #121e42 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ct-sidebar .ct-widget:hover {
    box-shadow: 0 8px 20px rgba(255, 42, 0, 0.2) !important;
}

/* 2. Nagłówki Widgetów (Widget Titles) */
.ct-sidebar .widget-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-color, #1e293b);
    border-left: 3px solid var(--theme-palette-color-1, #0A1128);
    padding-left: 12px;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}

[data-theme="dark"] .ct-sidebar .widget-title {
    color: #ffffff !important;
}

/* 3. Wyszukiwarka Konsolowa (Console-Style Search Form) */
.ct-sidebar .ct-search-form {
    display: flex !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.ct-sidebar .ct-search-form input[type="search"] {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
    padding: 10px 14px !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 13px !important;
    height: 42px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

[data-theme="dark"] .ct-sidebar .ct-search-form input[type="search"] {
    background-color: #0A1128 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.ct-sidebar .ct-search-form input[type="search"]:focus {
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    box-shadow: 0 0 0 2px rgba(224, 34, 0, 0.15) !important;
    outline: none !important;
}

[data-theme="dark"] .ct-sidebar .ct-search-form input[type="search"]:focus {
    box-shadow: 0 0 0 2px rgba(255, 42, 0, 0.25) !important;
}

.ct-sidebar .ct-search-form .wp-element-button {
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
    border: 1px solid var(--theme-palette-color-1, #0A1128) !important;
    border-radius: 0 6px 6px 0 !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.ct-sidebar .ct-search-form .wp-element-button:hover {
    background-color: var(--theme-palette-color-2, #00E676) !important;
    border-color: var(--theme-palette-color-2, #00E676) !important;
}

.ct-sidebar .ct-search-form .wp-element-button svg {
    width: 15px !important;
    height: 15px !important;
    fill: #ffffff !important;
}

/* 4. Lista Najnowszych Artykułów (Latest Articles Widget List) */
.ct-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ct-sidebar ul li {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
}

.ct-sidebar ul li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.ct-sidebar ul li:first-child {
    padding-top: 0 !important;
}

[data-theme="dark"] .ct-sidebar ul li {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Obrazek w liście */
.ct-sidebar ul li a:has(img) {
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    display: block !important;
    width: 70px !important;
    height: 52px !important;
    border: none !important;
}

.ct-sidebar ul li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.2s ease !important;
}

.ct-sidebar ul li:hover img {
    transform: scale(1.05) !important;
}

/* Teksty w liście */
.ct-sidebar ul li .ct-recent-post-content,
.ct-sidebar ul li > div {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.ct-sidebar ul li a:not(:has(img)) {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--theme-text-color, #1e293b) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s ease !important;
}

[data-theme="dark"] .ct-sidebar ul li a:not(:has(img)) {
    color: #e2e8f0 !important;
}

.ct-sidebar ul li a:not(:has(img)):hover {
    color: var(--theme-palette-color-1, #0A1128) !important;
}

/* Monospace timestamp */
.ct-sidebar ul li .post-date,
.ct-sidebar ul li time,
.ct-sidebar ul li .entry-meta,
.ct-sidebar ul li .ct-meta-element {
    font-size: 10px !important;
    font-family: 'Fira Code', monospace !important;
    color: #64748b !important;
    margin-top: 4px !important;
    display: block !important;
}

[data-theme="dark"] .ct-sidebar ul li .post-date,
[data-theme="dark"] .ct-sidebar ul li time,
[data-theme="dark"] .ct-sidebar ul li .entry-meta,
[data-theme="dark"] .ct-sidebar ul li .ct-meta-element {
    color: #94a3b8 !important;
}

/* 5. Górne elementy artykułu: Breadcrumbs, Meta i Tytuł (Breadcrumbs & Meta) */
.ct-breadcrumbs {
    font-family: 'Fira Code', monospace !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px !important;
}

.ct-breadcrumbs a {
    color: #64748b !important;
    border-bottom: none !important;
}

.ct-breadcrumbs a:hover {
    color: var(--theme-palette-color-1, #0A1128) !important;
}

[data-theme="dark"] .ct-breadcrumbs a {
    color: #94a3b8 !important;
}

/* Kategoria jako badge */
.single-post .entry-meta a[href*="/category/"],
.single-post .entry-meta a[href*="/kategoria/"] {
    background-color: rgba(224, 34, 0, 0.06) !important;
    color: var(--theme-palette-color-1, #0A1128) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    border-bottom: none !important;
    display: inline-block !important;
    margin-right: 10px !important;
}

[data-theme="dark"] .single-post .entry-meta a[href*="/category/"],
[data-theme="dark"] .single-post .entry-meta a[href*="/kategoria/"] {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--theme-palette-color-1) !important;
}

/* Metadane pojedynczego wpisu */
.single-post .entry-meta {
    font-family: 'Fira Code', monospace !important;
    font-size: 11px !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px !important;
}

[data-theme="dark"] .single-post .entry-meta {
    color: #94a3b8 !important;
}

/* 6. Obrazek Wyróżniający w Treści (Featured Image Layout) */
.single-post .post-thumbnail img,
.single-post .wp-block-post-featured-image img {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .single-post .post-thumbnail img,
[data-theme="dark"] .single-post .wp-block-post-featured-image img {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4) !important;
}

/* 7. Tagowanie na Dole Artykułu (Tags Styling) */
.entry-tags a {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--theme-text-color, #1e293b) !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    border-bottom: none !important;
    margin: 2px !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] .entry-tags a {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
}

.entry-tags a:hover {
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
}

/* 8. Sekcja Powiązanych Wpisów (Related Posts Cards) */
.ct-related-posts-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 25px !important;
}

.ct-related-post-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ct-related-post-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    box-shadow: 0 10px 20px rgba(224, 34, 0, 0.1) !important;
}

[data-theme="dark"] .ct-related-post-card {
    background-color: #121e42 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ct-related-post-card:hover {
    box-shadow: 0 10px 20px rgba(255, 42, 0, 0.2) !important;
}

/* 9. Komentarze i Ich Formularz (Comments & Forms Refinement) */
.ct-comments-container {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .ct-comments-container {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Pola komentarzy */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

[data-theme="dark"] #commentform input[type="text"],
[data-theme="dark"] #commentform input[type="email"],
[data-theme="dark"] #commentform input[type="url"],
[data-theme="dark"] #commentform textarea {
    background-color: #121e42 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    border-color: var(--theme-palette-color-1, #0A1128) !important;
    box-shadow: 0 0 0 2px rgba(224, 34, 0, 0.15) !important;
    outline: none !important;
}

[data-theme="dark"] #commentform input[type="text"]:focus,
[data-theme="dark"] #commentform input[type="email"]:focus,
[data-theme="dark"] #commentform textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 42, 0, 0.25) !important;
}

/* Przycisk wysłania komentarza */
#commentform #submit {
    padding: 12px 28px !important;
    background-color: var(--theme-palette-color-1, #0A1128) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 12px rgba(224, 34, 0, 0.2) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

#commentform #submit:hover {
    background-color: var(--theme-palette-color-2, #00E676) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(224, 34, 0, 0.35) !important;
}








/* Wymuszenie kolorów Ksero na domyślnych elementach Stackable, gdy nie ma ich przypisanych lokalnie */
.stk-button, .stk-button:not(.ct-button) {
    background-color: var(--theme-palette-color-2, #00E676) !important;
    color: #0A1128 !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.stk-button:hover {
    background-color: #00c853 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3) !important;
}

/* Ikony i SVG */
.stk-block-icon svg, .stk-icon svg {
    fill: var(--theme-palette-color-2, #00E676) !important;
}

/* Hide default page title */
.page .hero-section { display: none !important; }

/* Ukrycie napisu Ksero i podmiana logo na przezroczyste */
.site-title-container { display: none !important; }
.site-logo-container img.default-logo { display: none !important; }
.site-logo-container {
    display: block !important;
    background-image: url('/wp-content/themes/blocksy-child/assets/images/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    width: 250px !important;
    height: 140px !important;
    min-height: 140px !important;
}
