.bs-icon {
  --bs-icon-size: .75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: var(--bs-primary);
}

.bs-icon-xs {
  --bs-icon-size: 1rem;
  width: calc(var(--bs-icon-size) * 1.5);
  height: calc(var(--bs-icon-size) * 1.5);
}

.bs-icon-sm {
  --bs-icon-size: 1rem;
}

.bs-icon-md {
  --bs-icon-size: 1.5rem;
}

.bs-icon-lg {
  --bs-icon-size: 2rem;
}

.bs-icon-xl {
  --bs-icon-size: 2.5rem;
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-primary);
}

.bs-icon.bs-icon-primary-light {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .2);
}

.bs-icon.bs-icon-semi-white {
  color: var(--bs-primary);
  background: rgba(255, 255, 255, .5);
}

.bs-icon.bs-icon-rounded {
  border-radius: .5rem;
}

.bs-icon.bs-icon-circle {
  border-radius: 50%;
}

:root {
  /* zmienne bootstrapa */
  --bs-primary: #4b6e8a;
  --bs-primary-rgb: 75, 110, 138;

  --bs-primary-text-emphasis: #4b6e8a;
  --bs-primary-bg-subtle: rgba(75, 110, 138, 0.1);
  --bs-primary-border-subtle: rgba(75, 110, 138, 0.3);
}

/* nadpisanie przyciskÃ³w */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #4b6e8a;
  --bs-btn-border-color: #4b6e8a;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #3d5a70;
  --bs-btn-hover-border-color: #3d5a70;

  --bs-btn-focus-shadow-rgb: 75, 110, 138;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #324a5c;
  --bs-btn-active-border-color: #324a5c;

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #4b6e8a;
  --bs-btn-disabled-border-color: #4b6e8a;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.px-2 {
  padding-right: .5rem !important;
  padding-left: .5rem !important;
}

.px-4 {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.py-2 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
  .p-md-5 {
    padding: 3rem !important;
  }
}

@media (min-width: 768px) {
  .py-md-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (min-width: 992px) {
  .py-lg-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (min-width: 1200px) {
  .p-xl-4 {
    padding: 1.5rem !important;
  }
}

@media (min-width: 1200px) {
  .py-xl-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}


.wp-block-file:not(.wp-element-button) {
    font-size: 1em !important;
}

/* Responsywne menu w stopce */
.footer-menu {
    text-align: center;
}

/* Na malych ekranach zamien list-inline w kolumne */
@media (max-width: 576px) {
    .footer-menu {
        display: flex;
        flex-direction: column;
        padding-left: 0; /* reset Bootstrap inline padding */
    }
    .footer-menu li {
        margin: 0.5rem 0;
    }
}

/* Wieksze cele dotykowe ï¿½ min. ~44x44px */
.pagination .page-link.btn {
  min-width: 44px;
  min-height: 44px;
  padding: .6rem 1rem;
  line-height: 1.2;
}

/* Wyrazny focus (WCAG) */
.pagination .page-link.btn:focus,
.pagination .page-link.btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  box-shadow: none;
}

/* Disabled */
.pagination .page-item.disabled .page-link {
  pointer-events: none;
  opacity: .65;
}

/* Lepsze lamanie na malych ekranach */
@media (max-width: 576px) {
  .pagination {
    gap: .5rem;
  }
  .pagination .page-link.btn {
    padding: .55rem .9rem;
  }
}

/* -------------------------- */
/* Style dla linkï¿½w w navbarze */
.navbar .nav-link {
  color: #212529;                /* domyslny tekst */
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Hover + focus: czytelne podkreslenie + kontrast */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #0d6efd;                /* niebieski z Bootstrapa */
  text-decoration: underline;    /* podkreslenie dla WCAG */
  background-color: rgba(13, 110, 253, 0.1); /* delikatne tlo */
  outline: none;
}

/* Focus widoczny (dla nawigacji klawiatura) */
.navbar .nav-link:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Aktywny link */
.navbar .nav-link.active {
  color: #fff;
  background-color: #4b6e8a;     /* kontrastowy */
  border-radius: 4px;
}


/* Marka (brand) ï¿½ wyrazna i zgodna z WCAG */
.navbar-brand {
  color: #000 !important;
  font-weight: 600;
}
.navbar-brand:hover,
.navbar-brand:focus {
  color: #0d6efd !important;
  text-decoration: underline;
}
.navbar-brand:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
	padding: calc(0.1em + 2px) calc(0.9em + 2px);
	background-color:navy;
}

.dropdown-item.active, .dropdown-item:active {
    text-decoration: none;
	color:#fff !important;
    background-color: #4b6e8a !important;
}

.bg-counters { 
	background-color: #4b6e8a !important;
}

.btn-ewsp {
  background-color: #0774c5;   /* kolor tla */
  color: #efefef;                 /* kolor tekstu */
  border: none;                /* bez ramki */
}

.btn-ewsp:hover {
  background-color: #3e5d74;   /* ciemniejszy odcien przy hover */
  color: #efefef;
}

.a11b {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-color: none;
}

.menu-bottom-fs {
	font-size:14px
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;        /* pozwala na lamanie */
  justify-content: center; /* wysrodkowanie */
  gap: 1rem 1rem;         /* odstepy miedzy linkami */
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  line-height: 1;
}

.footer-menu li {
  flex: 0 1 auto;         /* elementy dopasowuja sie do szerokosci */
}

.footer-menu a {
  white-space: normal;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  font-size: 0.9em;
}

.menu-item, .dropdown-item { text-transform: uppercase !important; }
.nav-link { font-size: 1em; color: #000 !important; text-transform: uppercase !important}
.nav-link.active { color: #fff !important; }

/* Zawijanie dlugich nazw w dropdownie */
.dropdown-menu .dropdown-item {
  white-space: normal;         /* pozwala lamac */
  overflow-wrap: break-word;   /* zawija dlugie wyrazy */
  word-wrap: break-word;
  line-height: 1.2;
  width: 480px; !important;
}

/* Male ekrany – pelna szerokosc */
@media (max-width: 576px) {
  .dropdown-menu {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.navbar-brand {
	font-size:16pt !important;
	text-transform: uppercase !important;
}

/* --------------------------------------------------------------------------
/* social
/* Kontener */
.ewsp-social-icons {
  display: flex;
  gap: .6rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Link/i-ikonka */
.ewsp-social-icons a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.ewsp-social-icons svg { width: 20px; height: 20px; }

/* Wspólne hover/focus */
.ewsp-social-icons a:hover,
.ewsp-social-icons a:focus-visible { transform: translateY(-1px); }

/* Warianty stylu */
.ewsp-social-icons.style-solid a { background: rgba(0,0,0,.06); color: #333; }
.ewsp-social-icons.style-solid svg { fill: currentColor; }

.ewsp-social-icons.style-outline a { background: rgba(0,0,0,.04); color: #333; }
.ewsp-social-icons.style-outline svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ewsp-social-icons.style-mono a { background: transparent; color: #2d2d2d; opacity: .85; }
.ewsp-social-icons.style-mono a:hover { opacity: 1; }
.ewsp-social-icons.style-mono svg { fill: currentColor; }

.ewsp-social-icons.style-brand a { background: transparent; color: #444; }
.ewsp-social-icons.style-brand svg { fill: currentColor; }

/* Kolory brandów (uzywane w style-brand) */
.ewsp-social-icons.style-brand .si--facebook a  { color: #1877F2; }
.ewsp-social-icons.style-brand .si--instagram a { color: #E4405F; }
.ewsp-social-icons.style-brand .si--linkedin a  { color: #0A66C2; }
.ewsp-social-icons.style-brand .si--youtube a   { color: #FF0000; }
.ewsp-social-icons.style-brand .si--x a         { color: #000000; }
.ewsp-social-icons.style-brand .si--tiktok a    { color: #111111; }

/* Drobna korekta dla X w outline (zeby wygladal na "solid") */
.ewsp-social-icons.style-solid .si--x svg,
.ewsp-social-icons.style-mono  .si--x svg { fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ------------------------------------------------------------------------