/* Custom Blog Index Styling */
.is-layout-grid .wp-block-post-excerpt {
  display: none;
}


.wp-block-post-details {
  width: 100%;
}

.blog-index-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* .single .wp-block-post-terms a::before {
  content: "Category:";
  display: inline-block;
  margin-right: 0.25rem;
} */

.lwf-post-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wp-block-post-terms {
  margin: 0 !important;
}

.archive .wp-block-post-terms a,
.single .wp-block-post-terms a {        
  border-radius: 20px;
        border-color: var(--wp--preset--color--accent-6);
        border-width: 0.8px;
        border-style: solid;
        font-weight: 400;
        line-height: 2.8;
        padding-top: 5px;
        padding-right: 10px;
        padding-bottom: 5px;
        padding-left: 10px;
        text-decoration: none;
}

.lwf-single-content-view {
  padding: 1rem 6rem 1rem 3.5rem !important;
}

@media screen and (max-width: 767px) {
  .lwf-single-content-view {
    padding: 1rem 1rem !important;
  }
}


.wp-block-post-terms__prefix {
  font-weight: 500;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .featured-image {
  transform: scale(1.05);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}

.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.entry-title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.entry-title a {
  color: #333;
  text-decoration: none;
}

.entry-title a:hover {
  color: #0073aa;
}

.entry-meta {
  font-size: 0.875rem;
  color: #666;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background-color: #0073aa;
  color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #e5e5e5;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    margin-bottom: 1.5rem;
  }
}

/* Post card container */
li.wp-block-post {
  background: white;
  border-radius: 10px;
  box-shadow: -1 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 380px;
}

.wp-post-block-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

/* Hover elevation */
li.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* Featured image area – shorter aspect ratio */
.wp-block-post-featured-image {
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

/* Image styling */
.wp-block-post-featured-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* Title – smaller size and less padding */
h3.wp-block-post-title {
  font-size: 1.25rem !important;
  font-weight: 600;
  line-height: 1.4;
  padding: 0;
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  color: var(--wp--preset--color--brand-teal-400);
}

h1.wp-block-post-title {
  font-size: 2.75rem !important;
  font-weight: 600;
  line-height: 1.25;
  padding: 0;
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  color: var(--wp--preset--color--brand-teal-500);
}

/* Post date */
.wp-block-post-date {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.85rem;
  color: #666;
}

.wp-container-core-post-template-is-layout-1 {
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    container-type: inline-size;
    gap: var(--wp--preset--spacing--60);
}

/* Base pagination container */
.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
  font-size: 0.95rem;
}

/* Pagination links (numbers and prev/next) */
.wp-block-query-pagination a,
.wp-block-query-pagination span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--wp--preset--color--brand-teal-400);
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  min-width: 2rem;
  text-align: center;
}

/* Active page (current) */
.wp-block-query-pagination .current {
  background-color: var(--wp--preset--color--brand-teal-400);
  color: white;
  font-weight: 600;
}

/* Hover/focus effect */
.wp-block-query-pagination a:hover {
  background-color: #e3f2fd;
  color: #1976d2;
}