/* Sekcja departments-articles */
#departments-articles {
            position: relative;
        }

        #departments-articles .subtitle span {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
        }

        #departments-articles .subtitle img {
            width: 36px;
            height: 36px;
            object-fit: contain;
        }

        /* Desktop: wszystkie karty widoczne */
        .departments-track-desktop {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        /* Mobile: karuzela Swiper */
        .departments-swiper {
            display: none;
            margin: 0 auto;
            max-width: 100%;
        }

        .departments-swiper .swiper-wrapper {
            align-items: flex-start;
        }

        .departments-swiper .swiper-slide {
            height: auto;
            display: flex;
            width: auto;
            flex-shrink: 0;
            align-items: flex-start;
        }

        .departments-swiper .swiper-slide-active {
            height: auto;
        }

        .department-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(15, 44, 95, 0.12);
            border: 1px solid rgba(21, 55, 104, 0.10);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            width: 100%;
            text-decoration: none;
            color: inherit;
            height: 100%;
        }

        .department-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(15, 44, 95, 0.20);
            text-decoration: none;
            color: inherit;
        }

        .department-card__image {
            position: relative;
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            overflow: hidden;
        }

        .department-card__image::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
        }

        .department-card__content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .department-card__title {
            font-size: 1.1rem;
            font-weight: 700;
            color: #153768;
            line-height: 1.4;
            margin-bottom: 0.75rem;
            min-height: 3em;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .department-card__excerpt {
            font-size: 0.9rem;
            color: #525f73;
            line-height: 1.6;
            margin-bottom: 1rem;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            max-height: calc(1.6em * 3);
            flex-grow: 1;
        }

        .department-card__link {
            font-size: 0.85rem;
            font-weight: 600;
            color: #0f4b9a;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-top: auto;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .department-card__link:hover {
            color: #0a356e;
        }

        .department-card__link .icon {
            font-size: 1rem;
            transition: transform 0.3s ease;
        }

        .department-card:hover .department-card__link .icon {
            transform: translateX(4px);
        }

        .departments-swiper .swiper-button-next,
        .departments-swiper .swiper-button-prev {
            background: rgba(255, 255, 255, 0.95);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(21, 55, 104, 0.2);
            background-size: 16px 16px;
            background-position: center;
            background-repeat: no-repeat;
        }

        .departments-swiper .swiper-button-next:after,
        .departments-swiper .swiper-button-prev:after {
            display: none;
        }

        .departments-swiper .swiper-button-prev {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%23153768' stroke='%23153768' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        .departments-swiper .swiper-button-next {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%23153768' stroke='%23153768' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        .departments-swiper .swiper-button-next:hover,
        .departments-swiper .swiper-button-prev:hover {
            background-color: #ffffff;
            border-color: rgba(15, 75, 154, 0.4);
        }

        .departments-swiper .swiper-button-prev:hover {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%230f4b9a' stroke='%230f4b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        .departments-swiper .swiper-button-next:hover {
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%230f4b9a' stroke='%230f4b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        }

        .departments-swiper .swiper-pagination {
            position: relative;
            margin-top: 1.5rem;
        }

        .departments-swiper .swiper-pagination-bullet {
            background: rgba(17, 59, 124, 0.35);
        }

        .departments-swiper .swiper-pagination-bullet-active {
            background: #113b7c;
        }

        .departments-view-all {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 2px solid rgba(17, 59, 124, 0.15);
        }

        .departments-view-all__button {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            background: #0f4b9a;
            color: #ffffff;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: background 0.3s ease, transform 0.2s ease;
        }

        .departments-view-all__button:hover {
            background: #0a356e;
            color: #ffffff;
            text-decoration: none;
            transform: translateY(-2px);
        }

        .departments-view-all__button .icon {
            font-size: 1.2rem;
        }

        @media (max-width: 992px) {
            .departments-track-desktop {
                display: none;
            }
            
            .departments-swiper {
                display: block;
            }
        }

        @media (min-width: 993px) {
            .departments-swiper {
                display: none;
            }
            
            .departments-track-desktop {
                display: grid;
            }
        }

        @media (max-width: 768px) {
            .department-card__content {
                padding: 1.25rem;
            }

            .department-card__title {
                font-size: 1rem;
            }

            .department-card__image {
                height: 180px;
            }
        }

        @media (min-width: 768px) and (max-width: 991px) {
            .departments-swiper .swiper-slide {
                width: 320px;
            }
        }

        @media (min-width: 992px) and (max-width: 1199px) {
            .departments-swiper .swiper-slide {
                width: 340px;
            }
        }

        @media (min-width: 1200px) {
            .departments-swiper .swiper-slide {
                width: 360px;
            }
        }