.page-blog {
  background-color: #100224;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  padding-bottom: 40px;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px;
  background-color: #017439;
  color: #FFFFFF;
}

.page-blog__hero-visual {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__hero-content {
  max-width: 800px;
  padding: 0 15px;
}

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

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.page-blog__post-list {
  padding: 40px 20px;
}

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

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

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

.page-blog__post-card {
  background-color: #200440;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 220px; /* Minimum 200px height for content images */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__post-title:hover {
  color: #017439; /* Hover color for contrast */
}

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #E0E0E0;
  line-height: 1.6;
}

.page-blog__pagination {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-btn {
  display: inline-block;
  background-color: #017439;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 200px; /* Ensure button is not too small */
  min-height: 44px; /* Ensure button is not too small */
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__view-all-btn:hover {
  background-color: #005f2c;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 15px 30px;
  }

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

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__post-list {
    padding: 30px 15px;
  }

  .page-blog__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-image {
    height: 200px; /* Maintain minimum height */
    max-width: 100%;
    height: auto;
  }

  .page-blog__post-card {
    margin: 0 auto;
    max-width: 400px; /* Constrain card width on mobile */
  }

  .page-blog__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-blog__view-all-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 549px) {
  .page-blog__post-title {
    font-size: 1.2rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }
}

/* Ensure content images are not smaller than 200px */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
}

.page-blog__post-image {
  min-width: unset; /* Allow flexibility for post images within cards */
  min-height: unset;
}

.page-blog__post-image[width][height] {
  /* Apply max-width and height auto to all content images in mobile */
  max-width: 100%;
  height: auto;
}

.page-blog__grid-container img {
  max-width: 100%;
  height: auto;
}