/* ── Blog Hero ─────────────────────────────────────────── */
.blog-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.blog-hero-section:hover .blog-hero-bg {
  transform: scale(1.06);
}

/* Rich gradient overlay – dark at bottom, lighter at top */
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.90) 100%
  );
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* "Featured Article | Category" pill */
.blog-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.blog-hero-label-icon {
  color: #fbbf24;
  font-size: 0.85rem;
  line-height: 1;
}

.blog-hero-label-divider {
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 0.1rem;
}

/* Title */
.blog-hero-title {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.blog-hero-title-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.55) !important;
}

/* Excerpt */
.blog-hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.88;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  max-width: 540px;
}

/* CTA button */
.blog-hero-cta {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Meta list (date / author) */
.blog-hero-meta {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.blog-hero-meta li {
  opacity: 0.75;
  transition: opacity 0.2s;
}

.blog-hero-meta li:hover {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .blog-hero-section {
    min-height: 420px;
  }

  .blog-hero-title {
    font-size: 1.5rem;
  }

  .blog-hero-excerpt {
    font-size: 0.93rem;
  }

  .blog-hero-footer {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* ── Blog Listing Page ─────────────────────────────────────────── */

/* Section heading underline accent */
.blog-listing-header h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.blog-listing-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 2px;
}

/* Category badge pill */
.blog-category-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb, 227, 28, 36), 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

/* Classic horizontal card */
.blog-classic-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-classic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.blog-classic-img {
  min-height: 220px;
  overflow: hidden;
  border-radius: calc(var(--bs-card-border-radius, 0.4rem) - 1px) 0 0 calc(var(--bs-card-border-radius, 0.4rem) - 1px);
}

.blog-classic-img img {
  min-height: 220px;
}

@media (max-width: 767.98px) {
  .blog-classic-img {
    min-height: 200px;
    border-radius: calc(var(--bs-card-border-radius, 0.4rem) - 1px) calc(var(--bs-card-border-radius, 0.4rem) - 1px) 0 0;
  }

  .blog-classic-img img {
    min-height: 200px;
  }
}

/* Grid cards */
.blog-grid-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
}

.blog-grid-img {
  overflow: hidden;
  height: 200px;
  border-radius: calc(var(--bs-card-border-radius, 0.4rem) - 1px) calc(var(--bs-card-border-radius, 0.4rem) - 1px) 0 0;
}

.blog-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline date in grid cards */
.post-meta-inline {
  font-size: 0.75rem;
  color: #8a96a8;
}

/* "Read more →" link */
.blog-read-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-primary);
  text-decoration: none;
  transition: gap 0.2s;
}

.blog-read-link:hover {
  text-decoration: underline;
}

/* "Read →" soft button in classic cards */
.btn-soft-primary {
  background: rgba(var(--bs-primary-rgb, 227, 28, 36), 0.1);
  color: var(--bs-primary);
  border: none;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}

.btn-soft-primary:hover {
  background: var(--bs-primary);
  color: #fff;
}

/* ── Single Post Page ──────────────────────────────────────────── */

.blog-post-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.blog-post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 10s ease;
}

.blog-post-hero:hover .blog-post-hero-bg {
  transform: scale(1.06);
}

.blog-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.40) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
}

.blog-post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.blog-post-hero-title {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.18;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.blog-post-hero-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.blog-post-hero-meta li {
  display: flex;
  align-items: center;
}

/* Article body typography improvements */
.blog.single .post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3c4459;
}

.blog.single .post-content h2,
.blog.single .post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog.single .post-content img {
  border-radius: 0.5rem;
  max-width: 100%;
}

/* Post footer divider */
.post-footer {
  border-top: 1px solid #e8ecf0;
  padding-top: 1.5rem;
}

/* Related posts images */
.post-thumb {
  border-radius: 0.4rem;
  overflow: hidden;
}

.post-thumb img {
  transition: transform 0.3s ease;
}

.post-thumb:hover img {
  transform: scale(1.04);
}

@media (max-width: 575.98px) {
  .blog-post-hero {
    min-height: 360px;
  }

  .blog-post-hero-title {
    font-size: 1.5rem;
  }
}
