body {
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
    padding-top: 75px;
    background-color: #ffffff;
}



main {
    flex: 1;
    padding-top: 50px;
}


.navbar {
    margin-bottom: 1rem;
}

/* Navbar styles */
.transition-navbar {
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
    background-color: rgba(1, 49, 96, 0.98);
}

.transition-navbar.navbar-scrolled {
    padding: 0.5rem 0;
    background-color: rgba(248, 249, 250, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar button container */
.navbar-buttons {
    flex-shrink: 0;
}

/* Navbar button styles */
.navbar-ai-btn, .navbar-play-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
}

.navbar-ai-btn:hover, .navbar-play-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-play-btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.navbar-play-btn .btn-text {
    flex: 1 !important;
    text-align: left !important;
    pointer-events: none !important;
}

.navbar-play-btn .btn-icon {
    flex-shrink: 0 !important;
    pointer-events: none !important;
    margin-left: auto !important;
}

.navbar-play-btn {
    width: 100px !important;
}

/* Navbar buttons in scrolled state */
.navbar-scrolled .navbar-ai-btn, .navbar-scrolled .navbar-play-btn {
    border-color: rgba(1, 49, 96, 0.5);
    color: rgba(1, 49, 96, 0.9);
    background-color: transparent;
}

.navbar-scrolled .navbar-ai-btn:hover, .navbar-scrolled .navbar-play-btn:hover {
    border-color: rgba(1, 49, 96, 0.8);
    color: rgba(1, 49, 96, 1);
    background-color: rgba(1, 49, 96, 0.1);
}

 .navbar-scrolled .navbar-play-btn {
    border-color: rgba(1, 49, 96, 0.5);
    color: rgba(1, 49, 96, 0.98);
    background-color: transparent;
}

.navbar-scrolled .navbar-play-btn:hover {
    border-color: rgba(1, 49, 96, 0.8);
    color: rgba(1, 49, 96, 1);
    background-color: rgba(1, 49, 96, 0.1);
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: #212529 !important;
}

.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-scrolled .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

.navbar-scrolled .dropdown-menu {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for hover effects */
.nav-link {
    transition: color 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.85) !important;
}

.dropdown-item {
    transition: background-color 0.2s ease-in-out;
}

/* Hover effects */
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Active state */
.navbar-nav .nav-item.active .nav-link {
    font-weight: 500;
}

.navbar-blue {
    background-color: rgb(219, 244, 255);
    color: #212529;
}

/* Dropdown submenu styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.xdropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px;
}

/* Dropdown hover styles */
.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Strzałka dla głównego menu (w dół) */
.xnav-item.dropdown>.nav-link:after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Strzałka dla submenu (w prawo) */
.xdropdown-submenu>a:after {
    display: block;
    float: right;
    width: 0;
    height: 0;
    margin-top: 0.5em;
    margin-right: -0.5em;
    content: "";
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
}

/* Zapobieganie zamykaniu menu przy kliknięciu */
.dropdown-menu {
    margin: 0;
    font-size: 0.8em;
}

/* Główne menu dropdown */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown>.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    min-width: 200px;
}

/* Submenu dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
    min-width: 200px;
}

/* Pozycjonowanie elementów submenu */
.dropdown-menu {
    position: absolute;
    margin: 0;
    padding: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

.dropdown-item {
    position: relative;
    padding: 0.5rem 2rem 0.5rem 1rem;
    white-space: nowrap;
}

/* Usuwamy WSZYSTKIE domyślne strzałki bootstrapa */
.dropdown-toggle::after,
.nav-link::after,
[data-bs-toggle="dropdown"]::after {
    display: none !important;
}

/* FontAwesome icons */
.fas.fa-chevron-down {
    font-size: 0.8em;
}

.fas.fa-chevron-right {
    font-size: 0.8em;
    margin-top: 4px;
    margin-right: 4px;
}

.dropdown-item .fas.fa-chevron-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover effects */
.dropdown:hover>.dropdown-menu,
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Reset dla menu */
.nav-item.dropdown,
.dropdown-submenu {
    position: relative;
}

/* Główne menu dropdown */
.nav-item.dropdown>.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
}

/* Submenu */
.dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: -9px;
    left: 100%;
    margin-top: 0;
}

/* Style dla menu */
.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

.dropdown-item {
    position: relative;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    white-space: nowrap;
}

/* Hover effects */
.nav-item.dropdown:hover>.dropdown-menu,
.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.navbar-scrolled image {
    src: url(/images/logo-kcz.png);
}

/* Style dla menu mobilnego */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        margin-left: 0.5rem;
        display: block;
    }

    .dropdown-submenu .dropdown-menu {
        margin-left: 0.5rem;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85) !important;
        padding: 0.2rem 1rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Pozycjonowanie menu na mobile */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
    }

    /* Animacja strzałek */
    .fa-chevron-right {
        transition: transform 0.3s ease;
    }

    [aria-expanded="true"] .fa-chevron-right {
        transform: rotate(90deg);
    }

    /* Ukrywamy niepotrzebne elementy na mobile */
    .d-lg-none .dropdown-toggle::after {
        display: none !important;
    }

    /* Style dla jasnego navbara na mobile */
    .navbar-scrolled .navbar-collapse {
        /* background-color: rgba(33, 37, 41, 0.98);  */
        color: rgba(42, 42, 42, 0.85) !important;
    }

    .navbar-scrolled {
        box-shadow: none !important;
        /* usunięcie cienia na mobile */
    }

    .navbar-scrolled .dropdown-item,
    .navbar-scrolled .nav-link {
        color: rgba(42, 42, 42, 0.85) !important;
        /* jasny tekst */
    }

    .navbar-scrolled .dropdown-item:hover {
        /* background: rgba(255, 255, 255, 0.1); */
        color: rgba(32, 32, 32, 0.85) !important;
    }

    .navbar-scrolled .dropdown-menu {
        background: transparent;
        box-shadow: none;
    }

    /* Przyciski navbar na mobile - dostosowane rozmiary */
    .navbar-ai-btn, .navbar-play-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .navbar-play-btn {
        width: 80px !important;
    }

    /* Scrolled state dla przycisków na mobile */
    .navbar-scrolled .navbar-ai-btn, .navbar-scrolled .navbar-play-btn   {
        border-color: rgba(1, 49, 96, 0.5);
        color: rgba(1, 49, 96, 0.9);
    }

    .navbar-scrolled .navbar-ai-btn:hover, .navbar-scrolled .navbar-play-btn:hover {
        border-color: rgba(1, 49, 96, 0.8);
        color: rgba(1, 49, 96, 1);
        background-color: rgba(1, 49, 96, 0.1);
    }

    .navbar-scrolled .navbar-fb-btn, .navbar-scrolled .navbar-play-btn {
        border-color: rgba(1, 49, 96, 0.5);
        color: rgba(1, 49, 96, 0.9);
    }

    .navbar-scrolled .navbar-fb-btn:hover, .navbar-scrolled .navbar-play-btn:hover {
        border-color: rgba(1, 49, 96, 0.8);
        color: rgba(1, 49, 96, 1);
        background-color: rgba(1, 49, 96, 0.1);
    }
}

/* Desktop styles remain unchanged */
@media (min-width: 991.98px) {

    .dropdown:hover>.dropdown-menu,
    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        margin-top: 0;
    }
}

/* Mobile styles */
@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        margin-left: 1rem;
    }

    .dropdown-submenu .dropdown-menu {
        margin-left: 1rem;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.95) !important;
        padding: 0.5rem 1rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Pozycjonowanie menu na mobile */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
    }

    /* Animacja strzałek przy rozwijaniu */
    .dropdown-toggle[aria-expanded="true"] .fa-chevron-right {
        transform: rotate(90deg);
    }

    .fa-chevron-right {
        transition: transform 0.3s ease;
    }
}

/* Bardzo małe ekrany - jeszcze mniejsze przyciski */
@media (max-width: 480px) {
    .navbar-ai-btn, .navbar-play-btn {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }

    .navbar-ai-btn span, .navbar-play-btn span {
        display: none;
    }

    .navbar-ai-btn:before {
        content: "Asystent AI";
        font-weight: bold;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .navbar-play-btn:before {
        content: "Na głos";
        font-weight: bold;
        padding-top: 2px;
        padding-bottom: 2px;
    }



    /* Mniejszy gap między przyciskami */
    .navbar-buttons {
        gap: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Pozycjonowanie przycisków między logo a hamburgerem */
@media (max-width: 991.98px) {
    .navbar-mobile-group {
        margin-left: auto;
    }

    .navbar-buttons {
        margin-right: 0.75rem;
    }
    
    /* Ukryj przycisk WCAG desktop na mobile */
    .navbar-wcag-btn-desktop {
        display: none !important;
    }
    
    /* Pokaż przycisk WCAG mobile */
    .navbar-wcag-btn-mobile {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    /* Ukryj grupę mobile na desktopie */
    .navbar-mobile-group {
        display: none !important;
    }
    
    /* Pokaż przycisk WCAG desktop */
    .navbar-wcag-btn-desktop {
        display: flex !important;
    }
}



/* Logo transition */
#logo {
    transition: opacity 0.8s ease-in-out;
    max-height: 30px;
}

.navbar-scrolled #logo {
    content: url(/imgs/logo-kcz.png);
    opacity: 1;
}

/* Announcement bar */
.announcement-bar {
    transition: all 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    width: 100%;
    padding: 5px 0;
}

/* Navbar adjustment */
#mainNav {
    padding-top: calc(var(--announcement-height, 50px) + 0.5rem);
    transition: padding-top 0.3s ease-in-out;
}

.navbar-scrolled {
    padding-top: 0.5rem !important;
}

.navbar-scrolled .announcement-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.footer {
    background: 
        linear-gradient(135deg, rgb(1, 47, 90) 0%, rgba(1, 57, 100, 0.98) 30%, rgba(0, 56, 124, 0.95) 70%, rgb(1, 38, 80) 100%) !important;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(1, 49, 96, 0.15);
    font-size: 0.8em;
    color: #fff;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Dodajemy JavaScript do dynamicznego ustawiania wysokości */

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    margin-left: auto;
}

.carousel-inner {
    text-align: center;
    height: 400px;
    width: 100%;
}

.carousel-item {
    text-align: center;
}

.carousel-indicators button {
    background-color: rgb(176, 176, 176) !important;
    /* Zmienia kolor wskaźników na czerwony */
    border: none;
    /* Usuwa domyślną obwódkę */
}

.carousel-indicators .active {
    background-color: rgb(0, 84, 136) !important;
    /* Zmienia kolor aktywnego wskaźnika na niebieski */
}

.breadcrumb {
    font-family: 'IBM Plex Sans', sans-serif;
    padding-top: 30px;
    font-size: 0.675rem;
    color: #2f2f2f;
    font-weight: 500;
    padding-left: 20px;
    border-left: 1px solid #b0b0b0;
    margin-left: 10px;
}

.home-slide-1 {
    background-image: linear-gradient(to right, rgba(1, 49, 96, 0.7), rgba(1, 49, 96, 0.3)), url('/imgs/DJI_0339.jpg');
    background-size: cover;
    background-position: center;
    animation: kenBurnsHome 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.home-slide-2 {
    background-image: linear-gradient(to right, rgba(16, 96, 188, 0.7), rgba(16, 96, 188, 0.3)), url('https://readdy.ai/api/search-image?query=modern%20hospital%20interior%20with%20medical%20staff%20in%20blue%20uniforms%2C%20bright%20and%20clean%20environment%2C%20soft%20natural%20lighting%2C%20medical%20equipment%20in%20background%2C%20professional%20healthcare%20setting%2C%20high%20quality%20professional%20photo&width=1920&height=800&seq=1&orientation=landscape');
    background-size: cover;
    background-position: center;
    animation: kenBurnsHome 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.home-slide-3 {
    background-image: linear-gradient(to right, rgba(12, 86, 170, 0.7), rgba(12, 86, 170, 0.3)), url('https://readdy.ai/api/search-image?query=modern%20hospital%20equipment%20with%20doctor%20examining%20patient%2C%20bright%20and%20clean%20environment%2C%20soft%20natural%20lighting%2C%20professional%20healthcare%20setting%2C%20medical%20technology%2C%20high%20quality%20professional%20photo&width=1920&height=800&seq=7&orientation=landscape');
    background-size: cover;
    background-position: center;
    animation: kenBurnsHome 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.home-slide-4 {
    background-image: linear-gradient(to right, rgba(45, 115, 194, 0.7), rgba(45, 115, 194, 0.3)), url('https://readdy.ai/api/search-image?query=caring%20medical%20staff%20with%20elderly%20patient%20in%20hospital%20room%2C%20compassionate%20healthcare%2C%20bright%20and%20clean%20environment%2C%20soft%20natural%20lighting%2C%20professional%20healthcare%20setting%2C%20high%20quality%20professional%20photo&width=1920&height=800&seq=8&orientation=landscape');
    background-size: cover;
    background-position: center;
    animation: kenBurnsHome 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.home-slide-5 {
    background-image: linear-gradient(to right, rgba(45, 115, 194, 0.7), rgba(45, 115, 194, 0.3)), url('/imgs/zrm.jpg');
    background-size: cover;
    background-position: center;
    animation: kenBurnsHome 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animacja Ken Burns dla slide'ów na stronie głównej */
@keyframes kenBurnsHome {
    0% {
        background-size: 110% auto;
        background-position: center center;
    }
    10% {
        background-size: 115% auto;
        background-position: 20% 10%;
    }
    20% {
        background-size: 120% auto;
        background-position: 30% 15%;
    }
    30% {
        background-size: 125% auto;
        background-position: 50% 20%;
    }
    40% {
        background-size: 130% auto;
        background-position: 70% 25%;
    }
    50% {
        background-size: 135% auto;
        background-position: 80% 30%;
    }
    60% {
        background-size: 130% auto;
        background-position: 70% 25%;
    }
    70% {
        background-size: 125% auto;
        background-position: 50% 20%;
    }
    80% {
        background-size: 120% auto;
        background-position: 30% 15%;
    }
    90% {
        background-size: 115% auto;
        background-position: 20% 10%;
    }
    100% {
        background-size: 110% auto;
        background-position: center center;
    }
}

/* Responsywne animacje Ken Burns dla slide'ów na stronie głównej */
@media (max-width: 768px) {
    .home-slide-1,
    .home-slide-2,
    .home-slide-3,
    .home-slide-4,
    .home-slide-5 {
        animation: kenBurnsHomeMobile 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes kenBurnsHomeMobile {
        0% {
            background-size: 150% auto;
            background-position: center center;
        }
        10% {
            background-size: 160% auto;
            background-position: center 15%;
        }
        20% {
            background-size: 170% auto;
            background-position: center 25%;
        }
        30% {
            background-size: 180% auto;
            background-position: center 35%;
        }
        40% {
            background-size: 190% auto;
            background-position: center 45%;
        }
        50% {
            background-size: 200% auto;
            background-position: center 55%;
        }
        60% {
            background-size: 190% auto;
            background-position: center 45%;
        }
        70% {
            background-size: 180% auto;
            background-position: center 35%;
        }
        80% {
            background-size: 170% auto;
            background-position: center 25%;
        }
        90% {
            background-size: 160% auto;
            background-position: center 15%;
        }
        100% {
            background-size: 150% auto;
            background-position: center center;
        }
    }
}

@media (max-width: 576px) {
    .home-slide-1,
    .home-slide-2,
    .home-slide-3,
    .home-slide-4,
    .home-slide-5 {
        animation: kenBurnsHomeMobileSmall 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes kenBurnsHomeMobileSmall {
        0% {
            background-size: 180% auto;
            background-position: center center;
        }
        10% {
            background-size: 190% auto;
            background-position: center 15%;
        }
        20% {
            background-size: 200% auto;
            background-position: center 25%;
        }
        30% {
            background-size: 210% auto;
            background-position: center 35%;
        }
        40% {
            background-size: 220% auto;
            background-position: center 45%;
        }
        50% {
            background-size: 230% auto;
            background-position: center 55%;
        }
        60% {
            background-size: 220% auto;
            background-position: center 45%;
        }
        70% {
            background-size: 210% auto;
            background-position: center 35%;
        }
        80% {
            background-size: 200% auto;
            background-position: center 25%;
        }
        90% {
            background-size: 190% auto;
            background-position: center 15%;
        }
        100% {
            background-size: 180% auto;
            background-position: center center;
        }
    }
}

.home-slide-content {
    z-index: 1;
    padding-top: 100px;
}

/* Sekcja Zakres działalności */
.home-feature-icon-wrapper,
.home-stats-icon-wrapper {
    width: 48px;
    height: 48px;



    border: none;
    box-shadow:
        0 2px 8px rgba(1, 49, 96, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(1, 49, 96, 0.1);
    color: rgba(0, 46, 91, 0.704) !important;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Ikony w kartach oddziałów szpitalnych */
.card .home-feature-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.home-feature-icon-wrapper:hover,
.home-stats-icon-wrapper:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(1, 49, 96, 0.15), rgba(1, 49, 96, 0.08));
    box-shadow:
        0 8px 25px rgba(1, 49, 96, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(1, 49, 96, 0.15);
}

.home-feature-icon-wrapper::before,
.home-stats-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-feature-icon-wrapper:hover::before,
.home-stats-icon-wrapper:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 60%);
}

.home-feature-icon-wrapper::after,
.home-stats-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(1, 49, 96, 0.25), rgba(1, 49, 96, 0.05));
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-feature-icon-wrapper:hover::after,
.home-stats-icon-wrapper:hover::after {
    background: linear-gradient(135deg, rgba(1, 49, 96, 0.4), rgba(1, 49, 96, 0.15));
}

.home-feature-icon-wrapper i,
.home-stats-icon-wrapper i {
    position: relative;
    z-index: 1;
    color: rgba(1, 49, 96, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-feature-icon-wrapper:hover i,
.home-stats-icon-wrapper:hover i {
    color: rgba(1, 49, 96, 1) !important;
    transform: scale(1.1);
}

/* Sekcja Pasek z ikonami szybkiego dostępu */
.home-quick-link-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0px);
    box-shadow:
        0 4px 15px rgba(1, 49, 96, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.home-quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.home-quick-link-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    box-shadow:
        0 15px 35px rgba(1, 49, 96, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-quick-link-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
}

.home-quick-link-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(1, 49, 96, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-quick-link-card:hover .home-quick-link-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(1, 49, 96, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-quick-link-icon {
    font-size: 1.5rem;
    color: rgba(1, 49, 96, 0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-quick-link-card:hover .home-quick-link-icon {
    color: rgba(1, 49, 96, 1);
    transform: scale(1.1);
}

.home-quick-link-title {
    font-size: 0.9rem;
    line-height: 1.2;
    color: rgba(1, 49, 96, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.home-quick-link-card:hover .home-quick-link-title {
    color: rgba(1, 49, 96, 1) !important;
    transform: translateY(-2px);
}

.home-news-all-link {
    color: rgba(1, 49, 96, 0.98);
}

.home-news-all-link-icon-wrapper {
    width: 1.25rem;
    height: 1.25rem;
}

.home-news-card-img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-news-card-img-fallback-gradient {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #348ded, #8fc6dd);
    z-index: 0;
}

.home-news-card-img-fallback-logo {
    position: absolute;
    bottom: 55px;
    left: 30px;
    width: 70px;
    height: auto;
    opacity: 0.9;
    z-index: 1;
}

.home-news-card-img-fallback-text {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.5;
    z-index: 1;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumb-icon {
    color: #b0b0b0;
    margin-right: 5px;
    margin-left: 5px;
    font-size: 0.6rem;
    vertical-align: middle;
    display: inline-block;
}

/* Ukryj domyślny separator breadcrumb */
.breadcrumb-item+.breadcrumb-item::before {
    display: none;
}

/* === HOMEPAGE CAROUSEL === */
#homepageCarousel {
    position: relative;
    padding-top: 100px;
    /* Zmniejszony padding, bo input jest niżej */
    padding-bottom: 50px;
}

/* === SUBPAGE HERO BANNERS === */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 400px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    background: #013160; /* Granatowe tło jako fallback */
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    padding-bottom: 50px;
    margin-top: 14px;
    transition: opacity 0.3s ease-in-out;
}

/* Animacja Ken Burns dla tła */
.hero-section.ken-burns {
    animation: kenBurns 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes kenBurns {
    0% {
        background-size: 110% auto;
        background-position: center center;
    }
    10% {
        background-size: 115% auto;
        background-position: 20% 10%;
    }
    20% {
        background-size: 120% auto;
        background-position: 30% 15%;
    }
    30% {
        background-size: 125% auto;
        background-position: 50% 20%;
    }
    40% {
        background-size: 130% auto;
        background-position: 70% 25%;
    }
    50% {
        background-size: 135% auto;
        background-position: 80% 30%;
    }
    60% {
        background-size: 130% auto;
        background-position: 70% 25%;
    }
    70% {
        background-size: 125% auto;
        background-position: 50% 20%;
    }
    80% {
        background-size: 120% auto;
        background-position: 30% 15%;
    }
    90% {
        background-size: 115% auto;
        background-position: 20% 10%;
    }
    100% {
        background-size: 110% auto;
        background-position: center center;
    }
}

/* Responsywne style dla animacji Ken Burns */
@media (max-width: 768px) {
    .hero-section.ken-burns {
        animation: kenBurnsMobile 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes kenBurnsMobile {
        0% {
            background-size: 150% auto;
            background-position: center center;
        }
        10% {
            background-size: 160% auto;
            background-position: center 15%;
        }
        20% {
            background-size: 170% auto;
            background-position: center 25%;
        }
        30% {
            background-size: 180% auto;
            background-position: center 35%;
        }
        40% {
            background-size: 190% auto;
            background-position: center 45%;
        }
        50% {
            background-size: 200% auto;
            background-position: center 55%;
        }
        60% {
            background-size: 190% auto;
            background-position: center 45%;
        }
        70% {
            background-size: 180% auto;
            background-position: center 35%;
        }
        80% {
            background-size: 170% auto;
            background-position: center 25%;
        }
        90% {
            background-size: 160% auto;
            background-position: center 15%;
        }
        100% {
            background-size: 150% auto;
            background-position: center center;
        }
    }
}

@media (max-width: 576px) {
    .hero-section.ken-burns {
        animation: kenBurnsMobileSmall 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }
    
    @keyframes kenBurnsMobileSmall {
        0% {
            background-size: 180% auto;
            background-position: center center;
        }
        10% {
            background-size: 190% auto;
            background-position: center 15%;
        }
        20% {
            background-size: 200% auto;
            background-position: center 25%;
        }
        30% {
            background-size: 210% auto;
            background-position: center 35%;
        }
        40% {
            background-size: 220% auto;
            background-position: center 45%;
        }
        50% {
            background-size: 230% auto;
            background-position: center 55%;
        }
        60% {
            background-size: 220% auto;
            background-position: center 45%;
        }
        70% {
            background-size: 210% auto;
            background-position: center 35%;
        }
        80% {
            background-size: 200% auto;
            background-position: center 25%;
        }
        90% {
            background-size: 190% auto;
            background-position: center 15%;
        }
        100% {
            background-size: 180% auto;
            background-position: center center;
        }
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(1, 49, 96, 0.7), rgba(1, 49, 96, 0.3));
    z-index: 1;
}

.hero-section .text-white {
    position: relative;
    z-index: 3;
}

.hero-section .btn {
    position: relative;
    z-index: 3;
}

/* Responsywne style dla bannerów */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 20px;
        height: 500px !important;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 250px;
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Style ogólne (bez zmian) */
.hover-underline:hover {
    text-decoration: underline !important;
}

#homepageCarousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
}

#homepageCarousel .carousel-indicators .active {
    background-color: white;
}

.space-y-3>*:not([hidden])~*:not([hidden]) {
    margin-top: 1rem;
}

/* Sekcja Statystyki - Glassmorphism */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.995), rgba(255, 255, 255, 0.693));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.home-stats-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(1, 49, 96, 0.08);
    color: rgba(78, 78, 78, 0.85);
}

.home-stats-number {
    color: rgba(1, 49, 96, 0.98);
    font-family: 'Inter', sans-serif;
}

.home-stats-title {
    color: rgba(1, 49, 96, 0.98);
    line-height: 1.3;
}

/* === HOMEPAGE CAROUSEL === */
#homepageCarousel .carousel-control-prev,
#homepageCarousel .carousel-control-next {
    top: 30%;
    transform: translateY(-50%);
    height: 50px;
    /* Możesz dostosować wysokość */
}

#homepageCarousel .carousel-control-prev {
    left: 15px;
    /* Możesz dostosować pozycję */
}

#homepageCarousel .carousel-control-next {
    right: 15px;
    /* Możesz dostosować pozycję */
}

/* Scrolled navbar link colors */
.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand,
.navbar-scrolled .navbar-toggler-icon {
    color: #013160 !important;
}

/* === MEDICAL SPECIALTY BADGES === */
.specialty-badge {
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 2px;
    transition: all 0.2s ease;
}

.specialty-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specialty-badge-hospital {
    color: #bf0013;
    border: 1px solid #dc3545;
}

.specialty-badge-hospital:hover {
    background-color: #c82333;
    color: white;
}

.specialty-badge-clinic {
    color: #007a1c;
    border: 1px solid #28a745;
}

.specialty-badge-clinic:hover {
    background-color: #218838;
    color: white;
}

.specialty-badge-commercial {
    color: #a23b00;
    border: 1px solid #fd7e14;
}

.specialty-badge-commercial:hover {
    background-color: #e8650e;
    color: white;
}

.specialty-badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    margin-top: auto;
}

.specialty-badge i {
    font-size: 0.6rem;
}

/* ==============================
   ALTERNATING CONTENT SECTIONS
   ============================== */

.content-section {
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.content-section-alternate {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2.5rem 0;
    padding-left: 0px;
    position: relative;
    color: #040e28;
}

/* Tło na pełną szerokość za pomocą pseudo-elementu */
.content-section-alternate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(135deg, #e9eff5 0%, #9dbbda 100%);
    z-index: -1;
}

/* Prosty biały tekst w ciemnych sekcjach */
/* .content-section-alternate * {
    color: #040e28;
} */

/* Kontener dla treści w alternujących sekcjach */
.content-section-alternate .container {
    margin: 0 auto;
    padding: 0;
}

/* Responsive padding dla alternujących sekcji */
@media (max-width: 768px) {
    .content-section-alternate {
        padding: 2rem 0;
    }


}

/* ==============================
   WYRÓŻNIONE BLOKI (FEATURED BLOCKS)
   ============================== */

.featured-block-wrapper {
    margin: 2rem 0;
    padding: 2.5rem 0;
    position: relative;
    color: #040e28;
}

/* Tło na pełną szerokość za pomocą pseudo-elementu - podobnie jak alternate-section */
.featured-block-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    /* background: linear-gradient(135deg, #e9eff5 0%, #9dbbda 100%); */
    z-index: -1;
    filter: blur(1px);
}

/* Responsive padding dla wyróżnionych bloków */
@media (max-width: 768px) {
    .featured-block-wrapper {
        padding: 2rem 0;
    }
}

/* ==============================
   MAPA - MONOCHROMATYCZNY GRANATOWY STYL
   ============================== */

/* Kontener mapy */
.map-container {
    position: relative !important;
    height: 390px !important;
    background: white !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 15px rgba(1, 49, 96, 0.1) !important;
}

#interactive-map {
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(1, 49, 96, 0.2);
    position: relative;
    width: 100%;
    height: 100%;
}

/* Ustawienia dla wszystkich kafelków mapy */
#interactive-map .leaflet-tile-pane {
    filter: sepia(100%) hue-rotate(170deg) saturate(100%) brightness(0.39) contrast(1.2);
}

/* Dodatkowe style dla elementów kontroli mapy */
#interactive-map .leaflet-control-zoom a {
    background-color: rgba(1, 49, 96, 0.9);
    color: white;
    border: none;
}

#interactive-map .leaflet-control-zoom a:hover {
    background-color: rgba(1, 49, 96, 1);
}

/* Style dla markerów - zachowanie ich oryginalnych kolorów */
#interactive-map .custom-marker {
    filter: none !important;
}

/* Overlay z informacjami o lokalizacji - glassmorphism */
#location-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 15px 35px rgba(1, 49, 96, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    max-width: 280px;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

#location-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
    border-radius: 0.75rem;
}

#location-info::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 0.75rem;
    z-index: -1;
}

#location-info:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 20px 40px rgba(1, 49, 96, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

#location-info:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
}

#location-info:hover::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

#location-info .location-icon-wrapper {
    width: 30px;
    height: 30px;
    background: rgba(1, 49, 96, 0.98) !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#location-info .location-icon-wrapper:hover {
    background: rgba(1, 49, 96, 1) !important;
    transform: scale(1.05);
}

#location-info #location-icon {
    font-size: 0.8rem;
    color: white;
}

#location-info #location-title {
    font-size: 0.9rem;
    color: rgba(1, 49, 96, 0.9);
    position: relative;
    z-index: 1;
}

#location-info #location-badge {
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
}

#location-info #location-address {
    color: rgba(1, 49, 96, 0.7);
    position: relative;
    z-index: 1;
}

#location-info #location-phone {
    color: rgba(1, 49, 96, 0.6);
    position: relative;
    z-index: 1;
}

#location-info>div {
    position: relative;
    z-index: 1;
}

/* Responsive - mniejsze filtry na urządzeniach mobilnych dla lepszej wydajności */
@media (max-width: 768px) {
    #interactive-map .leaflet-tile-pane {
        filter: sepia(100%) hue-rotate(170deg) saturate(100%) brightness(0.39) contrast(1.2);
    }
}

/* ==============================
   MINIATURKI AKTUALNOŚCI
   ============================== */

.news-thumbnail {
    position: relative;
    height: 200px !important;
    overflow: hidden;
    border-radius: 6px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Linia pionowa między kolumnami aktualności */
@media (min-width: 768px) {
    .news-list .col-md-6:nth-child(odd) {
        border-right: 1px solid #e9ecef;
        padding-right: 1.5rem;
    }

    .news-list .col-md-6:nth-child(even) {
        padding-left: 1.5rem;
    }
}

/* Style dla listy aktualności */
.news-thumbnail-list {
    height: 100% !important;
}



.news-date {
    font-size: 0.75rem;
}

.news-badge {
    font-size: 0.65rem;
}

.news-title {
    font-size: 0.9rem;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
}

.news-read-more-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Zaokrąglenie górnych rogów kart featured postów */
.card-img-top-container {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

/* Przycisk Facebook na dole postów */
.facebook-button-container {
    text-align: right;
}

.facebook-button-container .btn {
    font-size: 0.9rem;
}

/* ==============================
   MINIATURKI AKTUALNOŚCI - HOVER EFFECTS
   ============================== */

.news-thumbnail {
    position: relative;
    height: 200px !important;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(1, 49, 96, 0.15);
    border-radius: 8px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-thumbnail:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

/* .news-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 49, 96, 0.1), rgba(1, 49, 96, 0.05));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 6px;
} */

.news-thumbnail:hover::before {
    opacity: 1;
    border-radius: 8px;
}

/* 
.news-thumbnail::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    background: rgba(1, 49, 96, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(5px);
}

.news-thumbnail:hover::after {
    transform: translate(-50%, -50%) scale(1);
} */

/* Dodatkowy efekt dla kontenera karty */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 49, 96, 0.1) !important;
}

.card:hover .news-thumbnail {
    transform: scale(1.02);
} */

/* ==============================
   NADPISANIE WYSOKOŚCI MINIATUREK W LIŚCIE
   ============================== */

/* Specyficzne nadpisanie wysokości dla miniaturek w liście postów */
.news-thumbnail.news-thumbnail-list {
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

/* Responsywność dla miniaturek w liście */
@media (max-width: 768px) {
    .news-thumbnail.news-thumbnail-list {
        height: 100% !important;
    }
}

/* ==============================
   KLASY DLA SEKCJI INFORMACJI
   ============================== */

/* Kontener bloków */
.blocks-content {
    margin-top: 20px;
}

/* Kontener sekcji postów */
.category-posts-container {
    background-color: #ebeff6;
    padding: 10px;
    border-radius: 5px;
}

/* Kontener obrazka karty */
.card-img-top-container {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Kontener obrazka karty z tłem */
.card-img-top-container-with-bg {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Fallback dla obrazka karty */
.card-img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Gradient fallback */
.card-img-fallback-gradient {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #348ded, #8fc6dd);
    z-index: 0;
}

/* Logo w fallback */
.card-img-fallback-logo {
    position: absolute;
    bottom: 55px;
    left: 30px;
    width: 50px;
    height: auto;
    opacity: 0.8;
    z-index: 1;
}

/* Tekst w fallback */
.card-img-fallback-text {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.5;
    z-index: 1;
}

/* Kontener kolumny newsów */
.news-column-container {
    height: 100%;
}

/* Gradient dla miniaturek bez obrazka */
.news-thumbnail-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #348ded, #8fc6dd);
    z-index: 0;
}

/* Logo w miniaturce */
.news-thumbnail-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: auto;
    opacity: 0.8;
    z-index: 1;
}

/* Obrazek w miniaturce */
.news-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔗 SUBPAGE BUTTONS STYLES */
.subpage-buttons-container {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

/* Wymuś poziomy układ przycisków */
.subpage-buttons-container .subpage-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

.subpage-buttons-container .subpage-btn,
.subpage-buttons-container .parent-btn {
    display: inline-block !important;
    width: auto !important;
    flex: none !important;
}

.subpage-buttons {
    display: flex !important;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: row !important;
}

.subpage-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-color: #013160;
    color: #013160;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    display: inline-block !important;
    width: auto !important;
    flex-shrink: 0;
}

.subpage-btn:hover {
    background-color: #013160;
    border-color: #013160;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(1, 49, 96, 0.2);
}

.subpage-btn.active {
    background-color: #013160;
    border-color: #013160;
    color: #ffffff;
    font-weight: 600;
}

/* 🔼 PARENT BUTTON STYLES */
.parent-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-color: #6c757d;
    color: #6c757d;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block !important;
    width: auto !important;
    flex-shrink: 0;
}

.parent-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.parent-btn i {
    font-size: 0.8em;
}

/* Badge dla szkiców */
.subpage-btn .badge {
    font-size: 0.65em;
    padding: 0.2em 0.4em;
}

/* Responsywność */
@media (max-width: 768px) {
    .subpage-buttons {
        justify-content: flex-start;
        gap: 0.25rem;
        flex-direction: row !important;
    }

    .subpage-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        display: inline-block !important;
        width: auto !important;
    }

    .parent-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-right: 0.25rem;
        display: inline-block !important;
        width: auto !important;
    }

    .parent-btn i {
        font-size: 0.75em;
    }
}

/* Animacja przy ładowaniu */
.subpage-buttons-container {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   KOLEJKI NFZ - STYLE
   ============================== */


.queue-label {
    display: inline-block;
    width: 100px;
    font-weight: 600;
    color: rgba(1, 1, 96, 0.7);
    margin-right: 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.queue-date {
    font-size: 0.6rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.791);
    text-align: right;
    flex: 1;
}

.btn-glass {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(1, 49, 96, 0.1);
}

/* ========================================
   DP (Dobry Posiłek) Styles - NOWY LAYOUT
   ======================================== */

.dp-object-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.dp-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(1, 49, 96, 0.1);
}

.dp-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #013160;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dp-title i {
    font-size: 2rem;
    color: #28a745;
}

.dp-diet-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.dp-diet-header {
    color: #013160;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-diet-header i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.dp-diet-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.dp-meals-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.dp-meal-column {
    padding: 1.5rem;
    border-right: 1px solid #e9ecef;
}

.dp-meal-column:last-child {
    border-right: none;
}

.dp-meal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #013160;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-meal-title i {
    font-size: 1rem;
    color: #28a745;
}

.dp-meal-images {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.dp-meal-thumbnail {
    position: relative;
    height: 280px;
    width: 180px;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.dp-meal-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(1, 49, 96, 0.15);
    border-radius: 10px;
}

.dp-meal-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.dp-no-images {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.dp-diet-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dp-diet-note strong {
    color: #856404;
}

/* Responsywność */
@media (max-width: 768px) {
    .dp-object-container {
        padding: 1rem;
    }
    
    .dp-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .dp-meals-container {
        grid-template-columns: 1fr;
    }
    
    .dp-meal-column {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dp-meal-column:last-child {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .dp-title {
        font-size: 1.75rem;
    }
    
    .dp-diet-header {
        padding: 1rem;
    }
    
    .dp-diet-header h3 {
        font-size: 1.2rem;
    }
    
    .dp-meal-column {
        padding: 1rem;
    }
}

.navbar-home-btn {
    margin-top: 1px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 35%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

.navbar-home-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 1);
}

.navbar-scrolled .navbar-home-btn {
    border-color: rgba(1, 49, 96, 0.5);
    color: rgba(1, 49, 96, 0.9);
}

.navbar-scrolled .navbar-home-btn:hover {
    border-color: rgba(1, 49, 96, 0.8);
    color: rgba(1, 49, 96, 1);
}

/* WCAG Button Styles - Desktop (jak home button) */
.navbar-wcag-btn-desktop {
    margin-top: 1px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 35%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-scrolled .wcag-menu {
    color: black !important;
    width: 28px;
}

.navbar-scrolled .wcag-menu:hover {
    background-color: rgba(221, 250, 0, 0.995) !important;
}

.wcag-menu {
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent;
}

.wcag-menu:hover {
    color: rgba(221, 250, 0, 0.995);
    width: 25px;
    border-radius: 35%;
}

.navbar-wcag-btn-desktop:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 1);
}

.navbar-scrolled .navbar-wcag-btn-desktop {
    border-color: rgba(1, 49, 96, 0.5);
    color: rgba(1, 49, 96, 0.9) !important;
}

.navbar-scrolled .navbar-wcag-btn-desktop:hover {
    border-color: rgba(1, 49, 96, 0.8);
    color: rgba(1, 49, 96, 1);
}

/* Hamburger Menu Styles (Bootstrap default) */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: auto;
    height: auto;
    min-width: 38px;
    min-height: 38px;
}

.navbar-toggler:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler:focus {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* WCAG Button Styles - Mobile (dokładnie jak hamburger) */
.navbar-wcag-btn-mobile {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 38px;
    min-height: 38px;
}

.navbar-wcag-btn-mobile:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-wcag-btn-mobile:focus {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-wcag-btn-mobile:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.navbar-scrolled .navbar-wcag-btn-mobile {
    border-color: rgba(1, 49, 96, 0.1);
    color: rgba(1, 49, 96, 0.55);
}

.navbar-scrolled .navbar-wcag-btn-mobile:hover {
    color: rgba(1, 49, 96, 0.75);
    border-color: rgba(1, 49, 96, 0.25);
}

.navbar-scrolled .navbar-wcag-btn-mobile:focus {
    color: rgba(1, 49, 96, 0.75);
    border-color: rgba(1, 49, 96, 0.25);
    box-shadow: 0 0 0 0.25rem rgba(1, 49, 96, 0.25);
}

/* Audio Player Styles - BARDZO AGRESYWNE */
.navbar-play-btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

.navbar-play-btn.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.navbar-play-btn.disabled:hover {
    opacity: 0.4 !important;
    transform: none !important;
}

/* BARDZO AGRESYWNE selektory dla stanu playing */
.navbar-play-btn.playing,
.navbar-play-btn.playing:hover,
.navbar-play-btn.playing:focus,
.navbar-play-btn.playing:active,
button.navbar-play-btn.playing,
button.navbar-play-btn.playing:hover,
button.navbar-play-btn.playing:focus,
button.navbar-play-btn.playing:active,
.btn.navbar-play-btn.playing,
.btn.navbar-play-btn.playing:hover,
.btn.navbar-play-btn.playing:focus,
.btn.navbar-play-btn.playing:active {
    /* Usunięto zmianę koloru - przycisk ma być zawsze oryginalny */
    box-shadow: 0 0 19px 6px rgba(3, 197, 222, 0.25) !important;
}

.navbar-play-btn.playing:hover,
button.navbar-play-btn.playing:hover,
.btn.navbar-play-btn.playing:hover {
    /* Usunięto zmianę koloru - przycisk ma być zawsze oryginalny */
}

.audio-progress-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    /* width: 0% !important; */
    transition: width 0.1s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
    border-right: 2px solid rgba(145, 255, 0, 0.8) !important;
}

/* Progress bar dla scrolled navbar - ciemniejszy kolor */
.navbar-scrolled .audio-progress-bar {
    background-color: rgba(1, 49, 96, 0.3) !important;
    border-right: 2px solid rgba(0, 123, 255, 0.8) !important;
}

/* Progress bar dla scrolled navbar - jaśniejszy kolor */
.navbar-scrolled .audio-progress-bar {
    background-color: rgba(113, 182, 255, 0.2) !important;
    border-right: 2px solid rgba(0, 123, 255, 0.344) !important;
}

.navbar-play-btn span {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.navbar-play-btn:not(.disabled) {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-play-btn span {
        font-size: 12px !important;
    }
}

/* ==============================
   AKTUALNOŚCI - STYLE
   ============================== */

.hover-underline:hover {
    text-decoration: underline !important;
}

.card-img-top-link:hover .card-img-top-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.pagination {
    --bs-pagination-padding-x: 1rem;
    --bs-pagination-padding-y: 0.75rem;
    --bs-pagination-border-radius: 0.5rem;
}

.pagination .page-link {
    border: none;
    color: #6c757d;
    margin: 0 0.125rem;
    border-radius: 0.5rem !important;
}

.pagination .page-item.active .page-link {
    background-color: rgba(1, 49, 96, 0.98);
    border-color: rgba(1, 49, 96, 0.98);
}

.pagination .page-link:hover {
    background-color: rgba(1, 49, 96, 0.1);
    border-color: transparent;
    color: rgba(1, 49, 96, 0.98);
}

/* Style dla filtra przetargów */
.tender-filter .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.tender-filter .form-select {
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
}

.tender-filter .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: none;
    background-color: rgba(1, 49, 96, 0.98);
    border-color: rgba(1, 49, 96, 0.98);
}

.tender-filter .btn:hover {
    background-color: rgba(1, 49, 96, 0.9);
    border-color: rgba(1, 49, 96, 0.9);
}

@media (max-width: 768px) {
    .pagination-lg .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .fs-1 {
        font-size: 2rem !important;
    }
}

/* ==============================
   FILTR PRZETARGÓW - TOGGLE STYLE
   ============================== */

/* Kontener filtra - etykieta i toggle'y w jednej linii */
.filter-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Style dla filtra toggle - inspirowane admin form.ejs */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.toggle {
    position: relative;
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
    user-select: none;
}

.toggle-label:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle input[type="radio"]:checked + .toggle-label,
.toggle input[type="radio"]:checked ~ .toggle-label {
    background: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
}

.toggle-icon {
    margin-right: 0.35rem;
    font-size: 0.75rem;
}

.filter-stats {
    margin-top: 0.75rem;
}

.filter-stats .badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Responsywność dla filtra */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .toggle-group {
        gap: 0.25rem;
    }
    
    .toggle-label {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .toggle-icon {
        margin-right: 0.25rem;
        font-size: 0.7rem;
    }
}



/* Elegancki highlight dla wyróżnionych bloków */
.featured-block-wrapper {
    position: relative;
    margin: 0;
    padding-top: 0;
    padding-bottom: 10px;
    background: transparent; /* Tło sekcji bez koloru */
    overflow: visible; /* Pozwala na wyświetlanie labelki */
}

/* Efekt highlight tylko na tekście */
.featured-block-wrapper p,
.featured-block-wrapper h1,
.featured-block-wrapper h2,
.featured-block-wrapper h3,
.featured-block-wrapper h4,
.featured-block-wrapper h5,
.featured-block-wrapper h6,
.featured-block-wrapper li,
.featured-block-wrapper div {
    color: #000;
    background: transparent;
    background-image: linear-gradient(
        to right,
        rgba(104, 235, 108, 0.3),
        rgba(169, 215, 52, 0.7) 4%,
        rgba(140, 218, 143, 0.3)
    );
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0.1em 0.4em;
    margin: 0 -0.4em;
    border-radius: 0.8em 0.3em;
    animation: none; /* Początkowo bez animacji */
    display: inline;
}

/* Klasa dla animacji po wejściu w viewport */
.featured-block-wrapper.in-viewport p,
.featured-block-wrapper.in-viewport h1,
.featured-block-wrapper.in-viewport h2,
.featured-block-wrapper.in-viewport h3,
.featured-block-wrapper.in-viewport h4,
.featured-block-wrapper.in-viewport h5,
.featured-block-wrapper.in-viewport h6,
.featured-block-wrapper.in-viewport li,
.featured-block-wrapper.in-viewport div {
    animation: highlightSentence 2s ease-in-out forwards;
    animation-delay: calc(var(--sentence-index, 0) * 0.5s);
}

/* Animacja malowania highlightera zdanie po zdaniu */
@keyframes highlightSentence {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Dodajemy labelkę "WAŻNE" nad pierwszym wyróżnionym blokiem */
.featured-block-wrapper.label-applied::after {
    font-family: 'Font Awesome 6 Free', 'IBM Plex Sans', sans-serif;
    content: "\f0f3";
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fffdfd;
    background-color: #50b800;
    padding: 3px;
    padding-left: 10px;
    width: 35px;
    height: 25px;
    text-align: center;
    margin-bottom: 8px;
    margin-right: 10px;
    margin-left: -45px;
    position: absolute;
    top: -1px;
    left: 0;
    z-index: 10;
    filter: blur(0px) !important;
    border-radius: 4px 20px 20px 4px;
}

/* Stylujemy tylko ostatni wyróżniony blok */
.featured-block-wrapper:last-of-type {
    /* margin-bottom: 20px !important; */
}

.category-posts-section {
    background-color: #f8f9fa;
    padding: 30px 12px;
    border-radius: 10px;
    border: 1px solid rgb(0, 0, 0, 0.1);
}

#paid {
    width: 20px !important;
    margin-right: 20px !important;
}

/* Ikona dla płatnych usług */
.paid-icon {
    font-size: 50px;
    color: #007bff7c;
}

/* ==============================
   EDITOR BLOCKS - LIST STYLE SWITCH
   ============================== */

/* Kontener przełącznika typu listy */
.list-style-switch {
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0px;
    font-size: 11px;
    z-index: 10;
}

/* Przyciski przełącznika */
.list-style-btn {
    border: none;
    padding: 0px 8px;
    margin: 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 20px !important;
}

/* Przycisk numeracji */
.list-style-btn.num-btn {
    margin-right: 1px;
}

/* Stan nieaktywny */
.list-style-btn.inactive {
    background: #f8f9fa;
    color: #666;
}

/* Stan aktywny */
.list-style-btn.active {
    background: #011830;
    color: #fff;
}

/* Hover effect */
.list-style-btn:hover {
    opacity: 0.8;
}

/* ==============================
   UNIFIED DELETE/REMOVE BUTTONS
   ============================== */

/* Podstawowy styl dla wszystkich przycisków kasowania */
.remove-btn,
.delete-btn,
.gallery-delete-btn,
.image-remove-btn,
.admin-btn-danger,
.btn-delete,
.remove-filter,
button[title*="Usuń"],
button[onclick*="delete"],
button[onclick*="remove"] {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    color: #666 !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    text-decoration: none !important;
    font-size: 0 !important; /* Ukryj oryginalny tekst */
}

/* Hover effect - czerwone tło z białą ikoną */
.remove-btn:hover,
.delete-btn:hover,
.gallery-delete-btn:hover,
.image-remove-btn:hover,
.admin-btn-danger:hover,
.btn-delete:hover,
.remove-filter:hover,
button[title*="Usuń"]:hover,
button[onclick*="delete"]:hover,
button[onclick*="remove"]:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

/* Dodaj ikonę śmietnika do wszystkich przycisków kasowania */
.remove-btn::before,
.delete-btn::before,
.gallery-delete-btn::before,
.image-remove-btn::before,
.admin-btn-danger::before,
.btn-delete::before,
.remove-filter::before,
button[title*="Usuń"]::before,
button[onclick*="delete"]::before,
button[onclick*="remove"]::before {
    content: "\f014" !important; /* fa-regular fa-trash */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important; /* Regular weight */
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Active/focus states */
.remove-btn:active,
.delete-btn:active,
.gallery-delete-btn:active,
.image-remove-btn:active,
.admin-btn-danger:active,
.btn-delete:active,
.remove-filter:active,
button[title*="Usuń"]:active,
button[onclick*="delete"]:active,
button[onclick*="remove"]:active,
.remove-btn:focus,
.delete-btn:focus,
.gallery-delete-btn:focus,
.image-remove-btn:focus,
.admin-btn-danger:focus,
.btn-delete:focus,
.remove-filter:focus,
button[title*="Usuń"]:focus,
button[onclick*="delete"]:focus,
button[onclick*="remove"]:focus {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

/* Specjalne nadpisanie dla przycisków admin */
.admin-btn.admin-btn-danger,
.admin-btn.admin-btn-danger.admin-btn-sm {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    color: #666 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0 !important;
}

.admin-btn.admin-btn-danger:hover,
.admin-btn.admin-btn-danger.admin-btn-sm:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.admin-btn.admin-btn-danger::before,
.admin-btn.admin-btn-danger.admin-btn-sm::before {
    content: "\f014" !important; /* fa-regular fa-trash */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Ukryj istniejące ikony FontAwesome w przyciskach kasowania */
.admin-btn-danger i,




/* WCAG Panel - rozwijany navbar */
.wcag-panel {
    position: fixed;
    top: 0; /* Będzie ustawiane dynamicznie przez JavaScript */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10999 !important;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    padding-bottom: 0px;
}

.wcag-panel.active {
    max-height: 500px;
}

.wcag-panel-content {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(to bottom, #013160 0%, #08101b 100%);
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    padding-bottom: 30px;
}



/* Navbar scrolled styles */
.navbar-scrolled .wcag-panel {
    background: #ffffff;
}

.navbar-scrolled .wcag-panel-content {
    color: rgba(1, 49, 96, 0.9);
    background: #ffffff;
    border-top: 1px solid rgba(1, 49, 96, 0.1);
}



.wcag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wcag-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
margin-left: auto;}

/* Navbar scrolled styles dla header */
.navbar-scrolled .wcag-header {
    border-bottom: 1px solid rgba(1, 49, 96, 0.1);
}

.navbar-scrolled .wcag-title {
    color: rgba(1, 49, 96, 0.9);
}



.wcag-close-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wcag-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Navbar scrolled styles dla close button */
.navbar-scrolled .wcag-close-btn {
    color: rgba(1, 49, 96, 0.7);
}

.navbar-scrolled .wcag-close-btn:hover {
    background-color: rgba(1, 49, 96, 0.1);
    color: rgba(1, 49, 96, 0.9);
}

.wcag-sections {
    padding: 15px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* Mobile - 2 boxy obok siebie */
@media (max-width: 991.98px) {
    .wcag-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.wcag-section {
    margin-bottom: 0;
}

.wcag-section:last-child {
    margin-bottom: 0;
}

.wcag-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navbar scrolled styles dla section titles */
.navbar-scrolled .wcag-section-title {
    color: rgba(1, 49, 96, 0.7);
}



.wcag-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Grid dla wszystkich opcji */
.wcag-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

/* Na mobile zmieniamy na grid 3 kolumny */
@media (max-width: 768px) {
    .wcag-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        width: 100%;
        padding: 0 4px;
    }
    
    /* Kontroler wielkości tekstu na pełną szerokość na mobile */
    .wcag-font-size-control {
        grid-column: 1 / -1;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .wcag-option {
        width: 100%;
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        padding: 6px 4px;
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .wcag-option i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .wcag-option span {
        font-size: 0.65rem;
        line-height: 1.1;
        font-weight: 500;
    }
}

/* iOS Control Center style - kwadratowe boxy w kolorach navbar */
.wcag-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    min-height: 80px;
    width: 100%;
    position: relative;
}

.wcag-option i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.wcag-option span {
    font-weight: 500;
    line-height: 1.2;
}

/* Ikona check dla aktywnych opcji */
.wcag-check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wcag-option.active .wcag-check-icon {
    opacity: 1;
}

/* Navbar scrolled styles dla ikon check */
.navbar-scrolled .wcag-check-icon {
    color: rgba(1, 49, 96, 0.8);
}

.wcag-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.wcag-option.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navbar scrolled styles dla options */
.navbar-scrolled .wcag-option {
    background: rgba(1, 49, 96, 0.1);
    border: 1px solid rgba(1, 49, 96, 0.2);
    color: rgba(1, 49, 96, 0.9);
}

.navbar-scrolled .wcag-option:hover {
    background: rgba(1, 49, 96, 0.2);
    border-color: rgba(1, 49, 96, 0.3);
}

.navbar-scrolled .wcag-option.active {
    background: rgba(1, 49, 96, 0.3);
    border-color: rgba(1, 49, 96, 0.5);
}







/* Nowy kontroler wielkości tekstu */
.wcag-font-size-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    min-height: 80px;
}

/* Navbar scrolled styles dla kontrolera */
.navbar-scrolled .wcag-font-size-control {
    background: rgba(1, 49, 96, 0.1);
    border: 1px solid rgba(1, 49, 96, 0.2);
}

.wcag-font-size-control label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
}

.wcag-font-size-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.wcag-font-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wcag-font-btn:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
}

.wcag-font-btn:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.wcag-font-progress {
    flex: 1;
    position: relative;
}

.wcag-font-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.wcag-font-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%; /* Domyślnie poziom 0 (100%) - pusty slider */
}

.wcag-font-levels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.wcag-font-level {
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
}

.wcag-font-level.active {
    background: rgba(255, 255, 255, 0.8);
}

.wcag-font-size-value {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Navbar scrolled styles dla nowego kontrolera */
.navbar-scrolled .wcag-font-size-control label {
    color: rgba(1, 49, 96, 0.7);
}

.navbar-scrolled .wcag-font-btn {
    color: rgba(1, 49, 96, 0.8);
}

.navbar-scrolled .wcag-font-btn:hover {
    color: rgba(1, 49, 96, 1);
    background: rgba(1, 49, 96, 0.1);
}

.navbar-scrolled .wcag-font-btn:disabled {
    color: rgba(1, 49, 96, 0.3);
}

.navbar-scrolled .wcag-font-bar {
    background: rgba(1, 49, 96, 0.2);
}

.navbar-scrolled .wcag-font-fill {
    background: rgba(1, 49, 96, 0.8);
}

.navbar-scrolled .wcag-font-level {
    background: rgba(1, 49, 96, 0.4);
}

.navbar-scrolled .wcag-font-level.active {
    background: rgba(1, 49, 96, 0.8);
}

.navbar-scrolled .wcag-font-size-value {
    color: rgba(1, 49, 96, 0.9);
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .wcag-panel-content {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .wcag-header {
        padding: 12px 16px 10px;
    }
    
    .wcag-sections {
        padding: 12px 16px 16px;
    }
    
    .wcag-option {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100%;
        min-height: 70px;
    }
    
    .wcag-section {
        margin-bottom: 15px;
    }
    
    .wcag-options {
        gap: 6px;
    }
    
    /* Kontroler wielkości tekstu na pełną szerokość */
    .wcag-font-size-wide {
        grid-column: 1 / -1;
        width: 100%;
    }
    
    .wcag-font-size-wide .wcag-font-size-buttons {
        gap: 12px;
    }
    
    .wcag-font-size-wide .wcag-font-btn {
        font-size: 1.4rem;
        padding: 6px;
    }
    
    .wcag-font-size-wide .wcag-font-bar {
        height: 10px;
    }
    
    .wcag-font-size-wide .wcag-font-level {
        width: 3px;
        height: 10px;
    }
    
    .wcag-font-size-wide .wcag-font-size-value {
        font-size: 0.9rem;
    }
}

/* WCAG Accessibility Functionality Styles */
body.wcag-high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.wcag-high-contrast * {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.wcag-high-contrast .navbar {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
}

body.wcag-high-contrast .navbar-nav .nav-link {
    color: #ffffff !important;
}

body.wcag-high-contrast .navbar-nav .nav-link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Wykluczenie panelu dostępności z zmian WCAG */
body.wcag-high-contrast .wcag-panel,
body.wcag-high-contrast .wcag-panel * {
    background-color: #013160 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Specjalne style dla slidera w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-font-bar {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

body.wcag-high-contrast .wcag-font-fill {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
}

body.wcag-high-contrast .wcag-font-level {
    background: rgba(255, 255, 255, 0.6) !important;
}

body.wcag-high-contrast .wcag-font-level.active {
    background: #ffffff !important;
}

/* Style dla przycisków w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-font-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

body.wcag-high-contrast .wcag-font-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

body.wcag-high-contrast .wcag-font-btn:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Style dla opcji w panelu dostępności w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-option {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.wcag-high-contrast .wcag-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.wcag-high-contrast .wcag-option.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Style dla nagłówka panelu w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.wcag-high-contrast .wcag-title {
    color: #ffffff !important;
}

body.wcag-high-contrast .wcag-close-btn {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.wcag-high-contrast .wcag-close-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Style dla wartości rozmiaru czcionki w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-font-size-value {
    color: #ffffff !important;
}

body.wcag-high-contrast .wcag-font-size-control label {
    color: rgba(255, 255, 255, 0.9) !important;
}



/* Style dla ikon w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-option i {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.wcag-high-contrast .wcag-check-icon {
    color: #4CAF50 !important;
}

body.wcag-high-contrast .wcag-option.active .wcag-check-icon {
    color: #4CAF50 !important;
}

/* Style dla nowych opcji w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-option[data-wcag="no-animations"] i {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.wcag-high-contrast .wcag-option[data-wcag="read-aloud"] i {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Style dla tekstu w opcjach w trybie wysokiego kontrastu */
body.wcag-high-contrast .wcag-option span {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.wcag-high-contrast .wcag-option.active span {
    color: #ffffff !important;
}



body.wcag-negative {
    filter: invert(100%) !important;
    background-color: #000000 !important;
}

/* Wykluczenie panelu dostępności z negatywu */
body.wcag-negative .wcag-panel {
    filter: none !important;
}

body.wcag-grayscale {
    filter: grayscale(100%) !important;
}

/* Wykluczenie panelu dostępności z grayscale */
body.wcag-grayscale .wcag-panel {
    filter: none !important;
}

/* Wykluczenie efektów hover dla obrazów w trybie grayscale */
body.wcag-grayscale .news-thumbnail:hover img {
    filter: grayscale(100%) !important;
}

body.wcag-spacing *:not(.navbar):not(.navbar *):not(.wcag-panel):not(.wcag-panel *) {
    line-height: 1.8 !important;
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}



body.wcag-spacing p:not(.navbar p):not(.wcag-panel p),
body.wcag-spacing div:not(.navbar div):not(.wcag-panel div),
body.wcag-spacing h1:not(.navbar h1):not(.wcag-panel h1),
body.wcag-spacing h2:not(.navbar h2):not(.wcag-panel h2),
body.wcag-spacing h3:not(.navbar h3):not(.wcag-panel h3),
body.wcag-spacing h4:not(.navbar h4):not(.wcag-panel h4),
body.wcag-spacing h5:not(.navbar h5):not(.wcag-panel h5),
body.wcag-spacing h6:not(.navbar h6):not(.wcag-panel h6) {
    margin-bottom: 1.5em !important;
}





body.wcag-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23013160" stroke="%23ffffff" stroke-width="2"/></svg>') 16 16, auto !important;
}

/* Wyłącz animacje - wyklucz wszystkie elementy AI */
body.wcag-no-animations *:not([class*="ai-"]),
body.wcag-no-animations *:not([class*="ai-"])::before,
body.wcag-no-animations *:not([class*="ai-"])::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Wykluczenie elementów AI z wyłączania animacji - zachowaj pozycjonowanie */
body.wcag-no-animations [class*="ai-"] {
    animation: none !important;
    transition: none !important;
    /* Zachowaj transform dla pozycjonowania */
    transform: inherit !important;
}

/* Centrowanie elementów AI za pomocą flexbox zamiast transform */
body.wcag-no-animations .ai-top-bar {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
    width: 100% !important;
}

body.wcag-no-animations .ai-input-container-floating {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 15 !important;
    width: 100% !important;
}

/* Kontener wewnętrzny dla elementów AI */
body.wcag-no-animations .ai-top-bar > *,
body.wcag-no-animations .ai-input-container-floating > * {
    width: 90% !important;
    max-width: 800px !important;
}

/* Dodatkowe reguły dla desktopa - sprawdź czy element AI jest bezpośrednio w body */
body.wcag-no-animations body > .ai-top-bar,
body.wcag-no-animations body > .ai-input-container-floating {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 10 !important;
    width: 100% !important;
}

/* Reguły dla różnych rozmiarów ekranu */
@media (min-width: 768px) {
    body.wcag-no-animations .ai-top-bar,
    body.wcag-no-animations .ai-input-container-floating {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    body.wcag-no-animations .ai-top-bar > *,
    body.wcag-no-animations .ai-input-container-floating > * {
        width: 90% !important;
        max-width: 800px !important;
    }
}

/* Font size adjustments - nowe zakresy */
body.wcag-font-size-150 {
    font-size: 150% !important;
}

body.wcag-font-size-175 {
    font-size: 175% !important;
}

body.wcag-font-size-200 {
    font-size: 200% !important;
}

body.wcag-font-size-225 {
    font-size: 225% !important;
}

/* Zwiększanie czcionki dla specialty badges */
body.wcag-font-size-150 .specialty-badge {
    font-size: 0.975rem !important;
}

body.wcag-font-size-175 .specialty-badge {
    font-size: 1.1375rem !important;
}

body.wcag-font-size-200 .specialty-badge {
    font-size: 1.3rem !important;
}

body.wcag-font-size-225 .specialty-badge {
    font-size: 1.4625rem !important;
}

/* Zwiększanie czcionki dla home quick link titles */
body.wcag-font-size-150 .home-quick-link-title {
    font-size: 1.35rem !important;
}

body.wcag-font-size-175 .home-quick-link-title {
    font-size: 1.575rem !important;
}

body.wcag-font-size-200 .home-quick-link-title {
    font-size: 1.8rem !important;
}

body.wcag-font-size-225 .home-quick-link-title {
    font-size: 2.025rem !important;
}
.remove-btn i,
.delete-btn i,
.gallery-delete-btn i,
.image-remove-btn i,
.btn-delete i {
    display: none !important;
}

/* Kolor checked w trybie wysokiego kontrastu na biały */
body.wcag-high-contrast .wcag-check-icon,
body.wcag-high-contrast .wcag-option.active .wcag-check-icon {
    color: #fff !important;
}

/* === NEWS FALLBACK HOVER: WHITE + NOISE ONLY === */
.card-img-top-link:hover .card-img-fallback {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
}

.card-img-top-link:hover .card-img-fallback .random-gradient-fallback {
    background: #fff !important;
}

/* Hide gradient and blobs on hover */
.card-img-top-link:hover .random-gradient-fallback .rg-bg-gradient,
.card-img-top-link:hover .random-gradient-fallback .rg-blob {
    display: none !important;
}

/* Keep noise visible and stronger on white */
.card-img-top-link:hover .random-gradient-fallback .rg-noise-top {
    opacity: 0.55 !important;
    mix-blend-mode: normal !important;
}

/* Invert logo on hover */
.card-img-top-link:hover .card-img-fallback img[alt="Logo KCZ"] {
    filter: invert(1) contrast(1.1);
}

/* Darken caption on hover (fallback caption is the last positioned text node) */
.card-img-top-link:hover .card-img-fallback > div:last-child {
    color: #111 !important;
    opacity: 0.9 !important;
}

/* Cookie Notification Styles */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
}

.cookie-notification.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.cookie-text i {
    color: #ff6b35;
    font-size: 1.1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cookie-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
        text-align: center;
        justify-content: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .cookie-notification {
        padding: 0.75rem 0;
    }
    
    .cookie-content {
        padding: 0 0.75rem;
    }
    
    .cookie-text {
        font-size: 0.85rem;
    }
    
    .cookie-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}