:root {
  --brand: #2d7580;
  --brand-2: #e8a199;
  --ink: #2b2523;
  --bg: #fdecc6;
  --muted: #8c746a;
  --progress-height: 6px;
}

html,
body {
  color: var(--ink);
  max-width: 100%;
  overflow-x: clip;
}

.progress-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 99998 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--progress-height) !important;
  overflow: hidden !important;
  background: white !important;
}

.progress-bar-line {
  display: block !important;
  width: 0%;
  max-width: 100%;
  height: 100% !important;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .18) !important;
  transform: none !important;
}

.navbar.sticky-top {
  position: sticky !important;
  top: var(--progress-height) !important;
  z-index: 99997 !important;
  padding-top: 10px !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}

.nav-inner {
  position: relative;
}

.brand-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.brand-logo {
  position: absolute;
  top: 4px;
  left: 10px;
  width: 74px;
  height: 74px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.navbar-brand {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.brand-title {
  margin-left: 120px;
}

@media (min-width: 992px) {
  .brand-logo {
    left: 2rem;
  }
}

.split-hero {
  padding: 2.25rem;
  background-color: #f9e7c196;
}

.navbarAntoherThanMainPage {
  background-color: #2d7580 !important;
}

.navbarAntoherThanMainPage a {
  color: white !important;
}

nav.navbarAntoherThanMainPage ul li ul li a {
  color: var(--brand) !important;
}

.navbarAntoherThanMainPage a:hover {
  color: var(--bg) !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand);
}

.split-hero h1 {
  font-weight: 800;
}

.split-hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.right-slider .carousel {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12);
}

.right-slider .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0;
  z-index: 5;
}

@media (min-width: 992px) {
  .right-slider .carousel-caption {
    padding: 1.25rem 1.5rem;
  }
}

.right-slider .carousel-dark .carousel-control-next-icon,
.right-slider .carousel-dark .carousel-control-prev-icon {
  filter: invert(0);
}

.right-slider .carousel-control-next-icon,
.right-slider .carousel-control-prev-icon {
  filter: invert(1);
}

.right-slider .carousel-caption h5 {
  color: #fff;
  font-weight: 800;
}

.right-slider .carousel-caption p {
  color: #f8f9fa;
  margin-bottom: 0.25rem;
}

.section-title {
  font-weight: 800;
  margin-bottom: .4rem;
}

.section-underline {
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.pageTitle {
  color: var(--brand);
}

.section-underline-full {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
  margin-bottom: 2rem;
}

.stretched-link {
  background: var(--brand);
  text-decoration: none;
  --bs-badge-padding-x: 0.65em;
  --bs-badge-padding-y: 0.35em;
  --bs-badge-font-size: 0.90em;
  --bs-badge-font-weight: 700;
  --bs-badge-color: #fff;
  --bs-badge-border-radius: var(--bs-border-radius);
  display: inline-block;
  padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
  font-size: var(--bs-badge-font-size);
  font-weight: var(--bs-badge-font-weight);
  line-height: 1;
  color: var(--bs-badge-color);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--bs-badge-border-radius);
}

.card {
  border: 1px solid rgba(45, 117, 128, 0.16);
  background: #fffdf7;
}

.card .card-title {
  color: var(--brand);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-hover {
  transition: .25s ease;
}

.card-hover:hover {
  transform: translateY(-7px);
  box-shadow: 0 2rem 2rem rgba(39, 114, 126, 0.35);
  -webkit-box-shadow: 0 2rem 2rem rgba(39, 114, 126, 0.35);
  -moz-box-shadow: 0 2rem 2rem rgba(39, 114, 126, 0.35);
}

.newsListSingleNews {
  transition: .25s ease;
  margin-bottom: 2rem !important;
}

.newsListSingleNews:hover {
  transform: translateY(-7px);
  box-shadow: 0px 3px 11px 2px rgba(39, 114, 126, 0.35);
  -webkit-box-shadow: 0px 3px 11px 2px rgba(39, 114, 126, 0.35);
  -moz-box-shadow: 0px 3px 11px 2px rgba(39, 114, 126, 0.35);
}

.badge-accent {
  background: var(--brand);
  color: #fff;
}

.article-meta {
  color: var(--muted);
}

.article-content p {
  line-height: 1.9;
}

footer {
  background-color: #2d7580;
  color: #fdecc6;
}

footer a {
  color: #fdecc6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.navbar {
  padding-top: .25rem;
  padding-bottom: .25rem;
  background-color: var(--brand);
}

.navbar .navbar-collapse {
  align-items: center;
}

.navbar .navbar-nav {
  align-items: center;
}

.navbar .nav-link {
  border-radius: .5rem;
  transition: color .15s ease, background-color .15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: var(--brand);
  color: white;
}

.navbar .dropdown-menu {
  background: #fff;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu a:focus,
.navbar .dropdown-menu a.nav-link:hover,
.navbar .dropdown-menu a.nav-link:focus,
.navbar .sub-menu a:hover,
.navbar .sub-menu a:focus {
  background-color: var(--brand) !important;
  color: #fff !important;
}

.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu a:active,
.navbar .sub-menu a:active {
  background-color: var(--brand) !important;
  color: #fff !important;
}

.navbar .dropdown-menu a,
.navbar .sub-menu a {
  border-radius: .5rem;
}

.nav-link {
  margin-right: 5px !important;
}

.sidebar-offset-top {
  margin-top: 99px;
}

.sidebar-offset-top-news {
  margin-top: 191px;
}

.sidebar-offset-top-news-NewsList {
  margin-top: 144px;
}

.news-list .list-group-item {
  margin-bottom: 1rem;
  border-radius: .75rem;
}

.news-list .list-group-item:last-child {
  margin-bottom: 0;
}

.btn-primary-custom {
  background-color: var(--brand);
  color: white;
}

.btn-outline-primary-custom {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--brand);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--brand);
  --bs-gradient: none;
}

.carousel-control-next,
.carousel-control-prev {
  opacity: 1;
}

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

@media (max-width: 576px) {
  .imgNews img {
    width: 100%;
  }
}

aside.sidebar-offset-top .wp-block-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 12px;
  position: relative;
  font-size: 1rem;
  line-height: 1.3;
}

aside.sidebar-offset-top .wp-block-heading::before {
  content: "";
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  background-image: url("/dev/wp-content/themes/stargard-template/assets/img/logo2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

aside.sidebar-offset-top .wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.clickable-widget {
  position: relative;
}

.clickable-widget a.full-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.right-slider .carousel-item {
  cursor: pointer;
}

.right-slider .carousel-item a,
.right-slider .carousel-item a:hover {
  color: inherit;
}

.right-slider .carousel-item .slider-img {
  width: 100%;
  height: 416px;
  object-fit: cover;
  display: block;
}

@media (max-width: 576px) {
  .right-slider .carousel-item .slider-img {
    height: 260px;
  }
}

.right-slider .carousel-item img {
  width: 100%;
  aspect-ratio: 622 / 416;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card .card-img-top {
  width: 100%;
  aspect-ratio: 266 / 172;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.right-slider .carousel-indicators {
  z-index: 10;
}

.right-slider .carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  margin: 0 6px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background-color: #fff !important;
  opacity: 1 !important;
  background-image: none !important;
  box-sizing: border-box !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, .35) !important;
}

.right-slider .carousel-indicators button.active,
#carouselLatestPosts .carousel-indicators button.active {
  background-color: #2d7580 !important;
  opacity: 1 !important;
}

@media (max-width: 576px) {
  .right-slider .carousel-caption {
    padding-bottom: 2.2rem !important;
  }

  #carouselLatestPosts .carousel-indicators {
    bottom: .6rem !important;
    z-index: 60 !important;
  }

  #carouselLatestPosts .carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    background-color: #fff !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6) !important;
  }
}

.row.row-cols-1.row-cols-md-2.g-4 .card.h-100 .card-body {
  display: flex;
  flex-direction: column;
}

.row.row-cols-1.row-cols-md-2.g-4 .card.h-100 .card-body > a.stretched-link {
  margin-top: auto;
  margin-bottom: 5px;
  align-self: flex-start;
}

#carouselLatestPosts {
  position: relative;
}

#carouselLatestPosts .carousel-inner {
  position: relative;
  z-index: 1;
}

#carouselLatestPosts .carousel-item {
  position: relative;
}

#carouselLatestPosts .carousel-item > a {
  position: relative;
  z-index: 1;
}

#carouselLatestPosts .carousel-control-prev,
#carouselLatestPosts .carousel-control-next {
  z-index: 50 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#carouselLatestPosts .carousel-indicators {
  z-index: 60 !important;
  pointer-events: auto !important;
}

#carouselLatestPosts .carousel-indicators button {
  position: relative;
  z-index: 61 !important;
  pointer-events: auto !important;
}

.singleNewsImg {
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(260px, 45vw, 420px) !important;
  max-height: 420px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 1rem;
}

@media (max-width: 576px) {
  .singleNewsImg {
    height: 260px !important;
    max-height: 260px !important;
  }
}

.article-content img,
.wp-block-image img {
  max-width: 100% !important;
  width: auto !important;
  max-height: 70vh !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

.article-content figure,
.wp-block-image {
  max-width: 100% !important;
}

@media (max-width: 576px) {
  .article-content img,
  .wp-block-image img {
    max-height: 360px !important;
  }
}

/* WordPress admin bar: widoczny tylko na górze strony, nie sticky/fixed */
html {
  margin-top: 0 !important;
}

body.admin-bar {
  padding-top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: 46px !important;
  }
}

#wpadminbar,
html #wpadminbar,
body #wpadminbar,
body.admin-bar #wpadminbar,
html body.admin-bar #wpadminbar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  z-index: 100000 !important;
}

.navbar.sticky-top {
  position: sticky !important;
  top: var(--progress-height) !important;
  z-index: 99997 !important;
}

.progress-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 99998 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: var(--progress-height) !important;
  overflow: hidden !important;
  background: white !important;
}

.progress-bar-line {
  display: block !important;
  width: 0% !important;
  max-width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .18) !important;
  transform: none !important;
}

.news-archive-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(circle at top left, rgba(232, 161, 153, .35), transparent 34%),
    linear-gradient(135deg, rgba(253, 236, 198, .95), rgba(249, 231, 193, .58));
  border-bottom: 1px solid rgba(45, 117, 128, .14);
}

.news-archive-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.news-archive-page {
  position: relative;
}

.news-archive-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.news-archive-card {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(45, 117, 128, .16);
  border-radius: 1.1rem;
  background: #fffdf7;
  box-shadow: 0 10px 26px rgba(45, 117, 128, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-archive-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 117, 128, .28);
  box-shadow: 0 1.4rem 2rem rgba(39, 114, 126, .20);
}

.news-archive-thumb-link {
  display: block;
  min-height: 100%;
  border-radius: .9rem;
  overflow: hidden;
  background: rgba(45, 117, 128, .08);
}

.news-archive-thumb {
  width: 100%;
  height: 100%;
  min-height: 175px;
  aspect-ratio: 266 / 172;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

.news-archive-card:hover .news-archive-thumb {
  transform: scale(1.04);
}

.news-archive-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .25rem .25rem .1rem 0;
}

.news-archive-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .45rem;
}

.news-archive-meta-separator {
  color: var(--brand-2);
  font-weight: 800;
}

.news-archive-title {
  margin: 0 0 .55rem;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 800;
}

.news-archive-title a {
  color: var(--brand);
  text-decoration: none;
}

.news-archive-title a:hover,
.news-archive-title a:focus {
  color: var(--muted);
  text-decoration: underline;
}

.news-archive-excerpt {
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.news-archive-read-more {
  align-self: flex-start;
  margin-top: auto;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  padding: .65rem .9rem;
  border-radius: .55rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.news-archive-read-more:hover,
.news-archive-read-more:focus {
  background: var(--muted);
  color: #fff;
  transform: translateY(-1px);
}

.news-archive-empty {
  background: #fffdf7;
  color: var(--ink);
}

@media (max-width: 991.98px) {
  .news-archive-sidebar {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .news-archive-hero {
    padding: 2.4rem 0 2rem;
  }

  .news-archive-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: .85rem;
  }

  .news-archive-content {
    padding: 0 .15rem .15rem;
  }

  .news-archive-thumb {
    height: 230px;
    min-height: 230px;
  }

  .news-archive-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 420px) {
  .news-archive-thumb {
    height: 205px;
    min-height: 205px;
  }
}

.news-pagination {
  margin-top: 2.5rem;
}

.news-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .85rem;
  border-radius: .65rem;
  border: 1px solid rgba(45, 117, 128, .22);
  background: #fffdf7;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(45, 117, 128, .08);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.news-pagination a.page-numbers:hover,
.news-pagination a.page-numbers:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.news-pagination .page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: default;
}

.news-pagination .page-numbers.dots {
  min-width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 0 .25rem;
}

.news-pagination .prev,
.news-pagination .next {
  min-width: auto;
}

@media (max-width: 576px) {
  .news-pagination-list {
    gap: .4rem;
  }

  .news-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 .7rem;
    font-size: .92rem;
  }
}
