/*
Theme Name: Parafia Garbatka
Theme URI: https://parafiagarbatka.pl
Author: AI Assistant
Description: Nowoczesny motyw stworzony dla Parafii Garbatka.
Version: 1.0
Text Domain: garbatka
*/

:root {
  --primary-color: #0f172a; /* Deep navy */
  --secondary-color: #c29f63; /* Elegant gold */
  --accent-color: #dc2626; /* Deep red for important alerts */
  --bg-color: #f4f1ea; /* Ciepły, piaskowy odcień nawiązujący do starej strony */
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header & Navigation (MegaMenu) */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem; /* Zmniejszono padding, aby nagłówek zajmował mniej miejsca */
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 45%; /* Zabezpiecza miejsce na menu */
}

.site-logo {
  flex-shrink: 0; /* Blokuje zgniatanie obrazka */
}

.site-logo img {
  height: 80px; /* Zmniejszono na prośbę użytkownika w celu wysmuklenia nagłówka */
  width: auto;
  display: block;
}

.site-title {
  font-family: 'Playfair Display', serif; /* Stylowa czcionka identyczna jak w nagłówku */
  font-style: italic; /* Nadaje klasycznego szyku */
  font-size: 1.3rem; /* Zmniejszono rozmiar, aby nagłówek był węższy */
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  max-width: 320px; /* Wymusza przełamanie dokładnie w połowie bardzo długiej nazwy */
}

.site-title a {
  color: var(--primary-color);
}

.site-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.main-navigation ul.menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation ul.menu > li {
  position: relative; /* Przywrócono pozycjonowanie względem linku (klasyczny dropdown) */
}

/* Rozwijane menu (Sub-menu) */
.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* MegaMenu Container (Klasyczny Dropdown Box) */
.main-navigation ul.menu > li > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 15px); /* Odsunięcie w dół (zwiększono o 5px), by nie zasłaniać tytułu */
  left: 50%; /* Wyśrodkowanie pod linkiem */
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffffff 60%, #fcf9ef 100%); /* Solidne tło z wtopioną złotą poświatą */
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border-top: 2px solid var(--secondary-color);
  z-index: 999;
  border-radius: 0 0 8px 8px;
  
  /* Układ kolumnowy (układa z góry na dół, a nie w prawo) */
  column-width: 200px;
  column-gap: 1.5rem;
}

/* Zapobiega wychodzeniu dużych menu poza prawą krawędź ekranu dla 3 ostatnich linków */
.main-navigation ul.menu > li:nth-last-child(-n+3) > ul.sub-menu {
  left: auto;
  right: -20px; /* Lekkie przesunięcie, by zrównać wizualnie krawędź menu z końcem linku */
  transform: none;
}

/* Niewidzialny "mostek" zapobiegający zamykaniu menu po zjechaniu kursorem */
.main-navigation ul.menu > li > ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -20px; /* Musi być na tyle wysoki, by pokryć nową 10-pikselową przerwę */
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.main-navigation ul.menu > li:hover > ul.sub-menu {
  display: block;
}

/* Zabezpieczenie przed łamaniem linków między kolumnami */
.main-navigation ul.menu > li > ul.sub-menu > li {
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
}

/* === OPCJE KOLUMNOWE DODAWANE Z PANELU WP === */
/* 1 kolumna (tradycyjne, wąskie menu rozwijane) */
.main-navigation ul.menu > li.col-1 > ul.sub-menu {
  column-count: 1;
  width: 260px;
}

/* 2 kolumny */
.main-navigation ul.menu > li.col-2 > ul.sub-menu {
  column-count: 2;
  width: 500px;
}

/* 3 kolumny */
.main-navigation ul.menu > li.col-3 > ul.sub-menu {
  column-count: 3;
  width: 750px;
}

/* 4 kolumny */
.main-navigation ul.menu > li.col-4 > ul.sub-menu {
  column-count: 4;
  width: 950px;
}

/* --- Style dla wszystkich linków wewnątrz menu rozwijanego --- */
.main-navigation ul.menu > li > ul.sub-menu a {
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f5f9; /* Delikatna linia oddzielająca, jak na swjadwiga */
}

/* Usuwamy linię pod ostatnim elementem w kolumnie */
.main-navigation ul.menu > li > ul.sub-menu > li:last-child > a {
  border-bottom: none;
}

/* Nowy kolor i efekt po najechaniu (Hover) */
.main-navigation ul.menu > li > ul.sub-menu a:hover {
  color: var(--secondary-color); /* Kolor złoty/akcentowy */
  background-color: #f8fafc; /* Bardzo delikatne tło */
  padding-left: 0.5rem; /* Efekt przesunięcia */
}

/* Trzeci poziom menu (gdyby użytkownik kiedyś pogrupował jeszcze głębiej) */
.main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > a {
  text-transform: none; /* Mniejsze podkategorie bez kapitalików */
  border-bottom: none;
  font-size: 1rem;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

/* Ikony i obrazki wplatane w linki menu */
.main-navigation a img {
  height: 24px;
  width: auto;
  margin-right: 10px;
  border-radius: 4px;
  object-fit: contain;
}

.main-navigation ul.menu > li > a {
  position: relative;
}

/* Złota animowana linia pod linkiem */
.main-navigation ul.menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Minimalnie pod tekstem */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(212,175,55,0.6); /* Złota poświata samej linii */
}

/* Animacja rozwijania linii na hover i aktywnej stronie */
.main-navigation ul.menu > li:hover > a::after,
.main-navigation ul.menu > li.current-menu-item > a::after {
  width: 100%;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
  color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1548625361-ecb72e096f2e?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero-section h1 {
  font-family: 'Playfair Display', serif; /* Elegancka, szeryfowa czcionka */
  font-style: italic; /* Nadaje jeszcze więcej szyku */
  color: var(--white);
  font-size: 2.2rem; /* Ponownie zmniejszono na prośbę użytkownika */
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6); /* Mocniejszy cień, aby napisy nie znikały przy jaśniejszym zdjęciu */
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* === TŁO WIDEO W NAGŁÓWKU === */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-background iframe {
  width: 150vw;
  height: 84.375vw;
  min-height: 150vh;
  min-width: 266.66vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  max-width: none !important;
  max-height: none !important;
  pointer-events: none;
}

/* Main Layout */
.site-main {
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.site-main.full-width {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .site-main {
    grid-template-columns: 1fr;
  }
}

/* Post Cards */
/* === Przycisk Menu (Mobile) === */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

/* Karta domyślna (Desktop) na wypadek gdyby grid rzucał błędami */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-grid.columns-1 {
  grid-template-columns: 1fr;
}

.post-grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .post-grid.columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-grid.columns-2,
  .post-grid.columns-3 {
    grid-template-columns: 1fr;
  }
}

/* === RESPONSIVE WIDOK MOBILNY === */
@media (max-width: 1199px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .site-branding {
    flex: 1; /* Zabiera całe dostępne miejsce obok hamburgera */
    max-width: none;
  }

  .menu-toggle {
    display: block; /* Pokazujemy hamburger */
    margin-left: 1rem;
  }

  .menu-toggle {
    display: block; /* Pokazujemy hamburger */
    margin-left: 1rem;
  }

  /* Ukrywamy nawigację domyślnie i pozycjonujemy jako panel poniżej */
  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(90deg, #ffffff 50%, #fdfaf0 100%);
  }

  .main-navigation.toggled {
    display: block;
    max-height: calc(100dvh - 85px); /* Używamy dvh (dynamic viewport) i odliczamy nagłówek */
    overflow-y: auto;
    padding-bottom: 4rem; /* Duży bezpieczny margines na dolny pasek telefonu (np. w Safari/Chrome) */
  }

  .main-navigation ul.menu {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation ul.menu > li > a {
    padding: 1.2rem 1rem; /* Większe marginesy dla łatwiejszego klikania */
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 1.1rem; /* Zwiększona czcionka na prośbę użytkownika */
    font-weight: 600;
  }

  /* Zmiana MegaMenu w zwykłą, wciętą listę pionową na telefonach */
  .main-navigation ul.menu > li > ul.sub-menu {
    display: block !important; /* Wymuszenie widoczności podkategorii (rozwinięty akordeon) */
    position: static;
    width: auto !important;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1.5rem;
    border: none;
    border-left: 2px solid var(--secondary-color);
    border-radius: 0;
    grid-template-columns: 1fr !important;
    gap: 0;
    margin: 0.5rem 1rem;
  }

  /* Powiększenie czcionki w podmenu na telefonie */
  .main-navigation ul.menu > li > ul.sub-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  /* Wylaczamy mostki */
  .main-navigation ul.menu > li > ul.sub-menu::before {
    display: none;
  }
}

/* === WPISY (POSTS) === */

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--primary-color);
}

.post-title a:hover {
  color: var(--secondary-color);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sidebar */
#secondary {
  position: sticky;
  top: 120px;
  align-self: start;
}
.sidebar-widget {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-top: 4px solid var(--secondary-color);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-list a {
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.sidebar-list a::before {
  content: '→';
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

.sidebar-list a:hover {
  color: var(--secondary-color);
}

/* === TŁO WIDEO W NAGŁÓWKU === */
.hero-section {
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-background iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.3));
}

/* Wyłączanie wideo na telefonach */
@media (max-width: 768px) {
  .video-background {
    display: none !important;
  }
}

/* === NOWY UKŁAD STRONY GŁÓWNEJ (WIDGETY I NAGŁÓWKI) === */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.title-decoration {
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

/* Ulepszone Karty Paska Bocznego */
.sidebar-widget {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.widget-icon {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.widget-icon svg {
  width: 32px;
  height: 32px;
}

.sidebar-widget .widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.mass-row, .office-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mass-row:last-child, .office-row:last-child {
  border-bottom: none;
}

.mass-row strong, .office-row strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mass-row span, .office-row span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.spowiedz-row {
  background-color: #fdfaf0;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid rgba(194, 159, 99, 0.3);
}

.spowiedz-row strong {
  color: var(--secondary-color);
}

.widget-btn {
  display: inline-block;
  margin-top: 2rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.widget-btn:hover {
  color: var(--primary-color);
}

.office-desc, .office-contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.office-contact {
  margin-top: 1.5rem;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Format 16:9 */
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-list a {
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.sidebar-list a::before {
  content: '→';
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

.sidebar-list a:hover {
  color: var(--secondary-color);
}

/* === TŁO WIDEO W NAGŁÓWKU === */
.hero-section {
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-background iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.3));
}

/* Wyłączanie wideo na telefonach */
@media (max-width: 768px) {
  .video-background {
    display: none !important;
  }
}

/* === NOWY UKŁAD STRONY GŁÓWNEJ (WIDGETY I NAGŁÓWKI) === */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.title-decoration {
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

/* Ulepszone Karty Paska Bocznego */
.sidebar-widget {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.widget-icon {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.widget-icon svg {
  width: 32px;
  height: 32px;
}

.sidebar-widget .widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.mass-row, .office-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mass-row:last-child, .office-row:last-child {
  border-bottom: none;
}

.mass-row strong, .office-row strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mass-row span, .office-row span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.spowiedz-row {
  background-color: #fdfaf0;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid rgba(194, 159, 99, 0.3);
}

.spowiedz-row strong {
  color: var(--secondary-color);
}

.widget-btn {
  display: inline-block;
  margin-top: 2rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.widget-btn:hover {
  color: var(--primary-color);
}

.office-desc, .office-contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.office-contact {
  margin-top: 1.5rem;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Format 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-widget h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-widget p, .footer-widget a {
  color: #cbd5e1;
}

.footer-widget ul,
.footer-widget .wp-block-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-widget ul li,
.footer-widget .wp-block-list li {
  margin-bottom: 0.25rem;
}

.footer-widget ul li a,
.footer-widget .wp-block-list li a {
  color: #cbd5e1;
}

.footer-widget a:hover,
.footer-widget ul li a:hover,
.footer-widget .wp-block-list li a:hover {
  color: var(--white);
}

.site-info {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* === OPTYMALIZACJA DLA BARDZO MAŁYCH EKRANÓW (TELEFONY PONIŻEJ 576px) === */
@media (max-width: 576px) {
  .site-branding {
    gap: 0.75rem;
  }
  .site-logo img {
    height: 65px;
  }
  .site-title {
    font-size: 1rem;
  }
  .site-description {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) { .hero-section h1 { font-size: 1.6rem !important; } }

/* Widget Cytatów Biblijnych w Stopce */
.bible-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--secondary-color);
  font-size: 1.1rem;
  border-left: 2px solid var(--secondary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  line-height: 1.6;
}

/* === COOKIE BANNER 2026 === */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    z-index: 9999;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-btn-accept {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cookie-btn-accept:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* === DUSZPASTERZE === */
.priests-top-list { display: flex; flex-direction: column; gap: 2rem; margin: 2rem 0; }
.priest-list-card { display: flex; flex-direction: row; align-items: flex-start; gap: 2rem; background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }
.priest-list-card img { width: 150px; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex-shrink: 0; }
.priest-list-card .info { text-align: left; }

.priests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.priest-card { background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border: 1px solid rgba(0,0,0,0.05); }
.priest-card img { width: 150px; height: 200px; object-fit: cover; border-radius: 8px; margin: 0 auto 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.priest-name { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--primary-color); font-weight: 700; }
.priest-role { font-weight: 600; font-size: 0.95rem; color: #444; margin-bottom: 0.5rem; }
.priest-meta { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; line-height: 1.4; }
.priest-motto { font-style: italic; font-size: 0.9rem; color: #222; margin-top: 1rem; }
.history-list { line-height: 1.6; }

@media (max-width: 768px) {
  .priest-list-card { flex-direction: column; align-items: center; text-align: center; }
  .priest-list-card .info { text-align: center; }
  .priests-grid { grid-template-columns: 1fr; }
}

/* === LINKI === */
.links-section { margin-bottom: 3rem; }
.links-section h2 { margin-bottom: 1.5rem; color: var(--primary-color); border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 0.5rem; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; }
.link-item { background: #fff; padding: 1rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none !important; }
.link-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.link-item img { max-width: 100%; height: auto; max-height: 100px; object-fit: contain; margin-bottom: 1rem; filter: grayscale(20%); transition: filter 0.3s; }
.link-item span { display: block; font-size: 0.85rem; color: var(--secondary-color); font-weight: 600; word-break: break-word; }

/* === GALERIE WE WPISACH (GUTENBERG) === */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Odstępy między zdjęciami */
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
    /* Domyślnie 2 zdjęcia obok siebie (kalkulacja z uwzględnieniem luki 20px) */
    width: calc(50% - 10px);
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Eleganckie zaokrąglenie rogów */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Subtelny, głęboki cień pod zdjęciem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Reakcja na najechanie myszką */
}

/* Wymuszenie 1 zdjęcia w rzędzie na bardzo małych telefonach */
@media (max-width: 576px) {
    .wp-block-gallery {
        gap: 15px;
    }
    .wp-block-gallery .wp-block-image {
        width: 100%;
    }
}

/* === POJEDYNCZE ZDJĘCIA W TREŚCI (FOTORELACJA) === */
.entry-content .wp-block-image {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Zaokrąglone rogi dla spójności z kafelkami */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Lekki cień */
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
}
.post-content {
  padding: 1.5rem;
}
.post-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-8px) !important;
}
.post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* === UX ENHANCEMENTS === */
html {
  scroll-behavior: smooth;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 9999;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: #a8874a;
}





/* === ZABEZPIECZENIE SCROLLA MENU MOBILNEGO === */
body.menu-open {
  overflow: hidden;
}
















