/* Styles for the blog listing (blog.html) and single-post (blog-post.html)
   pages. Layered on top of the theme's existing .ot-blog-item-one card
   component and design tokens (--theme-primary, --theme-heading-font, etc.) */

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.blog-filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  border: 1px solid rgba(var(--theme-primary), 0.35);
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-pill:hover {
  border-color: rgba(var(--theme-primary), 1);
}

.blog-filter-pill.is-active {
  background-color: rgba(var(--theme-primary), 1);
  border-color: rgba(var(--theme-primary), 1);
  color: #fff;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.blog-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #151515;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-page-btn:hover {
  border-color: rgba(var(--theme-primary), 1);
}

.blog-page-btn.is-active {
  background-color: rgba(var(--theme-primary), 1);
  border-color: rgba(var(--theme-primary), 1);
  color: #fff;
}

/* ---------- single post ---------- */

.blog-post-article {
  max-width: 820px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-post-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  background-color: rgba(var(--theme-primary), 0.1);
  color: rgba(var(--theme-primary), 1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.blog-post-tag:hover {
  background-color: rgba(var(--theme-primary), 0.2);
  color: rgba(var(--theme-primary), 1);
}

.blog-post-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.blog-post-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  width: 100%;
  /* aspect-ratio (not max-height) gives this a definite height so the img's
     height:100% below actually resolves - percentage heights need a sized
     ancestor, and max-height alone on the parent doesn't provide one. */
  aspect-ratio: 16 / 7;
}

.blog-post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

/* Images inserted via the admin's rich text editor - responsive at any
   width/aspect ratio instead of overflowing the article column. */
.blog-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-post-content h2,
.blog-post-content h3 {
  color: #fff;
  font-family: var(--theme-heading-font);
  margin: 2rem 0 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content a {
  color: rgba(var(--theme-primary), 1);
  text-decoration: underline;
}

.blog-post-content blockquote {
  border-left: 3px solid rgba(var(--theme-primary), 1);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}
