/* Basic layout */
#cpf-wrap.cpf-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
}

/* Left - categories */
.cpf-left {
  flex: 0 0 25%;
  max-width: 250px;
}
.cpf-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cpf-category-list li {
  margin-bottom: 8px;
  list-style:none !important;
  border:1px solid #e6e6e6;
      margin-top: 0 !important;
    margin-bottom: 10px !important;
}
li.cpf-term-link.active {
    background: #000;
    color: #fff;
}
li.cpf-term-link.active a {
    color: #fff;
}
.cpf-category-list a {
  text-decoration: none;
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
}
.cpf-category-list a.active {
  font-weight: 700;
  background: #f1f1f1;
}

/* Right - posts grid */
.cpf-right {
  flex: 1 1 70%;
}
.cpf-posts-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cpf-post-item {
  border: 1px solid #e6e6e6;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  text-align: center;
}
.cpf-thumb img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.cpf-title {
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .cpf-posts-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  #cpf-wrap.cpf-wrap {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  #cpf-wrap.cpf-wrap {
    flex-direction: column;
  }
  .cpf-left {
    max-width: none;
    width: 100%;
  }
  .cpf-posts-inner {
    grid-template-columns: 1fr;
  }
}
