/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; /* Czarny kolor tła */
    padding: 10px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    position: fixed; /* Ustawienie pozycji, aby belka była na górze ekranu */
    top: 0;
    left: 0;
    z-index: 1000; /* Aby belka była na wierzchu */
}

/* Logo styles */
.logo a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.logo a i {
    font-size: 24px;
}

/* Search bar styles */
.search-bar {
    flex-grow: 1;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.search-bar form {
    display: inline-flex;
    width: 100%;
    align-items: center;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 3px 0 0 3px;
}

.search-bar button {
    padding: 10px;
    border: none;
    background-color: #555;
    color: #fff;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-bar button i {
    font-size: 16px;
}

.search-bar button:hover {
    background-color: #444;
}

/* Modal styles for calendar */
#calendarModal {
    display: none; /* Ukrywanie modala domyślnie */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
    overflow: auto;
}

#calendarModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Centrowanie modala */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px; /* Ograniczenie szerokości */
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Dodanie cienia */
}

#calendarModal h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

#calendarModal label {
    font-size: 14px;
    margin-right: 10px;
}

#calendarModal input[type="date"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#calendarModal button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

#calendarModal button:hover {
    background-color: #555;
}

/* Close button for modal */
#calendarModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#calendarModal .close:hover,
#calendarModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Calendar button styles */
#calendarButton {
    padding: 10px;
    border: none;
    background-color: #555;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 10px;
}

#calendarButton i {
    font-size: 16px;
}

#calendarButton:hover {
    background-color: #444;
}

/* Menu styles */
.menu ul {
    list-style: none;
    display: flex;
    margin-left: 20px;
}

.menu ul li {
    margin-left: 20px;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.menu ul li a:hover {
    text-decoration: underline;
}

/* Container for main content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding-top: 60px; /* Odstęp, aby zawartość nie była zasłonięta przez nawigację */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Result item styles */
.result-item {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fff;
}

.result-image {
    margin-right: 20px;
}

.result-image img {
    width: 300px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.result-image img:hover {
    transform: scale(1.05);
}

.result-content {
    flex-grow: 1;
}

.result-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.result-content .meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.result-content .lid {
    font-size: 16px;
    margin-bottom: 15px;
}

.more-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.more-btn:hover {
    background-color: #555;
}

/* Pagination styles */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f4f4f4;
}

.pagination a:hover {
    background-color: #e2e2e2;
}

.pagination .current-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    margin: 0 5px;
}

.pagination span {
    margin: 0 5px;
    padding: 8px 12px;
    color: #777;
}

/* Styl dla article-meta - mniejsza czcionka i pogrubienie */
.article-lid {
    font-weight: bold;
    margin-bottom: 14px;
}

.article-meta {
    font-size: 12px; /* Mniejsza czcionka */
    color: #777; /* Jasny kolor tekstu */
    margin-bottom: 30px; /* Dodanie marginesu 30px od dołu */
}

.article-meta strong {
    font-weight: bold; /* Pogrubienie dla kluczowych elementów */
    color: #333; /* Ciemniejszy kolor dla pogrubionego tekstu */
}

/* Styl dla article-content */
.article-content {
    width: 100%;
    margin: 0 auto;
}

/* Styl dla article-image - zmienione na szerokość 300px i wyrównane do lewej */
.article-image img {
    width: 280px; /* Zwiększona szerokość do 300px */
    height: auto;
    float: left;
    margin: 0 10px 10px 0;
}

/* Styl dla article-tresc - pełna szerokość */
.article-tresc {
    width: 100%;
    margin-top: 16px;
    clear: both;
		text-align: justify; 
}

/* Styl dla article-lid - pogrubienie */
.lid {
    
    margin-bottom: 20px;
}

/* Styl dla article-button - przycisk drukowania */
.article-button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px; /* Margines poniżej przycisku */
}

/* Ukrywanie przycisku "Drukuj" w wydruku */
@media print {
    .article-button {
        display: none;
    }
}

.article-button:hover {
    background-color: #555;
}

/* Styl dla kontenera wideo */
.video-container {
    text-align: center;
    margin: 20px 0;
}

/* Styl dla kontenera wideo */
.gelery-container {
		display: grid;
		place-items: center;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
}
/* Styl dla modala */
.article-modal {
    display: none; /* Ukryty domyślnie */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Półprzezroczyste tło */
}

/* Styl dla zawartości modala */
.article-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

/* Styl dla przycisku zamknięcia */
.article-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.article-modal-close:hover,
.article-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}