/* hide default pagination (we keep it in markup for fallback/SEO) */
.uagb-post-pagination-wrap { display: none !important; }

/* grid and items - adjust to match your theme */
.uagb-block-ajax { margin: 0 auto; }
.uagb-post__inner-wrap { border: 1px solid #eee; padding: 12px; margin-bottom: 12px; background: #fff; border-radius: 6px; }
.uagb-post__title a { color: #222; text-decoration: none; }

/* load more UI */
.wb-loadmore-wrap { text-align:center; margin:24px 0; }
.wb-loadmore-btn { padding: 10px 18px; border-radius:6px; border: 1px solid #ddd; background: #0e55a4; cursor: pointer; font-weight:600; color:#fff; }
.wb-loadmore-spinner { margin-left: 10px; font-size: 14px; display:inline-block; vertical-align: middle; }

/* Container grid: 2 columns on desktop, 1 on small screens */
.uagb-post-grid.uagb-post__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

.page-template-page-template-blog-ajax .wp-block-uagb-container{
    margin-top : 100px;
}

/* Responsive breakpoint */
@media (max-width: 768px) {
  .uagb-post-grid.uagb-post__items {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Card */
.wb-post-card {
  background: #0e55a4;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 22, 28, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 100%;
}

/* Make whole card clickable */
.wb-post-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Thumbnail styles */
.wb-post-card__thumb {
  width: 100%;
  aspect-ratio: 16/9; /* keeps consistent image height */
  overflow: hidden;
  display: block;
  background: #f5f5f7;
}
.wb-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no image */
.wb-post-card__thumb--placeholder {
  display: block;
  min-height: 140px;
  background: linear-gradient(90deg, #f0f0f2, #e9e9ec);
}

/* Body area padding */
.wb-post-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

/* Title */
.wb-post-card__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  text-align: center;
}

/* Meta */
.wb-post-card__meta {
  font-size: 0.86rem;
  color: #6b7280;
}

/* Excerpt */
.wb-post-card__excerpt {
  font-size: 0.95rem;
  color: #374151;
  margin-top: 6px;
  flex: 1 1 auto; /* take remaining space to keep CTA bottom-aligned */
}

/* CTA */
.wb-post-card__cta {
  margin-top: 12px;
  /*display: inline-flex;*/
  display: block;
  margin: 0 auto;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Hover / focus effect */
.wb-post-card:hover,
.wb-post-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(18, 22, 28, 0.10);
}

/* Small utility for screen-reader-only text */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Load more wrapper alignment */
.wb-loadmore-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.wp-block-button__link{
    background: #ffffff;
    color: #0e55a4;
    background: #ffffff;
    border-top-width: 4px;
    border-left-width: 3px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-color: #00d084;
    border-style: solid;
}
