/* Blog, Category, Archive page-specific styles */

/* Hero-like page header with home hero background */
.page-blog .page-header,
.archive-page .page-header,
.category-page .page-header {
    background: linear-gradient(rgba(41,81,76,0.55), rgba(41,81,76,0.55)), url('/wp-content/themes/briotheme/assets/images/hero_bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 6rem 2rem 4rem;
}

.page-blog .page-title,
.archive-page .page-title,
.category-page .page-title,
.page-blog .page-subtitle,
.archive-page .page-subtitle,
.category-page .page-subtitle {
    color: #ffffff;
}

/* Preserve full image inside fixed thumbnail container */
.page-blog .post-thumbnail img,
.archive-page .post-thumbnail img,
.category-page .post-thumbnail img {
    width: 100%;
    height: auto; /* preserve aspect ratio, avoid distortion */
    border-radius: 12px; /* nice rounded corners for image */
}

/* Card grid: 1-2-1-2 pattern on desktop */
.page-blog .posts-grid,
.archive-page .posts-grid,
.category-page .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.page-blog .blog-card,
.archive-page .blog-card,
.category-page .blog-card {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.page-blog .blog-card img,
.archive-page .blog-card img,
.category-page .blog-card img {
    border-radius: 0;
}
/* Every 1st, 4th, 7th... spans full width */
.page-blog .posts-grid .blog-card:nth-child(3n+1),
.archive-page .posts-grid .blog-card:nth-child(3n+1),
.category-page .posts-grid .blog-card:nth-child(3n+1) {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .page-blog .posts-grid,
    .archive-page .posts-grid,
    .category-page .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Category chips under image */
.page-blog .post-cats,
.archive-page .post-cats,
.category-page .post-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-blog .post-cats li a,
.archive-page .post-cats li a,
.category-page .post-cats li a {
    display: inline-block;
    background: #fbffe3;
    color: #29514c;
    border: 1px solid #dbe7b0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.page-blog .post-title,
.archive-page .post-title,
.category-page .post-title {
    margin: 0.5rem 0 0.4rem;
}

/* Meta row: date and author */
.page-blog .post-meta,
.archive-page .post-meta,
.category-page .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
}

/* Pagination Styling */
.page-blog .nav-links,
.archive-page .nav-links,
.category-page .nav-links {
    display: flex;
    justify-content: center;
}
.page-blog .navigation.pagination,
.archive-page .navigation.pagination,
.category-page .navigation.pagination {
    margin: 3rem 0;
    text-align: center;
}

.page-blog .navigation.pagination ul.page-numbers,
.archive-page .navigation.pagination ul.page-numbers,
.category-page .navigation.pagination ul.page-numbers {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links .page-numbers a,
.nav-links .page-numbers span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-links .page-numbers a:hover {
  background: #2c7a4b;
  color: #fff;
  border-color: #2c7a4b;
  box-shadow: 0 3px 6px rgba(44,122,75,0.25);
}

.nav-links .page-numbers.current {
  background: #2c7a4b;
  color: #fff;
  font-weight: 600;
  border-color: #2c7a4b;
  cursor: default;
}

.nav-links .page-numbers.dots {
  border: none;
  box-shadow: none;
  background: transparent;
  color: #888;
  padding: 10px 6px;
}

.blog-sidebar ul {
    list-style: none;
    padding-left: 0;
}
.blog-sidebar ul.children {
    padding-left: 1rem;
}