.page-template-page-network-platform .site-nav .menu > li:not(.header__cta) > a {
  color: var(--default-white);
}

.page-template-page-network-platform .is-stuck:not(.is-open) .site-nav .menu > li:not(.header__cta) > a {
  color: inherit;
}

/* =========================================================
   HERO + FILTERS
  ========================================================= */

.platform-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  top: 0;
  height: 600px;
}

.platform-hero__wrapper {
  position: relative;
  z-index: 9;
  padding-bottom: 48px;
  padding-top: 152px;
}

.platform-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      color-mix(in srgb, var(--primary-color) 85%, transparent) 18%,
      color-mix(in srgb, var(--primary-color) 75%, transparent) 35%,
      color-mix(in srgb, var(--primary-color) 15%, transparent) 65%);
  z-index: 1;
  pointer-events: none;
}

.org-modal-container {
  padding: 0 48px 48px;
  max-height: 500px;
  overflow: auto;
  /* vertical scroll*/
}

.platform-hero__title {
  margin-top: 0;
  color: var(--default-white);
}

.platform-hero__desc {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--default-white);
  margin-bottom: 40px;
}

.platform-hero__filters {
  width: 100%;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accent-color);
  border-radius: 100px;
}

.platform-hero__filters p {
  margin-bottom: 0;
}

/* =========================================================
   CONTENT (GRID)
  ========================================================= */
.platform-content {
  padding: 80px 0 160px;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 60px;
}

.networking-platform-thumb {
  width: 100%;
  height: 290px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  cursor: pointer;
}

.country-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 16px;
  background-color: #093DA0;
  border-radius: 50px;
}

.country-badge .fi {
  width: 16px;
  position: relative;
  top: 0px;
}

.country-badge .country-badge__label {
  margin-left: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--default-white);
  letter-spacing: 2px;
}

.networking-platform-title {
  display: flex;
  margin: 16px 0 0;
}

.networking-platform-title__btn {
  border: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  cursor: pointer;
}

.org-card__topic-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 9999px;
}

.networking-platform-description {
  margin-top: 12px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
}

.networking-platform__pagination {
  margin-top: 64px;
}



/* =========================================================
   FILTERS
  ========================================================= */
.network-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F36F2F;
  border-radius: 40px;
}

.network-filters__item {
  position: relative;
  flex-shrink: 0;
}

.network-filters__input,
.network-filters__select {
  margin: 0;
  appearance: none;
  border: none;
  background: white;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 13px;
  min-width: 180px;
  height: 43px;
  color: var(--primary-color);
  cursor: pointer;
}

.network-filters__input {
  padding-left: 46px;
}

.network-filters__submit {
  padding: 12px 28px !important;
  min-height: 43px !important;
}

.network-filters__select--country {
  max-width: 195px;
}

.network-filters__select--topic {
  max-width: 195px;
}

.network-filters__item .field-icon {
  position: absolute;
}

.network-filters__item .field-icon.loop-icon {
  top: 9px;
  left: 12px;
}

.network-filters__item .field-icon.arrow-icon {
  top: 16px;
  right: 12px;
}

/* .filters-form__mobile {
  display: none;
} */

/* =========================================================
   MODAL
  ========================================================= */
.org-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding-top: 10px;
}

.org-modal.is-open {
  display: flex;
}

.org-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.org-modal__dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  min-height: 90vh;
  background: #fff;
  z-index: 1;
}

.org-modal__close {
  position: absolute;
  top: -34px;
  right: 0px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: .2s opacity;
}

.org-modal__close:hover {
  opacity: 1;
}

.org-modal__close img {
  width: 20px;
  height: 20px;
}

.org-modal-cover {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.org-modal-logo {
  width: 180px;
  height: 180px;
  position: absolute;
  bottom: -20px;
  left: 48px;
  -webkit-box-shadow: -10px 19px 16px -5px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: -10px 19px 16px -5px rgba(0, 0, 0, 0.2);
  box-shadow: -10px 19px 16px -5px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  z-index: 999;
  padding: 0;
}

.org-modal-logo img {
  width: 100%;
  height: 100%;
}


/* Tabs – wygląd przycisków (opcjonalnie dopasuj do swojej figmy) */
.org-modal-tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 32px;
  background: rgb(30 42 123 / 10%);
  border-radius: 999px;
  padding: 4px;
}

.org-modal-tabs__tab {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #1E2A7B;
}

.org-modal-tabs__tab.is-active {
  background: #093DA0;
  color: #fff;
}

/* Panele tabów – tu jest klucz: domyślnie ukryte */
.org-modal-tabs__panels {
  margin-top: 8px;
}

.org-modal-tabs__panel {
  display: none;
}

.org-modal-tabs__panel.is-active {
  display: block;
}

.org-modal-title {
  margin-top: 56px;
  margin-bottom: 0;
  font-size: 72px;
  line-height: 72px;
  font-weight: 400;
}

.org-modal-topic-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 9999px;
}

.org-modal-short-desc {
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--default-dark);
}

.org-modal-website {
  color: var(--primary-color);
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  text-decoration: none;
}

.org-modal-website:hover {
  text-decoration: underline;
}

.org-modal-socials {
  margin-top: 0;
  margin-bottom: 12px;
  list-style: none;
  padding: 0;
  display: flex;
}

.org-modal-socials li {
  margin-right: 16px;
}

.org-modal-content-wrapper {
  position: relative;
}

.org-modal-content-wrapper .country-badge {
  right: -30px;
  top: -35px;
}

.org-modal-tabs__panel h3 {
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 8px;
  margin-top: 0;
  font-weight: 700;
}

.org-modal-tabs__panel p {
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  margin-bottom: 16px;
}

.org-modal-links {
  display: flex;
}

.org-modal-links a {
  display: flex;
  align-items: center;
  margin-right: 16px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  color: var(--primary-color);
  text-decoration: none;
}

.org-modal-links a:hover {
  text-decoration: underline;
}

.org-modal-links a img {
  margin-right: 8px;
}

/* =========================================================
   Loading state
  ========================================================= */
.org-loading .org-modal__loading {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filters-form__toggle {
  display: none !important;
}

/* =========================================================
   RESPONSIVE
  ========================================================= */
@media (max-width: 1270px) {
  .platform-hero__filters {
    flex-direction: column;
  }

  .platform-hero__filters .platform-hero__cta {
    margin-top: 12px;
  }
}

@media (max-width: 996px) {
  .platform-hero__filters {
    padding: 24px 46px;
  }

  .network-filters {
    flex-wrap: wrap;
  }

  .posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 60px;
  }

  /* Modal */
  .org-modal__dialog {
    max-width: 750px;
  }

  .org-modal-title {
    margin-top: 46px;
    font-size: 51px;
    line-height: 51px;
  }

  .org-modal-website {
    overflow-wrap: break-word;
  }
}

/* Mobile layout */
@media (max-width: 692px) {
  .posts__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 32px;
    row-gap: 60px;
  }

  .platform-content {
    padding: 80px 0 120px;
  }

  .network-filters {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
  }

  .network-filters__select--country,
  .network-filters__select--topic {
    max-width: 100%;
  }

  .filters-form {
    display: none;
  }

  .filters-form__toggle {
    display: block !important;
  }

  .platform-hero__filters {
    position: relative;
    padding: 0;
    align-items: flex-start;
    border-radius: 0;
    background-color: transparent;
  }

  .js-filters-toggle img {
    width: 17px;
  }

  .filters-form__toggle-form {
    background-color: #223b9f;
    color: #fff;
    box-shadow: none;
    border: 0;
    width: 45px !important;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 80px;
    transition: .2s opacity;
  }

  .filters-form__toggle-form:hover {
    opacity: 0.8;
  }

  .js-filters-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
  }

  .platform-hero__filters .filters-form__toggle {
    display: inline-flex !important;
    cursor: pointer;
  }

  .filters-form.is-open {
    display: block;
    position: fixed;
    padding: 0;
    border-radius: 0;
    inset: 0;
    z-index: 9998;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
  }

  .filters-form.is-open .network-filters {
    border-radius: 0;
    padding: 40px;
    height: 100%;
    padding-top: 174px;
  }

  /* Modal */
  .org-modal.is-open {
    padding-top: 0px;
  }

  .org-modal__dialog {
    max-width: 100%;
    min-height: 100vh;
    max-height: 100vh;
  }

  .org-modal-title {
    margin-top: 54px;
    font-size: 36px;
    line-height: 36px;
  }

  .org-modal-cover {
    height: 270px;
  }

  .org-modal-container {
    padding: 0 24px 48px;
    max-height: calc(100vh - 270px);
  }

  .org-modal-topic-chip {
    padding: 7px 14px;
    font-size: 14px;
  }

  .org-modal-links {
    flex-direction: column;
  }

  .org-modal-logo {
    width: 140px;
    height: 140px;
    bottom: -30px;
    left: 25px;
  }

  .org-modal-content-wrapper .country-badge {
    right: -3px;
    top: -40px;
  }

  .org-modal__close {
    z-index: 999;
    top: 18px;
    right: 17px;
    background-color: var(--accent-color);
    opacity: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
}