.page-blog {
  padding-top: 10px; /* Small top padding for the main content */
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-blog__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  text-align: center;
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-blog__latest-posts-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #D6E2FF;
}

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

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

.page-blog__post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-blog__post-card-date {
  font-size: 0.9em;
  color: #6FA3FF;
  margin-bottom: 10px;
}

.page-blog__post-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__read-more-link {
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.page-blog__read-more-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #2F6BFF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__post-card-link:hover .page-blog__read-more-link::after {
  transform: scaleX(1);
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  text-align: center;
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-blog__hero-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__hero-cta-button {
    padding: 12px 25px;
  }

  .page-blog__latest-posts-section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-blog__post-card-image {
    height: 180px;
  }

  .page-blog__post-card-title {
    font-size: 1.15em;
  }

  .page-blog__post-card-excerpt {
    font-size: 0.9em;
  }

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

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

/* Specific rule for content images within the blog section to prevent small display sizes */
.page-blog__post-card-image {
  width: 100%;
  height: 220px; /* Maintain a good height for cards */
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-blog__post-card-image {
    max-width: 100%;
    height: auto; /* Allow height to adjust for responsiveness */
  }
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all img tags within .page-blog adhere to max-width 100% on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}