html, body {
    overflow-x: hidden; /* Blokuje przewijanie w poziomie */
    width: 100%;
    position: relative;
}

:root {
    /* Paleta kolorów */
    --brand-light: #8b8d39;
    --brand-default: #5d5b20;
    --brand-dark: #494b1f;
    --brand-soft-bg: #f3f4e8;
    --theme-bg: #fafaf7;
    --theme-surface: #ffffff;
    --theme-text: #4b5576;
    --theme-muted: #45473f;
    /* Typografia */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Sora', sans-serif;
}

.page-nav-wrap {
  margin-top: 60px;
}
.pagÿ na 펞翴 ap ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.page-nav-wrap ul li.active .page-numbers {
  background-color: #1b4332; /* Twój kolor */
  color: #ffffff;
  border-color: #1b4332;
}
.page-nav-wrap ul li .page-numbers {
  display: block;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  border-radius: 50%;
  border: 1px solid #1b4332;
  background: transparent;
  color: #1b4332;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}
.page-nav-wrap ul li .page-numbers:hover {
  background-color: #1b4332;
  color: #ffffff;
}
@media (max-width: 767px) {
  .page-nav-wrap ul li .page-numbers {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
}




/* BASE & RESET */
* { transition: all .25s cubic-bezier(.4, 0, .2, 1); box-sizing: border-box; }

body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}
p{font-size:1em;line-height:1.3em;}

h1 {
  font-size: 1.3em;
  font-weight: 600;
  margin: 10px 0 10px 0;
}
h2 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 10px 0 10px 0;
  color:#2B2B24;
}

h3 {
  font-size: 1.1em! important;
  font-weight: 600;
  margin: 10px 0 10px 0;
}
.container-fluid {
  padding: 0 180px;
}
@media (max-width: 1600px) {
  .container-fluid {
    padding: 0 40px;
  }
}
@media (max-width: 1199px) {
  .container-fluid {
    padding: 0 30px;
  }
}
@media (max-width: 767px) {
  .container-fluid {
    padding: 0 0;
  }
}
.news-image {
    margin-bottom: 1.5rem;
    border-radius: 1rem; /* Twoje zaokrąglenie */
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

h1, h2, h3, h4, h5, h6, .font-display { font-family: var(--font-display); }

/* SKIP LINK & FOCUS */
.skip-link {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    background: var(--brand-dark); color: #fff; padding: 12px 24px;
    border-radius: 0 0 12px 12px; font-weight: 600; z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 0; }

*:focus-visible { outline: 3px solid #000 !important; outline-offset: 4px; }

/* NAVBAR & MENU */
/* ============================================================
   GLASS NAV — "Zasiej Dobro"
   Styl oparty na motywie wzrostu/natury marki: szkło + zielenie,
   akcent hover jako "kiełkująca" linia zamiast zwykłego podkreślenia.
   Zmienne --brand-dark / --brand-default mają fallbacki na wypadek,
   gdyby nie były jeszcze zdefiniowane globalnie.
============================================================ */

:root {
    --brand-dark: #1b4332;      /* fallback: głęboka zieleń */
    --brand-default: #52b788;   /* fallback: zieleń liścia */
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 8px 32px rgba(27, 67, 50, 0.12);
}

/* ============================================================
   SZKLANY PASEK
============================================================ */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: var(--glass-shadow);
    transition: box-shadow .3s ease, background .3s ease;
}

.glass-nav:hover {
    box-shadow: 0 12px 40px rgba(27, 67, 50, 0.16);
}

/* Logo: delikatna reakcja na hover, bez przesady */
.navbar-brand {
    transition: transform .25s ease;
}
.navbar-brand:hover {
    transform: translateY(-1px);
}
.navbar-brand span[style*="background-color"] {
    transition: border-radius .3s ease, transform .3s ease;
}
.navbar-brand:hover span[style*="background-color"] {
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; /* subtelny "listek" na hover */
    transform: rotate(-8deg);
}

/* ============================================================
   POZYCJE MENU — akcent "kiełkującej" linii zamiast podkreślenia
============================================================ */
/* ===========================
   GŁÓWNE MENU
=========================== */
#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
/* #mobile-menu to teraz bezpośrednio <ul class="navbar-nav" id="mobile-menu">,
   więc flex ustawiamy na nim samym (Bootstrap i tak doda display:flex przez
   .navbar-nav, ta reguła to tylko zabezpieczenie / spójność z resztą pliku) */
#mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===========================
   POZYCJE MENU
=========================== */
#mobile-menu li {
    position: relative;
}
#mobile-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: 1rem 1.2rem;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color .25s ease;
}
/* Podkreślenie */
#mobile-menu li a::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: .6rem;
    height: 2px;
    background: #1b4332;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
/* Hover / otwarte (klasa .open dodawana przez JS przy hover i fokusie) */
#mobile-menu li:hover > a,
#mobile-menu li.open > a {
    color:#1b4332;
}
#mobile-menu li:hover > a::after,
#mobile-menu li.open > a::after {
    transform: scaleX(1);
}
/* Active */
#mobile-menu li.active > a {
    color: #1b4332;
    font-weight: 600;
}
#mobile-menu li.active > a::after {
    transform: scaleX(1);
}
/* Focus (WCAG 2.4.7) */
#mobile-menu a:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 4px;
    border-radius: 4px;
}
#mobile-menu a:focus-visible::after {
    transform: scaleX(1);
}
/* ===========================
   IKONA
=========================== */
#mobile-menu .fa-angle-down {
    font-size: .8rem;
    transition: transform .2s ease;
}
.has-dropdown:hover > a .fa-angle-down,
.has-dropdown.open > a .fa-angle-down,
.has-dropdown > a[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

.stretched-link {
    min-height: 24px; /* Wymuszenie minimalnej wysokości */
    padding-top: 4px;   /* Dodanie przestrzeni, aby poprawić "target" */
    padding-bottom: 4px;
    display: block;
}

/* --- Stylizacja sekcji kontaktu --- */
.contact-section-2 {
    padding: 60px 0;
    background-color: var(--theme-surface);
}

/* Karta z danymi kontaktowymi */
.contact-box-item {
    background: var(--brand-soft-bg);
    padding: 40px;
    border-radius: 20px;
    height: 100%;
}

.contact-info-items {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-items .icon {
    font-size: 24px;
    color: var(--brand-default);
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-items .content p {
    margin: 0;
    font-weight: 600;
    color: #202020;
}

.contact-info-items .content a {
    color: #003000! important;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-items .content a:hover {
    color: var(--brand-default);
}

/* Formularz */
.contact-form-items .form-control {
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 8px;
    background: #fff;
}

.contact-form-items .form-control:focus {
    border-color: var(--brand-default);
    box-shadow: 0 0 0 3px rgba(93, 91, 32, 0.1);
}

.form-clt {
    margin-bottom: 20px;
}

/* Przycisk */
.theme-btn {
    background: var(--brand-default);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.theme-btn:hover {
    background: var(--brand-dark);
}

/* Mapa */
.map {
    height: 450px;
    width: 100%;
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* Poprawki RODO */
.rodo-link {
    color: #65674D;;
    text-decoration: underline;
}

.popup-img {
  max-width: 200px;
  display: block;
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===========================
   SUBMENU
   Widoczność: :hover / :focus-within (natywnie, działa nawet bez JS)
   ORAZ klasa .open (JS: strzałka w dół, mysz, focusin).
   .force-closed pozwala JS-owi wymusić zamknięcie po Escape,
   mimo że fokus technicznie wciąż jest wewnątrz .has-dropdown.
=========================== */
.submenu {
    display: flex !important;       /* Wymuszamy flexbox... */
    flex-direction: column !important;
    position: absolute;
    top: calc(100% + .3rem);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: .4rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility 0s linear .2s;
    z-index: 999;
}
.submenu::before {
    content: "";
    position: absolute;
    top: -10px; /* Rozciąga niewidzialny obszar do góry */
    left: 0;
    width: 100%;
    height: 10px; /* Wysokość mostka (musi być większa niż Twój odstęp .3rem) */
    background: transparent; /* Mostek jest niewidoczny */
}
.submenu li {
    width: 100%;
}
.submenu a {
    display: block;
    padding: .8rem 1rem;
    color: #222;
}
.submenu a::after {
    display: none;
}
.submenu li:hover > a,
.submenu li.active > a {
    background: #f5f7fb;
    color: #005fcc;
}
/* Pokazywanie */
.has-dropdown:hover > .submenu,
.has-dropdown:focus-within > .submenu,
.has-dropdown.open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility 0s linear 0s;
}
/* Wymuszone zamknięcie (Escape) ma pierwszeństwo nad :hover/:focus-within */
.has-dropdown.force-closed > .submenu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
}
/* Drugi poziom */
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-left: .4rem;
}
/* ===========================
   MOBILE
=========================== */
@media (max-width:992px){
    #mobile-menu{
        display:block;
    }
    #mobile-menu li a{
        padding:.9rem 1rem;
    }
    #mobile-menu li a::after{
        left:1rem;
        right:1rem;
        bottom:.45rem;
    }
    .submenu{
        position:static;
        border:0;
        border-radius:0;
        box-shadow:none;
        padding-left:1rem;
        transform:none;
        max-height:0;
        overflow:hidden;
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transition:max-height .25s ease;
    }
    .has-dropdown:hover > .submenu,
    .has-dropdown:focus-within > .submenu,
    .has-dropdown.open > .submenu {
        max-height:1000px;
    }
    .has-dropdown.force-closed > .submenu {
        max-height:0 !important;
    }
    .submenu .submenu{
        margin-left:0;
    }
}

/* BUTTONS */
.btn-brand-dark {
    background: var(--brand-dark); color: #fff; font-weight: 600;
    border-radius: 12px; padding: 10px 24px; border: 2px solid var(--brand-dark);
}
.btn-brand-dark:hover { background: #363817; border-color: #363817; color: #fff; transform: translateY(-2px); }

/* CARDS & FORMS */
.bento-card { background: #fff; border: 1px solid rgba(73, 75, 31, 0.25); border-radius: 2rem; padding: 2rem; }

.form-control {
    color: var(--theme-text) !important; background: #fff !important;
    border: 1px solid #6b6d40 !important; border-radius: 12px !important; padding: 1rem !important;
}
.form-control:focus { border-color: var(--brand-dark) !important; box-shadow: 0 0 0 3px rgba(73, 75, 31, 0.25) !important; }

/* UTILS */
.text-brand-dark { color: var(--brand-dark) !important; }
.bg-brand-soft-bg { background: var(--brand-soft-bg) !important; }

/* BREADCRUMB WRAPPER */
.breadcrumb-wrapper {
    padding: 20px 0;
    position: relative;
    z-index: 1;
    background: #585b46;
    margin:100px 0 70px 0;
}

/* Wyciemnienie zdjęcia w tle dla czytelności tekstu (WCAG) */
.breadcrumb-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #585b46;
    z-index: -1;
}

.page-heading { text-align: center; }

/* LISTA BREADCRUMBS */
.breadcrumb-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 20px;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
        min-height:24px;
    padding:2px 4px;
}

.breadcrumb-list a:hover {
    color: var(--brand-soft-bg);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Aktywny element (bieżąca strona) */
.breadcrumb-list li[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
}


/* wpisy siatka */

/* Stylizacja karty wpisu (zastępuje bento-card) */
.wcag-post-card {
    border: 1px solid #d1d1d1;
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.wcag-post-card:hover, 
.wcag-post-card:focus-within {
    border-color: #F57500;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wcag-post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.wcag-post-img {
    display: block;
    width: 100%;
    height: 240px !important;
    object-fit: cover;
    object-position: center;
}

.wcag-post-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wcag-post-date {
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.wcag-post-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.wcag-post-title a {
    color: #192335;
    text-decoration: none;
}

.wcag-post-title a:hover {
    text-decoration: underline;
}

.wcag-post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.wcag-post-btn {
    display: inline-block;
    background: #192335;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    align-self: flex-start;
}

.wcag-post-btn:hover {
    background: #F57500;
}
/* Stylizacja przycisku wewnątrz karty */
.wcag-post-card .theme-btn {
    margin-top: auto; /* Wymusza przycisk na dole */
    display: inline-block;
    padding: 10px 24px;
    background: #f4f5e9;
    color: var(--brand-dark);
    border: 2px solid var(--brand-dark);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

.wcag-post-card .theme-btn:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* Wymuszenie układu siatki dla Twojej klasy */
.news-grid-col {
    flex: 0 0 50%; /* Dwa wpisy w rzędzie */
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

/* Upewnij się, że rodzic to flex */
[role="feed"] {
    display: flex;
    flex-wrap: wrap;
}

.news-grid-item {
    background: #fff;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(73, 75, 31, 0.25);
}

.news-grid-contentp {
    line-height: 1.7;
    color: var(--theme-text);
}

/* GŁÓWNY KONTENER SIDEBARA */
.main-sideber {

}

/* TYTUŁ WIDŻETU */
.wid-title h2 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-soft-bg);
    font-family: var(--font-display);
}

/* POJEDYNCZY WPIS W SIDEBARZE */
.recent-post {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

/* KLIKALNY WRAPPER (ZMIANA NA HOVER) */
.clickable-wrapper {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.clickable-wrapper:hover {
    background: var(--brand-soft-bg);
}

/* OBRAZKI WPISÓW */
.post-img {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 12px;
    overflow: hidden;
}

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

/* TREŚĆ WPISU */
.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-date {
    font-size: 0.8rem;
    color: var(--brand-default);
    margin-bottom: 4px;
}

.post-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-text);
    line-height: 1.3;
}

/* REAKCJA HOVER NA TYTUŁ */
.clickable-wrapper:hover .post-title-text {
    color: var(--brand-dark);
}

/* KONTENER WIDŻETU (BENTO-STYLE) */
.single-sidebar-widget {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.25);
    border-radius: 2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* TYTUŁ WIDŻETU */
.wid-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-soft-bg);
}

.wid-title .h3 {
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: var(--brand-dark);
    margin: 0;
}

/* LISTA KATEGORII */
.news-widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size:0.9em;
    line-height: 1.1em;
}

.news-widget-categories li {
    margin-bottom: 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* LINKI */
.news-widget-categories li a {
    display: block;
    padding: 10px 15px;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* HOVER I AKTYWNY ELEMENT */
.news-widget-categories li:hover {
    background: var(--brand-soft-bg);
}

.news-widget-categories li a:hover {
    color: var(--brand-dark);
}

/* Styl dla aktywnego wpisu (klasa .active-link w PHP) */
.news-widget-categories li.active-link {
    background: var(--brand-dark);
}

.news-widget-categories li.active-link a {
    color: #fff;
}
.news-grid-wrapper .news-grid-item .news-grid-content .post-meta {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 15px;
  border-top: 1px solid #edf2f7; /* Linia nad, zamiast pod - oddziela od zdjÄ™cia */
  border-bottom: 1px solid #edf2f7;
  list-style: none;
}

.news-grid-wrapper .news-grid-item .news-grid-content .post-meta li {
  font-size: 13px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pionowy separator zamiast gap */
.news-grid-wrapper .news-grid-item .news-grid-content .post-meta li:not(:last-child) {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid #e2e8f0;
}

.news-grid-wrapper .news-grid-item .news-grid-content .post-meta li i {
  color: #2d3748; /* Ciemniejszy kolor dla ikon, by wzbudziÄ‡ powagÄ™ */
}
@media (max-width: 1199px) {
  .news-grid-wrapper .news-grid-item .news-grid-content .post-meta {
    flex-wrap: wrap;
    gap: 20px;
  }
}
.news-grid-wrapper .news-grid-item .news-grid-content .post-meta li {
  color: var(--text);
}
.news-grid-wrapper .news-grid-item .news-grid-content .post-meta li i {
  color: var(--theme);
  margin-right: 5px;
}
/* KARTA OSOBY (BENTO STYLE) */
.person-card {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.15);
    border-radius: 2rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.person-card:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 15px 30px rgba(73, 75, 31, 0.1);
    transform: translateY(-5px);
}

/* KONTENER ZDJĘCIA */
.person-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-soft-bg);
}

.person-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TYPOGRAFIA */
.person-role {
    font-size: 0.75rem;
    color:  var(--brand-dark)
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.person-name {
    color: var(--theme-text);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.person-bio {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* SOCIALE */
.person-socials a {
    color: var(--brand-default);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.person-socials a:hover {
    color: var(--brand-dark);
}

/* SPECJALNE TRAKTOWANIE WOLONTARIUSZY (MNIEJSZE KARTY) */
.group-wolontariusz .person-img-container {
    width: 80px;
    height: 80px;
}

.group-wolontariusz .person-name {
    margin-bottom: 0;
}

/* KONTENER MODUŁU FORMULARZY */

/* KOMUNIKATY O WYGAŚNIĘCIU (ALERT) */
.forms-module-wrapper .alert-info {
    background: #f4f5e9;
    color: var(--brand-dark);
    border-radius: 1.5rem;
    border: 1px dashed var(--brand-dark) !important;
}

/* WNĘTRZE FORMULARZA (POLE HTML Z BAZY) */
.form-content-body {
    margin-top: 1rem;
    padding-top: 1rem;
}

/* OPCJONALNIE: STYLIZACJA INPUTÓW (jeśli są wstrzykiwane z bazy) */
.form-content-body input, 
.form-content-body textarea, 
.form-content-body select {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 12px !important;
}

/* KONTENER OCENY (BENTO STYLE) */
.rating-card {
    background: #fcfcfc; /* Delikatnie inne tło niż biała karta, by się odróżniało */
    border: 1px solid rgba(73, 75, 31, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.rating-title {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
}

/* STATYSTYKI GŁOSÓW */
.vote-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.stat-pill {
    background: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(73, 75, 31, 0.1);
    font-size: 0.9rem;
    color: var(--brand-default);
}

/* PRZYCISKI GŁOSOWANIA */
.btn-vote-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-vote {
    padding: 10px 25px;
    border-radius: 12px;
    border: 1px solid var(--brand-dark);
    background: transparent;
    color: var(--brand-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-vote:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* KOMUNIKAT SUKCESU */
.feedback-success {
    color: #2e7d32;
    font-weight: 600;
    padding: 10px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 12px;
}

/* KONTENER MODUŁU LINKÓW */
.og-links-module {
    margin-top: 2rem;
}

/* TYTUŁ MODUŁU */
.og-links-module .video-title-modern {
    font-size: 1.5rem;
    color: var(--brand-dark);
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

/* KARTA LINKU (BENTO STYLE) */
.og-card {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.15);
    border-radius: 2rem; /* Spójne zaokrąglenie */
    overflow: hidden;
    transition: all 0.3s ease;
}

.og-card:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 15px 30px rgba(73, 75, 31, 0.1);
    transform: translateY(-5px);
}

/* KONTEJNER OBRAZKA */
.og-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

/* ETYKIETA ŹRÓDŁA */
.og-source-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* TREŚĆ KARTY */
.og-title {
    display: block;
    font-weight: 700;
    color: var(--theme-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

.og-description {
    color: #6c757d;
    line-height: 1.5;
}

/* POPRAWA KLIKALNOŚCI */
.og-card-link {
    text-decoration: none !important;
}

.og-card-link:hover .og-title {
    color: var(--brand-dark);
}

/* KONTENER MODUŁU GRANTY (BENTO STYLE) */
.project-sidebar-card {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.25);
    border-radius: 2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* NAGŁÓWEK SEKCJI */
.info-group-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(73, 75, 31, 0.1);
}

/* POJEDYNCZE ELEMENTY INFORMACYJNE */
.project-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.project-info-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-soft-bg);
    color: var(--brand-dark);
    flex-shrink: 0;
}

.project-info-item .label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

.project-info-item .value {
    display: block;
    font-weight: 600;
    color: var(--theme-text);
}

/* PASEK POSTĘPU */
.sidebar-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-progress-fill {
    height: 100%;
    background: var(--brand-dark);
    border-radius: 4px;
}

/* TIMER */
.coming-soon-timer .timer-content {
    background: var(--brand-soft-bg);
    padding: 8px;
    border-radius: 12px;
    min-width: 50px;
}

.coming-soon-timer h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--brand-dark);
}

.coming-soon-timer p {
    font-size: 0.6rem;
    margin: 0;
    text-transform: uppercase;
}

/* KONTENER GALERII (BENTO STYLE) */
.gallery-wrapper {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.15);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-top: 3rem;
}

/* TYTUŁ GALERII */
.gallery {
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  grid-auto-rows: minmax(350px, 200px);
  grid-auto-flow: dense;
}
.gallery .item {
  margin-bottom:8px;
  overflow: hidden;
  position: relative;
}
.gallery .frame {
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  top: 100%;
  transition: all 0.5s ease;
  display: grid;
  justify-items: center;
  align-items: center;
  transition-delay: 0.1s;
}
.gallery .frame i {
  font-size: 32px;
  color: var(--theme_white);
}
.gallery .frame span {
  width: 26px;
  height: 26px;
}
.gallery .item:hover .frame {
  top: 0;
}
.gallery .item:hover .frame i {
  color: var(--themecolor);
}
.gallery .item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: 1s;
  transition-delay: 0.2s;
}
.gallery .item:hover img {
  transform: scale(1.2);
  opacity: 1;
}
.gallery .gallery-vertical {
  grid-column: span 2;
}
.gallery .gallery-horizontal {
  grid-row: span 1;
}
.gallery .big {
  grid-column: span 2;
  grid-row: span 2;
}

/* KONTENER GŁÓWNY PETYCJI (BENTO STYLE) */
.petycja-module-wrapper {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.25);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-top: 3rem;
}

/* LICZNIK PODPISÓW */
.petycja-stats-box {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--brand-soft-bg);
    border-radius: 1.5rem;
}

.petycja-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    display: block;
}

.petycja-label {
    font-size: 0.9rem;
    color: var(--brand-default);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* PANEL KOMENTARZY */
.petycja-komentarze-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(73, 75, 31, 0.1);
    border-radius: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.petycja-komentarz-item {
    padding: 1rem !important;
    margin-bottom: 0.5rem;
    background: #fcfcfc;
    border-radius: 1rem;
    border: none !important; /* Nadpisujemy inline style z PHP */
}

/* PRZYCISK AKCJI */
.petycja-btn-action {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--brand-dark);
    color: #fff;
    text-align: center;
    border-radius: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.petycja-btn-action:hover {
    background: var(--brand-default);
    color: #fff;
}
/* LICZNIK (Sekcja cyfry) */
.licznik-cyfra {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.2;
}

.licznik-etykieta {
    font-size: 0.9rem;
    color: var(--brand-default);
    text-transform: uppercase;
    font-weight: 600;
}

/* KOMENTARZE */
.petycja-komentarze-box {
    border: 1px solid rgba(73, 75, 31, 0.1) !important;
    border-radius: 1.5rem !important; /* Zaokrąglenie bento */
    padding: 1.5rem !important;
    background: #fcfcfc;
}

/* POSZCZEGÓLNY KOMENTARZ */
.petycja-komentarz-item {
    border-bottom: 1px solid rgba(73, 75, 31, 0.05) !important;
    padding: 12px 0 !important;
}

/* MOTYWATOR (Tekst na dole) */
.licznik-motywator {
    background: var(--brand-soft-bg);
    padding: 1rem !important;
    border-radius: 1rem;
    border: none !important;
}

.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* STYL JEDNEGO TAGA */
.tag-item {
    background: var(--brand-soft-bg); /* Jasne tło marki */
    color: #003000;
    padding: 6px 14px;
    border-radius: 50px; /* Okrągły tag */
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(73, 75, 31, 0.1);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.tag-hash {
    opacity: 0.5;
    margin-right: 4px;
    font-weight: 700;
    color: #000;
}

/* Przekształcenie ard-modern w kartę bento */
.card-modern {
    border-radius: 2rem !important; /* Zaokrąglenie bento */
    border: 1px solid rgba(73, 75, 31, 0.15) !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
    background: #fff;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(73, 75, 31, 0.1) !important;
    border-color: var(--brand-dark) !important;
}

/* Stylizacja obrazka wewnątrz karty */
.card-modern .card-img-top {
    border-radius: 2rem 2rem 0 0 !important;
}

/* Badge (Etykieta kategorii) - styl bento */
.card-modern .badge {
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #fff !important;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Kontener karty pliku w stylu bento */
.file-card-modern {
    background: #fff;
    border: 1px solid rgba(73, 75, 31, 0.15);
    border-radius: 2rem !important; /* Zaokrąglenie bento */
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.file-card-modern:hover {
    border-color: var(--brand-dark);
    box-shadow: 0 10px 20px rgba(73, 75, 31, 0.1);
    transform: translateY(-5px);
}

/* Ikona pliku (dopasowanie do stylu) */
.file-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--brand-soft-bg);
    color: var(--brand-dark);
}

/* Nazwa pliku i meta */
.file-name-modern {
    font-weight: 700;
    font-size: 1rem;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.file-meta-modern {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Przycisk pobierania */
.btn-download-modern {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: #f8f9fa;
    color: var(--brand-dark);
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-download-modern:hover {
    background: var(--brand-dark);
    color: #fff;
}

.news-grid-contentp ul {
    list-style: none; 
    padding-left: 1.5rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    margin: 0;
}

.news-grid-contentp ul li {
    position: relative;
    margin-bottom: 0.2rem;
    padding-left: 1rem; 
    font-size: 1em;
}

.news-grid-contentp ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em; /* dopasuj do linii tekstu */
    width: 12px;  /* szerokoÅ›Ä‡ prostokÄ…ta */
    height: 11px; /* wysokoÅ›Ä‡ (pionowy) */
    background-color: #494b1f;
    border-radius: 1px; /* lekko zaokrÄ…glony (opcjonalnie) */
}

.news-grid-contentp ul li a {
    text-decoration: underline;
    color: #222;
}
.news-grid-content img {
  max-width: 100%;
  height: auto !important;
  box-sizing: border-box;
  margin: 5px 15px 5px 0;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.timeline-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: #333; /* kolor kwadratu */
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 65px;
    bottom: 0;
    width: 4px;
    background: #e9ecef;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 0;
    margin-bottom: 20px;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 32px;       /* ZwiÄ™kszony rozmiar */
    height: 32px;
    background: #b666e7;
    border-radius: 50%;
    top: 20px;         /* Drobna korekta w pionie dla wiÄ™kszego rozmiaru */
    border: 2px solid #fff;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after {
    right: -16px;      /* PrzesuniÄ™cie o poÅ‚owÄ™ wiÄ™kszego rozmiaru */
}
.timeline-item:nth-child(even)::after {
    left: -16px;
}
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 120px;
}
.timeline-content h3 {
    margin-top: 0;
    color: #1F2DA0;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.timeline-content .timeline-date {
    font-size: 0.9em;
    color: #4a5b6b;
    margin-bottom: 15px;
    display: block;
}
.timeline-content p {
    line-height: 1.3;
    color: #495057;
    margin-bottom: 15px;
}
.timeline-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        /* Resetujemy oba paddingi i ustawiamy tylko lewy dla miejsca na liniÄ™ */
        padding-left: 60px !important; 
        padding-right: 0 !important;   
        text-align: left !important;
        margin-bottom: 30px;
}

    .timeline-item::after {
        /* WyÅ›rodkowanie kropki wzglÄ™dem linii (20px linia + 4px szerokoÅ›Ä‡ linii) */
        left: 6px !important; 
        right: auto !important;
    }
}
.contact-us-wrapper .contact-content {
  background-color: #f9f9ff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(107, 115, 133, 0.5);
}

/* Ukrycie natywnego inputa, ale w peÅ‚ni dostÄ™pny */
.form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Wiersz opcji */
.form-check {
    display: flex;
    align-items: center;
    gap: 14px; /* odstÄ™p tekstu od graficznego inputa */
    position: relative;
    padding-left: 48px; /* 34 (rozmiar) + 14 (gap) */
    min-height: 38px; /* estetyczne wyrÃ³wnanie pionowe */
}

/* Graficzny checkbox/radio â€” 34x34px */
.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 2px solid #494b1f;
    border-radius: 6px; /* checkbox domyÅ›lnie */
    background: #fff;
    transition: 0.2s;
}

/* RADIO â†’ okrÄ…g */
input[type="radio"] + .form-check-label::before {
    border-radius: 50%;
}

/* ZAZNACZONY STAN */
.form-check-input:checked + .form-check-label::before {
    background-color: #494b1f;
    box-shadow: inset 0 0 0 8px #fff; /* Å›rodek w proporcji do 34px */
}

/* HOVER */
.form-check:hover .form-check-label::before {
    border-color: #0056b3;
}

/* FOCUS â€” WCAG compliant */
.form-check-input:focus-visible + .form-check-label::before {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

/* â€”â€”â€” BÅÄ„D â€“ CZERWONA RAMKA â€”â€”â€” */
.form-check-input.is-invalid + .form-check-label::before,
.form-check.is-invalid .form-check-label::before {
    border-color: #dc3545 !important;
    background-color: #ffeaea;
}

.form-check-input.is-invalid:checked + .form-check-label::before {
    background-color: #dc3545;
    box-shadow: inset 0 0 0 5px #fff;
}

/* Opcjonalnie: czerwony cieÅ„ dla wiÄ™kszego efektu */
.form-check.is-invalid {
    color: #dc3545;
}
.theme-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #1b4332;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #1b4332;
    border-radius: 6px;
    transition: background-color .25s ease,
                border-color .25s ease,
                color .25s ease,
                transform .2s ease;
    margin-top: auto;
}

.theme-btn:hover {
    background-color: #5f6328;
    border-color: #5f6328;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.theme-btn:focus-visible {
    outline: 3px solid #f5c542;
    outline-offset: 3px;
}

.theme-btn:active {
    transform: translateY(0);
}

.form-label{
    font-size: 0.9rem! important; font-weight:600! important;
  }
  

/* Domyślnie na telefonach: menu jest ukryte (zwiniecie) */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none !important; /* Ukryj menu domyślnie */
        flex-direction: column !important;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px;
        border-radius: 15px;
        margin-top: 10px;
    }

    /* Gdy klasa 'show' jest dodana przez Bootstrap (po kliknięciu przycisku) */
    .navbar-collapse.show {
        display: flex !important;
    }

    /* Wymuszenie pionowego układu wewnątrz zwiniętego menu */
    #mobile-menu ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* Na komputerach: menu jest zawsze widoczne */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
    .navbar-toggler {
        display: none !important; /* Ukryj przycisk hamburgera */
    }
}

/* --- MOBILNE MENU --- */

/* 1. Na małych ekranach (telefony) */
@media (max-width: 991px) {
    /* Zwiń menu domyślnie */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Pokaż menu, gdy Bootstrap doda klasę 'show' po kliknięciu przycisku */
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column !important;
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* Wymuś pionowy układ listy */
    #mobile-menu ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* 2. Na większych ekranach (komputery) */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important; /* Ukryj przycisk hamburgera */
    }
    .navbar-collapse {
        display: flex !important; /* Zawsze pokazuj menu */
    }
}

/* 1. Usunięcie tła i zaokrągleń z kontenera menu na mobilkach */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff !important; /* Usuwa tło "owala" */
        border: none !important;      /* Usuwa obramowanie */
        box-shadow: none !important;  /* Usuwa cień */
        border-radius: 0 !important;  /* Usuwa zaokrąglenia */
        padding: 0 !important;
    }

    /* Jeśli używasz klasy .glass-nav, usuwamy jej właściwości dla wersji mobilnej */
    .glass-nav {
        background: transparent !important;
        border-radius: 0 !important;
    }
}

/* --- STYLIZACJA KART WPISÓW --- */
.card-modern {
    border: none !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Efekt uniesienia karty po najechaniu */
.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Stylizacja badge'a kategorii */
.badge.bg-dark {
    background-color: #1b4332 !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Poprawa czytelności opisu */
.card-body p {
    color: var(--theme-muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Kolor tytułu przy najeździe */
.hover-theme:hover {
    color: var(--brand-dark) !important;
}

/* Stałe proporcje zdjęcia */
.card-img-top {
    transition: transform 0.5s ease !important;
}

.card-modern:hover .card-img-top {
    transform: scale(1.05);
}

/* --- PAGINACJA (Poprawiona) --- */
.page-nav-wrap {
  margin-top: 60px;
}
.page-nav-wrap ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.page-nav-wrap ul li.active .page-numbers {
  background-color: #1b4332; /* Twój kolor */
  color: #ffffff;
  border-color: #1b4332;
}
.page-nav-wrap ul li .page-numbers {
  display: block;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  border-radius: 50%;
  border: 1px solid #1b4332;
  background: transparent;
  color: #1b4332;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}
.page-nav-wrap ul li .page-numbers:hover {
  background-color: #1b4332;
  color: #ffffff;
}
@media (max-width: 767px) {
  .page-nav-wrap ul li .page-numbers {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
}

.breadcrumb-mobile{
    display:none;
}

@media (max-width:767px){

    .breadcrumb-desktop{
        display:none;
    }

    .breadcrumb-mobile{
        display:block;
    }

}
/* Wspólny styl dla alertów */
.custom-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border: 2px solid transparent; /* Wyraźna ramka */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    line-height: 1.5;
}

/* Styl sukcesu (wysoki kontrast) */
.custom-alert.alert-success {
    background-color: #e8f5e9; /* Bardzo jasna zieleń */
    border-color: #2e7d32;      /* Ciemna zieleń (dostępna) */
    color: #1b5e20;             /* Bardzo ciemna zieleń dla tekstu */
}

/* Styl błędu (wysoki kontrast) */
.custom-alert.alert-danger {
    background-color: #fce4e4; /* Bardzo jasny róż */
    border-color: #c62828;      /* Ciemna czerwień (dostępna) */
    color: #b71c1c;             /* Bardzo ciemna czerwień dla tekstu */
}

/* Styl sukcesu (wysoki kontrast) */
.custom-alert.alert-info {
    background-color: #d1e7ff; /* Znacznie jaśniejsze tło (pastelowe) */
    border-color: #0d6efd;      /* Wyrazisty, dobrze kontrastujący niebieski */
    color: #052c65;             /* Bardzo ciemny granat dla wysokiej czytelności */
}

/* Układ mobilny - wymuszenie jednego wpisu pod drugim */
@media (max-width: 767px) {
    .news-grid-col {
        width: 100% !important; /* Wymusza pełną szerokość */
        flex: 0 0 100% !important;
        margin-bottom: 20px; /* Dodaje odstęp między wpisami */
    }
    
    /* Opcjonalnie: poprawienie marginesów w kontenerze siatki */
    .row.g-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .form-check {
        display: flex;
        align-items: center;
        gap: 14px;
        position: relative;
        padding-left: 40px; /* Zmniejszyłem trochę padding, żeby lepiej pasowało na małe ekrany */
        min-height: 44px;   /* Zwiększyłem wysokość (min-height), żeby było wygodniej "trafić" palcem */
        margin-bottom: 10px; /* Dodatkowe odstępy między opcjami 1-5 */
    }
}

/* ===========================================================
   WYSZUKIWARKA - WCAG 2.2 AA
   =========================================================== */

.event-wrapper{
    background:#ffffff;
    border:1px solid #b6b89e;          /* lepszy kontrast */
    border-radius:24px;
    padding:24px;
    margin-bottom:24px;
    transition:border-color .2s ease,
               box-shadow .2s ease,
               transform .2s ease;
}

.event-wrapper:hover{
    border-color:#494b1f;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.event-item{
    gap:24px;
    align-items:flex-start !important;
}

.event-image{
    flex:0 0 180px !important;
    max-width:180px !important;
}

.event-image img{
    display:block;
    width:100% !important;
    height:130px !important;
    object-fit:cover;
    border-radius:18px;
}

.event-content{
    flex:1;
    min-width:0;
}

.event-content h3{
    margin:.5rem 0 1rem;
    line-height:1.45;
}

.event-content h3 a{

    color:#2d2f13;          /* kontrast ponad 7:1 */

    font-weight:700;

    text-decoration:underline;

    text-decoration-thickness:.08em;

    text-underline-offset:.18em;

}

.event-content h3 a:hover,
.event-content h3 a:focus-visible{

    color:#1f210d;

}

.event-content p{

    margin-bottom:1rem;

    color:#222222;

    line-height:1.7;

}

/* ==========================================
   METADANE
   ========================================== */

.post-time{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin:0 0 12px;

    padding:0;

    list-style:none;

    font-size:.95rem;

}

.post-time li{

    display:flex;

    align-items:center;

    gap:8px;

    color:#3b3b3b;

}

.post-time i{

    color:#494b1f;

}

/* ==========================================
   PODŚWIETLENIE WYNIKÓW
   ========================================== */

mark{

    background:#ffe869;

    color:#111111;

    padding:.08rem .25rem;

    border-radius:4px;

}

/* ==========================================
   PRZYCISK
   ========================================== */

.event-button{

    display:flex;

    justify-content:flex-end;

    margin-top:20px;

}

.event-button .theme-btn{

    min-width:160px;

    min-height:44px;

    justify-content:center;

}

/* ==========================================
   TAGI
   ========================================== */

.badge.bg-light{

    background:#ecefdc !important;

    color:#2d2f13 !important;

    border:1px solid #9ea270;

    border-radius:999px;

    padding:.45rem .8rem;

    margin:3px;

    font-weight:600;

}

/* ==========================================
   FOCUS WCAG
   ========================================== */

.event-wrapper a:focus-visible,
.theme-btn:focus-visible,
.badge:focus-visible{

    outline:3px solid #005fcc;

    outline-offset:3px;

    border-radius:6px;

}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion:reduce){

    .event-wrapper{

        transition:none;

    }

    .event-wrapper:hover{

        transform:none;

    }

}

/* ==========================================
   HIGH CONTRAST
   ========================================== */

@media (forced-colors:active){

    .event-wrapper{

        border:1px solid CanvasText;

    }

}

/* ==========================================
   TABLETY
   ========================================== */

@media (max-width:991px){

    .event-item{

        flex-direction:column;

    }

    .event-image{

        flex:0 0 auto !important;

        width:100%;

        max-width:100% !important;

    }

    .event-image img{

        width:100% !important;

        height:220px !important;

    }

    .event-button{

        justify-content:stretch;

    }

    .event-button .theme-btn{

        width:100%;

    }

}

/* ==========================================
   TELEFONY
   ========================================== */

@media (max-width:576px){

    .event-wrapper{

        padding:18px;

        border-radius:18px;

    }

    .event-image img{

        height:180px !important;

    }

    .post-time{

        font-size:.9rem;

        gap:10px;

    }

}

.ngo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
            margin-bottom: 50px;
        }

        .bento-card.featured {
            background: var(--brand-soft-bg);
            border: 2px solid var(--brand-dark);
        }

        .card-badge {
            display: inline-block;
            background: var(--brand-dark);
            color: #fff;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            align-self: flex-start;
            margin-bottom: 15px;
        }

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

        .icon-box {
            width: 52px;
            height: 52px;
            border-radius: 1rem;
            background: var(--brand-soft-bg);
            color: var(--brand-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            flex-shrink: 0;
        }

        .featured .icon-box {
            background: var(--brand-dark);
            color: #fff;
        }

        .account-box {
            background: var(--theme-surface);
            border: 1px dashed var(--brand-dark);
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
        }

        .account-number {
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--brand-dark);
            letter-spacing: 0.5px;
            word-break: break-all;
            margin: 5px 0;
        }

        .copy-btn {
            background: var(--brand-dark);
            color: #fff;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .copy-btn:hover {
            background: var(--brand-default);
        }

        .info-section {
            background: var(--brand-soft-bg);
            border-radius: 2rem;
            padding: 2.5rem;
            margin-bottom: 50px;
            border: 1px solid rgba(73, 75, 31, 0.15);
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .info-item {
            background: #fff;
            padding: 20px;
            border-radius: 1rem;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .info-item strong {
            color: var(--brand-dark);
            display: block;
            margin-bottom: 5px;
        }
/* ============================================================
   SEKCJA NEWSLETTER (FULL WIDTH HERO BANNER)
   ============================================================ */

.newsletter-hero-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 90px 0;
    min-height: 480px;
    display: flex;
    align-items: center;
    /* Ładna, wysokiej jakości grafika w tle nawiązująca do natury/wzrostu */
    background: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat fixed;
    overflow: hidden;
}

/* Ciemna nakładka zapewniająca wysoki kontrast i czytelność tekstu (WCAG) */
.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.88) 0%, rgba(73, 75, 31, 0.85) 100%);
    z-index: 1;
}

.newsletter-container {
    position: relative;
    z-index: 2;
}

/* Badge nad nagłówkiem */
.newsletter-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Nagłówek i opis sekcji */
.newsletter-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
}

.newsletter-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
}

/* Karta Bento z formularzem */
.newsletter-card {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Dedykowany styl RODO wewnątrz karty */
.form-check-newsletter {
    font-size: 0.88rem;
    color: var(--theme-text);
}

.custom-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.custom-checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.rodo-link {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: underline;
}

.rodo-link:hover {
    color: var(--brand-default);
}

/* Responsywność */
@media (max-width: 991px) {
    .newsletter-hero-section {
        padding: 60px 0;
        background-attachment: scroll; /* Wymagane dla stabilności na urządzeniach mobilnych */
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }

    .newsletter-card {
        padding: 1.75rem;
    }
}     

/* ==========================================================================
   Szablon Profilu Autora (autor.php)
   ========================================================================== */

/* Kolorystyka tekstów zgodna z WCAG */
.text-slate-900 {
    color: #0f172a !important;
}

.bg-primary-subtle {
    background-color: #e0f2fe !important;
    color:#000;
}

/* Efekt przejścia dla kart artykułów */
article.transition-all {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

article.transition-all:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
}

/* Poprawa czytelności bio */
.author-bio p {
    margin-bottom: 0.75rem;
}

.author-bio p:last-child {
    margin-bottom: 0;
    color: #202020;
}

/* Kontener na pełną szerokość ekranu */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

/* Subtelny efekt wygaszania krawędzi (maska tonalna) */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Elastyczna taśma z logotypami */
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    /* Czas trwania animacji: 30s (dostosuj szybkość) */
    animation: marqueeScroll 15s linear infinite;
}

/* Pauza po najechaniu myszką */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Pojedyncza kafelka z logo */
.marquee-item {
    flex: 0 0 auto;
    padding: 0 35px; /* Odstęp między logotypami */
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 70px; /* Maksymalna wysokość w sliderze */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%); /* Efekt czarno-biały (opcjonalny) */
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Po najechaniu na konkretne logo: kolor i lekki powiększenie */
.marquee-item a:hover img,
.marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* --- NAGŁÓWEK "WSPIERAJĄ NAS" --- */
.partners-title {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1b4332;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Dekoracyjne linie po bokach napisu */
.partners-title::before,
.partners-title::after {
  content: "";
  height: 1px;
  width: 60px; /* Długość linii */
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.15));
}

.partners-title::after {
  background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.15));
}
/* Kluczowa animacja przesunięcia */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Przesunięcie dokładnie o połowę zduplikowanej taśmy */
    }
}   

/* Stan podstawowy */
.btn-outline-primary {
  color: #1b4332;
  border-color: #1b4332;
}

/* Najechanie (hover) */
.btn-outline-primary:hover {
  color: #ffffff;
  background-color: #1b4332;
  border-color: #1b4332;
}

/* Aktywny / Wciśnięty (active) */
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #ffffff;
  background-color: #1b4332;
  border-color: #1b4332;
}

/* Poświata przy kliknięciu (focus) */
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(27, 67, 50, 0.5);
}

.partners-section {
    position: relative;
    overflow: hidden;
}

/* Kontener sterowania WCAG */
.marquee-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.marquee-btn {
    background: #ffffff;
    border: 2px solid #1b4332;
    color: #1b4332;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marquee-btn:hover,
.marquee-btn:focus-visible {
    background: #1b4332;
    color: #ffffff;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Główny kontener animacji */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    will-change: transform;
    animation: marquee-scroll 25s linear infinite;
}

/* Zatrzymanie animacji – stan PAUZA */
.marquee-track.paused,
.marquee-container:hover .marquee-track,
.marquee-container:focus-within .marquee-track {
    animation-play-state: paused !important;
}

.marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.marquee-item a:focus-visible {
    outline: 3px solid #000;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Kluczowe klatki płynnego ruchu */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ułatwienia dostępu dla użytkowników z preferencją ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    .marquee-controls {
        display: none;
    }
}
/* ============================================================
   MODUŁ FILMY (BENTO STYLE)
   ============================================================ */

/* Wyrównanie wysokości kart w rzędzie */
.video-row-equal {
    align-items: stretch;
}

/* Główna karta wideo */
.video-card-modern {
    background: var(--theme-surface, #ffffff);
    border: 1px solid rgba(73, 75, 31, 0.15);
    border-radius: 1.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.video-card-modern:hover {
    transform: translateY(-6px);
    border-color: var(--brand-dark);
    box-shadow: 0 15px 35px rgba(73, 75, 31, 0.12);
}

/* Kontener miniaturki ze stałą proporcją 16:9 */
.video-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1a1a1a;
}

.video-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.video-card-modern:hover .video-img-container img {
    transform: scale(1.05);
    opacity: 1;
}

/* Nowoczesny przycisk Play ze szklanym efektem (Glassmorphism) */
.play-btn-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(27, 67, 50, 0.85); /* nawiązanie do var(--brand-dark) */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 2;
}

/* Wypełnienie ikony SVG */
.play-btn-modern svg {
    fill: #ffffff;
    width: 20px;
    height: 24px;
    margin-left: 3px; /* Optyczne wyśrodkowanie trójkąta */
}

/* Reakcja przycisku na hover całej karty */
.video-card-modern:hover .play-btn-modern {
    background: var(--brand-dark);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Standard WCAG dla fokusowania nawigacji klawiaturą */
.play-btn-modern:focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 4px;
}

/* Tytuł pod filmem */
.video-title-modern {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--theme-text);
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.video-card-modern:hover .video-title-modern {
    color: var(--brand-dark);
}

/* Responsywność na urządzeniach mobilnych */
@media (max-width: 576px) {
    .video-card-modern {
        border-radius: 1.25rem;
    }

    .play-btn-modern {
        width: 52px;
        height: 52px;
    }

    .play-btn-modern svg {
        width: 16px;
        height: 20px;
    }

    .video-title-modern {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

.cs-video-btn {
  position: absolute;
  bottom: 38%;
  top: 38%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80px;
  max-height: 80px;
}
.cs-video-btn a {
  padding: 30px;
}
.cs_center {
  display: flex;
  align-items: center;
  justify-content: center;
}
/*--------------------------------------------------------------
  12. Video Modal
----------------------------------------------------------------*/
.cs-full-width-video-wrapper .cs-full-width-video-in .cs-video-content-in {
  height: 760px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .video-slider {
  position: relative;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .video-slider .ps-scrollbar-navigation {
  position: absolute;
  bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .video-slider .swiper-slide {
  position: relative;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .swiper-scrollbar {
  background: rgba(255, 255, 255, 0.2);
  height: 5px;
  width: 315px;
  position: initial;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .swiper-scrollbar .swiper-scrollbar-drag {
  height: 5px;
  background: var(--theme_white);
}
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .ps-scrollbar-navigation-in {
  display: flex;
  align-items: center;
  gap: 40px;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-left,
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-right {
  background: rgba(255, 255, 255, 0.2);
}
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-left:hover,
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-right:hover {
  background: var(--theme_white);
  transition: all 0.4s ease-in-out;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-left:hover i,
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation .cs-arrow-right:hover i {
  color: var(--theme_black);
  transition: all 0.4s ease-in-out;
}
.cs-full-width-video-wrapper .cs-full-width-video-in .ps-scrollbar-navigation i {
  color: var(--theme_white);
}

.cs-video-wrapper {
  position: relative;
  width: 1920px;
  height: 760px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cs-video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* End video section */
.cs_video_popup {
  position: fixed;
  z-index: 99999;
  top: 0;
  width: 100%;
  height: 100%;
  left: -100%;
  transition-delay: 0.3s;
}

.cs_video_popup.active {
  left: 0;
  transition-delay: 0s;
  left: 0;
}

.cs_video_popup_overlay {
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
  transition: all 0.4s ease-out;
  opacity: 0;
}

.cs_video_popup.active .cs_video_popup_overlay {
  opacity: 0.8;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.cs_video_popup_content {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0;
  text-align: center;
  transition: all 0.4s ease-out;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  padding: 15px;
}

.cs_video_popup.active .cs_video_popup_content {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cs_video_popup_content:after {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.cs_video_popup_container {
  display: inline-block;
  position: relative;
  text-align: left;
  background: #fff;
  max-width: 1380px;
  width: 100%;
  vertical-align: middle;
}

.cs_video_popup_container .embed-responsive {
  width: 100%;
}

.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.embed-responsive-16by9::before {
  display: block;
  content: "";
  padding-top: 56.25%;
}

.embed-responsive iframe,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs_video_popup_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #d90d0d;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.cs_video_popup iframe {
  width: 100%;
  height: 100%;
  position: absolute;
}

.cs_video_popup_close:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  margin-left: -10px;
  transform: rotate(-45deg);
  transition: all 0.4s ease-in-out;
}

.cs_video_popup_close:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  margin-left: -10px;
  transform: rotate(45deg);
  transition: all 0.4s ease-in-out;
}

.cs_video_popup_close:hover:before,
.cs_video_popup_close:hover:after {
  background: #000;
}

.cs_video_popup_layer {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
}

.cs_video_popup_align {
  overflow: hidden;
}

