:root {
  --primary-color: #1a1a1a;
  --secondary-color: #b91c1c;
  --accent-color: #f8f9fa;
  --text-dark: #212529;
  --text-light: #3B4146;
}

body {
  font-family: "Source Sans Pro", sans-serif;
}

.serif-font {
  font-family: "Playfair Display", serif;
}

/* Header & Navigation */
.top-header {
  background: var(--secondary-color);
  color: white;
  padding: 15px 0;
}

/* Minimalny dodatkowy CSS dla dostępności i poprawek */

/* Poprawa focus states dla dostępności WCAG 2.1 */

/* Hover states */
.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile dropdown w ciemnym kolorze */
@media (max-width: 991.98px) {
  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Skip link styling */
.visually-hidden-focusable:focus {
  position: absolute !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

.logo {
  height: 100px;
}

.hero-swiper {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-hero {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
}

.btn-hero:hover {
  background-color: var(--primary-color, #b30000);
  color: #fff;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  z-index: 3;
}

.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color, #c00);
  opacity: 1;
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Museum Info Section */
.museum-info {
  background: var(--accent-color);
}

.info-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* Represje Cards */
.represje-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin-bottom: 30px;
}

.represje-card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 250px;
  background-image: url(mapa.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* News Section */
.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  height: 200px;
  background: linear-gradient(45deg, var(--secondary-color), #dc2626);
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Opening Hours */
.opening-hours {
  background: var(--accent-color);
}

.hours-image {
  height: 400px;
  border-radius: 10px;
  overflow: hidden; /* żeby zaokrąglenie działało na img */
}

.hours-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* zachowuje proporcje jak background-size: cover */
  display: block;
}

.hours-content {
  padding: 40px;
}

.hours-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 1.1rem;
}

.hours-day {
  font-weight: 600;
}

.hours-time {
  color: var(--secondary-color);
  font-weight: 600;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#map-container {
  height: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.info-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 3rem;
  color: var(--brand-red);
  margin-bottom: 20px;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.photo-placeholder {
  height: 250px;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 10px;
  margin-top: 20px;
}

.virtual-tour {
  background: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.btn-tour {
  background: white;
  color: var(--secondary-color);
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-tour:hover {
  background: #f8f9fa;
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* Quick Links */
.quick-links {
  background: var(--primary-color);
  color: white;
}

.quick-link-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  text-decoration: none;
  color: white;
  display: block;
}

.quick-link-item:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-5px);
}

.quick-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.quick-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 0 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

.prose p {
  font-size: 1.325rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #374151;
}

.prose .lead,
.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.first-letter::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: #b91c1c;
}

.card {
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .first-letter::first-letter {
    font-size: 2.5rem;
  }

  .prose p {
    font-size: 1rem;
  }
}

/* Style dla galerii */
.gallery-section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.gallery-item {
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.image-container img {
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-caption {
  padding: 1rem 0.5rem;
  text-align: center;
}

.caption-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.caption-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.4;
}

.gallery-box {
  background-color: #f8f9fa; /* Jasne tło z Bootstrapa */
  border: 1px solid #dee2e6; /* Subtelna ramka */
  border-radius: 0.75rem; /* Zaokrąglone rogi */
  padding: 2rem; /* Wewnętrzne marginesy */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Delikatny cień */
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.gallery-box h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #212529;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.gallery-box .row {
  margin-top: 1rem;
}

/* Separatory między sekcjami */
.section-divider {
  position: relative;
  text-align: center;
  margin: 4rem 0;
}

.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #b91c1c, transparent);
  margin: 0 auto;
  width: 50%;
}

.divider-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 1rem;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-icon {
    font-size: 2.5rem;
  }

  .gallery-section {
    padding: 2rem 0;
  }
}

/* Style dla sekcji biogramów */
.biographies-section {
  padding: 2rem 0 4rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.biography-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.biography-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.15);
}

.photo-container {
  margin-bottom: 1rem;
}

.prisoner-photo {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #f8f9fa;
}

.photo-placeholder {
  width: 120px;
  height: 150px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto;
}

.photo-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.photo-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

.prisoner-name {
  margin-bottom: 0.5rem;
}

.name-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.name-link:hover {
  color: #b91c1c;
  text-decoration: none;
}

.prisoner-details {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.prisoner-role {
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 500;
  margin-bottom: 0;
}

/* Style dla listy więźniów */
.prisoners-list-section {
  padding: 4rem 0;
}

.name-list {
  margin-bottom: 2rem;
}

.list-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #b91c1c;
}

.names-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.names-list li {
  margin-bottom: 0.5rem;
}

.prisoner-link {
  color: #333;
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  transition: all 0.3s ease;
  border-radius: 5px;
  padding-left: 0.5rem;
}

.prisoner-link:hover {
  color: #b91c1c;
  background-color: #f8f9fa;
  text-decoration: none;
  padding-left: 1rem;
}

/* Separator */
.section-divider {
  position: relative;
  text-align: center;
  margin: 4rem 0;
}

.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #b91c1c, transparent);
  margin: 0 auto;
  width: 50%;
}

.divider-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 1rem;
  font-size: 1.5rem;
}

/* Statystyki */
.statistics-section {
  background: #f8f9fa;
  padding: 3rem 2rem;
  border-radius: 15px;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .biography-card {
    padding: 1rem;
  }

  .prisoner-photo,
  .photo-placeholder {
    width: 100px;
    height: 125px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

.officers-gallery-section {
  padding: 4rem 0;
}

.gallery-item {
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.officer-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-container:hover .officer-photo {
  transform: scale(1.05);
}

.photo-caption {
  text-align: center;
  padding: 0.5rem;
}

.officer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.officer-role {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* Separator */
.section-divider {
  position: relative;
  text-align: center;
  margin: 4rem 0;
}

.divider-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #b91c1c, transparent);
  margin: 0 auto;
  width: 50%;
}

.divider-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 1rem;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .officer-photo {
    height: 250px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border: 3px solid white;
  box-shadow: 0 0 0 4px #b91c1c;
}
.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.timeline-title {
  font-weight: 600;
  margin-bottom: 1rem;
}
.document-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.15);
}
.document-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  font-weight: 600;
}
/* Responsive adjustments for timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 25px;
  }
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    padding-left: 80px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-icon {
    left: 25px;
  }
}

.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
/* Lepszy wygląd modala */
.modal-content {
  background: transparent;
  border: none;
}

.lesson-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.15) !important;
}
.pagination .page-item.active .page-link {
  background-color: #b91c1c;
  border-color: #b91c1c;
}
.pagination .page-link {
  color: #b91c1c;
}
.pagination .page-link:hover {
  color: #7f1d1d;
}

.task-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

#map {
  height: 600px;
  width: 100%;
}

/* Custom popup styling */
.custom-popup {
  font-family: "Arial", sans-serif;
}

.popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.popup-title {
  font-weight: bold;
  font-size: 16px;
  color: #b91c1c;
  margin-bottom: 8px;
}

.popup-description {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

/* Legenda */
.map-legend {
  border: 1px solid #dee2e6;
}

.legend-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Custom marker icons */
.custom-marker {
  background-color: #b91c1c;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  #map {
    height: 400px;
  }

  .fs-5 {
    font-size: 1.1rem !important;
  }
}

.section-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #b91c1c;
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Mapa kontaktowa */
#contact-map {
  height: 400px !important;
  width: 100% !important;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

/* Karty pracowników */
.staff-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.staff-avatar {
  flex-shrink: 0;
}

/* Transport info */
.transport-item {
  text-align: center;
  transition: transform 0.2s ease;
}

.transport-item:hover {
  transform: translateY(-2px);
}

/* Social media */
.social-media-links .btn {
  border: 2px solid #1877f2;
  color: #1877f2;
  transition: all 0.3s ease;
}

.social-media-links .btn:hover {
  background-color: #1877f2;
  color: white;
  transform: translateY(-2px);
}

/* Contact items */
.contact-item {
  padding: 0.5rem 0;
}

.contact-item a {
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #7f1d1d !important;
}

/* Responsive */
@media (max-width: 768px) {
  #contact-map {
    height: 300px !important;
  }

  .staff-card {
    margin-bottom: 1rem;
  }
}

.cta-box {
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-cta {
  background: linear-gradient(135deg, #1877f2, #166fe5) !important;
}

.social-cta .btn-light:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-lg {
    display: block;
    width: 100%;
    margin-bottom: 1rem !important;
  }

  .cta-box {
    padding: 2rem !important;
  }

  .fs-5 {
    font-size: 1.1rem !important;
  }
}

/* Typography improvements */
.content-section p {
  color: #444;
}

.content-section .fs-5:first-child::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: #b91c1c;
}

/* Article styling */
.article-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 2rem;
}

.article-meta {
  font-size: 0.9rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Gallery styling */
.gallery-img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Attachments styling */
.attachment-item {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6 !important;
}

.attachment-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
}

.attachment-item h6 {
  color: #333;
}

/* Article navigation */
.article-navigation a {
  color: #333;
  transition: color 0.3s ease;
}

.article-navigation a:hover {
  color: #b91c1c;
}

/* Responsive */
@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .article-meta > div {
    margin-right: 0 !important;
  }

  .gallery-img {
    height: 250px;
  }
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* działa jak background-size: cover */
  object-position: center; /* działa jak background-position: center */
  display: block;
  transition: transform 0.3s ease; /* opcjonalnie dla hover effect */
}

/* Opcjonalny hover effect */
.news-card:hover .news-img {
  transform: scale(1.05);
}

/* Responsive - na mobile można zmniejszyć wysokość */
@media (max-width: 768px) {
  .news-image {
    height: 180px;
  }
}

/* Document card styling */
.document-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.document-card {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
  background: white;
}

.document-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Document image */
.document-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.document-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.document-card:hover .document-img {
  transform: scale(1.05);
}

.document-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.document-type-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

/* Document content */
.document-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.document-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

.document-meta {
  font-size: 0.8rem;
}

.document-footer {
  border-top: 1px solid #f1f3f4;
  padding-top: 1rem;
  margin-top: 1rem;
}

.document-footer .btn {
  transition: all 0.3s ease;
  pointer-events: none; /* przycisk nie jest klikowalny, bo cała karta jest linkiem */
}

.document-card:hover .document-footer .btn {
  background-color: #b91c1c;
  color: white;
  border-color: #b91c1c;
}

/* Filters */
.filters-section .form-control:focus,
.filters-section .form-select:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 0.2rem rgba(185, 28, 28, 0.25);
}

/* Intro section */
.intro-section {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #b91c1c;
}

/* CTA section */
.cta-section {
  padding: 3rem 0;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .document-image {
    height: 150px;
  }

  .document-title {
    font-size: 1rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }
}

/* Animation dla hidden/show */
.document-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.document-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
/* Document header */
.document-header {
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 2rem;
}

.document-type-badge .badge {
  font-size: 0.9rem;
  font-weight: 600;
}

.document-meta {
  font-size: 0.95rem;
}

/* Gallery container */
.gallery-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Document swiper */
.document-swiper {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.document-page {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: transform 0.3s ease;
}

.document-page:hover {
  transform: scale(1.02);
}

.document-page-img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
}

.page-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(185, 28, 28, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #b91c1c;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: 700;
}

.swiper-pagination-bullet {
  background: #b91c1c;
  width: 12px;
  height: 12px;
}

/* Thumbnails */
.document-thumbs {
  max-width: 600px;
  margin: 2rem auto 0;
}

.thumb-slide {
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.thumb-slide:not(.swiper-slide-thumb-active) {
  opacity: 0.6;
}

.thumb-slide:hover {
  opacity: 1;
}

.thumb-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.swiper-slide-thumb-active .thumb-img {
  border-color: #b91c1c;
}

.thumb-caption {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Downloads */
.download-item {
  transition: all 0.3s ease;
  border: 2px solid #dee2e6 !important;
}

.download-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
}

.download-item h5 {
  color: #333;
}

/* Document description */
.description-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Modal enhancements */
.modal-dialog {
  max-width: 95vw;
}

#modalImage {
  max-height: 80vh;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .document-page-img {
    height: 400px;
  }

  .document-meta {
    flex-direction: column;
  }

  .document-meta > div {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .document-page-img {
    height: 300px;
  }
}

.navbar-dropdown {
  background-color: black;
  color: #fff;
  z-index: 99999;
}
.navbar-divider {
  background-color: #fff;
}

.breadcrumb li a {
  color:var(--text-light);
  text-decoration:none;
}
.breadcrumb li a:hover {
  color:var(--secondary-color);
  text-decoration:underline;
}


.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 6px;
  color: #555; /* optional, change to your preferred color */
}
/* Poprawa focus states dla dostępności WCAG 2.1 */
.nav-link:focus,
.navbar-brand:focus,
.dropdown-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hover states */
.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}
.dropdown-menu .nav-link {
  color: #212529 !important;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* zachowuje proporcje jak background-size: cover */
  display: block;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.gallery-item {
  display: block;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dropdown-menu {
  display: none;
}

.show > .dropdown-menu {
  display: block;
}

/* Feature cards styling */
.feature-card-link {
  text-decoration: none;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-card .display-3 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-card h2 {
  font-weight: 700;
}

/* Latest news section */
.latest-news-section .card {
  transition: box-shadow 0.3s ease;
}

.latest-news-section .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.zalaczniki ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zalaczniki .clear {
  display: none;
}

.zalaczniki li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  padding-left: 4.5rem;

  background-size: 2rem;
  background-repeat: no-repeat;
  background-position: 1.5rem center;

  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.zalaczniki li a span {
  margin-left: auto;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  white-space: nowrap;
}

.zalaczniki li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #b91c1c;
  color: #b91c1c;
}

.zalaczniki li a:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 3px;
  box-shadow: 0 0 0 0.25rem rgba(185, 28, 28, 0.25);
}

@media (max-width: 768px) {
  .zalaczniki li a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .zalaczniki li a span {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f1f1;
  }
}

.offer-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.offer-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.offer-card .card-icon-header {
  position: relative;
}
.offer-card .card-icon-header i {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}
.offer-card .card-title {
  font-weight: 700;
  font-size: 1.3rem;
}
.offer-card .card-footer {
  transition: background-color 0.3s ease;
}
.offer-card:hover .card-footer {
  background-color: #fff !important;
}
/ Info boxes / .info-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/ Intro section / .intro-section .border-start {
  border-width: 4px !important;
}
.cta-box {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}
.cta-box .btn-light:hover {
  background-color: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .offer-card .card-icon-header i {
    font-size: 3rem;
  }
  .offer-card .card-title {
    font-size: 1.1rem;
  }
}

.share-box {
  background-color: #f8f9fa;
  border-top: 3px solid #b91c1c;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  color: #fff;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  background: var(--secondary-color);
}

.share-fb {
  background-color: #000;
}
.share-x {
  background-color: #000;
}
.share-threads {
  background-color: #000;
}

@media (max-width: 576px) {
  .share-btn {
    width: 100%;
    justify-content: center;
  }
}


/* Dymek Leaflet - poprawiony układ Grid */
.map-object {
    display: grid;
    grid-template-columns: 80px 1fr; /* 80px dla obrazka, reszta (1fr) dla tekstu */
    gap: 10px; /* odstęp między kolumnami i wierszami */
    padding: 10px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    /* Usunąłem max-width: 300px, ponieważ Leaflet sam nadaje inline style (width: 301px), 
       a sztywny max-width z paddingiem może powodować problemy z box-sizing */
}

/* Obrazek po lewej */
.map-object img.foto_left {
    grid-column: 1; /* Wrzuca obrazek do pierwszej kolumny */
    grid-row: 1 / span 3; /* Rozciąga obrazek w dół, by nie blokował innych elementów */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Teksty i przycisk wrzucamy do drugiej kolumny */
.map-object strong,
.map-object p {
    grid-column: 2;
    margin: 0;
}

/* Formatowanie długiego tytułu */
.map-object strong {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.4; /* Zwiększa czytelność wierszy, gdy nazwa się zawija */
    word-break: break-word; /* Wymusza łamanie bardzo długich, nieprzerwanych słów */
    hyphens: auto; /* Dodaje myślniki przy dzieleniu wyrazów, jeśli przeglądarka to wspiera */
}

/* Ukrywamy pusty paragraf generowany w Twoim HTML */
.map-object p:empty,
.map-object p:first-of-type {
    display: none; 
}

/* Przycisk wraca na swoje miejsce i ignoruje poprzednie ukrycie */
.map-object p:last-child {
    display: block;
    margin-top: auto; /* Spycha przycisk na dół w razie potrzeby */
}

.map-object a.button {
    display: inline-block;
    padding: 5px 12px;
    background-color: #b91c1c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.map-object a.button:hover {
    background-color: #910f0f;
}

.breadcrumb li:last-child {
    display: none;
}
/* Styl ogólny dla sekcji z legendą */
.legenda {
  background-color: #f8f9fa; /* jasne tło Bootstrap */
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 100%;
  margin: 1rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: var(--bs-font-sans-serif);
}

/* Formularz wewnątrz legendy */
.legenda .forms form {
  margin: 0;
}

/* Styl fieldset */
.legenda fieldset {
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

/* Nagłówek (legend) */
.legenda legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  padding: 0 0.5rem;
}

/* Sekcja wyboru (choser-legenda) */
#choser-legenda {
  margin-top: 0.75rem;
}

/* Styl pojedynczej opcji (checkbox) */
.checkbox.punkty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Styl inputa typu checkbox */
.checkbox.punkty input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--bs-primary);
  cursor: pointer;
}

/* Styl etykiety (label) */
.checkbox.punkty label {
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: #495057;
  user-select: none;
}

/* Hover efekt na labelce */
.checkbox.punkty:hover label {
  color: var(--bs-primary);
}

/* Styl opakowania ins */
.checkAll {
  display: block;
  padding: 0.5rem;
  background: #fff;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease-in-out;
}

/* Efekt hover dla całego bloku */
.checkAll:hover {
  background-color: #f1f3f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.group-title {
      border-bottom: 2px solid #b91c1c;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-weight: 900;
    text-align: center;
}

.visit-banner-simple {     
  background-color: #f8f9fa;     
  padding: 2.5rem 0;     
  border-top: 1px solid #dee2e6; 
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6; 
}  
.visit-banner-simple h3 {     
  font-weight: 600;     
  color: #343a40; 
}

    .reservation-box {
      background-color: var(--accent-color);
      border-left: 5px solid var(--secondary-color);
      border-radius: 12px;
      padding: 2.5rem;
      margin: 3rem 0;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .reservation-box:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    }

    .reservation-icon {
      font-size: 3.5rem;
      color: var(--secondary-color);
      margin-bottom: 1rem;
    }

    .reservation-title {
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 0.75rem;
    }

    .reservation-text {
      color: var(--text-light);
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .btn-reservation {
      background-color: var(--secondary-color);
      border: none;
      color: #fff;
      font-weight: 600;
      border-radius: 50px;
      padding: 0.75rem 2rem;
      transition: all 0.3s ease;
      text-transform: uppercase;
    }

    .btn-reservation:hover {
      background-color: #991b1b;
      transform: translateY(-2px);
    }

    @media (max-width: 768px) {
      .reservation-box {
        text-align: center;
        padding: 2rem;
      }

      .reservation-icon {
        margin-bottom: 1rem;
      }
    }


        .list-container {
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .list-header,
        .list-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .list-header {
            background-color: #e9ecef;
            font-weight: 600;
            font-size: 14px;
        }

        .list-row:hover {
            background-color: #f8f9fa;
        }

        .col-name {
            flex: 1;
        }

        .col-status {
            display: flex;
            gap: 20px;
            margin-left: 20px;
            white-space: nowrap;
        }

        .badge-yes {
            display: inline-block;
            padding: 2px 8px;
            background-color: #d4edda;
            color: #155724;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
        }

        .badge-no {
            display: inline-block;
            padding: 2px 8px;
            background-color: #f8d7da;
            color: #721c24;
            border-radius: 3px;
            font-size: 12px;
            font-weight: 500;
        }

        .search-box {
            margin-bottom: 10px;
        }

        .stats {
            color: #6c757d;
            font-size: 14px;
            margin-top: 5px;
        }

        .alphabet-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
            padding: 10px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }

        .alphabet-btn {
            padding: 6px 10px;
            border: 1px solid #dee2e6;
            background-color: #fff;
            color: #212529;
            border-radius: 3px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.15s ease-in-out;
        }

        .alphabet-btn:hover {
            background-color: #e9ecef;
        }

        .alphabet-btn.active {
            background-color: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
        }

        .letter-header {
            padding: 10px 20px 6px;
            font-weight: 600;
            font-size: 14px;
            background-color: #f1f3f5;
            border-bottom: 1px solid #e9ecef;
        }

        @media (max-width: 768px) {
            .list-header {
                display: none;
            }

            .list-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .col-status {
                margin-left: 0;
            }
        }




        .person-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease-in-out;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .person-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .person-card-image {
            width: 100%;
            height: 280px;
            background: radial-gradient(circle,rgba(185, 28, 28, 1) 0%, rgba(117, 38, 38, 1) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .person-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
        }

        .person-card:hover .person-card-image img {
            transform: scale(1.05);
        }

        .person-card-content {
            padding: 20px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .person-name {
            font-size: 18px;
            font-weight: 600;
            color: #212529;
            margin: 0;
        }

        .person-title {
            font-size: 14px;
            color: #6c757d;
            margin-top: 8px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
            color: #212529;
        }

        .section-title h2 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .section-title p {
            font-size: 16px;
            color: #6c757d;
        }

        @media (max-width: 768px) {
            .person-card-image {
                height: 240px;
            }
        }

        .badge-clickable {
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 60px;
        }
        .badge-clickable:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }
        .prisoner-row {
            border-bottom: 1px solid #dee2e6;
            padding: 15px 0;
        }
        .prisoner-row:hover {
            background-color: #f8f9fa;
        }
        .header-row {
            background-color: #212529;
            color: white;
            padding: 15px 0;
            font-weight: 600;
            border-radius: 5px;
            margin-bottom: 10px;
        }
        .prisoner-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 20px;
        }

        /* Pasek nawigacyjny z datami */
        .timeline-nav {
            background-color: #ffffff;
            border-bottom: 1px solid #ddd;
            padding: 15px 0;
            z-index: 1020;
        }
        
        .scroll-wrapper {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 10px;
            padding-bottom: 10px;
            scrollbar-width: thin;
            scrollbar-color: var(--secondary-color) var(--accent-color);
        }

        .scroll-wrapper::-webkit-scrollbar {
            height: 6px;
        }
        .scroll-wrapper::-webkit-scrollbar-track {
            background: var(--accent-color);
        }
        .scroll-wrapper::-webkit-scrollbar-thumb {
            background-color: var(--secondary-color);
            border-radius: 10px;
        }

/* =========================================
   GIGANTYCZNA KARTA KALENDARZA
   ========================================= */
.giant-calendar-link {
    outline: none;
}

.giant-calendar-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 1px solid #ebebeb;
}

/* Reakcja na najechanie myszką - karta fajnie odskakuje do góry */
.giant-calendar-link:hover .giant-calendar-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(185, 28, 28, 0.15); /* Delikatny czerwony cień */
    border-color: var(--secondary-color);
}

/* =========================================
   ELEMENTY ZRYWKI
   ========================================= */

.calendar-binding {
    height: 14px;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle, var(--bg-color) 4px, transparent 5px);
    background-size: 20px 14px;
    background-position: top center;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.calendar-month {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calendar-day {
    color: var(--primary-color);
    font-size: 3rem; 
    font-weight: 900;
    text-align: center;
    padding: 20px 10px 0;
    line-height: 1;
    word-break: break-word;
}

.calendar-day .season-text {
    font-size: 1.5rem;
    display: block;
    padding: 20px 0;
}

.calendar-details {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Zmiana koloru tytułu przy hoverze na całą kartę */
.giant-calendar-link:hover .event-title {
    color: var(--secondary-color);
}

.read-more-btn {
    color: var(--text-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.giant-calendar-link:hover .read-more-btn {
    color: var(--secondary-color);
}
/* Stylizacja paska przewijania w nawigacji */
.year-nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f8f9fa;
}

.year-nav-scroll::-webkit-scrollbar {
    height: 6px;
}

.year-nav-scroll::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.year-nav-scroll::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/*cookies box */
/* Główny kontener ciasteczek przyklejony do dołu ekranu na 100% szerokości */
.cookiesBox {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Natywny stos czcionek używany w Bulmie */
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

/* Wewnętrzny panel stylizowany na komponent "box" / "notification" z Bulmy */
.cookiesBoxItem {
    background-color: #ffffff;
    color: #4a4a4a;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -0.5em 1em -0.125em rgba(10, 10, 10, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.5;
}

/* Kontener na przyciski zachowujący się jak klasa "buttons" z Bulmy */
.CookiesButtons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Podstawowy styl dla każdego przycisku, odpowiadający klasie "button" w Bulmie */
.cookiesBox .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    padding: calc(0.5em - 1px) 1em;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Przycisk akceptacji stylizowany na "button is-primary" */
#cookiesBoxClose {
    background-color: #00d1b2;
    color: #ffffff;
}

#cookiesBoxClose:hover {
    background-color: #00c4a7;
}

/* Przycisk odrzucenia stylizowany na "button is-light" */
#cookiesBoxExit {
    background-color: #f5f5f5;
    color: #363636;
}

#cookiesBoxExit:hover {
    background-color: #eeeeee;
}

/* Zachowanie responsywne dla urządzeń mobilnych (telefony i mniejsze tablety) */
@media screen and (max-width: 768px) {
    .cookiesBoxItem {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .CookiesButtons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookiesBox .button {
        width: 100%;
    }
}

/* Kontener modala - 50% ekranu */
  .modal-custom-size {
    max-width: 50vw !important; /* 50% szerokości viewportu */
    height: 50vh !important;    /* 50% wysokości viewportu */
    margin: auto;
  }

  /* Wnętrze modala musi wypełnić zdefiniowaną wysokość */
  .modal-custom-size .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Środkowanie treści (obrazka i przycisku) */
  .modal-custom-size .modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto; /* Gdyby treść była za duża na małym ekranie */
  }

  /* Responsywność obrazka */
  .modal-custom-size img {
    max-height: 60%; /* Żeby obrazek nie wypchnął przycisku */
    width: auto;
    margin-bottom: 20px;
  }

/* Dodatkowe style dla lepszej dostępności i czytelności */
    .transcription-box .card-body {
        max-height: 500px;
        overflow-y: auto;
        font-family: 'Georgia', serif; /* Szeryfowy font dobrze sprawdza się przy historycznych tekstach */
        line-height: 1.7;
        font-size: 1.1rem;
        color: #212529;
    }
    
    /* Wyraźny focus dla nawigacji klawiaturą po scrollowanym obszarze */
    .transcription-box .card-body:focus-visible {
        outline: 3px solid #0d6efd;
        outline-offset: -3px;
    }

.white-link {
  color:#fff;
  text-decoration:underline;
}