/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: "GeistSans", "GeistSans Fallback", 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}

/* Top accessibility bar */
.top-accessibility-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
    font-size: 12px;
}

.top-accessibility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-left .font-controls {
    display: flex;
    gap: 2px;
}

.font-btn {
    background: none;
    border: 1px solid #999;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-btn:hover,
.font-btn:focus {
    background-color: #e0e0e0;
    outline: 2px solid #2b7cb3;
    outline-offset: 1px;
}

.font-btn.active {
    background-color: #2b7cb3;
    color: white;
    border-color: #2b7cb3;
}

.accessibility-right {
    display: flex;
    gap: 15px;
}

.accessibility-right .utility-link {
    color: #333;
    text-decoration: none;
    font-size: 11px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.accessibility-right .utility-link:hover,
.accessibility-right .utility-link:focus {
    color: #2b7cb3;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #2b7cb3;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #004499;
    text-decoration: none;
}

a:focus {
    outline: 2px solid #2b7cb3;
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    background-color: #2b7cb3;
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid white;
    border-radius: 2px;
    background-color: white;
    padding: 3px;
    flex-shrink: 0;
}

.site-title {
    font-size: 25px;
    margin-bottom: 3px;
    color: white;
    font-weight: bold;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-subtitle {
    font-size: 18px;
    color: white;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.header-utilities {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.utility-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem;
    border-radius: 0px;
    border: 1px solid;
    transition: background-color 0.2s ease;
}

.utility-link:hover, .utility-link:focus {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

/* Navigation */
/* Hide top navigation by default (desktop) */
#main-navigation {
    display: none;
}

.main-navigation {
    background-color: #34495e;
    border-bottom: 3px solid #2c3e50;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background-color: rgba(255,255,255,0.1);
}

.hamburger-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
    margin: 0;
}

.main-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s ease;
    border: none;
}

.main-menu a:hover, .main-menu a:focus {
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
}

.main-menu a.active {
    background-color: #e74c3c;
    color: white;
}

/* Submenu */
.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu-item-has-children:hover .submenu,
.menu-item-has-children:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #34495e;
}

.submenu a:last-child {
    border-bottom: none;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f8f8;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.breadcrumb-list li::after {
    content: ' / ';
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    color: #7f8c8d;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: #2b7cb3;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.breadcrumb-list li:last-child {
    color: #333;
    font-size: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.breadcrumb-list a:hover, .breadcrumb-list a:focus {
    text-decoration: underline;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 0;
}

/* Content wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

/* Left sidebar */
.left-sidebar {
    width: 250px;
    padding: 0;
    border: 1px solid #ddd;
    margin-top: 30px;
    margin-bottom: 30px;
    align-self: flex-start;
}

.sidebar-menu {
    margin: 0;
}


/* Sidebar list */
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ddd;
}

.sidebar-list li {
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.sidebar-list li:last-child {
    border-bottom: 1px solid #ddd;
}

/* Main sidebar links */
.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    background-color: white;
    border: none;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 45px;
    box-sizing: border-box;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background-color: #2b7cb3;
    color: white;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: #2b7cb3;
    color: white;
}

.sidebar-link.active span {
    color: #fff;
}

/* Footer contact-info hover styling */
#contact-info a:hover {
    color: #fff !important;
}

/* First h3 heading in article content styling */
.article-content h3:first-child {
    color: rgb(43, 124, 179);
    font-size: 18px;
    border-bottom: 2px solid oklch(0.928 0.006 264.531);
    margin-top: 30px;
}

.sidebar-link.parent-active {
    background-color: #e8f4f8;
    color: #2b7cb3;
    font-weight: 500;
}

.sidebar-link.active:hover,
.sidebar-link.active:focus {
    background-color: #1e5a87;
    color: white;
}

/* Parent items with children */
.sidebar-item-has-children {
    border-bottom: 1px solid #ddd !important;
}

.sidebar-item-has-children .sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
}

.sidebar-toggle.collapsed .sidebar-arrow {
    transform: rotate(-90deg);
}

.sidebar-item-has-children .sidebar-link:hover,
.sidebar-item-has-children .sidebar-link:focus {
    background-color: #2b7cb3;
    color: white;
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}

.sidebar-submenu.expanded {
    max-height: 500px; /* Wystarczająco duże żeby pomieścić wszystkie elementy bez suwaka */
}

.sidebar-sublink {
    display: block;
    padding: 10px 25px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1.3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: white;
    min-height: 40px;
    box-sizing: border-box;
}

.sidebar-sublink:last-child {
    border-bottom: none;
}

.sidebar-sublink:hover,
.sidebar-sublink:focus {
    background-color: #2b7cb3;
    color: white;
    text-decoration: none;
}

.sidebar-sublink.active {
    background-color: #2b7cb3;
    color: white;
}

.sidebar-sublink.active:hover,
.sidebar-sublink.active:focus {
    background-color: #004499;
    color: white;
}

/* Sidebar boxes */
.sidebar-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sidebar-text {
    font-weight: 500;
    color: #333;
}

.bip-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
}

.bip-triangle {
    color: #d32f2f;
    font-size: 12px;
}

.bip-text {
    font-size: 14px;
}

.bip-link:hover,
.bip-link:focus {
    color: #b71c1c;
    text-decoration: none;
}

/* Main content area */
.main-content-area {
    flex: 1;
    background-color: white;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Section header */
.section-header {
    background-color: #2b7cb3;
    color: white;
    padding: 12px 20px;
    margin-bottom: 0;
}

.section-header .section-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Content area */
.content-area {
    padding: 0;
}

/* Article container */
.article-container {
    background-color: white;
    border: 1px solid #ddd;
    margin: 0;
}

/* Article header */
.article-header {
    background-color: #2b7cb3;
    color: white;
    padding: 12px 20px;
    margin: 0;
}

.article-header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Article content */
.article-content {
    padding: 0px 20px;
}

.article-content h1 {
    color: #2b7cb3;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 12px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.article-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: inherit; /* inherit for A-/A+ scaling */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Article footer */
.article-footer {
    background-color: #2b7cb3;
    color: white;
    padding: 8px 20px;
}

.article-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
}

.article-actions-left {
    display: flex;
    gap: 15px;
}

.article-actions-right {
    display: flex;
    gap: 15px;
}

/* Responsive design for article actions */
@media (max-width: 768px) {
    /* Show top navigation on mobile only */
    #main-navigation { display: block; }
    /* Hide sidebar on mobile */
    .left-sidebar { display: none; }
    /* Show mobile main menu */
    .mobile-menu-toggle { display: block; }
    .main-menu { display: none; flex-direction: column; width: 100%; }
    .main-menu.active { display: flex; }
    
    .article-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .article-actions-left,
    .article-actions-right {
        justify-content: center;
        gap: 10px;
    }
}

/* Metryczka modal styles */
.metryczka-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.metryczka-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: metryczkaSlideIn 0.3s ease-out;
}

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

.metryczka-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.metryczka-header h3 {
    margin: 0;
    color: #2b7cb3;
    font-size: 18px;
    font-weight: 600;
}

.metryczka-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.metryczka-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.metryczka-body {
    padding: 20px;
}

.metryczka-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.metryczka-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.metryczka-table tr:last-child {
    border-bottom: none;
}

.metryczka-label {
    padding: 12px 16px 12px 0;
    font-weight: 600;
    color: #333;
    width: 40%;
    vertical-align: top;
}

.metryczka-value {
    padding: 12px 0 12px 16px;
    color: #666;
    word-break: break-word;
}

.metryczka-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

.metryczka-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
}

/* Responsive metryczka */
@media (max-width: 768px) {
    .metryczka-modal {
        padding: 10px;
    }
    
    .metryczka-content {
        max-height: 90vh;
    }
    
    .metryczka-header,
    .metryczka-body,
    .metryczka-footer {
        padding: 15px;
    }
    
    .metryczka-table {
        font-size: 13px;
    }
    
    .metryczka-label,
    .metryczka-value {
        padding: 8px 12px 8px 0;
    }
    
    .metryczka-label {
        width: 35%;
    }
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: transparent;
    white-space: nowrap;
    cursor: pointer;
}

/* Style dla przycisków button z klasą action-btn */
button.action-btn {
    /* background-color: transparent; */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Style dla przycisków PDF */
.pdf-btn {
    /* background-color: transparent; */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pdf-btn:hover,
.pdf-btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

.action-btn:hover,
.action-btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

.action-icon {
    font-size: 14px;
    color: white;
    opacity: 1;
}

/* Back to top button */
.back-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(43, 124, 179, 0.9);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover,
.back-to-top-btn:focus {
    background-color: rgba(43, 124, 179, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .back-to-top-btn .action-icon {
        font-size: 12px;
    }
}

/* Articles list styles */
.articles-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Article more button */
.article-more-btn {
    background-color: rgba(43, 124, 179, 0.9) !important;
    border-color: rgba(43, 124, 179, 0.9) !important;
    color: white !important;
    flex-shrink: 0;
    margin-left: 15px;
    align-self: flex-start;
}

.article-more-btn:hover,
.article-more-btn:focus {
    background-color: rgba(43, 124, 179, 1) !important;
    border-color: rgba(43, 124, 179, 1) !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.article-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    transition: box-shadow 0.2s ease;
}

.article-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-item h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.article-item h2 a {
    color: #2b7cb3;
    text-decoration: none;
    font-weight: 600;
}

.article-item h2 a:hover {
    text-decoration: underline;
}

.article-excerpt {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #888;
}

/* Muted small meta text */
.text-muted-sm {
    color: #4b5563; /* better contrast */
    font-size: 10px;
}

.no-articles {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-btn,
.pagination-current {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2b7cb3;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #2b7cb3;
    color: white;
    border-color: #2b7cb3;
    text-decoration: none;
}

.pagination-current {
    background-color: #2b7cb3;
    color: white;
    border-color: #2b7cb3;
    font-weight: 600;
}

/* News items */
.news-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.news-category {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.news-title {
    margin-bottom: 10px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.news-title a:hover,
.news-title a:focus {
    color: #2b7cb3;
    text-decoration: underline;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-views {
    color: #666;
    font-size: 12px;
}

/* Sections */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
    color: #2c3e50;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-date {
    font-weight: 500;
}

.news-category {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-title {
    margin-bottom: 1rem;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.news-title a:hover, .news-title a:focus {
    color: #e74c3c;
    text-decoration: underline;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #e74c3c;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover, .read-more:focus {
    color: #c0392b;
    text-decoration: underline;
}

/* News list */
.news-list {
    margin-bottom: 2rem;
}

.news-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.news-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover, .btn:focus {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #2980b9;
}

/* Quick links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.quick-link:hover, .quick-link:focus {
    background-color: #f8f9fa;
    border-color: #e74c3c;
    color: #e74c3c;
    text-decoration: none;
    transform: translateY(-1px);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.link-text {
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: #1e5a87;
    color: white;
    padding: 25px 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-section p {
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #bdc3c7;
}

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

.footer-section a:hover, .footer-section a:focus {
    color: #bdc3c7;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section li a {
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #bdc3c7;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #34495e;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .site-header, .main-navigation, .site-footer, .accessibility-controls {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .news-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Copyright bar */
.copyright-bar {
    background-color: #2b7cb3;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.copyright-bar p {
    margin: 0;
    color: white;
}

/* Print styles - ulepszone */
@media print {
    /* Ukryj elementy niepotrzebne do druku */
    .site-header,
    .main-navigation,
    .site-footer,
    .accessibility-controls,
    .copyright-bar,
    .article-actions,
    .breadcrumb,
    .left-sidebar {
        display: none !important;
    }
    
    /* Główne style dla druku */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
        margin: 0;
        padding: 20px;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    /* Style dla artykułów */
    .article-container {
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .article-header {
        background: white;
        color: #000;
        border-bottom: 2px solid #2b7cb3;
        margin-bottom: 20px;
        padding: 10px 0;
    }
    
    .article-content {
        padding: 0;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    .article-content p {
        margin-bottom: 10px;
        text-align: justify;
    }
    
    /* Linki w druku */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Unikaj łamania stron w środku elementów */
    .article-container,
    .article-content,
    .article-header {
        page-break-inside: avoid;
    }
    
    /* Marginesy dla druku */
    @page {
        margin: 2cm;
    }
}
