/* goCaboVerde.pl - poradniki / kategorie */
.category-page {
  padding: 32px 0 46px;
  color: #263746;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

.category-page h1,
.category-page h2,
.category-page h3 {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-transform: none;
  letter-spacing: -0.015em;
}

.category-header {
  max-width: 900px;
  margin-bottom: 26px;
}

.category-header__back {
  display: inline-block;
  margin-bottom: 8px;
  color: #d96b00;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.category-header h1 {
  margin: 0;
  color: #122e44;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
}

.category-header__description {
  margin-top: 10px;
  color: #536575;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 300;
}

.category-header__description p {
  margin: 0 0 8px;
}

.category-header__description p:last-child {
  margin-bottom: 0;
}

.category-header__cta {
  margin: 13px 0 0;
}

.category-header__cta a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #e6ebee;
  border-radius: 8px;
  background: #f8fafb;
  color: #d96b00;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.category-header__cta a:hover {
  border-color: #f4c79d;
  background: #fffaf5;
}

.category-directory {
  margin: 0 0 30px;
  padding: 20px 22px 22px;
  border: 1px solid #e7ecef;
  border-radius: 12px;
  background: #f8fafb;
}

.category-directory > h2 {
  margin: 0 0 14px;
  color: #122e44;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 500;
}

.category-directory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-directory__group h3 {
  margin: 0 0 9px;
  color: #344f63;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

.category-directory__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-directory__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e0e7ec;
  border-radius: 8px;
  background: #fff;
  color: #29475d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

.category-directory__links a:hover {
  border-color: #f4c79d;
  color: #d96b00;
}

.category-results {
  margin-top: 4px;
}

.category-results__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f2;
}

.category-results__heading h2 {
  margin: 0;
  color: #122e44;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 500;
}

.category-results__heading span {
  flex: 0 0 auto;
  color: #7b8994;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 300;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  overflow: hidden;
  border: 1px solid #e7ecef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 46, 68, 0.035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.category-card:hover {
  transform: translateY(-1px);
  border-color: #dce4e9;
  box-shadow: 0 7px 20px rgba(18, 46, 68, 0.06);
}

.category-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf1f4;
}

.category-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.015);
}

.category-card__body {
  padding: 14px 16px 15px;
}

.category-card__category {
  display: inline-block;
  margin-bottom: 6px;
  color: #d96b00;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.category-card h3 {
  margin: 0;
  color: #122e44;
  font-size: 18px;
  line-height: 1.38;
  font-weight: 500;
}

.category-card h3 a {
  color: inherit;
}

.category-card h3 a:hover {
  color: #d96b00;
}

.category-card__summary {
  margin: 7px 0 0;
  color: #61717f;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
}

.category-card__meta {
  margin-top: 10px;
  color: #87939d;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 300;
}

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.category-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pagination__page,
.category-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  background: #fff;
  color: #29475d;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.category-pagination__page {
  min-width: 38px;
  padding: 0 10px;
}

.category-pagination__arrow {
  padding: 0 13px;
}

.category-pagination__page:hover,
.category-pagination__arrow:hover {
  border-color: #f2c59c;
  color: #d96b00;
}

.category-pagination__page.is-current {
  border-color: #d96b00;
  background: #fff7ef;
  color: #b95b00;
}

.category-pagination__ellipsis {
  min-width: 24px;
  text-align: center;
  color: #87939d;
}

.category-empty {
  padding: 24px;
  border: 1px solid #e7ecef;
  border-radius: 10px;
  background: #f8fafb;
  color: #61717f;
  font-size: 15px;
}

@media (max-width: 991px) {
  .category-page {
    padding-top: 26px;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .category-page {
    padding: 22px 0 34px;
  }

  .category-header {
    margin-bottom: 21px;
  }

  .category-header h1 {
    font-size: 29px;
    line-height: 1.22;
  }

  .category-header__description {
    margin-top: 8px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .category-directory {
    margin-bottom: 24px;
    padding: 16px;
  }

  .category-directory > h2 {
    font-size: 21px;
  }

  .category-directory__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-directory__links {
    gap: 6px;
  }

  .category-results__heading {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .category-results__heading h2 {
    font-size: 22px;
  }

  .category-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card__body {
    padding: 13px 15px 14px;
  }

  .category-card h3 {
    font-size: 18px;
  }

  .category-pagination {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .category-pagination__pages {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .category-pagination__arrow {
    order: 2;
  }
}
