/* Card Posts Grid Layout */
.card-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Card Container */
.card-post {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  min-height: 420px;
}

.card-post:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 3px 12px rgba(0,0,0,0.08);
}

/* Image Frame */
.card-post-image-frame {
  width: 100%;
  height: 210px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.card-post:hover .card-post-image {
  transform: scale(1.04);
}

/* Card Content */
.card-post-content {
  padding: 1.2rem 1.4rem 1.6rem 1.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.card-post-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.card-post-title a:hover {
  color: #0077cc;
}

.card-post-date {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0.7rem;
}

.card-post-excerpt {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.2rem;
  flex: 1 1 auto;
}

.card-post-readmore {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  font-weight: 600;
  padding: 0.55em 1.3em;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.card-post-readmore:hover {
  background: #005fa3;
  color: #fff;
}

/* No Posts Message */
.card-posts-no-posts {
  text-align: center;
  color: #888;
  font-size: 1.1rem;
  margin: 2rem 0;
}