/* ===================================================================
   BLOG SECTION — Your Mate Agency
   Listing (/blog) + Article detail (/blog/:slug) styles
   Consistent with news section but uses black hero to differentiate
   =================================================================== */

/* ===== Blog Hero (Black — distinct from green news hero) ===== */

.blog-hero {
  background: #000000;
  padding: 140px 5.75rem 3.5rem;
}

.blog-hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

.blog-hero-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 100px 1.5rem 2.5rem;
  }
  .blog-hero-title {
    font-size: 36px;
  }
  .blog-hero-sub {
    font-size: 16px;
  }
}

/* ===== Article Detail Hero (Green — matches brand) ===== */

.blog-detail-hero {
  background: #2D9F5E;
  padding: 8rem 5.75rem 4rem;
}

.blog-detail-hero-content {
  max-width: 800px;
}

.blog-detail-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-detail-hero-date,
.blog-detail-hero-readtime {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.87);
}

.blog-detail-hero-sep {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.87);
}

.blog-detail-hero-byline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.87);
}

.blog-detail-hero-author {
  color: #ffffff;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.blog-detail-hero-author:hover {
  text-decoration-color: #ffffff;
}

.blog-detail-hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

.blog-detail-hero-tags {
  margin-top: 0.75rem;
}

.blog-detail-hero .blog-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .blog-detail-hero {
    padding: 80px 1.5rem 2rem;
  }
  .blog-detail-hero-title {
    font-size: 28px;
  }
}

/* ===== Tag Pills (Industry Colours — shared with news) ===== */

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.4rem;
  margin-bottom: 0.25rem;
  background: #F3F4F6;
  color: #4B5563;
}

.blog-tag--tradies {
  background: #FEF3C7;
  color: #92400E;
}

.blog-tag--hospitality {
  background: #FFEDD5;
  color: #9A3412;
}

.blog-tag--accommodation {
  background: #DBEAFE;
  color: #1E40AF;
}

.blog-tag--primary_producers {
  background: #D1FAE5;
  color: #065F46;
}

.blog-tag--retail {
  background: #EDE9FE;
  color: #5B21B6;
}

.blog-tag--tourism {
  background: #CCFBF1;
  color: #115E59;
}

.blog-tag--seo {
  background: #FEE2E2;
  color: #991B1B;
}

.blog-tag--web_design {
  background: #DBEAFE;
  color: #1E40AF;
}

.blog-tag--small_business {
  background: #FEF3C7;
  color: #92400E;
}

.blog-tag--digital_marketing {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ===== Featured Article Card ===== */

.blog-featured {
  padding: 2.5rem 5.75rem 0;
  background: #fff;
}

.blog-featured-card {
  display: block;
  background: #000000;
  border-radius: 12px;
  padding: 3rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.blog-featured-tags {
  margin-bottom: 1rem;
}

.blog-featured-tags .blog-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.blog-featured-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.blog-featured-preview {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 700px;
}

.blog-featured-meta {
  display: flex;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

.blog-featured-link {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2D9F5E;
}

@media (max-width: 768px) {
  .blog-featured {
    padding: 1.5rem 1.5rem 0;
  }
  .blog-featured-card {
    padding: 2rem 1.5rem;
  }
  .blog-featured-title {
    font-size: 24px;
  }
  .blog-featured-preview {
    font-size: 16px;
  }
}

/* ===== Article Card Grid ===== */

.blog-grid-section {
  padding: 2.5rem 5.75rem 4rem;
  background: #fff;
}

.blog-static-section {
  padding: 0 5.75rem 4rem;
  background: #fff;
}

.blog-static-heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 1.5rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid-section {
    padding: 1.5rem 1.5rem 3rem;
  }
  .blog-static-section {
    padding: 0 1.5rem 3rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Article Cards ===== */

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.blog-card-tags {
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #2D9F5E;
}

.blog-card-preview {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #999;
}

/* ===== Article Detail — Two-column Layout ===== */

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #fff;
}

@media (max-width: 1024px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .blog-article-layout {
    padding: 2.5rem 1.5rem;
  }
}

/* ===== Sidebar ===== */

.blog-sidebar {
  align-self: flex-start;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== Article Body Typography ===== */

.blog-article-body {
  max-width: none;
}

.blog-article-body h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 2.5rem 0 1rem 0;
}

.blog-article-body h2:first-child {
  margin-top: 0;
}

.blog-article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin: 2rem 0 0.75rem 0;
}

.blog-article-body p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1.5rem 0;
}

.blog-article-body a {
  color: #2D9F5E;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-article-body a:hover {
  opacity: 0.7;
}

.blog-article-body strong {
  font-weight: 700;
  color: #000;
}

.blog-article-body ul,
.blog-article-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.5rem 0;
}

.blog-article-body li {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.5rem;
}

.blog-article-body ol li {
  padding-left: 0.25rem;
}

.blog-article-body blockquote {
  border-left: 4px solid #2D9F5E;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8faf9;
  border-radius: 0 8px 8px 0;
}

.blog-article-body blockquote p {
  margin: 0;
  font-style: italic;
  color: #555;
}

@media (max-width: 768px) {
  .blog-article-body h2 {
    font-size: 22px;
  }
  .blog-article-body h3 {
    font-size: 18px;
  }
  .blog-article-body p,
  .blog-article-body li {
    font-size: 16px;
  }
}

/* ===== Related Articles Widget ===== */

.blog-related {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
}

.blog-related-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  margin: 0 0 1rem 0;
}

.blog-related-item {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
  transition: color 0.2s ease;
}

.blog-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-related-item:hover {
  color: #2D9F5E;
}

.blog-related-meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-top: 0.25rem;
}

/* ===== Share Icons ===== */

.blog-share {
  margin-bottom: 0.5rem;
}

.blog-share-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin: 0 0 0.75rem 0;
}

.blog-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-share-btn:hover {
  background: #2D9F5E;
  color: #fff;
}

.blog-share-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Sidebar Promo Block ===== */

.blog-promo {
  background: #2D9F5E;
  border-radius: 8px;
  padding: 1.5rem;
}

.blog-promo-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.blog-promo-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.blog-promo-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.87);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.blog-promo-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: #ffffff;
  color: #2D9F5E;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-promo-btn:hover {
  background: #f0f0f0;
  color: #2D9F5E;
}

/* ===== CTA Section ===== */

.blog-cta {
  background: #000000;
  border-radius: 8px;
  padding: 2.5rem;
  margin: 3rem 0 0 0;
}

.blog-cta .blog-cta-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.blog-cta .blog-cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.blog-cta .blog-cta-btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: #2D9F5E;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-cta .blog-cta-btn:hover {
  background: #258a4f;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .blog-cta {
    padding: 2rem 1.5rem;
  }
  .blog-cta-title {
    font-size: 22px;
  }
  .blog-cta-text {
    font-size: 16px;
  }
}

/* ===== Back Link ===== */

.blog-back {
  padding: 2rem 5.75rem 4rem;
  background: #fff;
}

.blog-back a {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-back a:hover {
  color: #2D9F5E;
}

@media (max-width: 768px) {
  .blog-back {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* ===== Empty State ===== */

.blog-empty {
  padding: 6rem 5.75rem;
  background: #fff;
  text-align: center;
}

.blog-empty h2 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem 0;
}

.blog-empty p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #666;
  margin: 0;
}

.blog-empty a {
  color: #2D9F5E;
  text-decoration: none;
}

.blog-empty a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .blog-empty {
    padding: 4rem 1.5rem;
  }
  .blog-empty h2 {
    font-size: 22px;
  }
  .blog-empty p {
    font-size: 16px;
  }
}

/* ===== 404 / Error Page ===== */

.blog-404 {
  padding: 8rem 5.75rem;
  background: #fff;
  text-align: center;
}

.blog-404 h2 {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem 0;
}

.blog-404 p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #666;
  margin: 0 0 2rem 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-404 a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2D9F5E;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-404 a:hover {
  background: #258a4f;
}

@media (max-width: 768px) {
  .blog-404 {
    padding: 4rem 1.5rem;
  }
  .blog-404 h2 {
    font-size: 32px;
  }
}
