@charset "UTF-8";
#blog {
  /* Ukrywanie wszystkich elementów w post-grid, poza loaderem */
}
#blog .loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
#blog .post-grid.loading > *:not(.loader) {
  opacity: 0.3;
  pointer-events: none;
}
#blog .post-filters {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#blog .filter-btn {
  padding: 8px 14px;
  border: 1px solid #e1ecf8;
  background: #fff;
  color: #1f2e51;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}
#blog .filter-btn.active, #blog .filter-btn:hover {
  color: #fff;
}
#blog .filter-btn.active {
  background: #1f2e51;
}
#blog .filter-btn:hover {
  background: #2fb1da;
}
#blog .post-grid {
  display: grid;
  flex-wrap: wrap;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}
#blog .post-grid.short {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}
#blog .post-item {
  background: #f2f6fc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
#blog .post-item:nth-child(4n) {
  margin-right: 0;
}
#blog .post-item.short {
  margin-right: 0;
  margin-bottom: 15px;
}
#blog .post-item img {
  width: 100%;
}
#blog .post-item h3 {
  color: #1f2e51;
  margin-top: 0;
  margin-bottom: 0;
}
#blog .post-item p {
  color: #515151;
  margin: 0 0 2rem 0;
}
#blog .post-item a {
  background-color: #fff;
  color: rgb(16.8839285714, 25.0535714286, 44.1160714286);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
}
#blog .post-item a.title {
  background-color: transparent;
  font-weight: initial;
  padding: initial;
}
#blog .post-item .post-item-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  height: 100%; /* <-- kluczowe, musi działać w ramach równej siatki */
}
#blog .post-item .post-item-content a {
  align-self: flex-start;
}
#blog .post-thumbnail {
  position: relative;
  overflow: hidden;
}
#blog .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 285px;
  border-radius: 8px;
}
#blog .post-thumbnail .post-category-box {
  position: absolute;
  top: 12px;
  left: 12px;
}
#blog .post-thumbnail .post-category {
  background: #fff;
  color: #1f2e51;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  margin: 5px 5px 0 0;
  display: inline-block;
}
#blog .post-thumbnail .post-category + .post-category {
  left: auto;
}
#blog .pagination {
  margin-top: 30px;
  text-align: center;
}
#blog .pagination ul {
  display: inline-block;
  padding: 0;
  margin: 0;
}
#blog .pagination li {
  display: inline-block;
  margin: 0 4px;
}
#blog .pagination a,
#blog .pagination span {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e1ecf8;
  color: #1f2e51;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
#blog .pagination .current {
  background: #1f2e51;
  color: #fff;
  font-weight: bold;
}
#blog .pagination a:hover {
  background: #1f2e51;
  color: #fff;
}
#blog .pagination .prev a,
#blog .pagination .next a {
  font-weight: bold;
}
#blog .custom-post-content {
  counter-reset: item;
}
#blog .custom-post-content ul {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
}
#blog .custom-post-content li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 1.5rem;
}
#blog .custom-post-content li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  background-image: url("../img/tick.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 1rem;
}
@media (max-width: 1200px) {
  #blog .post-item,
  #blog .post-item.narrower {
    flex: 1 1 calc(33.333% - 32px);
  }
}
@media (max-width: 900px) {
  #blog .post-item,
  #blog .post-item.narrower {
    flex: 1 1 calc(50% - 32px);
  }
}
@media (max-width: 600px) {
  #blog .post-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #blog .post-grid .post-item,
  #blog .post-grid .post-item.narrower,
  #blog .post-grid .post-item.narrower:nth-child(3n) {
    flex: 1 1 100%;
  }
}
@media (max-width: 1024px) {
  #blog #blog .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*# sourceMappingURL=blog.css.map */
