body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Klasa do ukrywania elementów */
.hidden {
    display: none !important; 
}

header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" width="100" height="100"/></svg>');
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.header-icon {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #fff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

main {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sekcja informacyjna */
.intro-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid #003366;
}

.intro-section h2 {
    color: #003366;
    margin-top: 0;
    font-size: 1.8rem;
}

.intro-section h3 {
    color: #555;
    margin-top: 1.5rem;
    font-size: 1.3rem;
}

.intro-section ul {
    padding-left: 1.5rem;
}

.intro-section ul li {
    margin-bottom: 0.5rem;
}

.intro-section p:last-child {
    margin-top: 1.5rem;
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    text-align: right;
}

.kandydaci-kontener {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsywna siatka */
    gap: 1.5rem; /* Odstęp między kartami */
    max-width: 1400px;
    margin: 0 auto; /* Wyśrodkowanie kontenera */
}

.karta-kandydata {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.karta-kandydata:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.karta-kandydata h2 {
    margin-top: 0;
    color: #003366;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.zdjecie-kandydata {
    display: block;
    max-width: 150px;
    height: auto;
    margin: 0 auto 1rem auto; /* Wyśrodkowanie zdjęcia */
    border-radius: 50%; /* Okrągłe zdjęcie */
    border: 3px solid #003366;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.kryteria h3 {
    margin-bottom: 0.8rem;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
    font-size: 1.2rem;
}

.kryteria ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kryteria li {
    margin-bottom: 0.9rem; /* Większy odstęp dla czytelności */
    font-size: 0.95em;
    line-height: 1.4;
}

.kryteria li strong {
    color: #003366; /* Akcentowanie nazwy kryterium */
    display: block;
    margin-bottom: 0.2rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #003366;
    color: #fff;
    font-size: 0.9em;
    border-top: 1px solid #002244;
}

footer p {
    margin: 0.3rem 0;
}

/* Media Queries dla responsywności */
@media (max-width: 768px) {
    .kandydaci-kontener {
        grid-template-columns: 1fr; /* Jedna kolumna na mniejszych ekranach */
    }
    
    .title-with-icon {
        flex-direction: column;
        gap: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-icon {
        font-size: 2.5rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .intro-section {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .kandydaci-kontener {
        grid-template-columns: repeat(2, 1fr); /* Dwie kolumny na średnich ekranach */
    }
}

@media (min-width: 1201px) {
    .kandydaci-kontener {
        grid-template-columns: repeat(3, 1fr); /* Trzy kolumny na dużych ekranach */
    }
}

.kwestionariusz-box {
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kwestionariusz-box h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.kwestionariusz-box p {
    color: #495057;
    margin-bottom: 15px;
}

.kwestionariusz-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.kwestionariusz-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* SEO Enhancements */
.breadcrumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #999;
}

.breadcrumbs a {
    color: #005999;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.section-heading {
    color: #003366;
    font-size: 2rem;
    margin: 30px 0 15px;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #003366;
    margin: 15px auto;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quick-nav {
    margin: 20px 0;
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 5px;
}

.quick-nav h3 {
    margin-top: 0;
    color: #0056b3;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-nav a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.quick-nav a:hover {
    background-color: #003d7a;
}

/* Style dla menu głównego */
.main-menu {
    margin: 20px 0;
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0056b3;
}

.main-menu h3 {
    margin-top: 0;
    color: #0056b3;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-menu a {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    font-weight: 500;
}

.main-menu a:hover, .main-menu a.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.main-menu a.active {
    position: relative;
}

.main-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: #0056b3;
    border-radius: 50%;
}

/* Style dla nagłówków grup kandydatów */
.grupa-kandydatow-naglowek {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f7f7f7;
    border-left: 5px solid #0056b3;
    color: #333;
    font-size: 1.4rem;
}

.info-box {
    background-color: #f8fcff;
    border: 1px solid #e1eef7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.update-date {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    text-align: right;
    margin-top: 15px;
    margin-bottom: 0;
}

time {
    font-weight: bold;
}

/* Candidate Card Enhancements */
.karta-kandydata {
    display: flex;
    flex-direction: column;
}

.karta-kandydata h3 {
    margin-top: 0;
    color: #003366;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.candidate-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.party {
    display: inline-flex;
    align-items: center;
}

.party::before {
    content: "🏛️";
    margin-right: 5px;
}

.age::before {
    content: "📅";
    margin-right: 5px;
}

figure {
    margin: 0 auto 1rem;
    text-align: center;
}

figcaption {
    font-size: 0.7rem;
    color: #777;
    margin-top: 5px;
}

.candidate-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.btn-more, .btn-program, .btn-social {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-more {
    background-color: #003366;
    color: white;
}

.btn-program {
    background-color: #e6f0fa;
    color: #003366;
}

.btn-social {
    background-color: #f5f5f5;
    color: #333;
}

.btn-social.twitter::before {
    content: "𝕏";
    margin-right: 5px;
    font-weight: bold;
}

.btn-more:hover, .btn-program:hover, .btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kryteria h4 {
    margin-bottom: 0.8rem;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
    font-size: 1.2rem;
}

/* Lazy loading indicator for images */
.zdjecie-kandydata {
    min-height: 150px;
    background-color: #f5f5f5;
    position: relative;
}

.zdjecie-kandydata[loading]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

.quick-nav ul li a:hover {
    background-color: #e2e8f0; /* Jasnoszary tło po najechaniu */
    color: var(--primary-color);
}

/* Kandydaci */
.kandydaci-kontener {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsywna siatka */
    gap: 1.5rem; /* Odstęp między kartami */
    max-width: 1400px;
    margin: 0 auto; /* Wyśrodkowanie kontenera */
}

/* Style dla artykułów */
.artykul-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.artykul {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.artykul-header {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.artykul-image {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.artykul-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.artykul-image:hover img {
    transform: scale(1.02);
}

.artykul-image figcaption {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
    text-align: right;
    font-style: italic;
}

.artykul h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    position: relative;
}

.artykul h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0056b3;
    margin: 15px 0;
    border-radius: 2px;
}

.artykul-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.artykul-date {
    display: flex;
    align-items: center;
}

.artykul-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: #0056b3;
}

.artykul-category {
    display: flex;
    align-items: center;
}

.artykul-category::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    color: #0056b3;
}

.artykul-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    margin-bottom: 30px;
    border-left: 4px solid #0056b3;
    padding: 15px 0 15px 20px;
    background-color: #f8fcff;
    border-radius: 0 5px 5px 0;
}

.artykul section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.artykul h2 {
    font-size: 1.8rem;
    color: #003366;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.artykul h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #0056b3;
}

.artykul h3 {
    font-size: 1.4rem;
    color: #003366;
    margin: 25px 0 15px;
    padding-left: 12px;
    border-left: 3px solid #0056b3;
}

.artykul p {
    margin-bottom: 20px;
    line-height: 1.75;
    color: #333;
    font-size: 1.05rem;
}

.artykul ul, .artykul ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.artykul li {
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
}

.artykul ul li::marker {
    color: #0056b3;
}

.artykul-sidebar {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
    align-self: start;
    border: 1px solid #eaeaea;
}

.sidebar-section {
    margin-bottom: 30px;
}

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

.sidebar-section h3 {
    font-size: 1.2rem;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.sidebar-section ul {
    padding-left: 20px;
    list-style-type: none;
}

.sidebar-section li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.sidebar-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0056b3;
    font-weight: bold;
}

.sidebar-section li strong {
    font-weight: 600;
    color: #333;
}

.sidebar-section a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-section a:hover {
    color: #003d7a;
    text-decoration: underline;
}

.artykul-nawigacja {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.artykul-nawigacja a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-back::before {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.btn-more::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
}

.artykul-nawigacja a:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Wzrost czytelności cytowania */
blockquote {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8fcff;
    border-left: 4px solid #0056b3;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '\201C';
    font-size: 4em;
    font-family: Georgia, serif;
    color: #0056b3;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
}

blockquote p {
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Style dla wyróżnionych treści */
.artykul .highlight-box {
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 5px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.artykul .highlight-box::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #fff;
    color: #0056b3;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 1.1rem;
}

.artykul .highlight-box p:last-child {
    margin-bottom: 0;
}

/* Styling dla tabel */
.artykul table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.artykul thead tr {
    background-color: #0056b3;
    color: #ffffff;
    text-align: left;
}

.artykul th,
.artykul td {
    padding: 12px 15px;
}

.artykul tbody tr {
    border-bottom: 1px solid #dddddd;
}

.artykul tbody tr:nth-of-type(even) {
    background-color: #f8f8f8;
}

.artykul tbody tr:last-of-type {
    border-bottom: 2px solid #0056b3;
}

/* Style dla listy artykułów */
.artykuly-lista {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.artykul-karta {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artykul-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.artykul-karta-image {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
}

.artykul-karta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artykul-karta:hover .artykul-karta-image img {
    transform: scale(1.05);
}

.artykul-karta-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.artykul-karta-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #0056b3;
}

.artykul-karta-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.artykul-karta-excerpt {
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.5;
}

.artykul-karta-link {
    align-self: flex-start;
    padding: 8px 20px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.artykul-karta-link:hover {
    background-color: #003d7a;
}

.kategorie-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.kategorie-nav a {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: #f0f0f0;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.kategorie-nav a:hover, .kategorie-nav a.active {
    background-color: #0056b3;
    color: white;
}

/* Responsywność dla artykułów */
@media (max-width: 900px) {
    .artykul {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .artykul-sidebar {
        margin-top: 40px;
        position: static;
    }
    
    .artykul h1 {
        font-size: 2rem;
    }
    
    .artykul-lead {
        font-size: 1.1rem;
    }
    
    .artykul-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .artykul-karta {
        flex-direction: column;
    }
    
    .artykul-karta-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 600px) {
    .artykul {
        padding: 15px;
    }
    
    .artykul-nawigacja {
        flex-direction: column;
        gap: 15px;
    }
    
    .artykul-nawigacja a {
        text-align: center;
        justify-content: center;
    }
    
    .artykul h1 {
        font-size: 1.8rem;
    }
    
    .artykul h2 {
        font-size: 1.5rem;
    }
    
    .artykul h3 {
        font-size: 1.2rem;
    }
    
    .artykul p, .artykul li {
        font-size: 1rem;
    }
}

/* Klasa dla responsywnych obrazów */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
} 