/*
 Theme Name:   ColorMag Child
 Author:       Piotr Krupinski
 Template:     colormag
 Version:      1.0.0
*/

/* ============================================================
   1. ZMIENNE I CZCIONKI ============================================================ */
:root {
    --tech-blue: #000060;
    --tech-core: #F0F0F0;
    --tech-deep: #002d44;
    --accent-gold: #FFE000;
}

@font-face {
    font-family: 'Archicoco';
    src: url('https://krupapiotr.pl/wp-content/themes/colormag/assets/fonts/Archicoco.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ============================================================
   HEADER - DEEP CYBER GLITCH & SCAN (NO HTML MODS)
============================================================ */

:root {
    --laser-color: #ccffff;
    --glitch-red: rgba(255, 0, 80, 0.7);
    --glitch-blue: rgba(0, 255, 255, 0.7);
    --img-url: url('https://krupapiotr.pl/wp-content/uploads/sites/1/nggallery/foto-instalacje-ogolne/Montaż-i-ustawianie-anten-instalacja-zbiorcza-Lublin-1.JPG');
}

/* 1. TYPOGRAFIA */
.cm-entry-title {
    margin: 0;
    padding: 15px;
    line-height: 1.4; 
    word-wrap: break-word;
    position: relative;
    z-index: 10;
    text-shadow: 
        1px 0 var(--glitch-red), 
        -1px 0 var(--glitch-blue);
    animation: textFlicker 4s infinite;
}


@keyframes textFlicker {
    0%, 95%, 100% { text-shadow: 1px 0 var(--glitch-red), -1px 0 var(--glitch-blue); transform: skew(0); }
    96% { text-shadow: 4px 0 var(--glitch-red), -4px 0 var(--glitch-blue); transform: skew(5deg); }
    97% { text-shadow: -3px 0 var(--glitch-red), 3px 0 var(--glitch-blue); transform: skew(-5deg); }
    98% { text-shadow: 10px 0 var(--glitch-red), -10px 0 var(--glitch-blue); transform: skew(0); }
}


/* 1. KONTENER GŁÓWNY */
.cm-header-main-row {
    position: relative;
    background-color: #000;
    min-height: 180px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* 2. TŁO: INTELIGENTNA SIATKA (NEURAL GRID) */
.cm-header-main-row::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: 
/* Cienka siatka technologicz */
        linear-gradient(rgba(0, 242, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.10) 1px, transparent 1px),
        var(--img-url) no-repeat center top / cover;
    background-size: 40px 40px, 40px 40px, cover;
    z-index: -2;
    filter: brightness(0.8) contrast(1.2) saturate(0.7);
    animation: neuralPulse 15s ease-in-out infinite;
}

/* 3. SKANER: PRECYZYJNA WIĄZKA LASERA */
.cm-header-main-row::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, var(--tech-blue, #00f2ff), transparent);
    box-shadow: 0 0 15px var(--tech-blue, #00f2ff), 0 0 2px #fff;
    z-index: 5;
    opacity: 0;
    animation: precisionScan 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* ============================================================
   TYPOGRAFIA: ULTRA-WIDOCZNY SYGNAŁ (FIX)
   ============================================================ */
#cm-site-info .cm-site-title a {
    position: relative;
    display: inline-block !important;
    color: #FFFF00 !important; 
    font-family: 'Archicoco', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    letter-spacing: 5px !important;
    text-shadow: 
        2px 2px 0px #000, 
       -1px -1px 0px #000,
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 242, 255, 0.4) !important;
    
    transition: all 0.3s ease;
    z-index: 2;
}

/* 2. POPRAWIONE ECHO (Warstwa pod spodem) */
#cm-site-info .cm-site-title a::after {
    content: 'piotr krupa';
    position: absolute;
    inset: 0;
    color: #00f2ff; /* Jasny błękit */
    z-index: -1;
    opacity: 0;
    /* Filtr glow dla echa, żeby nie było ostre jak oryginał */
    filter: blur(2px);
    animation: signalGhostImproved 6s ease-in-out infinite !important;
}

/* --- NOWA, PŁYNNIEJSZA ANIMACJA ECHA --- */
@keyframes signalGhostImproved {
    0%, 80%, 100% { 
        opacity: 0; 
        transform: scale(1); 
    }
    85% { 
        opacity: 0.6; 
        transform: scale(1.08) translateX(5px); /* Lekkie przesunięcie w bok (echo) */
        filter: blur(4px);
    }
    90% { 
        opacity: 0.3; 
        transform: scale(1.15) translateX(-5px); 
        filter: blur(8px);
    }
}

/* 3. EFEKT NA HOVER - "Wzmocnienie sygnału" */
#cm-site-info .cm-site-title a:hover {
    color: #fff !important; /* Biały na najechanie dla super kontrastu */
    text-shadow: 0 0 25px #00f2ff, 0 0 50px #00f2ff !important;
    letter-spacing: 5px !important; /* Lekkie rozszerzenie */
}


/* ============================================================
   FIX: STABLE EMERGENCY BEACON - krupapiotr.pl
   ============================================================ */

.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    vertical-align: middle !important;
}

.custom-logo-link img, 
.cm-header-left-col img {
    /* Stabilizacja pozycji */
    display: block !important;
    margin: 0 auto !important;
    position: relative !important;
    top: 0 !important;
    filter: drop-shadow(0 0 2px rgba(0, 150, 255, 0.3));
    
    /* Animacja */
    animation: ultraBeaconStable 1.1s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
}

@keyframes ultraBeaconStable {
    0%, 40% {
        filter: drop-shadow(0 0 2px #0055ff) brightness(1);
        transform: scale(1);
    }
    45% {
        filter: drop-shadow(0 0 12px #00d4ff) brightness(2.8);
        transform: scale(1.02);
    }
    50% {
        filter: drop-shadow(0 0 2px #0055ff) brightness(1);
        transform: scale(1.01);
    }
    55% {
        filter: drop-shadow(0 0 15px #ffffff) brightness(2.8);
        transform: scale(1.01);
    }
    100% {
        filter: drop-shadow(0 0 2px #0055ff) brightness(1);
        transform: scale(1.01);
    }
}

#cm-header-left-col .custom-logo-link {
    line-height: 0 !important;
}


/* --- ANIMACJE --- */

/* Powolny zoom i pulsowanie jasności tła */
@keyframes neuralPulse {
    0%, 100% { transform: scale(1); filter: brightness(0.8) saturate(0.7); }
    50% { transform: scale(1.08); filter: brightness(1) saturate(1); }
}
@keyframes precisionScan {
    0% { top: -10%; opacity: 0; }
    5% { opacity: 1; }
    45%, 55% { top: 50%; height: 2px; filter: brightness(1.5); }
    95% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}



/* 3. WYCIĄGNIĘCIE TREŚCI NA WIERZCH */
.cm-header-main-row > * {
    position: relative;
    z-index: 1;
}


/* ============================================================
   STYLIZACJA HASŁA (TAGLINE) - krupapiotr.pl
============================================================ */

.cm-site-description {
    /* 1. TYPOGRAFIA */
    color: var(--accent-gold, #FFD700) !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: lowercase !important;
    letter-spacing: 4px !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 4px;
    backdrop-filter: blur(4px); 
    
  /* 3. EFEKT POŚWIATY (GLOW) */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 2px 2px 2px #000 !important;

/* 4. ANIMACJA POJAWIANIA SIĘ */
    opacity: 0;
    animation: descriptionFadeIn 5s ease forwards 5.5s;
}

/* KLUCZOWY BRAKUJĄCY ELEMENT: */
@keyframes descriptionFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Dopasowanie na mobile */
@media (max-width: 768px) {
    .cm-site-description {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        padding: 3px 8px !important;
    }
}

/* ============================================================
   5. MENU I DODATKI
============================================================ */
/* KONTENER DLA BELEK */
.kontener-dodatkowy {
    display: flex;
    flex-wrap: wrap;
    row-gap: 15px;
    column-gap: 10px;
    margin: 20px 0; 
    padding: 10px 0;
}

/* SAMA BELKA */
.dodatkowemenu {
    background: #1e5799;
    padding: 8px 18px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    
    /* ZABEZPIECZENIE: gdyby flex-gap nie zadziałał w starej przeglądarce */
    margin-bottom: 5px; 
    
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
}

.dodatkowemenu a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.dodatkowemenu:hover {
    background: #e74c3c;
    transform: translateY(-3px) skewX(-5deg);
}


/* Ukrywamy standardową kropkę w li w treściach i poradniku */
article ul, 
.entry-content ul, 
.post-content ul, 
.poradnik-content ul, 
.su-column ul {
    list-style: none !important;
    padding-left: 25px !important;
}

article ul li, 
.entry-content ul li, 
.post-content ul li, 
.poradnik-content ul li, 
.su-column ul li {
    position: relative !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}

/* Zielony kwadrat z dziurką w środku */
article ul li::before, 
.entry-content ul li::before, 
.post-content ul li::before, 
.poradnik-content ul li::before, 
.su-column ul li::before {
    content: "" !important;
    position: absolute !important;
    left: -25px !important;
    top: 6px !important;
    width: 12px !important;   /* Nieco mniejszy, żeby nie był zbyt ciężki */
    height: 12px !important;
    border: 2px solid #28a745 !important; /* Zielona ramka */
    background-color: #28a745 !important; /* Pusty środek */
    border-radius: 2px !important;
    display: inline-block !important;
}

/* ============================================================
   6. RESPONSYWNOŚĆ (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    .cm-header-main-row {
        min-height: 150px;
        padding-left: 15px;
        align-items: center;
        text-align: center;
    }
    
    
    .kafelki-nowoczesne {
        flex-direction: column;
    }
}

/* 1. Resetujemy szerokość paska, aby pozwolić elementom na ucieczkę na boki */
.cm-header-bottom .cm-container {
    width: 95% !important;
    max-width: 95% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 auto !important;
}

/* 2. LOGO - Wymuszamy lewą stronę bez przesuwania menu */
.cm-header-left-col {
    flex: 0 0 auto !important;
    margin: 0 !important;
    text-align: left !important;
}

.cm-header-left-col img {
    margin-left: 0 !important;
    max-width: 200px !important; 
}

/* 4. JĘZYK - Wymuszamy prawą stronę i BIAŁY kolor */
.cm-header-right-col {
    flex: 0 0 auto !important;
    text-align: right !important;
}

.cm-header-right-col, 
.cm-header-right-col * {
    color: #999888 !important;
    white-space: nowrap !important;
}

/* 5. FIX DLA MOBILNYCH - zapobiega rozjechaniu się na telefonach */
@media (max-width: 768px) {
    .cm-header-bottom .cm-container {
        flex-direction: column !important;
    }
}

/* Dodatkowy efekt: animacja "pulsowania" dla napisu */
@keyframes hud-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================
   10. KAFELKI OFERTY - PREMIUM WHITE & GOLD
   ============================================================ */

/* Wymuszenie jednej linii */
.kafelki-nowoczesne {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin: 40px auto !important;
    max-width: 1200px;
    padding: 0 10px;
}

/* Fix dla kolumn wtyczki */
.kafelki-nowoczesne .su-column {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
}

/* Estetyka kafelka */
.blue-tile {
    background: #ffffff !important; /* Czysta biel */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtelny cień */
    transition: all 0.3s ease-in-out;
}

/* Hover - eleganckie podświetlenie */
.blue-tile:hover {
    transform: translateY(-8px);
    border-color: #0056b3 !important; /* Twój bazowy granat */
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.1);
}

/* Ikona */
.tile-icon {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blue-tile:hover .tile-icon {
    background: #0056b3;
}

.tile-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #0056b3 !important; /* Granat */
}

.blue-tile:hover .tile-icon .dashicons {
    color: #ffffff !important; 
}

/* Typografia */
.blue-tile h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: inherit;
}

.tile-lead {
    color: #b59410 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.tile-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568 !important; /* Stonowany szary tekst */
}

/* RWD */
@media (max-width: 991px) {
    .kafelki-nowoczesne {
        flex-wrap: wrap !important;
    }
    .kafelki-nowoczesne .su-column {
        flex: 1 1 100% !important;
        margin-bottom: 20px !important;
    }
}
/* ============================================================
   11. DARK MODE - ADAPTACJA KAFELKÓW
   ============================================================ */

/* Obsługa automatyczna (systemowa) lub przez klasę .dark-mode */
@media (prefers-color-scheme: dark) {
    .blue-tile {
        background: rgba(15, 23, 42, 0.9) !important; /* Bardzo ciemny granat */
        border-color: rgba(0, 212, 255, 0.2) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .blue-tile h3 {
        color: #ffffff !important;
    }

    .tile-content {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .tile-icon {
        background: rgba(0, 212, 255, 0.05);
        border-color: rgba(0, 212, 255, 0.3);
    }

    .blue-tile:hover {
        background: rgba(0, 45, 68, 0.8) !important;
        border-color: var(--tech-blue) !important;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    }
}

/* Opcjonalny efekt: Poświata dla ikon w trybie ciemnym */
@media (prefers-color-scheme: dark) {
    .blue-tile:hover .tile-icon .dashicons {
        text-shadow: 0 0 10px var(--tech-blue);
    }
}

.ngg-gallery-thumbnail a {
    pointer-events: auto !important;
}

.ngg-gallery-thumbnail a:hover {
    cursor: zoom-in;
}
img {
    margin: 1px 1px 15px;
}
h2.widgettitle {
    font-size: 18px !important;
	display: none !important;
}

/* Zielona kropka, która pulsuje */
.fa-circle-online {
    color: #2ecc71;
    font-size: 0.8em;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
.cm-secondary .widget {
	border: 1px solid #F1F1F1;
	border-bottom: 1px solid #999;
    border-radius: 5px;
    box-shadow: 1px 1px 15px rgba(0,0,0,0.1); 
    padding: 3px 5px 5px;
    background: #fff;
    margin-bottom: 25px;
}

/* Celujemy we wszystkie listy w sidebarach i widgetach */
.widget ul li, 
aside ul li, 
#secondary ul li, 
.sidebar ul li {
    list-style-type: none !important;
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 8px !important;
}

/* Nowy, obniżony romb */
.widget ul li::before, 
aside ul li::before, 
#secondary ul li::before, 
.sidebar ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    
    /* Pozycjonowanie */
    top: 0.7em !important;      /* Używamy 'em', żeby romb "płynął" wraz z wielkością tekstu */
    margin-top: 3px !important; /* To jest ten dodatkowy "skok" w dół */
    
    width: 7px !important;
    height: 7px !important;
    background-color: #28a745 !important;
    transform: rotate(45deg) !important;
    display: inline-block !important;
}

/* Stylizacja dla urządzeń mobilnych */
@media (max-width: 767px) {
    .mobile-call-button {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #2c3e50; /* Intensywny zielony */
        color: white !important;
        padding: 15px 25px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9999;
        animation: slideIn 0.5s ease-out;
    }

    .mobile-call-button i {
        margin-right: 8px;
    }

    @keyframes slideIn {
        from { transform: translateY(100px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

.partner-section {
    padding: 40px 20px;
    background: #f9f9f9;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
}

.partner-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Odstępy między logotypami */
}

.logo-item img {
    max-width: 120px; /* Maksymalna szerokość logo */
    height: auto;
    filter: grayscale(100%); /* Efekt czarno-biały */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%); /* Powrót do kolorów po najechaniu */
    opacity: 1;
    transform: scale(1.1); /* Lekkie powiększenie */
}


/* Główny kontener */
.krupa-oferta-sekcja {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- GŁÓWNY UKŁAD SIATKI --- */
.oferta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

/* --- STYL KART --- */
.oferta-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
	 border-top: 4px solid #a0e0e0;
	 border-bottom: 5px solid #a0e0e0;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- NAGŁÓWKI --- */
.oferta-card h4, 
.oferta-card h5 {
    font-size: 1.6rem !important; 
    font-weight: 800 !important; 
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #000080 !important;      /* Ciemny granat */
    line-height: 1.2 !important;
    text-transform: uppercase;     border-bottom: 1px solid #a0e0e0;
}
/* --- STYL DLA IKON (np. 🌐, 📺, 🛠️) --- */
.card-header .icon {
    display: block; /* Ikona w osobnym wierszu */
    font-size: 3.5rem !important; /* Znaczne powiększenie ikony */
    margin: 0 auto 15px auto !important; /* Wyśrodkowanie i odstęp od nagłówka */
    line-height: 1;
    text-align: center;
}

/* --- LEPSZE WYŚRODKOWANIE DLA WSZYSTKIEGO --- */
.card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; /* Subtelna linia oddzielająca ikonę od nagłówka */
}

/* --- LISTA Z PTASZKAMI --- */
.cm-post-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
}

.cm-post-content li {
    font-size: 1.45rem !important;
    line-height: 1.6 !important;
    padding: 5px 0 5px 35px !important; /* Odstęp na ikonę */
    position: relative;
    color: #333 !important;
    list-style-type: none !important; /* Dodatkowe upewnienie się */
}

/* Zielona ikona (ptaszek) - tylko w treści posta */
.cm-post-content li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 5px;
    color: #28a745 !important; 
    font-weight: bold;
    font-size: 1.4rem;
}

/* 1. SELEKTOR WYKLUCZAJĄCY (Sharedaddy, Paginacja, Nawigacja Wpisów) */
.cm-post-content ul:not(.sharedaddy ul):not(.default-wp-page):not(.post-navigation ul):not(.nav-links ul):not([class*="sd-"]) {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
}

/* 2. STYL DLA LI (Tylko czyste listy treści) */
.cm-post-content ul:not(.sharedaddy ul):not(.default-wp-page):not(.post-navigation ul):not(.nav-links ul):not([class*="sd-"]) li {
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
    padding: 5px 0 5px 35px !important;
    position: relative;
    color: #333 !important;
    list-style-type: none !important;
}

/* 3. ZIELONA IKONA (Ptaszek) */
.cm-post-content ul:not(.sharedaddy ul):not(.default-wp-page):not(.post-navigation ul):not(.nav-links ul):not([class*="sd-"]) li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    color: #28a745 !important;
    font-weight: bold;
    font-size: 1.2rem;
}
/* 4. RESET DLA WSZYSTKICH SEKCJI NAWIGACYJNYCH I SOCJALNYCH */
.cm-post-content .sharedaddy li::before,
.cm-post-content .default-wp-page li::before,
.cm-post-content .post-navigation li::before,
.cm-post-content .nav-links li::before,
.cm-post-content .nav-previous li::before,
.cm-post-content .nav-next li::before {
    content: none !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* 2. USUNIĘCIE PTASZKÓW I RESETOWANIE LI */
.default-wp-page li {
    font-size: 1rem !important; /* Mniejszy font niż w treści artykułu */
    line-height: 1.4 !important;
    padding: 0 !important;      /* Usuwamy padding 35px, który daliśmy dla ptaszka */
    margin: 0 !important;
    position: static !important;
    flex: 1;
}

.default-wp-page li::before {
    content: none !important;   /* Blokada zielonego ptaszka */
}

/* 3. STYL DLA LINKÓW (Poprzedni/Następny) */
.default-wp-page li.previous { text-align: left; margin-right: 10px !important; }
.default-wp-page li.next { text-align: right; margin-left: 10px !important; }

.default-wp-page a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #444 !important;
    font-weight: 600;
    transition: color 0.2s;
}

.default-wp-page li.next a { justify-content: flex-end; }

.default-wp-page a:hover {
    color: #00f2ff !important; /* Twój tech-blue */
}

/* 4. ROZMIAR IKON SVG */
.default-wp-page svg.cm-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.default-wp-page li.previous svg { margin-right: 8px; }
.default-wp-page li.next svg { margin-left: 8px; }

/* 5. RWD: Na małych ekranach jeden pod drugim */
@media (max-width: 600px) {
    .default-wp-page {
        flex-direction: column;
        gap: 15px;
    }
    .default-wp-page li.next { text-align: left; }
    .default-wp-page li.next a { justify-content: flex-start; }
}


/* Responsywność - widok na tabletach i telefonach */
@media (max-width: 992px) {
    .oferta-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 600px) {
    .oferta-grid {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
    }
    
    .oferta-intro {
        font-size: 2rem;
    }
}
/* ============================================================
   3. NAGŁÓWKI H1 I H2 (DIODA SKALOWALNA DO WIELKOŚCI LITER)
   ============================================================ */

h1.cm-entry-title, h2.cm-entry-title {
    font-family: 'Arial', sans-serif;
    color: #ce1126;
    font-weight: 700;
    
    /* Flexbox gwarantuje idealne wyrównanie w poziomie */
    display: flex !important;
    align-items: center !important; 
    gap: 0.4em; /* Odstęp proporcjonalny do wielkości liter */
}

h1.cm-entry-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.1;
    margin: 3rem 0;
}

h2.cm-entry-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
}

/* STYL DIODY DOPASOWANEJ DO TEKSTU */
h1.cm-entry-title::before, h2.cm-entry-title::before {
    content: "";
    flex-shrink: 0;
    
    /* KLUCZ: Szerokość i wysokość oparta na wielkości litery */
    width: 0.9em; 
    height: 0.9em;
    
    background: #ce1126;
    border-radius: 2px; /* Zachowujemy lekki techniczny kant */
    
    /* Cień również staje się proporcjonalny */
    box-shadow: 0 0 0 rgba(206, 17, 38, 0.4);
    animation: pulse-red-scaled 2s infinite;
}

@keyframes pulse-red-scaled {
    0% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.7); }
    70% { box-shadow: 0 0 0 0.9em rgba(206, 17, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0); }
}
/* ============================================================
   4. EFEKT POWIĘKSZENIA ZDJĘĆ
   ============================================================ */
img {
    transition: transform 0.4s ease-in-out, filter 0.4s ease !important;
}

img:hover {
    transform: scale(1.08) !important; /* Powiększenie o 8% */
    filter: brightness(1.05);
    z-index: 99;
    position: relative;
}

/* Zabezpieczenie ramek galerii */
.ngg-gallery-thumbnail, .wp-block-image, .blue-tile {
    overflow: hidden !important;
}

.inner-wrap h3 a, .inner-wrap h3 {
    text-transform: lowercase !important;
    font-size: 18px !important;
    letter-spacing: 0px !important;
}

/* --- NAGŁÓWKI H1 --- */
h1.cm-entry-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    line-height: 1.1;
    margin-top: 3rem;
    margin-bottom: 3rem;            
    letter-spacing: -0.02em;       
    text-align: left;
}

/* --- NAGŁÓWKI H2 --- */
h2.cm-entry-title {
    font-size: 1.8rem;            
    line-height: 1.3;             
    margin-top: 2rem;             
    margin-bottom: 1rem;           
    letter-spacing: -0.01em;
    text-align: left;
    border-bottom: 1px solid #eeeeee; 
    padding-bottom: 5px;
}

/* --- WSPÓLNE STYLE + EFEKT PULSUJĄCEJ KROPKI --- */
h1.cm-entry-title, h2.cm-entry-title {
    font-family: 'Arial', sans-serif;
    color: #ce1126;
    font-weight: 700;
}

h1.cm-entry-title::before, h2.cm-entry-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ce1126; /* Twoja czerwień */
    margin-right: 12px;
    
    /* DODATEK: Efekt pulsującego światła */
    box-shadow: 0 0 0 rgba(206, 17, 38, 0.4);
    animation: pulse-red 2s infinite;
    border-radius: 2px; /* Lekko zaokrąglone rogi, by wyglądało nowocześniej */
}

/* Animacja pulsu */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(206, 17, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(206, 17, 38, 0);
    }
}

/* CEL: ZMNIEJSZENIE I ZMIANA LITER DLA LINKÓW W NAGŁÓWKACH H3 */
.inner-wrap h3 a, 
.inner-wrap h3 {
    /* ZMNIEJSZENIE ROZMIARU CZCIONKI */
    font-size: 16px !important; 
    
    /* WYMUSZENIE WŁAŚCIWEGO ODSTĘPU LINII */
    line-height: 1.2 !important;
    
    /* USUNIĘCIE NADMIERNEGO POGRUBIENIA */
    font-weight: 600 !important;
}

/* --- EFEKT POWIĘKSZENIA OBRAZKÓW --- */

/* 1. UNIWERSALNY EFEKT DLA KAŻDEGO OBRAZKA NA STRONIE */
img {
    transition: transform 0.4s ease-in-out, filter 0.4s ease !important;
}

img:hover {
    transform: scale(1.08) !important; /* Powiększenie o 8% */
    filter: brightness(1.05);
    z-index: 99;
}


/* 3. ZABEZPIECZENIE RAMKI (opcjonalne) */
.wp-block-image, .ngg-gallery-thumbnail, .blue-tile {
    overflow: hidden !important;
}

h1.modern-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;               
  font-weight: 900;               
  text-align: center;
  color: #ffffff !important;     
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(to right, #00d4ff, #FFFF00, #0080FF) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important; 
  display: inline-block !important; 
  animation: shine 4s linear infinite !important;
}

@keyframes shine {
  to { background-position: 200% center; }
}
@media (max-width: 768px) {
  .modern-hero-title { font-size: 32px !important; }
}

.cm-entry-title {
    font-size: 1.5rem; /* Przykładowa wielkość */
    line-height: 1.3; 
    margin-bottom: 10px;
    word-wrap: break-word;
}

.cm-entry-title a {
    display: block;
    text-decoration: none;
}

/* KLASYCZNY STYL DLA TAGÓW [rel="tag"] */
a[rel="tag"] {
    display: inline-block;
    padding: 2px 8px;
    margin: 4px 2px;
    
    /* 1. KSZTAŁT: Klasyczny prostokąt z lekkim zaokrągleniem */
    border-radius: 3px; 
    clip-path: none !important; 
    
    /* 2. KOLORYSTYKA: Białe litery na bardzo ciemnym tle */
    color: #ffffff !important;
    background: #666666 !important; /* Prawie czarny */
    border: 1px solid #333; /* Subtelna ramka w spoczynku */
    
    /* 3. TYPOGRAFIA: Ostra i czytelna */
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    
    /* Przejścia */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 4. EFEKT HOVER: Klasyczny "Glow" */
a[rel="tag"]:hover {
    background: #000 !important;
    border-color: #00f2ff; /* Rozświetlenie ramki na Twój kolor błękitny */
    color: #00f2ff !important; /* Litery zmieniają kolor na neonowy */
    
    /* Delikatna poświata zewnętrzna */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    transform: translateY(-1px);
}


/* 1. Stylizacja kółek (ikon) */
.tile-icon {
    width: 80px !important;
    height: 80px !important;
    background: #ffffff !important;
    border: 3px solid #00d4ff !important;
    border-radius: 50% !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2) !important;
    position: relative !important;
    z-index: 1; /* Żeby ikona była nad kółkiem */
}

/* 2. Wstawienie ikon przez kody Unicode CSS */
.tile-icon::before {
    font-size: 35px !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    display: block !important;
}

/* Ikona DOM (🏠) */
.su-column:nth-child(1) .tile-icon::before {
    content: "\1F3E0" !important;
}

/* Ikona BIZNES (🏢) */
.su-column:nth-child(2) .tile-icon::before {
    content: "\1F3E2" !important;
}

/* Ikona DEVELOPER (🏗️) */
.su-column:nth-child(3) .tile-icon::before {
    content: "\1F3D7" !important;
}

/* 3. Naprawa tekstu, który uciekł na boki */
.blue-tile {
    text-align: center !important;
    overflow: hidden !important; /* Zapobiega wystawaniu napisów */
}

