/* Blog listing + article pages (fonts align with home via site.css) */

.blog-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-family: var(--font-body, 'Work Sans', system-ui, sans-serif);
  color: var(--text, #171717);
}

.blog-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-intro h1 {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: var(--accent, #af5683);
}

.blog-intro p {
  margin: 0.35rem 0;
  font-size: 1.05rem;
}

.blog-count {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: 0.9rem;
  color: var(--text-muted, #525252);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  margin: 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
  overflow: hidden;
}

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

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ede6ff, #f9eef4);
}

.blog-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.blog-card-body time {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: 0.8rem;
  color: var(--text-muted, #525252);
}

.blog-card-body h2 {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.35;
  color: var(--text, #171717);
}

.blog-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted, #525252);
}

.blog-back {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: 0.95rem;
}

.blog-back a {
  color: var(--accent, #af5683);
  text-decoration: none;
}

.blog-article-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.blog-article-header time {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: 0.9rem;
  color: var(--text-muted, #525252);
}

.blog-article-header h1 {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0.5rem 0 0;
  line-height: 1.25;
}

.blog-hero {
  margin: 0 auto 2rem;
  max-width: 820px;
}

.blog-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.blog-article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* WordPress exports set inline width (e.g. 2560px) on attachment wrappers */
.blog-article-content .wp-caption,
.blog-article-content [id^='attachment_'] {
  max-width: 100% !important;
  width: 100% !important;
  margin: 1.5rem 0;
  box-sizing: border-box;
}

.blog-article-content .wp-caption a {
  display: block;
}

.blog-article-content img,
.blog-article-content .wp-caption img {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* Square letterboxed profile screenshot (see asset filenames) */
.blog-article-content .wp-caption img[src*='Bucket-List-On-Profile-Bottom-2'] {
  width: min(100%, 520px) !important;
  margin-inline: auto;
}

.blog-article-content .wp-caption-text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted, #525252);
  text-align: center;
  line-height: 1.4;
}

/* BoldGrid / Bootstrap markup from migrated posts */
.blog-article-content .boldgrid-section,
.blog-article-content .boldgrid-section .container,
.blog-article-content .boldgrid-section .row,
.blog-article-content .boldgrid-section [class*='col-'] {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  float: none;
}

.blog-article-content figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

.blog-article-content figure img {
  margin: 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  margin-top: 2rem;
}

.blog-article-content a {
  color: var(--accent, #af5683);
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 1.4rem;
}

.blog-article-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent, #af5683);
  color: var(--text-muted, #525252);
}
