/* ===== Query Loop Styling for Press Page (Matched to First Block) ===== */

.custom-press-loop .wp-block-post {
  background-color: #ffffff;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.custom-press-loop .wp-block-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.custom-press-loop .wp-block-post-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  color: #2b2a2a;
  text-decoration: none;
  text-align: left;
}

.custom-press-loop .wp-block-post-date {
  color: #7e7e7e;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.custom-press-loop .wp-block-post-excerpt {
  margin-bottom: 16px;
  color: #444;
  font-family: 'Montserrat', sans-serif;
}

/* READ MORE Button */
.custom-press-loop .wp-block-read-more {
  display: inline-block;
  padding: 8px 20px;
  background-color: #cd191c;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
}

/* Inline layout for meta (date + button group only) */
.wp-block-group.is-layout-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pagination Normalization (applies to both span and a) */
.custom-press-loop .wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-sizing: border-box;
  text-align: center;
  min-width: 40px;
  line-height: 1.2;
}

/* Pagination wrapper */
 .wp-block-query-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  flex-wrap: wrap;
}


/* Page numbers (not current) */
.custom-press-loop .wp-block-query-pagination a {
  padding: 14px 20px;
  border: 1px solid #7e7e7e;
  border-radius: 10px;
  color: #7e7e7e;
  background-color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Hover effect for page links */
.custom-press-loop .wp-block-query-pagination a:hover {
  background-color: #cd191c;
  color: white;
  border-color: #cd191c;
}

/* Current page span (e.g. "1") */
.custom-press-loop .wp-block-query-pagination .wp-block-query-pagination-numbers span {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  color: white;
  background-color: #cd191c;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

/* Force no gap between page numbers */
.wp-block-query-pagination-numbers {
  display: flex;
  gap: 0;
}
