/*
Theme Name: Przedszkole
Theme URI: https://zlobek.nowytarg.pl/
Author: Marcin Bryniarski
Description: Dedykowany motyw dla Przedszkola.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain:
*/

/* =========================================
   1. ZMIENNE I RESET
   ========================================= */

:root {
    --primary-blue: #2C5070;       /* Bardzo ciemny błękit (WCAG AAA) */
    --accent-yellow: #F4D35E;      /* Warm Sunshine */
    --bg-cream: #F9F7F2;           /* Cream Paper */
    --text-dark: #333333;          /* Soft Charcoal */
    --text-light: #ffffff;
    --secondary-blue: #1C3B57;     /* Najciemniejszy granat */

    /* Konfigurowalne przyciski (Dostosuj) */
    --btn-primary-bg: #F4D35E;
    --btn-primary-text: #333333;
    --btn-primary-hover: #E5C349;
    --btn-secondary-bg: #2C5070;
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover: #1C3B57;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    /* FIX: Blokowy układ zapobiega błędom "duchów" (BOM/whitespace) */
    display: block; 
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 0;
}

/* =========================================
   KLASY DOSTĘPNOŚCI (WCAG 2.2 AA / KRI)
   Ukrywa tekst wizualnie, zachowując pełną dostępność dla czytników ekranu (NVDA, JAWS)
   ========================================= */
.screen-reader-text,
.sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--primary-blue, #2C5070);
    border-radius: 4px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    height: auto;
    left: 10px;
    line-height: normal;
    padding: 12px 20px;
    text-decoration: none;
    top: 10px;
    width: auto;
    z-index: 100000;
}

/* FIX: Ukrywanie paska wtyczki Accessibility (biały pasek nad menu) 
   (Przywrócono display: none, ponieważ wizualne ukrycie powoduje błędy przeliczania wysokości w JS wtyczki) */
.ea11y-skip-to-content-backdrop {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.ea11y-skip-to-content-backdrop:focus-within {
    position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important;
}

/* =========================================
   2. NAWIGACJA (LOGO PIECZĘĆ & MENU)
   ========================================= */

/* Bezpieczne selektory ograniczone do paska nawigacji strony (nie psują znaczników <nav> w BIP ani stopce) */
nav.site-nav,
body > nav {
    background: white;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    /* WYMUSZAMY stałą wysokość. Jeśli logo jest większe, będzie wystawać dołem. */
    height: 80px !important; 
    overflow: visible; 
}

/* FIX: Obsługa paska admina WP */
body.admin-bar nav.site-nav,
body.admin-bar > nav {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar nav.site-nav,
    body.admin-bar > nav { top: 46px; }
}

/* Kontener prawego obszaru akcji nawigacji (BIP + Hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
}

/* Stylizacja logo na komputerze (Desktop powyżej 768px) */
@media (min-width: 769px) {
    /* Kontener logo (zerowa wysokość, żeby nie rozpychać paska na komputerze) */
    .logo {
        position: static;
        height: 0; 
        width: 0;
        display: flex;
        align-items: center;
    }

    .logo img, 
    .custom-logo-link img,
    img.custom-logo {
        position: absolute !important; 
        top: var(--logo-top, 0px) !important;      
        left: calc(5% + var(--logo-left, 0px)) !important;
        transform: translateX(0) !important;
        height: var(--logo-height, 130px) !important; /* Logo w stanie początkowym (większa pieczęć) */
        width: auto;   
        max-width: none; 
        z-index: 101;
        
        /* Wygląd pieczątki */
        background: white;
        padding: 10px;
        border-radius: 0 0 15px 15px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Płynne zmniejszanie logo do wielkości paska menu (Desktop) */
    nav.site-nav.is-scrolled .logo img,
    nav.site-nav.is-scrolled .custom-logo-link img,
    nav.site-nav.is-scrolled img.custom-logo,
    body.is-scrolled nav .logo img,
    body.is-scrolled nav .custom-logo-link img,
    body.is-scrolled nav img.custom-logo {
        height: 62px !important;
        top: 9px !important;
        left: calc(5% + var(--logo-left, 0px) + var(--logo-scrolled-left, 0px)) !important;
        transform: translateX(0) !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* Linki w menu (DESKTOP - POZIOMO) */
.nav-links ul {
    display: flex;
    flex-direction: row; /* <--- KLUCZOWE: Wymusza poziom na komputerze */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links ul li {
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 700;
    transition: color 0.3s;
    display: inline-block;
}

.nav-links ul li a:hover { color: var(--primary-blue); }
.nav-links ul li.current-menu-item a { color: var(--primary-blue); }

/* Przycisk w menu (klasa .btn-nav) */
.nav-links ul li.btn-nav a {
    background-color: var(--btn-primary-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: var(--btn-primary-text) !important;
    margin-left: 2rem;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.nav-links ul li.btn-nav a:hover {
    background-color: var(--btn-primary-hover);
    color: var(--btn-primary-text) !important;
}

/* Kontener prawego obszaru nawigacji (Menu + BIP) */
.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-bip-wrapper {
    display: flex;
    align-items: center;
}

.nav-bip {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.bip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.bip-link:hover {
    transform: translateY(-2px);
}

.bip-link:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.bip-img {
    height: 32px;
    width: auto;
    max-width: 130px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.bip-icon-svg {
    display: block;
    width: 48px;
    height: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* =========================================
   3. SEKCJE GŁÓWNE (Hero z Animacją)
   ========================================= */

.hero {
    min-height: 85vh;
    background-color: var(--secondary-blue); /* Fallback WCAG */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* 1. Ruchome Tło */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Na samym dole */
    
    /* TU DZIEJE SIĘ MAGIA: */
    animation: kenBurns 20s ease-out infinite alternate;
}

/* 2. Statyczna Nakładka (Niebieski filtr) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(28, 59, 87, 0.85), rgba(44, 80, 112, 0.9));
    z-index: 2; /* Nad zdjęciem */
}

/* 3. Treść (Tekst i przyciski) */
.hero-content {
    max-width: 800px;
    z-index: 3; /* Na samej górze, żeby dało się klikać */
    position: relative;
}

/* Definicja animacji (Powiększanie od 100% do 115%) */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s;
    margin: 10px;
    border: none;
    cursor: pointer;
}
.btn:hover { transform: scale(1.05); }
.btn-primary { 
    background-color: var(--btn-primary-bg); 
    color: var(--btn-primary-text) !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); 
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s; 
}
.btn-primary:hover { 
    background-color: var(--btn-primary-hover); 
    color: var(--btn-primary-text) !important; 
    transform: scale(1.05); 
}
.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    color: var(--btn-secondary-text) !important;
    transform: scale(1.05);
}
.btn-outline { background-color: transparent; border: 2px solid white; color: white; }

/* Features */
.features {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-10px); }
.icon-box { font-size: 3rem; margin-bottom: 1rem; color: var(--primary-blue); }
.card h3 { margin-bottom: 1rem; color: var(--secondary-blue); }

/* About */
.about-section { padding: 5rem 10%; display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.about-text { flex: 1; }
.about-img { flex: 1; min-width: 300px; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: 15px 15px 0px var(--accent-yellow); height: auto; }
h2.section-title { color: var(--primary-blue); font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Groups Home */
.groups { background-color: white; padding: 5rem 10%; text-align: center; }
.group-grid { display: flex; justify-content: center; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.group-item {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 20px;
    width: 250px;
    border: 2px solid #eee;
    transition: transform 0.3s;
    text-decoration: none;
    color: var(--text-dark);
}
.group-item:hover { transform: translateY(-5px); }
.group-circle {
    width: 80px; height: 80px; background: var(--primary-blue); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; overflow: hidden;
}
.group-circle img { width: 100%; height: 100%; object-fit: cover; }

/* News Home */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.news-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.news-img-link { display: block; height: 200px; overflow: hidden; position: relative; background-color: #eee; }
.news-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-thumb { transform: scale(1.1); }
.news-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #ccc; background-color: #f4f4f4; }
.news-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { font-size: 0.85rem; color: #555; margin-bottom: 0.5rem; font-weight: 700; }
.news-title { font-size: 1.25rem; margin-bottom: 0.8rem; line-height: 1.4; }
.news-title a { text-decoration: none; color: var(--text-dark); transition: color 0.2s; }
.news-title a:hover { color: var(--primary-blue); }
.news-excerpt { font-size: 0.95rem; color: #555; margin-bottom: 1.5rem; flex-grow: 1; }
.read-more-link { text-decoration: none; color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; align-self: flex-start; }

/* =========================================
   3.5. FAQ ACCORDION (Strona Główna)
   ========================================= */

.faq-section {
    padding: 5rem 10%;
    background-color: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: var(--bg-cream);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.faq-item[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(44, 80, 112, 0.2);
    background-color: white;
}

.faq-question-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    flex: 1;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--secondary-blue);
    user-select: none;
    transition: color 0.2s ease;
    min-height: 54px;
}

.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-question:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: -2px;
    border-radius: 14px;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(44, 80, 112, 0.08);
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Czysta dekoracyjna strzałka CSS (W3C WCAG C9 - eliminuje błędy alt na SVG) */
.faq-icon::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -3px;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.faq-answer {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 1rem;
    animation: faqFadeIn 0.3s ease forwards;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 5%;
    }
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }
    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.98rem;
    }
}

/* =========================================
   4. STOPKA
   ========================================= */

footer {
    background-color: var(--secondary-blue);
    color: white;
    padding: 3rem 10%;
    text-align: center;
    width: 100%;
    margin-top: 4rem; 
}

.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; text-align: left; margin-bottom: 2rem; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 { margin-bottom: 1rem; color: var(--accent-yellow); font-size: 1.2rem; }
.footer-col p, .footer-col a { color: white; line-height: 1.8; text-decoration: none; }
.footer-col a:hover { color: var(--accent-yellow); text-decoration: underline; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a { color: white; text-decoration: none; transition: color 0.2s; }
.copyright { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 2rem; font-size: 0.9rem; font-style: italic; width: 100%; }
.footer-motto { margin-top: 10px; font-size: 0.9em; opacity: 0.9; font-style: italic; }
footer a:focus-visible, footer button:focus-visible { outline: 3px solid var(--accent-yellow) !important; outline-offset: 3px !important; }

/* =========================================
   5. PODSTRONY & UTILS
   ========================================= */

.page-header,
.subpage-hero {
    background: linear-gradient(rgba(28, 59, 87, 0.85), rgba(44, 80, 112, 0.9)),
                url('https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?auto=format&fit=crop&w=1920&q=80');
    background-color: var(--secondary-blue); /* Fallback WCAG */
    background-size: cover;
    background-position: center;
    padding: 5.5rem 2rem 4rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-header .hero-content,
.subpage-hero .hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.page-header h1,
.subpage-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    color: white !important;
}

.page-header p,
.subpage-hero p {
    font-size: 1.15rem;
    color: #f0f4f8 !important;
    margin: 0 auto;
    line-height: 1.5;
}

/* Archive Group */
.archive-grid { 
    margin-top: 0; 
    display: grid;
    /* Karty od 320px do maks 450px, wyśrodkowane, jeśli jest ich za mało na całą stronę */
    grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
    justify-content: center;
    gap: 3rem;
}
.archive-grid .group-item {
    width: 100%;
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 3rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.archive-grid .group-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.archive-grid .group-circle {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}
.badge-age { background: var(--bg-cream); border: 1px solid var(--accent-yellow); padding: 4px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; color: var(--secondary-blue); display: inline-block; margin-bottom: 1rem; }
.btn-sm { display: inline-block; text-decoration: none; background-color: var(--btn-secondary-bg); color: var(--btn-secondary-text) !important; font-weight: bold; border-radius: 50px; transition: background 0.3s, color 0.3s, transform 0.2s; }
.btn-sm:hover { background-color: var(--btn-secondary-hover); color: var(--btn-secondary-text) !important; transform: scale(1.05); }
.btn-sm:hover { background-color: var(--secondary-blue); transform: scale(1.05); }

/* Single Group Edu */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.edu-col { background: var(--bg-cream); padding: 2rem; border-radius: 15px; border: 1px solid #eee; text-align: center; }
.edu-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.edu-col h3 { color: var(--secondary-blue); margin-bottom: 1.5rem; font-size: 1.3rem; border-bottom: 2px solid var(--accent-yellow); display: inline-block; padding-bottom: 5px; }
.edu-content { text-align: left; font-size: 1rem; }
.wierszyk-style { text-align: center; font-style: italic; white-space: pre-line; }
.video-container iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }

/* Utils */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
img.alignright, img.alignleft { max-width: 50%; }
.wp-block-button__link { background-color: var(--accent-yellow); color: var(--text-dark) !important; border-radius: 50px; padding: 0.8rem 2rem; text-decoration: none; font-weight: bold; }

/* =========================================
   11. MENU MOBILNE & RESPONSIVE
   ========================================= */

/* Domyślnie ukrywamy przycisk hamburgera (Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.menu-toggle span {
    display: block; width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px 0; transition: 0.3s; border-radius: 3px;
}

/* Responsywność ogólna (Tablety) */
@media (max-width: 992px) {
    .edu-grid { grid-template-columns: 1fr; gap: 2rem; }
    .entry-content-wrapper { flex-direction: column; }
}

/* Responsywność dla telefonów (Poniżej 768px) */
@media (max-width: 768px) {
    /* 1. Kompaktowy pasek nawigacji (poziomy, stała wysokość bez pustego miejsca ze spodu) */
    nav.site-nav,
    body > nav {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0 14px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
        background: #ffffff !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    /* Obsługa paska admina WP na telefonie */
    body.admin-bar nav.site-nav,
    body.admin-bar > nav {
        top: 46px !important;
    }

    /* 2. Logo po LEWEJ stronie - zgrabne, dopasowane do wysokości paska */
    .logo {
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
        position: static !important;
    }

    .logo a,
    .custom-logo-link {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        text-decoration: none !important;
    }

    .logo img,
    .custom-logo-link img,
    img.custom-logo {
        position: static !important;
        height: 48px !important;
        max-height: 48px !important;
        width: auto !important;
        max-width: 140px !important;
        object-fit: contain !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: auto !important;
    }

    /* Po scrollu zachowujemy ten sam kompaktowy rozmiar paska */
    nav.site-nav.is-scrolled,
    body.is-scrolled nav.site-nav {
        height: 64px !important;
        min-height: 64px !important;
    }

    nav.site-nav.is-scrolled .logo img,
    body.is-scrolled nav .logo img {
        height: 48px !important;
        max-height: 48px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* 3. Prawa strona nawigacji: zgrupowane BIP i przycisk Menu obok siebie */
    .nav-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        position: static !important;
    }

    .nav-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-bip-wrapper {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-bip {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .bip-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }

    .bip-link:hover {
        opacity: 0.85 !important;
        transform: scale(1.03) !important;
    }

    .bip-link:focus-visible {
        outline: 3px solid var(--primary-blue, #2C5070) !important;
        outline-offset: 2px !important;
        border-radius: 8px !important;
    }

    .bip-img {
        height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
        display: block !important;
    }

    .bip-icon-svg {
        width: 38px !important;
        height: 23px !important;
        display: block !important;
    }

    /* 4. Przycisk Hamburger Menu (Dostępność: cel dotykowy min. 44x44px) */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
        margin: 0 !important;
        background: #f8f9fa !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: background-color 0.2s ease, border-color 0.2s ease !important;
        box-sizing: border-box !important;
    }

    .menu-toggle:hover {
        background: #edf2f7 !important;
        border-color: #cbd5e0 !important;
    }

    .menu-toggle:focus-visible {
        outline: 3px solid var(--primary-blue, #2C5070) !important;
        outline-offset: 2px !important;
        background: #edf2f7 !important;
        border-color: #cbd5e0 !important;
    }

    .menu-toggle span {
        display: block !important;
        width: 20px !important;
        height: 2.5px !important;
        background-color: var(--primary-blue, #2C5070) !important;
        margin: 2px 0 !important;
        transition: transform 0.25s ease, opacity 0.2s ease !important;
        border-radius: 2px !important;
    }

    /* Animacja krzyżyka przy otwartym menu */
    .menu-toggle.active {
        background: #e2e8f0 !important;
        border-color: #a0aec0 !important;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-4.5px, 5px) !important;
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-4.5px, -5px) !important;
    }

    /* 5. Rozwijana lista linków w menu (Dropdown pod paskiem nawigacji) */
    .nav-links {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
        border-top: 1px solid #edf2f7 !important;
        border-bottom: 3px solid var(--accent-yellow, #F4D35E) !important;
        padding: 0.75rem 0 !important;
        flex-direction: column !important;
        z-index: 999 !important;
        box-sizing: border-box !important;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    .nav-links ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-links ul li {
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        border-bottom: 1px solid #f7fafc !important;
    }

    .nav-links ul li:last-child {
        border-bottom: none !important;
    }

    .nav-links ul li a {
        display: block !important;
        padding: 13px 20px !important;
        margin: 0 !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        color: var(--text-dark, #333333) !important;
        text-decoration: none !important;
        transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
    }

    .nav-links ul li a:hover,
    .nav-links ul li a:focus-visible,
    .nav-links ul li.current-menu-item a {
        background-color: #f7fafc !important;
        color: var(--primary-blue, #2C5070) !important;
        padding-left: 24px !important;
    }

    .nav-links ul li.btn-nav {
        padding: 10px 20px !important;
    }

    .nav-links ul li.btn-nav a {
        background-color: var(--btn-primary-bg, #F4D35E) !important;
        color: var(--btn-primary-text, #333333) !important;
        padding: 12px 20px !important;
        border-radius: 10px !important;
        text-align: center !important;
        font-weight: 700 !important;
    }

    /* 6. Eliminacja pustej przestrzeni pod nagłówkiem na podstronach i w module BIP */
    .page-header,
    .subpage-hero {
        padding: 2.25rem 1.25rem 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .page-header h1,
    .subpage-hero h1 {
        font-size: 1.85rem !important;
    }

    .mzk-bip-wrapper,
    .is-bip-view .mzk-bip-wrapper {
        padding-top: 0.75rem !important;
    }

    /* Reszta sekcji */
    .hero h1 { font-size: 2.3rem; }
    .features { margin-top: 2rem; padding: 2rem 5%; }
    .about-section { flex-direction: column-reverse; padding: 3rem 5%; }
    .footer-content { flex-direction: column; text-align: center; }
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================
   12. STRONA DOKUMENTÓW (Lista)
   ========================================= */

.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doc-item {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}

.doc-icon {
    font-size: 2.5rem;
    /* Stała szerokość ikony */
    min-width: 60px; 
    text-align: center;
}

.doc-info {
    flex-grow: 1; /* Zajmuje dostępną przestrzeń */
}

.doc-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.doc-meta {
    font-size: 0.85rem;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

.doc-btn {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    white-space: nowrap; /* Tekst przycisku w jednej linii */
}

.doc-btn:hover {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

/* Mobile RWD dla dokumentów */
@media (max-width: 600px) {
    .doc-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .doc-action {
        width: 100%;
    }
    
    .doc-btn {
        display: block;
        width: 100%;
    }
}
/* =========================================
   13. STRONA KONTAKT
   ========================================= */

.contact-container {
    padding: 3.5rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-grid,
.contact-grid.contact-layout-text_larger {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); /* Większy tekst (Dane ~60% / Mapa ~40%) */
    gap: 3rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-grid.contact-layout-equal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Równe proporcje (Dane 50% / Mapa 50%) */
}

.contact-grid.contact-layout-map_larger {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); /* Większa mapa (Dane ~40% / Mapa ~60%) */
}

.contact-info-box {
    background: white;
    padding: 2.75rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0eee8;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contact-box-title {
    color: var(--primary-blue, #2C5070);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f4f6f8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contact-item:last-of-type {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 12px;
    background: #edf3f8;
    color: var(--primary-blue, #2C5070);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid #dce7f0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-blue, #2C5070);
    display: block;
}

.contact-item-content {
    min-width: 0;
    flex: 1;
}

.contact-item-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue, #2C5070);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-item-value {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-dark, #333333);
}

.contact-link {
    color: var(--text-dark, #333333);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap; /* Zapobiega łamaniu e-maila w połowie adresu na komputerze */
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--primary-blue, #2C5070);
    text-decoration: underline;
}

.contact-extra-content {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #eee;
    overflow-wrap: break-word;
}

.contact-map-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0eee8;
    height: 100%;
    min-height: 440px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #f8f9fa;
    position: relative;
    min-width: 0;
}

.contact-map-box iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 440px !important;
    display: block !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

.contact-no-map {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    padding: 2rem;
    color: #718096;
    text-align: center;
}

/* Responsywność Kontaktu (Laptopy / Tablety / Ekrany z bocznym panelem WP) */
@media (max-width: 1080px) {
    .contact-container {
        padding: 3rem 1.5rem;
    }

    .contact-grid,
    .contact-grid.contact-layout-text_larger,
    .contact-grid.contact-layout-equal,
    .contact-grid.contact-layout-map_larger {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2.25rem;
    }

    .contact-info-box {
        padding: 2.25rem 2rem;
    }

    .contact-map-box,
    .contact-map-box iframe {
        min-height: 380px !important;
        height: 380px !important;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1rem !important;
    }

    .contact-info-box {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .contact-box-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        gap: 1rem;
        margin-bottom: 1.35rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 10px;
    }

    .contact-item-icon svg {
        width: 19px;
        height: 19px;
    }

    .contact-item-value {
        font-size: 1rem;
    }

    .contact-map-box,
    .contact-map-box iframe {
        min-height: 320px !important;
        height: 320px !important;
        border-radius: 16px;
    }
}

@media (max-width: 580px) {
    .contact-link {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .contact-container {
        padding: 1.5rem 0.75rem !important;
    }

    .contact-info-box {
        padding: 1.4rem 1rem;
    }
}
/* WIDOCZNY FOKUS DLA KLAWIATURY */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
/* =========================================
   14. WYGLĄD POJEDYNCZEGO WPISU (Single Post)
   ========================================= */

/* Kontener główny - "Papierowa Karta" */
.paper-card {
    background: white;
    max-width: 900px; /* Optymalna szerokość do czytania */
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Miękki cień */
    overflow: hidden;
    padding: 0;
    position: relative;
}

/* Nagłówek */
.entry-header {
    padding: 3rem 3rem 1.5rem 3rem;
    text-align: center;
}

.post-meta-top {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    line-height: 1.2;
    margin-bottom: 0;
}

/* Zdjęcie */
.post-thumbnail-wrapper {
    width: 100%;
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Ograniczenie wysokości */
    object-fit: cover;
}

/* Treść (Typografia) */
.entry-content {
    padding: 0 3rem 2rem 3rem;
    font-size: 1.15rem; /* Większa czcionka dla czytelności */
    line-height: 1.8;   /* Większe odstępy między liniami */
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, .entry-content h3 {
    color: var(--secondary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content blockquote {
    border-left: 5px solid var(--accent-yellow);
    padding-left: 1.5rem;
    font-style: italic;
    color: #666;
    margin: 2rem 0;
}

/* Nawigacja na dole */
.entry-footer {
    background-color: #fcfcfc;
    padding: 2rem 3rem;
    border-top: 1px solid #eee;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.nav-prev, .nav-next {
    flex: 1;
}

.nav-next { text-align: right; }

.post-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.post-nav-links a:hover {
    color: var(--primary-blue);
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 600;
}

.back-btn-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.btn-outline-dark {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: white;
}

/* Responsywność (Mobile) */
@media (max-width: 768px) {
    .entry-header, .entry-content, .entry-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .entry-title { font-size: 1.8rem; }
    
    .post-nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-next { text-align: center; }
}
/* =========================================
   15. WYGLĄD POJEDYNCZEGO NEWS-A (HOMEPAGE)
   ========================================= */

/* Kontener dla pojedynczego wpisu */
.news-single-layout {
    display: flex;
    justify-content: center; /* Wyśrodkowanie */
    width: 100%;
}

/* Karta, gdy jest sama */
.news-single-layout .news-card {
    max-width: 800px; /* Szersza karta */
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Kontener zdjęcia w pojedynczym wpisie */
.news-single-layout .news-img-link {
    height: auto !important; /* Resetujemy sztywną wysokość 200px */
    max-height: 500px;       /* Ograniczenie, żeby nie było za wielkie */
    width: 100%;
    aspect-ratio: auto;      /* Pozwalamy na naturalne proporcje */
}

/* Samo zdjęcie */
.news-single-layout .news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Lub 'contain' jeśli chcesz widzieć całe zdjęcie bez przycinania brzegów */
    position: relative;
    transform: none !important; /* Wyłączamy efekt zoom przy najechaniu, bo zdjęcie jest duże */
}

/* Większy tytuł dla wyróżnionego wpisu */
.news-single-layout .news-title {
    font-size: 1.8rem;
}
/* =========================================
   POPRAWKA: SZEROKOŚĆ POSTÓW NA TELEFONIE
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. Zmniejszamy margines zewnętrzny (tło) */
    .container, 
    .single-post-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Zmniejszamy margines wewnętrzny (biała kartka) */
    .entry-header, 
    .entry-content, 
    .entry-footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 3. Tytuł mniejszy na telefonie */
    .entry-title {
        font-size: 1.8rem !important;
        word-wrap: break-word; /* Zapobiega ucinaniu długich słów */
    }

    /* 4. Zdjęcie na pełną szerokość (niwelujemy marginesy) */
    .post-thumbnail-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        border-radius: 0; /* Prostokątne zdjęcie na mobile wygląda lepiej */
    }
    
    /* 5. Poprawa czytelności tekstu */
    .entry-content {
        font-size: 1rem !important; /* Nieco mniejsza czcionka niż na PC */
        text-align: left;
    }
}
/* =========================================
   POPRAWKA: FORMATOWANIE TEKSTU "O NAS"
   ========================================= */

.about-content {
    text-align: left; /* Wyrównanie do lewej zgodnie z prośbą */
}

/* Styl dla pogrubienia (strong i b) w sekcji O Nas */
.about-content strong, 
.about-content b {
    font-weight: 700;
    color: var(--secondary-blue); /* Pogrubiony tekst będzie granatowy */
}

/* Na telefonach lepiej wyłączyć justowanie, bo tworzą się dziury w tekście */
@media (max-width: 768px) {
    .about-content {
        text-align: left;
    }
}
/* =========================================
   POPRAWKA: KĄCIK EDUKACYJNY NA TELEFONIE
   ========================================= */

@media (max-width: 768px) {
    /* 1. Zmniejszamy marginesy głównego białego kontenera */
    .edu-section {
        padding: 1.5rem 1rem !important; /* Mniej pustego miejsca dookoła */
    }

    /* 2. Układamy elementy jeden pod drugim z mniejszym odstępem */
    .edu-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem; /* Mniejsza przerwa między tematami a wierszykiem */
    }

    /* 3. Pojedynczy kafelek (szare tło) rozciągamy na całą szerokość */
    .edu-col {
        width: 100%;
        padding: 1.5rem !important; /* Wygodny odstęp wewnątrz */
        margin: 0;
        text-align: center; /* Wyśrodkowanie nagłówków i ikon */
    }

    /* 4. Sama treść (tekst wierszyka/tematów) */
    .edu-content {
        text-align: left; /* Tekst czytamy od lewej */
        font-size: 0.95rem;
        word-wrap: break-word; /* Zapobiega ucinaniu długich słów */
    }
    
    /* Wyjątek dla wierszyka - on ładniej wygląda wyśrodkowany */
    .wierszyk-style {
        text-align: center;
    }
}
/* =========================================
   16. ANIMACJE SCROLL & SCROLL TO TOP
   ========================================= */

/* Animacje (Fade in Up) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Przycisk Scroll To Top */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}
@media (hover: hover) {
    #back-to-top:hover {
        background-color: var(--primary-blue);
        color: white;
        transform: scale(1.08);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
}
#back-to-top:active {
    transform: scale(0.92);
}

/* WCAG Focus */
:focus-visible { outline: 3px solid var(--text-dark); outline-offset: 3px; }
.btn:focus-visible, .btn-primary:focus-visible, .btn-sm:focus-visible { outline: 3px solid var(--text-dark); outline-offset: 3px; }


.btn-outline-dark { background-color: transparent; border: 2px solid var(--text-dark); color: var(--text-dark); }
.btn-outline-dark:hover { background-color: var(--text-dark); color: white; }


.hero-content { text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }


/* Klasa dla czytnik w ekranu (Screen Readers Only) - WCAG 2.2 AA */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* WCAG - Faux Block Link dla kart Grup (Rozszerzenie obszaru klikniecia) */
.group-title-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}


/* ==========================================================================
   INTEGRACJA Z WTYCZKĄ BIULETYNU INFORMACJI PUBLICZNEJ (mzk-bip) & WCAG 2.2 AA
   ========================================================================== */

/* 1. Kontener i Typografia BIP */
.mzk-bip-wrapper {
    font-family: var(--font-body);
    color: var(--text-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.mzk-bip-wrapper h1,
.mzk-bip-wrapper h2,
.mzk-bip-wrapper h3,
.mzk-bip-wrapper .page-title,
.mzk-bip-wrapper .entry-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* 2. Dostępność Klawiatury i Widoczny Fokus (WCAG 2.2 - Kryterium 2.4.11 / 2.4.13) */
.mzk-bip-wrapper a:focus-visible,
.mzk-bip-wrapper button:focus-visible,
.mzk-bip-wrapper input:focus-visible,
.mzk-bip-wrapper select:focus-visible,
.mzk-bip-wrapper summary:focus-visible {
    outline: 3px solid #004e92 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.25) !important;
}

.bip-skip-link {
    background: #004e92 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    z-index: 100000 !important;
}

/* 3. Pasek Boczny i Menu Przedmiotowe BIP */
.bip-sidebar {
    background: #ffffff;
    border-radius: 12px;
}

.bip-sidebar .bip-nav ul {
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bip-sidebar .bip-nav a {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bip-sidebar .bip-nav a:hover {
    background-color: #edf2f7 !important;
    color: #004e92 !important;
}

/* 4. Treść Główna i Karty BIP */
.bip-content,
.bip-single-article {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
}

.bip-page-content,
.bip-single-article .entry-content {
    line-height: 1.8;
    color: #2d3748;
}

.bip-page-content p,
.bip-single-article .entry-content p {
    margin-bottom: 1.25rem;
}

/* 5. Tabele Urzędowe (Metryczki, Rejestr zmian, Załączniki) */
.bip-table-responsive {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.bip-table-responsive table {
    border: none !important;
}

.bip-table-responsive th {
    background-color: #f7fafc;
    color: #2d3748;
    font-weight: 700;
}

.bip-table-responsive tr:nth-child(even) td {
    background-color: #fafbfd;
}

.bip-table-responsive tr:hover td {
    background-color: #f0f4f8;
}

/* 6. Załączniki i Pliki do Pobrania */
.bip-attachments .dashicons {
    color: #004e92;
}

.bip-attachments table a {
    color: #004e92;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bip-attachments table a:hover {
    color: #002b52;
}

/* 7. Wersje Archiwalne i Ostrzeżenia */
.bip-revision-content {
    border-radius: 8px;
}

/* 8. Oficjalny Druk Dokumentów BIP (§ 11 Rozporządzenia MSWiA) */
@media print {
    /* Ukrywamy nagłówek strony przedszkola, nawigację i stopkę przy drukowaniu karty BIP */
    header.site-header,
    nav[aria-label],
    .menu-toggle,
    .nav-bip-wrapper,
    footer[role="contentinfo"],
    .footer-bottom,
    #back-to-top,
    .page-header,
    .bip-sidebar,
    .bip-skip-links,
    .bip-back-nav,
    .mzk-bip-print-btn,
    .mzk-bip-filters-bar,
    .btn {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
    }

    .mzk-bip-wrapper,
    .bip-content,
    .bip-single-article {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .bip-table-responsive {
        border: 1px solid #000000 !important;
        overflow: visible !important;
    }

    .bip-table-responsive table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .bip-table-responsive th,
    .bip-table-responsive td {
        border: 1px solid #333333 !important;
        color: #000000 !important;
        background: transparent !important;
        padding: 6px 8px !important;
    }

    .bip-table-responsive th {
        font-weight: bold !important;
        background-color: #f0f0f0 !important;
    }

    /* Rozwiń rejestr zmian na wydruku urzędowym */
    details.bip-print-expand,
    details.bip-print-expand[open] {
        border: 1px solid #333333 !important;
        box-shadow: none !important;
    }

    details.bip-print-expand > summary {
        font-weight: bold !important;
        color: #000000 !important;
        background: #f0f0f0 !important;
        border-bottom: 1px solid #333333 !important;
    }

    details.bip-print-expand > div {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 10px 0 !important;
    }

    a {
        text-decoration: underline !important;
        color: #000000 !important;
    }
}


/* ==========================================================================
   KRYTYCZNA POPRAWKA UKŁADU BIP (RESET DLA ZNACZNIKÓW <nav> W BIP)
   ========================================================================== */

/* 1. Bezwzględny reset stylów menu dla wszystkich znaczników <nav> w module BIP oraz stopce */
.mzk-bip-wrapper nav,
.mzk-bip-wrapper .bip-nav,
.mzk-bip-wrapper .bip-breadcrumbs,
.mzk-bip-wrapper .bip-skip-links,
footer nav {
    position: static !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    z-index: auto !important;
    top: auto !important;
    border: none !important;
}

/* 2. Poprawka breadcrumbs w BIP */
.mzk-bip-wrapper .bip-breadcrumbs {
    display: block !important;
    font-size: 0.85rem !important;
    color: #666666 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
}

/* 3. Poprawka menu bocznego BIP na komputerach */
@media (min-width: 993px) {
    /* Odpowiedni odstęp od wystającego logo w pasku menu */
    .is-bip-view .mzk-bip-wrapper {
        padding-top: 3.5rem !important;
    }

    /* Wyrównanie wysokości karty treści do menu bocznego (eliminuje pustą dziurę pod treścią) */
    .is-bip-view .bip-content {
        min-height: 520px !important;
    }
}

/* 4. Spójna stylizacja paska wyszukiwarki BIP */
.is-bip-view #mzk-global-search-input {
    border: 2px solid var(--primary-blue, #2C5070) !important;
    border-radius: 8px !important;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.is-bip-view #mzk-global-search-input:focus {
    box-shadow: 0 0 0 3px rgba(44, 80, 112, 0.25) !important;
}

/* 5. Estetyczne zaokrąglenia i cienie kart BIP */
.is-bip-view .bip-sidebar .bip-nav ul {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.is-bip-view .bip-content,
.is-bip-view .bip-single-article {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}


/* =========================================
   15. STRONA REKRUTACJA
   ========================================= */

.rekrutacja-container {
    padding: 3.5rem 8% 5.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Baner statusu naboru */
.rekrutacja-status-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    border-left: 6px solid var(--accent-yellow);
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

.rekrutacja-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E8F4EC;
    color: #1E6637;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rekrutacja-status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
}

.rekrutacja-status-content h2 {
    color: var(--secondary-blue);
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.rekrutacja-status-content p {
    color: #555;
    font-size: 1.05rem;
    max-width: 720px;
    margin-bottom: 0;
    line-height: 1.6;
}

.rekrutacja-status-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 230px;
    text-align: center;
    flex-shrink: 0;
}

/* Sekcja Wstępu z edytora WordPress */
.rekrutacja-intro {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

/* Wspólne nagłówki sekcji */
.rekrutacja-section {
    margin-bottom: 4.5rem;
}

.rekrutacja-section-title {
    text-align: center;
    color: var(--secondary-blue);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.rekrutacja-section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* Etapy / Harmonogram (Krok po kroku) */
.rekrutacja-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.rekrutacja-step-card {
    background: white;
    border-radius: 20px;
    padding: 2.2rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-yellow);
}

.rekrutacja-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.rekrutacja-step-number {
    position: absolute;
    top: -18px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(44, 80, 112, 0.35);
}

.rekrutacja-container .icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.rekrutacja-step-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #FFF9E6;
    color: var(--secondary-blue, #1A365D);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #FFE6A0;
    font-size: 1.8rem;
}

.rekrutacja-step-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--secondary-blue, #1A365D);
}

.rekrutacja-step-card h3 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.rekrutacja-step-date {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--bg-cream);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    border: 1px solid #eae6dc;
}

.rekrutacja-step-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Dokumenty do pobrania */
.rekrutacja-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.rekrutacja-doc-card {
    background: white;
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid #f0eee8;
    box-sizing: border-box;
    height: 100%;
}

.rekrutacja-doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
    border-color: var(--accent-yellow);
}

/* Nagłówek kafelka: ikona + tytuł i plakietka */
.rekrutacja-doc-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.rekrutacja-doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-cream, #FAF7F2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #EAE5DB;
}

.rekrutacja-doc-icon svg {
    width: 30px;
    height: 30px;
}

.rekrutacja-doc-header-text {
    flex: 1;
    min-width: 0;
}

.rekrutacja-doc-header-text h3 {
    font-size: 1.15rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
}

.rekrutacja-doc-badge {
    display: inline-block;
    background: var(--bg-cream, #FAF7F2);
    color: var(--secondary-blue);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid #eae6dc;
    letter-spacing: 0.2px;
}

/* Treść / opis dokumentu */
.rekrutacja-doc-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Sekcja przycisku na dole kafelka */
.rekrutacja-doc-action {
    margin-top: auto;
    width: 100%;
}

.rekrutacja-doc-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-height: 48px;
    white-space: normal;
}

.rekrutacja-doc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Zasady i kryteria przyjęć */
.rekrutacja-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.rekrutacja-info-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.rekrutacja-info-box h3 {
    color: var(--secondary-blue);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 0.75rem;
}

.rekrutacja-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rekrutacja-info-box li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.15rem;
    font-size: 1.02rem;
    color: #444;
    line-height: 1.6;
}

.rekrutacja-info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 1.15rem;
}

/* Co oferujemy / Zalety */
.rekrutacja-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rekrutacja-feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--accent-yellow);
}

.rekrutacja-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.rekrutacja-feature-card .feat-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--bg-cream, #FAF7F2);
    color: var(--primary-blue, #2C5070);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 2px solid #EFEAE1;
    font-size: 2.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rekrutacja-feature-card:hover .feat-icon {
    transform: scale(1.08);
    border-color: var(--accent-yellow);
}

.rekrutacja-feature-card .feat-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary-blue, #2C5070);
}

.rekrutacja-feature-card h3 {
    color: var(--secondary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.rekrutacja-feature-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Wyprawka Przedszkolaka */
.rekrutacja-wyprawka-box {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf9 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    border: 2px dashed #e2ded5;
}

.rekrutacja-wyprawka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rekrutacja-wyprawka-item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    background: var(--bg-cream);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #eae5db;
}

.rekrutacja-wyprawka-item .w-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    color: var(--secondary-blue, #1A365D);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #EAE5DB;
    font-size: 1.6rem;
}

.rekrutacja-wyprawka-item .w-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary-blue, #1A365D);
}

.rekrutacja-wyprawka-item strong {
    display: block;
    color: var(--secondary-blue);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.rekrutacja-wyprawka-item span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.45;
}

/* Sekcja kontaktowa CTA */
.rekrutacja-cta-contact {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: white;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(28, 59, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.rekrutacja-cta-contact h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.rekrutacja-cta-contact p.cta-desc {
    color: #e0eaf2;
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.rekrutacja-cta-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.rekrutacja-cta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.rekrutacja-cta-item .cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow, #FFAE00);
    font-size: 1.4rem;
}

.rekrutacja-cta-item .cta-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-yellow, #FFAE00);
}

.rekrutacja-cta-item a {
    color: var(--accent-yellow);
    font-weight: 700;
    text-decoration: underline;
}

.rekrutacja-cta-item a:hover {
    color: white;
}

/* Responsywność dla podstrony rekrutacji */
@media (max-width: 1024px) {
    .rekrutacja-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    .rekrutacja-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .rekrutacja-docs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rekrutacja-container {
        padding: 2rem 4% 4rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .rekrutacja-status-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
    .rekrutacja-status-actions {
        width: 100%;
        min-width: 0;
    }
    .rekrutacja-status-actions .btn {
        width: 100%;
        text-align: center;
    }
    .rekrutacja-steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .rekrutacja-two-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .rekrutacja-cards-grid {
        grid-template-columns: 1fr;
    }
    .rekrutacja-intro,
    .rekrutacja-wyprawka-box,
    .rekrutacja-cta-contact {
        padding: 2rem 1.5rem;
    }
    .rekrutacja-cta-details {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    /* Dokumenty do pobrania na mobile */
    .rekrutacja-docs-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .rekrutacja-doc-card {
        padding: 1.75rem 1.4rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .rekrutacja-doc-header {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .rekrutacja-doc-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .rekrutacja-doc-icon svg {
        width: 24px;
        height: 24px;
    }
    .rekrutacja-doc-header-text h3 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }
    .rekrutacja-doc-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .rekrutacja-doc-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 700;
        border-radius: 12px;
        min-height: 44px;
        box-sizing: border-box;
        white-space: normal;
    }

    /* Przycisk powrotu na górę na mobile - ergonomiczna pozycja, bezpieczne marginesy */
    #back-to-top {
        bottom: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }
}

@media (max-width: 480px) {
    .rekrutacja-container {
        padding: 1.5rem 1rem 3.5rem;
    }
    .rekrutacja-status-card {
        padding: 1.5rem 1rem;
    }
    .rekrutacja-doc-card {
        padding: 1.35rem 1.1rem;
    }
    .rekrutacja-doc-header {
        gap: 0.85rem;
        margin-bottom: 0.85rem;
    }
    .rekrutacja-doc-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .rekrutacja-doc-icon svg {
        width: 22px;
        height: 22px;
    }
    .rekrutacja-doc-header-text h3 {
        font-size: 0.98rem;
    }
    .rekrutacja-doc-desc {
        font-size: 0.85rem;
        margin-bottom: 1.1rem;
    }
    .rekrutacja-doc-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    #back-to-top {
        bottom: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
}
/* =========================================
   15.1. NOWE ELEMENTY: TABELE, OPŁATY I HARMONOGRAM PEŁNY
   ========================================= */

/* Tabela kryteriów i pełnego harmonogramu */
.rekrutacja-table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid #ECE8DF;
}

.rekrutacja-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.98rem;
}

.rekrutacja-table thead {
    background: var(--secondary-blue, #1A365D);
    color: white;
}

.rekrutacja-table th {
    padding: 1.15rem 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
}

.rekrutacja-table td {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #F0ECE4;
    color: #444;
    vertical-align: top;
    line-height: 1.55;
}

.rekrutacja-table tbody tr:nth-child(even) {
    background: #FAF8F5;
}

.rekrutacja-table tbody tr:hover {
    background: #FFFDF8;
}

.rekrutacja-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8F4EC;
    color: #1E6637;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #C8E6C9;
}

.badge-date {
    display: inline-block;
    background: var(--bg-cream, #FAF7F2);
    color: var(--secondary-blue, #1A365D);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid #EAE5DB;
    white-space: nowrap;
}

/* Kafelki opłat i dofinansowania ZUS Aktywnie w żłobku */
.rekrutacja-fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin: 2.5rem 0;
}

.rekrutacja-fee-card {
    background: white;
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #ECE8DF;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rekrutacja-fee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.rekrutacja-fee-card.highlight {
    border: 2px solid var(--accent-yellow, #FFAE00);
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
}

.rekrutacja-fee-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--secondary-blue, #1A365D);
    color: var(--accent-yellow, #FFAE00);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.rekrutacja-fee-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary-blue, #1A365D);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.1;
}

.rekrutacja-fee-amount span {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
}

.rekrutacja-fee-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue, #2C5070);
    margin-bottom: 0.5rem;
}

.rekrutacja-fee-desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
}

/* Boks lokalizacji i godzin składania wniosków */
.rekrutacja-location-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    border-left: 6px solid var(--primary-blue, #2C5070);
    margin: 3rem 0;
}

.rekrutacja-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.rekrutacja-loc-col h4 {
    color: var(--secondary-blue, #1A365D);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rekrutacja-loc-col p, .rekrutacja-loc-col ul {
    font-size: 0.96rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.rekrutacja-loc-col ul {
    list-style: none;
    padding: 0;
}

.rekrutacja-loc-col li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.rekrutacja-loc-col li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-yellow, #FFAE00);
    font-size: 1.3rem;
    line-height: 1;
}

/* Responsywność dla tabeli i kafelków opłat */
@media (max-width: 1024px) {
    .rekrutacja-fee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rekrutacja-fee-grid {
        grid-template-columns: 1fr;
    }
    .rekrutacja-location-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .rekrutacja-location-card {
        padding: 2rem 1.5rem;
    }
    .rekrutacja-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .rekrutacja-table {
        min-width: 600px;
    }
}
