.cpg-wrapper {
  font-family: "Nunito Sans", Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.cpg-search-container {
  margin-bottom: 40px;
}
.cpg-search-form {
  display: flex;
  border: 2px solid #f27b21;
  border-radius: 3px;
  overflow: hidden;
}
.cpg-search-form input[type="text"] {
  flex-grow: 1;
  border: none;
  padding: 10px;
  outline: none;
  font-size: 14px;
  color: #666;
}
.cpg-search-form button {
  background: #f58120;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.cpg-search-form button:hover {
  background: #d96918;
}

.cpg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.cpg-card {
  position: relative;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cpg-card:before,
.cpg-card:after {
  pointer-events: none;
  position: absolute;
  content: "";
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background-repeat: no-repeat;
  height: 5px;
  opacity: 0;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: opacity;
  transition-property: opacity;
}

.cpg-card:hover:before,
.cpg-card:focus:before,
.cpg-card:active:before,
.cpg-card:hover:after,
.cpg-card:focus:after,
.cpg-card:active:after {
  opacity: 1;
}

.cpg-card:before {
  bottom: 100%;
  background: -webkit-radial-gradient(
    50% 150%,
    ellipse,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  background: radial-gradient(
    ellipse at 50% 150%,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
}

.cpg-card:after {
  top: 100%;
  background: -webkit-radial-gradient(
    50% -50%,
    ellipse,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  background: radial-gradient(
    ellipse at 50% -50%,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
}

.cpg-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cpg-title {
  float: left;
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 25px !important;
  color: #f58120;
  font-weight: bold;
  line-height: 1;
  width: 100%;
}
.cpg-title a {
  color: #f58120;
  text-decoration: none;
}

.cpg-date {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cpg-date svg {
  width: 14px;
  height: 14px;
  fill: #000;
}

.cpg-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.cpg-excerpt {
  font-size: 14px;
  color: #000000;
}

.cpg-card-footer {
  padding: 0 30px 30px;
  display: flex;
  justify-content: flex-end;
}

.cpg-read-more {
  font-family: "Raleway", Arial, sans-serif !important;
  background-color: #3fa9c6 !important;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  padding: 10px 15px;
  display: inline-block;
  margin: 5px 3px 5px 3px;
  text-transform: uppercase;
  line-height: 1.4em;
  font-weight: 600;
  font-size: 12px;
  outline: none;
  position: relative;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.cpg-read-more:hover {
  opacity: 0.85;
  color: #fff;
}

.cpg-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cpg-pagination .page-numbers {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #3fa9c6 !important;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border-radius: 5px;
  background-color: #fff !important;
  line-height: 1.9em;
}
.cpg-pagination .page-numbers.current {
  background-color: #3fa9c6 !important;
  color: #fff;
  border-color: #3fa9c6 !important;
}
.cpg-pagination .page-numbers:hover:not(.current) {
  background-color: #3fa9c6 !important;
  color: #fff !important;
}
