/* =====================================================================
   BLOG — Listing (home.php / archive.php) + Details (single.php)
   Reuses the theme's existing tokens (--red, --navy, .container,
   .section-title, .hero-section, .cta-band, .btn-cta-*, .search-tag,
   .breadcrumb-wrap, .tag-c, .no-results--search) so the blog never
   feels like a bolt-on to the rest of the site.
   ===================================================================== */

/* ---------- Filter tags row (home.php) ---------- */
.blog-filter-tags {
  margin-top: 28px;
}

.search-tag.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- Listing layout ---------- */
.blog-listing-layout {
  padding: 64px 0 100px;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
}

/* ---------- Blog card ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(193, 31, 47, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(33, 37, 59, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(33, 37, 59, 0.10);
  border-color: rgba(193, 31, 47, 0.28);
}

.blog-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4eeee;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.06);
}

.blog-card-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26, 26, 46, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 50px;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 26px 24px 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #9a95a0;
  margin-bottom: 12px;
}

.blog-card-meta i {
  margin-right: 5px;
  color: var(--red);
}

.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--red);
}

.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.75;
  color: #6d6874;
  margin-bottom: 18px;
  flex: 1 1 auto;
}

.blog-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-pagination {
  justify-content: center;
}

/* ---------- Section heading (centered — used for "Related Articles") ---------- */
.section-heading-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* =====================================================================
   SINGLE POST (single.php)
   ===================================================================== */

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 6px;
  font-size: 14px;
  color: #5e5a62;
}

.post-meta-item i {
  color: var(--red);
  margin-right: 6px;
}

.post-featured-image {
  margin-top: 15px;
}

.single-post-layout {
  margin: 0 auto;
}

.entry-content.content-enhanced h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 44px 0 18px;
  line-height: 1.3;
}

.entry-content.content-enhanced h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.35;
}

.entry-content.content-enhanced p {
  margin-bottom: 20px;
}

.entry-content.content-enhanced ul,
.entry-content.content-enhanced ol {
  margin: 0 0 20px 22px;
  line-height: 1.9;
}

.entry-content.content-enhanced li {
  margin-bottom: 8px;
}

.entry-content.content-enhanced img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 12px 0 28px;
}

.entry-content.content-enhanced blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--red);
  background: #fdf5f4;
  border-radius: 0 14px 14px 0;
  font-size: 18px;
  font-style: italic;
  color: #3a3a4a;
}

.entry-content.content-enhanced a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(193, 31, 47, 0.35);
}

.entry-content.content-enhanced a:hover {
  text-decoration-color: var(--red);
}

.entry-content.content-enhanced hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.page-links {
  margin: 20px 0;
  font-size: 14px;
  color: #5e5a62;
}

/* ---------- Tags row ---------- */
.post-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-tags-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}

.post-tags-label i {
  color: var(--red);
  margin-right: 6px;
}

/* ---------- Share row ---------- */
.post-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.post-share-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}

.post-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(193, 31, 47, 0.07);
  color: var(--red);
  border: 1px solid rgba(193, 31, 47, 0.18);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.post-share-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Author box ---------- */
.post-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fdf5f4;
  border: 1px solid rgba(193, 31, 47, 0.12);
  border-radius: 22px;
  padding: 26px 28px;
  margin-bottom: 40px;
}

.post-author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
}

.post-author-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}

.post-author-info h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.post-author-info p {
  font-size: 14.5px;
  color: #6d6874;
  line-height: 1.75;
  margin: 0;
}

/* ---------- Prev/next post navigation ---------- */
.post-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.post-nav-link:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.post-nav-next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-dir {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Comments ---------- */
.post-comments-wrap {
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* ---------- Related posts ---------- */
.related-posts-section {
  padding: 20px 0 90px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .post-nav-row {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
    align-items: flex-start;
  }

  .post-author-box {
    flex-direction: column;
  }

  .entry-content.content-enhanced h2 {
    font-size: 23px;
  }

  .entry-content.content-enhanced h3 {
    font-size: 19px;
  }
}
