/* =============================================
   Blog Post Page Styles — Eco-Health
   ============================================= */

/* Header */
.blog-post-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #003291);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--secondary, #00b67a);
}

/* Main Content */
.blog-post-main {
  padding: 60px 0 80px;
  background: #F9FAFB;
  min-height: 60vh;
}

.blog-post-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 48px 56px;
}

/* Meta: category + date */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-post-category {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--secondary, #00b67a);
  background: rgba(0, 182, 122, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
}

.blog-post-date {
  font-size: 13.5px;
  color: #6B7280;
}

/* Title */
.blog-post-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 32px;
}

/* Hero Image */
.blog-post-hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

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

/* Article body */
.blog-post-body {
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5E7EB;
}

.blog-post-body strong {
  color: #111827;
  font-weight: 600;
}

/* CTA box */
.blog-post-cta {
  background: linear-gradient(135deg, #003291 0%, #0052cc 100%);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 40px;
  color: #ffffff;
}

.blog-post-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.blog-post-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.blog-post-cta .primary-btn {
  background: #ffffff;
  color: #003291;
  border: none;
}

.blog-post-cta .primary-btn:hover {
  background: #f0f4ff;
}

/* "More From Blog" section */
.blog-post-others {
  max-width: 820px;
  margin: 60px auto 0;
}

.blog-post-others-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

/* Mini blog cards for related posts */
.blog-mini-card {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #E5E7EB;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,50,145,0.1);
  color: inherit;
  text-decoration: none;
}

.blog-mini-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-mini-content {
  padding: 16px 18px;
}

.blog-mini-category {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary, #00b67a);
  background: rgba(0, 182, 122, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.blog-mini-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.45;
  margin: 0;
}

/* Footer */
.blog-post-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  text-align: center;
}

.blog-post-footer p {
  margin-bottom: 8px;
  font-size: 13px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary, #00b67a);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-home-link:hover {
  opacity: 0.8;
  color: var(--secondary, #00b67a);
}

/* All blogs listing page */
.blogs-list-main {
  background: #F9FAFB;
}

.blogs-list-hero {
  background: linear-gradient(135deg, #002570 0%, #003291 55%, #038C36 100%);
  padding: 48px 0 56px;
  margin-bottom: 48px;
}

.blogs-list-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.blogs-list-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.blogs-list-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.blogs-list-subtitle {
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.blogs-list-container {
  padding-bottom: 72px;
}

.blogs-list-grid {
  margin-top: 0;
}

.blogs-list-card .blog-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.blogs-list-card .custom-title {
  font-size: 17px;
}

.blogs-list-empty {
  background: #fff;
  border-radius: 20px;
  padding: 56px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #E5E7EB;
}

.blogs-list-empty-icon {
  font-size: 42px;
  color: var(--primary, #003291);
  margin-bottom: 16px;
  display: block;
}

.blogs-list-empty h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-post-wrapper {
    padding: 28px 22px;
    border-radius: 14px;
  }

  .blog-post-nav .primary-btn {
    display: none;
  }

  .blog-post-cta {
    padding: 24px 22px;
  }

  .blogs-list-hero {
    padding: 36px 0 42px;
    margin-bottom: 32px;
  }

  .blogs-list-container {
    padding-bottom: 48px;
  }

  .blogs-list-card {
    min-height: 340px;
  }
}
