/*********************************************
  BLOG HERO (MAIN BLOG PAGE)
**********************************************/
.blog-hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.blog-hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-hero-overlay p {
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

/*********************************************
  BLOG MAIN LISTING PAGE
**********************************************/
.blog-main {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
}

.blog-main .section-heading {
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

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

/* BLOG CARD */
.blog-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  width: 100%;
  height: 240px; /* Adjust height as needed */
  object-fit: cover;
}

.blog-card-text {
  padding: 1rem;
  flex: 1;
}

.blog-card-title {
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--deep-green);
  margin-bottom: 1rem;
}

/* Styled "Read More" Button */
.blog-readmore-btn {
  /* Inherit styles from global .btn and .btn-primary */
  /* Additional styling if needed */
}

/*********************************************
  BLOG POST PAGE
**********************************************/
.blog-hero-post {
  position: relative;
  height: 50vh;
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.blog-hero-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.blog-hero-post-overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.blog-hero-post-overlay p {
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* BLOG POST CONTENT */
.blog-post {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
}

.post-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.post-heading {
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 1rem;
}

.post-content p {
  line-height: 1.8;
  color: var(--deep-green);
  margin-bottom: 1rem;
}

.post-content a {
  color: var(--brown);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.post-content a:hover,
.post-content a:focus {
  color: var(--burnt-orange);
}

.post-content h3 {
  font-size: 1.3rem;
  color: var(--brown);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.founder-sign-off {
  font-style: italic;
  margin-top: 2rem;
  text-align: right;
  color: var(--deep-green);
}

/*********************************************
  CTA BANNER (Reusable)
**********************************************/
.cta-banner {
  padding: 2rem 5%;
  background: var(--beige);
  text-align: center;
}

.cta-banner .cta-content h2 {
  margin-bottom: 1rem;
  color: var(--brown);
  font-size: 2rem; /* Adjust as needed */
}

.cta-banner .cta-content p {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.8;
  text-align: center;
  color: #333; /* Ensure readability */
}

.cta-banner .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/*********************************************
  BLOG NAVIGATION
**********************************************/
.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.blog-navigation .pagination {
  display: flex;
  list-style: none;
  padding: 0;
}

.blog-navigation .pagination li {
  margin: 0 0.25rem;
}

.blog-navigation .pagination li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--brown);
  border-radius: 4px;
  color: var(--brown);
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.blog-navigation .pagination li a.active,
.blog-navigation .pagination li a:hover,
.blog-navigation .pagination li a:focus {
  background-color: var(--brown);
  color: #fff;
}

/*********************************************
  RESPONSIVE STYLES
**********************************************/
@media (max-width: 768px) {
  .blog-hero,
  .blog-hero-post {
    height: 40vh;
  }
  .blog-hero-overlay h1, 
  .blog-hero-post-overlay h1 {
    font-size: 1.8rem;
  }
  .blog-main .section-heading {
    font-size: 1.6rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* CTA Banner Adjustments */
  .cta-banner .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .cta-banner .cta-content p {
    font-size: 1rem;
  }
  
  .cta-banner .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-banner .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Blog Navigation Adjustments */
  .blog-navigation {
    flex-direction: column;
    align-items: center;
  }

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

  .blog-navigation .pagination li a {
    margin: 0.25rem 0;
  }
}