/* blog.css */
.page-blog {
  background-color: #08160F;
  color: #F2FFF6;
  padding-bottom: 40px;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px; /* Limit height for aesthetic */
  border-radius: 8px;
}

.page-blog__hero-content {
  text-align: center;
  padding: 30px 15px;
  max-width: 900px;
  margin-top: 20px; /* Separates content from image */
}

.page-blog__main-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-blog__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 40px 0;
}

.page-blog__section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6;
}

.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__post-card {
  background-color: #11271B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #57E38D;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #2AD16F;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

/* CTA Section */
.page-blog__cta-section {
  background-color: #11271B;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #1E3A2A;
}

.page-blog__cta-content {
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-button--large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-image {
    max-height: 300px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensure responsiveness */
    min-height: 200px; /* Ensure minimum size */
  }

  .page-blog__post-card img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-blog__cta-title {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
  }

  .page-blog__cta-description {
    font-size: 0.95rem;
  }

  /* Ensure content area images are responsive and don't cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

/* Content area image CSS size lower bound check */
.page-blog__post-thumbnail, .page-blog__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter is applied to images */
.page-blog img {
  filter: none !important;
}