/* Ogólne style */
:root {
  --primary-color: #5d8ab5; /* Zmieniony na ciemniejszy dla kontrastu */
  --primary-dark: #3a6b8f; /* Zmieniony na ciemniejszy dla kontrastu */
  --accent-gold: #b89a56; /* Zmieniony na ciemniejszy dla kontrastu */
  --bg-soft: #f9f7f0;
  --dark-color: #2a2d42; /* Ciemniejszy dla lepszej czytelności */
  --white: #ffffff;
  --text-color: #4a4a4a; /* Ciemniejszy dla lepszej czytelności */
  --fb-blue: #1877f2;
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  z-index: 2000;
  height: 0;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-soft);
}

h1,
h2,
h3,
.main-quote {
  font-family: "Playfair Display", serif;
  color: var(--dark-color);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 70px 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px); /* Zmniejszone dla stabilności mobile */
  transition: var(--transition);
}

.section.appear {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem); /* Responsywna wielkość czcionki */
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-gold)
  );
  margin: 0 auto;
  border-radius: 2px;
}

/* Akwarelowe plamy w tle */
.section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.05;
  z-index: -1;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  border-radius: 20px;
}

.bg-light {
  background-color: #f2f6f9;
}

/* Nawigacja */
#navbar {
  height: 100px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(157, 187, 220, 0.1);
}

#navbar.scrolled {
  height: 70px;
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    flex-basis: 250px;
    flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 70px;
  margin-right: 12px;
  transition: var(--transition);
}

#navbar.scrolled .logo img {
  height: 50px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-color);
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto; /* Wyrównanie do prawej */
  gap: 20px;
  align-items: center;
  line-height: 1;

  li {
    text-align: center;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
  transition: var(--transition);
  position: relative;
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
}

/* Delikatny animowany podkreślnik */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  border-radius: 3px;
  transition: width 0.28s ease;
}

.nav-links a:hover::after {
  width: 60%;
}

/* Podświetlenie aktywnego elementu */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary-color);
  font-weight: 700;
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
  height: 4px;
  bottom: 4px;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px;
  transition: var(--transition);
}

.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle .line2 {
  opacity: 0;
}
.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Toggle class for burger animation (used in main.js) */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero */
#hero {
  max-width: 1300px;
  margin: 120px auto 0;
  min-height: 550px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden; /* Ważne dla border-radius i pseudo-elementów */
  background-color: var(--bg-soft);
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/images/Gemini_Generated_Image_bybdldbybdldbybd.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  filter: saturate(0.5) sepia(0.1) brightness(1.05);
  opacity: 0.8;
  z-index: 1;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(249, 247, 240, 0.9));
  pointer-events: none;
  z-index: 2;
}

.hero-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 60px;
  z-index: 3;
}

.hero-text-content {
  max-width: 500px;
}

.hero-text-content h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-note {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0.7;
  z-index: 4;
}

/* Przyciski */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), #5d8ab5);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(93, 138, 181, 0.4);
  font-size: 1.1rem;
  padding: 18px 45px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: pulse-button 3s infinite;
}

#hero .btn-primary {
  margin-top: 40px;
}

@keyframes pulse-button {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(93, 138, 181, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(93, 138, 181, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(93, 138, 181, 0.4);
  }
}

.btn-fb {
  background-color: var(--fb-blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px; /* Added margin for spacing */
}

.btn-fb:hover {
  background-color: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(24, 119, 242, 0.3);
  color: var(--white);
}

/* Siatki */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* O Zbiórce */
.highlight-box {
  background: var(--white);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.feature-list {
  list-style: none;
  margin-top: 15px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feature-list .icon {
  background: #e8f5e9;
  color: #2e7d32;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.main-quote {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-style: italic;
  color: var(--primary-dark);
}

/* O nas - Urozmaicenie */
.org-card {
  background: var(--white);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.chip {
  background: #f2f6f9;
  color: var(--primary-dark);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(157, 187, 220, 0.2);
}

.voices-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.voice-bubble {
  background: var(--white);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border-left: 4px solid var(--accent-gold);
}

.voice-bubble cite {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-dark);
  font-style: normal;
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
}

/* Kompaktowy Timeline w jednym boxie */
.timeline-compact {
  max-width: 700px;
  margin: 20px auto;
}

.timeline-box {
  background: var(--white);
  padding: 25px 35px;
  border-radius: 25px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(157, 187, 220, 0.1);
}

.t-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  position: relative;
}

.t-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 30px;
  width: 2px;
  height: calc(100% - 15px);
  background: #f0f0f0;
}

.t-item.done:not(:last-child)::after {
  background: var(--primary-color);
}

.t-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px #e0e0e0;
  z-index: 2;
  flex-shrink: 0;
}

.t-item.done .t-dot {
  background: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.t-item.current .t-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 216, 177, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(234, 216, 177, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 216, 177, 0);
  }
}

.t-info {
  font-size: 0.95rem;
  color: var(--text-color);
}

.t-item.current .t-info {
  color: var(--dark-color);
  font-weight: 600;
}

.t-item.future .t-info {
  opacity: 0.7;
}

/* Karta Bankowa - Kompaktowa */
.bank-transfer-box, .zrzutka-box {
  margin-top: 25px;
  border-radius: 20px;
  padding: 20px;
}

.bank-transfer-box {
  background: #f8fafc;
  border: 1px dashed var(--primary-color);
}

.zrzutka-box {
  background: #fff5f5; /* Delikatne czerwone tło */
  border: 1px dashed #ff5a5f; /* Kolor zrzutki */
}

.zrzutka-wrapper {
  width: 100%;
  margin-top: 10px;
}

.paragraph-style-3 {
  font-size: 12px;
}

.zrzutka-iframe {
  width: 100%;
  height: 400px; /* Stała wysokość lub dopasowana do widgetu */
  border: none;
  border-radius: 12px;
  display: block;
}

/* Wewnętrzna wersja widgetu Zrzutka - wygląd zbliżony do zewnętrznego widgetu */
.zrzutka-widget {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 90, 95, 0.08);
}
.zrzutka-widget .z-widget-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}
.zrzutka-logo {
  height: 56px;
  display: block;
}
.zrzutka-desc {
  color: var(--text-color);
  font-size: 0.95rem;
  max-width: 640px;
}
/* Center and enlarge CTAs */
.z-widget-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.zrzutka-cta {
  padding: 14px 24px;
  font-size: 1.05rem;
}
.zrzutka-widget .z-amounts {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.zrzutka-widget .z-collected, .zrzutka-widget .z-goal, .zrzutka-widget .z-percent {
  min-width: 120px;
}
.zrzutka-widget .z-value {
  font-weight: 800;
  color: #ff5a5f;
  font-size: 1.2rem;
  display: block;
}
.zrzutka-widget .z-label {
  font-size: 0.85rem;
  color: var(--text-color);
}
.z-widget-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.zrzutka-cta {
  background: #ff5a5f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.zrzutka-cta:hover {
  background: #ff3a3f;
  transform: translateY(-2px);
}
.zrzutka-box .btn-outline {
  max-width: none;
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.bank-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 8px;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  min-width: 120px;
}

.detail-row .value {
  font-size: 0.95rem;
  color: var(--dark-color);
  font-weight: 500;
  text-align: right;
}

.account-number-copy {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 10px;
  flex-grow: 1;
}

.account-number-copy code {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  font-weight: 700;
  color: var(--dark-color);
  word-break: break-all;
}

.copy-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

.copy-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--dark-color);
}

.copy-btn.copied .copy-tooltip {
  opacity: 1;
}

.info-box {
  background: #fff;
  border: 1px solid rgba(157, 187, 220, 0.3);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-box-icon {
  font-size: 2rem;
  color: var(--primary-color);
  line-height: 1;
}

.info-box-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--dark-color);
  font-weight: 500;
}

.info-box-images {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.info-box-images a {
  flex: 1;
  min-width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: block;
}

.info-box-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.info-box-images a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-box-images a:hover img {
  transform: scale(1.05);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-dark);
  background: transparent;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto; /* Added for centering */
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-fb {
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px; /* Added for spacing above FB button */
}

/* Zbiórka */
.donation-card {
  background: var(--white);
  padding: clamp(30px, 5vw, 50px);
  border-radius: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* Aktualności */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.news-card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(157, 187, 220, 0.1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(157, 187, 220, 0.2);
}

.news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.news-content h3 a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

.news-content h3 a:hover {
  color: var(--primary-color);
}

.news-content p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0;
}

/* Media o nas */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 30px;
}

.media-item {
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(157, 187, 220, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(157, 187, 220, 0.15);
  border-color: var(--primary-color);
}

.media-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.media-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-color);
  line-height: 1.3;
}

/* Mapa Pomników */
#mapa-pomnikow .container {
  max-width: 1200px;
}

#map {
  margin-top: 30px;
}

.custom-div-icon {
  background: none;
  border: none;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

/* Responsywność */
@media (max-width: 992px) {
  #hero {
    margin: 110px 10px 0; /* Zwiększono margines, aby nie chował się pod navbar (100px) */
    min-height: auto;
    flex-direction: column;
    background-image: none !important;
    background-color: var(--bg-soft);
    box-shadow: none;
  }

  #hero::after {
    display: none;
  }

  .hero-wrapper {
    flex-direction: column;
    padding: 30px 20px 40px;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-text-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* Wyświetlenie obrazka rzeźby POWYŻEJ tekstu na mobile */
  #hero::before {
    content: "";
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* Zachowanie proporcji zdjęcia */
    background-image: url("assets/images/banner1.jpg");
    background-size: contain; /* Obrazek w całości, nie ucięty */
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    order: -1;
    margin-top: 0;
    filter: none;
    opacity: 1;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .nav-links {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }
  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 80%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-active {
    transform: translateX(0);
  }

  /* Mobile: większe, czytelne linki i aktywny stan */
  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 22px;
    color: var(--dark-color);
  }
  .nav-links a:hover {
    color: var(--primary-dark);
  }
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-gold));
    color: #fff;
    width: 90%;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(93, 138, 181, 0.18);
  }

  .burger {
    display: block;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .logo img {
    height: 50px;
  }
  .logo-main {
    font-size: 0.9rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .detail-row .value {
    text-align: left;
  }
  
  .progress-stats {
   flex-direction: column;
   gap: 1.5rem;
  }
  
  .stat-divider {
   width: 60px;
   height: 1px;
  }
  
  .progress-title {
   font-size: 1.5rem;
  }
}

/* Style dedykowane dla strony news.php */
.main-content-padding {
    padding-top: 100px; /* Wysokość navbaru */
}

.news-section {

    margin-top: 20px;
    padding-bottom: 80px;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 1;
}

.news-article {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(157, 187, 220, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    transition: var(--transition);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-article:hover {
    box-shadow: 0 20px 50px rgba(157, 187, 220, 0.15);
    transform: translateY(-5px);
}

.article-content h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.article-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 15px;
}

.title-link-style {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.title-link-style:hover {
    color: var(--primary-color);
}

.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2f6f9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    display: block;
    object-fit: cover;
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.btn-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.article-gallery {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    gap: 1.25rem;
}

.article-gallery a {
    display: block;
    height: 12.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.article-gallery a:hover {
    transform: scale(1.03);
}

.article-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--white);
    color: var(--primary-dark);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid rgba(157, 187, 220, 0.2);
}

.back-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-5px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.news-list-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.news-list-header h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Style dla popupów na mapie (z main.js) */
.map-popup h3 { 
    margin: 0 0 0.625rem 0; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.1rem; 
}
.map-popup .popup-details { 
    font-size: 0.85rem; 
    line-height: 1.4; 
    max-height: 12.5rem; 
    overflow-y: auto; 
}
.map-popup img { 
    max-width: 100%; 
    height: auto; 
    margin-top: 0.625rem; 
    border-radius: 0.5rem; 
}

@keyframes flicker {
    0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* Styl paska postępu zbiórki */
.donation-progress-container {
    margin-bottom: 2.5rem;
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(93, 138, 181, 0.25);
    position: relative;
    overflow: hidden;
}

.donation-progress-container::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-background 6s ease-in-out infinite;
}

@keyframes pulse-background {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.progress-header {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.progress-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
}

.progress-bar-bg {
    width: 100%;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.progress-bar-bg {
    width: 100%;
    height: 1.25rem;
    background: #eef2f5;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-color));
    border-radius: 1rem;
    position: relative;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
    width: 0; /* Animowane przez JS lub statycznie ustawione */
}

.progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: move-stripes 2s linear infinite;
    opacity: 0.3;
}

@keyframes move-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 1rem 0; }
}

.progress-percentage {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* End of progress bar styles */

/* Contact Section - Elegant Text Flow */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 25px;
}

.contact-highlight {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 12px;
  font-size: 1.05rem;
}

.contact-separator {
  font-size: 1.5rem;
  margin: 30px 0;
  color: var(--primary-color);
  opacity: 0.6;
}

.separator-icon {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.contact-info {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 35px;
  font-style: italic;
  opacity: 0.9;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-dark);
  background: transparent;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-fb {
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsywność dla Contact */
@media (max-width: 768px) {
  .contact-content {
    max-width: 100%;
  }

  .contact-intro {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .contact-separator {
    margin: 25px 0;
  }

  .contact-info {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .contact-buttons {
    gap: 12px;
  }

  .btn-outline,
  .btn-fb {
    max-width: 100%;
    width: 100%;
  }
}
