.nsw-pwtm { color: rgba(255,255,255,.92); }
.nsw-pwtm__wrap { max-width: 1100px; margin: 0 auto; padding: 26px 16px; }

/* HERO ma własny rytm – nie dokładaj dodatkowej "dziury" z paddingu wrap */
.nsw-pwtm__hero .nsw-pwtm__wrap{
  padding-top: 20px;
  padding-bottom: 0;
}

/* Pierwszy blok po HERO – lekko ciaśniej, bez pustego pasa */
.nsw-pwtm__hero + .nsw-pwtm__wrap{
  padding-top: 18px;
}

/* === Integracja z motywem: ukryj tytuł strony, gdy oferta jest wstawiona shortcode'em === */
body.nsw-pwtm-active .entry-title,
body.nsw-pwtm-active .page-title,
body.nsw-pwtm-active h1.entry-title,
body.nsw-pwtm-active .wp-block-post-title,
body.nsw-pwtm-active h1.wp-block-post-title,
body.nsw-pwtm-active .elementor-page-title{
  display:none !important;
}

/* Full-bleed HERO (na większości motywów, które zawężają content) */
.nsw-pwtm__hero{
  position: relative;
  /* bez "dziury" pod HERO – odstępy kontrolujemy w samym wrap */
  padding: 18px 0 0;
  border-bottom: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  overflow: hidden;
}

/* Jeżeli motyw dorzuca jakieś linie / pseudo-elementy w headerze, wyłącz je dla tej podstrony */
body.nsw-pwtm-active .nsw-pwtm__hero::before,
body.nsw-pwtm-active .nsw-pwtm__hero::after{
  content: none !important;
  display: none !important;
}

/* Usuń zbędne „linie” (np. <hr>) jeśli gdzieś wpadną z edytora */
.nsw-pwtm hr{ display:none !important; }


/* HERO media (zdjęcie nad tekstem) */
.nsw-pwtm__heroMedia{
  margin: 0 0 18px;
}

/* Tekst HERO w osobnej „karcie” POD zdjęciem (żeby nie nachodził na obraz) */
.nsw-pwtm__heroContent{
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 14, 22, .62);
  box-shadow: 0 14px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(0,229,255,.08);
  backdrop-filter: blur(6px);
}
@media (max-width: 700px){
  .nsw-pwtm__heroContent{ border-radius: 18px; padding: 18px 16px; }
}

.nsw-pwtm__heroSlider,
.nsw-pwtm__heroSingle{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: none;
  background: rgba(0,0,0,.20);
  box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,229,255,.10);
  /* Prawdziwy format 16:9 dla zdjęcia w HERO */
  aspect-ratio: 16 / 9;
}

.nsw-pwtm__heroSlider{
  height: auto;
}

.nsw-pwtm__heroSingle{
  height: auto;
}

.nsw-pwtm__heroSlide,
.nsw-pwtm__heroSingleImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* lekko w górę – zwykle lepiej eksponuje napis/obiekt w kadrze */
  object-position: center 35%;
  display: block;
}

@media (max-width: 700px){
  .nsw-pwtm__heroSlide,
  .nsw-pwtm__heroSingleImg{
    object-position: center 30%;
  }
}

/* Fade/slide */
.nsw-pwtm__heroSlide{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(1.02) translateX(14px);
  transition: opacity 900ms ease, transform 1200ms ease;
}
.nsw-pwtm__heroSlide.is-active{
  opacity:1;
  transform: scale(1.02) translateX(0);
}

.nsw-pwtm__heroMediaOverlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,229,255,.18), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}

@media (max-width: 700px){
  .nsw-pwtm__heroSlider,
  .nsw-pwtm__heroSingle{
    border-radius: 18px;
  }
}

/* Mobile – spójniejsze proporcje i oddech */
@media (max-width: 700px){
  .nsw-pwtm__wrap{ padding: 22px 14px; }
  .nsw-pwtm__hero{ padding: 16px 0 0; }
  .nsw-pwtm__hero .nsw-pwtm__wrap{ padding-top: 18px; padding-bottom: 0; }
  .nsw-pwtm__heroMedia{ margin: 0 0 14px; }
  .nsw-pwtm__hero + .nsw-pwtm__wrap{ padding-top: 16px; }
  .nsw-pwtm__section{ padding: 18px 14px; border-radius: 18px; }
  .nsw-pwtm__grid{ gap: 14px; }
}
/* (usuniete) Warstwa tła/overlay dla HERO – teraz obraz jest „normalny” NAD tekstem */

.nsw-pwtm__h1{
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0 0 10px;
  letter-spacing: .2px;
  text-wrap: balance;
}
.nsw-pwtm__h2{
  font-size: clamp(18px, 2.1vw, 24px);
  margin: 0 0 12px;
  text-wrap: balance;
}
.nsw-pwtm__lead{
  margin: 0 0 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.86);
  max-width: none;
  font-size: 16px;
}
.nsw-pwtm__content{ line-height: 1.8; color: rgba(255,255,255,.88); font-size: 16px; }
.nsw-pwtm__logosIntro{ margin: 0 0 14px; max-width: none; }
@media (max-width: 520px){
  .nsw-pwtm__content, .nsw-pwtm__lead{ font-size: 15px; }
}

.nsw-pwtm__section{
  margin: 18px 0;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(10, 14, 22, .55);
  box-shadow: 0 12px 34px rgba(0,0,0,.26);
}

/* „Wow” – delikatny neonowy akcent na hover (na desktopie) */
@media (hover:hover){
  .nsw-pwtm__section:hover{
    border-color: rgba(0,229,255,.28);
    box-shadow: 0 18px 48px rgba(0,0,0,.32), 0 0 0 1px rgba(0,229,255,.10);
    transform: translateY(-1px);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  }
}
.nsw-pwtm__content p{ margin: 10px 0; }
.nsw-pwtm__content ul{ padding-left: 1.2em; }

/* Neonowa kreska – JEDEN styl dla wszystkich sekcji (taki jak w Wolontariuszach) */
.nsw-pwtm__section .nsw-pwtm__h2{
  position: relative;
  padding-left: 18px;
}
.nsw-pwtm__section .nsw-pwtm__h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: calc(100% - 0.4em);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0,229,255,1), rgba(0,229,255,.4));
  box-shadow: 0 0 12px rgba(0,229,255,.6);
}

.nsw-pwtm__badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }
.nsw-pwtm__badge{
  display:inline-flex; align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.35);
  background: rgba(0,229,255,.08);
  box-shadow: 0 0 0 1px rgba(0,229,255,.08);
  font-size: 13px;
}

.nsw-pwtm__badgeValue{ font-weight: 800; margin-right: 8px; }
.nsw-pwtm__badgeLabel{ opacity: .92; }

/* Desktop: wyróżniki jako 2x2 „karty” (czytelniej niż długie pigułki) */
@media (min-width: 561px){
  .nsw-pwtm__hero .nsw-pwtm__badges{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .nsw-pwtm__hero .nsw-pwtm__badge{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(0,229,255,.28);
    box-shadow: 0 12px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(0,229,255,.06);
    font-size: 14px;
    line-height: 1.55;
  }
  .nsw-pwtm__hero .nsw-pwtm__badgeValue{
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,229,255,.10);
    border: 1px solid rgba(0,229,255,.30);
    font-size: 13px;
    letter-spacing: .2px;
  }
  .nsw-pwtm__hero .nsw-pwtm__badgeLabel{
    opacity: .92;
    font-size: 13.5px;
  }
}

/* Mobile: badge'y jako czytelne „karty” (bez ogromnych owalnych ramek i łamania tekstu „w słupku”) */
@media (max-width: 560px){
  .nsw-pwtm__badges{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nsw-pwtm__badge{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
  }
  .nsw-pwtm__badgeValue{
    margin-right: 0;
    font-size: 15px;
  }
  .nsw-pwtm__badgeLabel{
    opacity: .92;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

.nsw-pwtm__card{ /* zostawione dla kompatybilności */ }

.nsw-pwtm__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px){
  .nsw-pwtm__grid{ grid-template-columns: 1fr; }
}

.nsw-pwtm__media{ display:flex; justify-content:center; }
.nsw-pwtm__img{
  width:100%;
  max-width: 460px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.nsw-pwtm__list{
  margin: 10px 0 0;
  padding-left: 1.25em;
}
.nsw-pwtm__card .nsw-pwtm__list{ margin-top: 12px; }
.nsw-pwtm__list li{
  margin: 10px 0;
  line-height: 1.75;
}
.nsw-pwtm__list li::marker{
  color: rgba(0,229,255,.85);
}

/* Statystyki */
.nsw-pwtm__stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 900px){
  .nsw-pwtm__stats{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .nsw-pwtm__stats{ grid-template-columns: 1fr; }
}
.nsw-pwtm__stat{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,229,255,.06);
  padding: 12px 12px;
}
.nsw-pwtm__statValue{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
}
.nsw-pwtm__statLabel{
  font-size: 13px;
  color: rgba(255,255,255,.82);
  margin-top: 4px;
  line-height: 1.4;
}

/* Przebieg */
.nsw-pwtm__flow{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.nsw-pwtm__flowRow{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
@media (max-width: 520px){
  .nsw-pwtm__flowRow{ grid-template-columns: 1fr; }
}
.nsw-pwtm__flowTime{
  font-weight: 700;
  color: rgba(0,229,255,.92);
}
.nsw-pwtm__flowText{ color: rgba(255,255,255,.88); }

/* Galeria */
.nsw-pwtm__gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .nsw-pwtm__gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .nsw-pwtm__gallery{ grid-template-columns: 1fr; }
}
.nsw-pwtm__galleryImg{
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
}

/* Zaufali nam – karty (jak na /zostan-partnerem/) */
.nsw-pwtm__logosCards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 900px){
  .nsw-pwtm__logosCards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .nsw-pwtm__logosCards{ grid-template-columns: 1fr; }
}

.nsw-pwtm .nsbp__logo{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding: 14px 14px;
}
.nsw-pwtm .nsbp__logoLink{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.nsw-pwtm .nsbp__logoImg{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display:block;
}
.nsw-pwtm .nsbp__logoName{
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.nsw-pwtm .nsbp__logoDesc{
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  font-size: 13px;
}

/* Kontakt */
.nsw-pwtm__contact{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.nsw-pwtm__contactName{ font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.nsw-pwtm__contactRole{ margin-top: 4px; color: rgba(255,255,255,.78); font-size: 13px; }
.nsw-pwtm__contactRow{ margin-top: 10px; display:flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.nsw-pwtm__contactLabel{ color: rgba(0,229,255,.92); font-weight: 700; }
.nsw-pwtm__contactLink{ color: rgba(255,255,255,.92); text-decoration: none; border-bottom: 1px dashed rgba(0,229,255,.35); }
.nsw-pwtm__contactLink:hover{ border-bottom-style: solid; }

.nsw-pwtm__hint{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
}
.nsw-pwtm--error{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,70,70,.35);
  background: rgba(255,70,70,.08);
}

/* Separator z WP (*** / hr) – spójniejszy */
.nsw-pwtm hr{
  border: none;
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
}


/* === NSW: Lightbox / neon modal dla galerii (fade + slide) === */
.nsw-pwtm__galleryImg {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover){
  .nsw-pwtm__galleryImg:hover{
    transform: translateY(-2px);
    border-color: rgba(0,229,255,.25);
    box-shadow: 0 14px 38px rgba(0,0,0,.35), 0 0 0 1px rgba(0,229,255,.10);
  }
}

.nsw-pwtm__lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
}

.nsw-pwtm__lightboxOverlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,229,255,.14), transparent 45%),
    rgba(0,0,0,.82);
  backdrop-filter: blur(2px);
}

.nsw-pwtm__lightboxDialog{
  position: relative;
  width: min(1100px, calc(100vw - 22px));
  height: min(80vh, 780px);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;

  border-radius: 20px;
  border: 1px solid rgba(0,229,255,.35);
  background: rgba(8,12,18,.80);
  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(0,229,255,.12),
    0 0 48px rgba(0,229,255,.12);
  overflow: hidden;
}

.nsw-pwtm__lightboxFrame{
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
}

.nsw-pwtm__lightboxImg{
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 46px rgba(0,0,0,.55);

  /* animacje przejść */
  opacity: 1;
  transform: translateX(0);
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}

/* stan podczas zmiany zdjęcia */
.nsw-pwtm__lightboxImg.is-loading{
  opacity: 0;
  transform: translateX(var(--nsw-lb-shift, 26px)) scale(.995);
}

.nsw-pwtm__lightboxCount{
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .2px;
  color: rgba(255,255,255,.88);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}

.nsw-pwtm__lightboxClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.35);
  background: rgba(0,229,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.nsw-pwtm__lightboxNav{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.35);
  background: rgba(0,229,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  justify-self: center;
}

@media (max-width: 520px){
  .nsw-pwtm__lightboxDialog{
    grid-template-columns: 44px 1fr 44px;
    height: min(76vh, 680px);
  }
  .nsw-pwtm__lightboxFrame{ padding: 12px; }
}

/* blokada scrolla pod modalem */
html.nsw-pwtm__lbOpen,
body.nsw-pwtm__lbOpen{
  overflow: hidden;
}
