:root {
  --bs-body-font-family: "Montserrat", sans-serif;
  --color-main: #009846;

  --page-width: 100%;

  font-size: 6px;
  --bs-body-font-size: 2.2rem !important;
}

@media (min-width: 576px) {
  :root {
    --page-width: 540px;
  }
}

@media (min-width: 768px) {
  :root {
    --page-width: 720px;
  }
}

@media (min-width: 992px) {
  :root {
    --page-width: 960px;
    font-size: 8px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-width: 1140px;
  }
}

@media (min-width: 1400px) {
  :root {
    --page-width: 1320px;
  }
}

body {
  --bs-body-font-family: "Montserrat", sans-serif;
  margin: 0;
  font-optical-sizing: auto;
  font-style: normal;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.post a {
  color: var(--color-main) !important;
}

.site-title {
  font-family: "Podium Sharp";
  font-size: 4rem;
  transition: all 200ms;
}

hr {
  height: 4px;
  background-color: var(--color-main);
  border: none !important;
  opacity: 1 !important;
}

footer {
  margin-top: auto;
  padding-top: 50px;
  background-color: #000;
  font-size: 16px;
  color: #fff;
  img {
    height: 120px;
  }

  .menu {
    padding: 0;
    margin: 0;
    list-style: none;
    a {
      color: #fff;
      text-decoration: none;
    }
  }
  hr {
    width: 36px;
  }
  .bar {
    margin-top: 35px;
  }

  .logo {
    margin-bottom: 12px;
  }
}

@media (max-width: 991.98px) {
  footer .bar {
    height: 100px;
    text-align: center;
  }
  footer .bar > div {
    flex-direction: column;
  }
}

.bar {
  width: 100%;
  height: 50px;
  background-color: var(--color-main);
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 400;
  img {
    transition: all 180ms;
  }
  img:hover {
    transform: scale(1.1);
  }
}
#header-main {
  position: sticky;
  top: -50px;
  z-index: 99999;
  background: white;
  box-shadow: 0 -10px 20px 15px #0000002e;
  .row {
    position: relative;
  }
}
.header-branding {
  height: 110px;
  gap: 30px;

  text-decoration: none;
  color: #000;
  font-weight: 540;
  transition: all 200ms;
  img {
    height: 100%;
  }
}

.scrolled {
  .header-branding {
    height: 80px;
  }

  .site-title {
    font-size: 3rem;
  }
  .header-branding-row {
    margin: 12px 0;
  }

  #primary-menu > li {
    font-size: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

.header-branding-row {
  margin: 30px 0;
  transition: all 200ms;
}

.social-media-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
  font-size: 24px;
  a {
    color: white !important;
    transition: color 150ms;
  }
}

.social-media-links .youtube:hover {
  color: #ff0033 !important;
}

.social-media-links .facebook:hover {
  color: #0866ff !important;
}

#primary-menu {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--color-main);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  a {
    text-decoration: none;
    color: #000;
  }

  li {
    list-style: none;
  }

  > li > a {
    font-family: "Podium Sharp";
  }

  ul {
    padding: 0;
  }
  > li {
    padding: 15px 30px;
    transition: all 200ms;
  }
  > li:hover {
    background-color: var(--color-main);
    > a {
      color: #fff;
    }

    > ul {
      display: flex;
    }
  }

  > li:hover::before {
  }

  > li > .sub-menu {
    box-shadow: 0 -0 20px 0 #00000018;
  }
}

@media (max-width: 1399.98px) {
  #primary-menu {
    & > li {
      padding: 15px 10px;
      font-size: 20px;
    }
  }
}

#mobile-navigation {
  top: 0px;
  position: absolute;
}

@media (max-width: 991.98px) {
  #site-navigation {
    display: none;
  }

  .search-form-desktop {
    display: none !important;
  }

  .search-form {
    font-size: 2.5rem !important;
  }
}

@media (min-width: 992px) {
  #mobile-navigation {
    display: none;
  }

  #site-navigation {
  }

  #burger-wrapper {
    display: none;
  }
}

#menu-burger {
  background-color: transparent;
  border: none;
  font-size: 40px;
}

.site-navigation-wrapper {
  position: sticky;
  top: 32px;
  z-index: 999;
  background-color: white;
}

#primary-menu > li:has(.current-menu-item) > a {
  border-bottom: 10px solid var(--color-main);
  padding: 10px 0px;
}

#primary-menu > li > .sub-menu {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  transform: translateY(100%);
  background-color: white;
  display: none;
  z-index: 12;
  justify-content: space-evenly;
  gap: 12px;
  padding: 32px 12px;
  ul {
    display: flex;
    flex-direction: column;
    color: black;
    font-size: 16px;
    gap: 4px;
  }

  > li > a {
    font-size: 14px;
  }

  > li:has(li) > a {
    color: #000000;
    font-size: 14px;
  }

  > li > ul a {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
  }

  > li > ul a,
  > li > a {
    position: relative;
  }

  > li > ul a::after,
  > li > a::after {
    content: "";
    position: absolute;
    background-color: var(--color-main);
    height: 4px;
    width: 0%;
    bottom: -3px;
    left: 0;
    transition: width 180ms;
  }

  > li > ul a:hover::after,
  > li > a:hover::after {
    width: 100%;
  }
}

#primary-menu > li > .sub-menu::before {
  content: "";
  background-color: transparent;
  height: 22px;
  width: 100%;
  top: -20px;
  left: 0;
  position: absolute;
}

.search-form,
#searchform {
  background-color: #f5f5f5;
  height: 60px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 32px;
  font-size: 1.5rem;
  input[type="text"] {
    border: none;
    border-radius: 5px;
    background-color: transparent;
    outline: none;
    flex: 1;
  }

  input[type="image"] {
    height: 32px;
  }

  input[type="submit"] {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
  }
}

#searchform {
  width: fit-content;
}

/* POSTS GRID BLOCK */
.full-background-row {
  position: relative;
}
.full-background {
  content: "";
  position: absolute;
  min-width: 100dvw !important;
  bottom: 0;
  top: 0;
  z-index: -10;
  background-size: cover;
  background-position: center;
  left: 0;
  right: 0;
}

@media (min-width: 576px) {
  .full-background {
    left: calc((100dvw - 550px) / -2);
  }
}

@media (min-width: 768px) {
  .full-background {
    left: calc((100dvw - 730px) / -2);
  }
}

@media (min-width: 992px) {
  .full-background {
    left: calc((100dvw - 970px) / -2);
  }
}

@media (min-width: 1200px) {
  .full-background {
    left: calc((100dvw - 1150px) / -2);
  }
}

@media (min-width: 1400px) {
  .full-background {
    left: calc((100dvw - 1330px) / -2);
  }
}

.posts-grid-post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #000;
  text-decoration: none;
}

.posts-grid-img-wrapper {
  height: 240px;
  position: relative;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.posts-grid-tags {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  bottom: 12px;
  left: 12px;
}

.category-filter-tags {
  display: flex;
  gap: 8px;
  overflow: scroll;
  .tag {
    min-width: fit-content;
  }
}

.tag {
  color: white;
  background-color: #e31e24;
  font-size: 12px;
  padding: 3px 32px;
  height: 26px;
  width: fit-content;
  display: inline-block;
  text-decoration: none;
}
.posts-grid-date {
  font-size: 12px;
  color: #828282;
  margin: 16px 0;
}

.posts-grid-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.posts-grid-excerpt {
  font-size: 14px;
  p {
    word-break: break-word;
  }
}

.posts-grid-read-more {
  font-size: 16px;
  color: var(--color-main);
  margin-top: auto;
  font-weight: 700;
}

.posts-grid .btn {
  font-family: "Podium Sharp";
}

/* POSTS LIST BLOCK */

.posts-list-post a {
  display: flex;
  text-decoration: none;
  background-color: #fff;
  color: #000;
}

.posts-list-date {
  background-color: #009846;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  min-width: 140px;
}

.posts-list-date span:nth-child(1) {
  font-size: 60px;
}

@media (max-width: 767.99px) {
  .posts-list-post a {
    flex-direction: column;
  }
  .posts-list-date span:nth-child(1) {
    font-size: 32px;
  }
}

.posts-list-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.header-line {
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  padding-left: 30px;
  font-family: "Podium Sharp";
  margin-bottom: 36px;
  margin-top: 32px;
  --header-line-color: var(--color-main);
}
.subtitle {
  font-size: 3rem;
  font-family: "Podium Sharp";
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.header-line::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  left: 0;
  top: 0;
  background-color: var(--header-line-color);
}
h3.header-line {
  font-size: 3rem;
}
.entry-content {
  font-size: 16px !important;
  h1,
  h2,
  h3 {
    font-family: "Podium Sharp";
    font-weight: 500;
    text-transform: uppercase;
  }

  h4 {
    font-size: 2.4rem;
    font-weight: 500;
    position: relative;
    padding-left: 30px;
    font-family: "Podium Sharp";
    margin-bottom: 36px;
  }
  h4::before {
    content: "";
    position: absolute;
    width: 10px;
    height: calc(100% + 10px);
    left: 0;
    top: -5px;
    background-color: var(--color-main);
  }
}
.partnerzy-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.partnerzy .btn {
  font-family: "Podium Sharp";
}

.partner {
  height: 120px;
  display: block;
  img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}

.slider-block {
  margin-bottom: 50px !important;
}

.post-slider {
  height: 550px;
  position: relative;
}

.slider-wrapper {
  position: relative;
}

.post-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide img {
  width: calc(100% + 100px);
  height: 100%;
  object-fit: cover;
  max-width: 100dvw;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-top: 10px solid var(--color-main);
}
.slide-img-wrapper {
  height: 100%;
  position: relative;

  margin-top: 0;
}

.slide-img-wrapper:before {
  content: "";
  z-index: 1;
  position: absolute;

  left: 0;
  height: 10px;
  width: 100%;
  background-color: var(--color-main);
  display: none;
}

.slide a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: white;
}

/* Slider Navigation Dots */
.slider-nav {
  position: relative;
  bottom: 310px;
}
.slider-description {
  position: absolute;
  top: 320px;
}

.slider-description h3 {
  font-family: "Podium Sharp";
  font-size: 3.8rem;
  font-weight: 700;
}

.slider-description .btn {
  font-family: "Podium Sharp";
  margin-top: 24px;
}

.slider-dot {
  display: inline-block;
  width: 32px;
  height: 7px;
  margin: 0 5px;
  border: 1px solid white;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

.slider-dot:hover {
  background-color: #999;
}

.slider-dot.active {
  background-color: var(--color-main);
  border-color: var(--color-main);
}

@media (max-width: 767.99px) {
  .post-slider {
    height: 300px;
  }

  .slider-nav {
    bottom: 0px;
  }
  .slider-description {
    top: 50px;
  }
  .slider-description h3 {
    font-size: 4rem;
  }

  .posts-grid > .row {
    gap: 12px;
  }

  .videos-wrapper {
    flex-direction: column;
  }

  .reklama-description {
    margin: 12px !important;
    top: 20px !important;
  }
}

.btn {
  background-color: var(--color-main) !important;
  color: white !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 22px !important;
  padding: 12px 45px !important;
  border-radius: 0 !important;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.102);
  transition: all 150ms;
}

.btn:hover::after {
  width: 100%;
}

.nav-links {
  text-align: center;
  flex-wrap: wrap;
  a {
    text-decoration: none;
    color: #000;
  }
}

.navigation.pagination {
  justify-content: center;

  .nav-links {
    display: flex;
  }

  a,
  .current,
  .dots {
    padding: 8px 16px;
    color: #000;
    text-decoration: none;
    background-color: #ececec;
    text-transform: uppercase;
    font-size: 16px;
    padding: 12px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 36px;
    text-align: center;
  }

  .next,
  .prev {
    width: fit-content;
    padding-inline: 35px;
  }
  .next,
  .prev,
  .current {
    background-color: var(--color-main);
    color: #fff;
  }

  .prev {
    margin-right: 60px;
  }

  .next {
    margin-left: 60px;
  }
}

@media (max-width: 991.99px) {
  .navigation.pagination {
    .next,
    .prev {
      width: 100%;
      margin: 0;
    }
    .nav-links {
      justify-content: center;
    }
  }
}

.entry-title {
  font-family: "Podium Sharp";
}

.hr-gray,
.wp-block-separator {
  height: 1px;
  background-color: #ececec;
}

.post-thumbnail img {
  width: 100%;
}

.entry-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.latests {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  a {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #a7a4a4;
    display: inline-block;
    padding: 12px 0;
  }
  h3 {
    font-size: 2rem;
  }
}
.reklama-description h3 {
  font-family: "Montserrat" !important;
  font-weight: 700;
}

.reklama-description p {
  font-size: 1.8rem;
}

.videos-wrapper {
  display: flex;
  gap: 20px;
}

.video-large-wrapper {
  flex: 2;
}

.video-small-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  > a {
    flex: 1;
    min-height: calc(50% - 10px);
  }
}

.video-thumbnail {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.video-thumbnail-wrapper {
  height: 100%;
  position: relative;
}

.video-thumbnail-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(255, 255, 255, 0) 80%
  );
}

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

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  color: white;
  padding: 10px;
}

.video-date {
  font-size: 14px;
  margin: 0;
}

.video-title {
  font-size: 18px;
  margin: 5px 0 0 0;
  font-weight: 600;
}

.management-member-photo {
  img {
    width: 100%;
    height: auto;
  }
}
.management-member {
  h2 {
    font-family: "Podium Sharp";
    font-size: 3rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 12px;
  }

  h3 {
    font-size: 1.6rem;
  }
}

.management-member-mail {
  font-size: 1.6rem;
  a {
    text-decoration: none;
    color: black;
  }
  i {
    color: var(--color-main);
  }
}

/* Rozgrywki Block Styles */
#rozgrywki-tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 1rem;
}

#rozgrywki-tabs .tab-button {
  background-color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#rozgrywki-tabs .tab-button:hover {
  background-color: var(--color-main);
  color: white;
}

#rozgrywki-tabs .tab-button.active {
  background-color: var(--color-main);
  color: white;
  font-weight: bold;
}

#table-container {
  overflow-x: scroll !important;
}

#rozgrywki-tbody tr > td:first-child {
  display: flex;
  font-weight: bold;
  gap: 12px;
  align-items: center;

  > div {
    width: 80px;
    img {
      width: 100%;
      object-fit: contain;
    }
  }
}

.rozgrywki-filters {
  margin-bottom: 1rem;
}

.rozgrywki-filters select {
  margin-right: 1rem;
  padding: 5px;
}

.rozgrywki-block select {
  border: none;
  padding: 16px 24px;
}

.rozgrywki-block table {
  width: 100%;
  border-collapse: collapse;
}

.rozgrywki-block th,
.rozgrywki-block td {
  padding: 8px;
  text-align: left;
}

.rozgrywki-block tr:nth-child(2n) {
  background-color: #f2f2f2;
}

.rozgrywki-block img {
  height: 65px !important;
}

.reklama {
  position: relative;
  top: 100px;
}

.reklama h4 {
  font-weight: 400;
  font-size: 24px;
}

.reklama .post-slider {
  box-shadow: 0 25px 26px -10px rgba(0, 0, 0, 0.298);
}

.reklama .header-line {
  color: white;
}
.reklama .slide a {
  color: black !important;
  font-family: "Montserrat" !important;
}
.reklama-description {
  margin-left: 80px;
  top: 100px;
  min-height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  .btn {
    margin-top: auto;
    width: fit-content;
  }
  hr {
    background-color: white;
  }
}

.reklama-description h3 {
  font-family: "Montserrat" !important;
  font-weight: 700;
}

.reklama-wrapper {
  margin-bottom: 0 !important;
}

.reklama-bottom-margin {
  margin-bottom: 128px !important;
}

.komunikaty {
  padding-top: 100px;
  padding-bottom: 100px;
}

.mobile-menu-list {
  padding: 0 !important;
}
.mobile-menu li {
  overflow: hidden;
  height: 42px;
  background-color: #ffffff;

  position: relative;
  font-size: 18px;
  border-bottom: 1px solid #bdbdbd;
}

.mobile-menu li:has(li)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 41px;
  background-image: url("../img/chevron-down.svg");
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
  transition: all 150ms;
}

.mobile-menu li.active:has(li)::after {
  transform: rotate(180deg);
}

.mobile-menu li:hover {
  background-color: rgb(242, 242, 242);
}

.mobile-menu a {
  text-decoration: none;
  color: #000;
  padding: 8px;
  display: inline-block;
}

.mobile-menu li.active {
  height: auto;
}

.mobile-menu {
  overflow: hidden;
  height: 0px;
}

.mobile-menu.active {
  height: auto;
}
#mobile-menu {
  max-height: calc(100dvh - 200px);
  overflow: scroll;
}
#mobile-menu > li > a {
  font-weight: 530;
}

.nav-links {
  font-size: 2.4rem;
}

.fb-publish {
  color: #000;
  text-decoration: none;
  margin-left: auto;
}

.file {
  border: 1px solid var(--color-main);
  padding: 16px 32px;
  text-decoration: none;
  color: black;
  background-color: white;
  display: flex;
  font-weight: bold;
  align-items: center;
}

.download-icon {
  min-width: fit-content;
}

.row {
  --bs-gutter-x: 3rem !important;
  max-width: 100dvw;
}
