.page-blog {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1390px;
  margin: 0 auto 40px auto;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 15px;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__articles-section {
  max-width: 1390px;
  margin: 40px auto;
  padding: 20px;
}

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

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

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

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

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #6FA3FF;
  display: block;
  margin-bottom: 10px;
}

.page-blog__read-more {
  font-size: 0.9em;
  font-weight: 600;
  color: #2F6BFF;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.page-blog__read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.2s ease;
}

.page-blog__article-link:hover .page-blog__read-more::after {
  right: -5px;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__about-section {
  max-width: 1390px;
  margin: 40px auto 60px auto;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-blog__about-text {
  font-size: 1.05em;
  color: #1F2D3D;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-blog__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  .page-blog__article-image {
    height: 200px;
  }

  .page-blog__article-title {
    font-size: 1.2em;
  }

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

  .page-blog__about-section {
    margin-bottom: 40px;
    padding: 15px;
  }

  .page-blog__about-text {
    font-size: 0.95em;
  }

  /* Critical: Prevent horizontal overflow for images */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-cta-button,
  .page-blog__view-all-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

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

/* Override for article card images to ensure display size consistency */
.page-blog__article-image {
  width: 100%;
  height: 225px; /* Maintain aspect ratio or fixed height for cards */
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-blog__article-image {
    height: auto; /* Allow height to adjust on mobile */
  }
  /* Ensure all content images meet minimum size or are responsive */
  .page-blog__hero-image,
  .page-blog__article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum display width */
    min-height: 200px; /* Enforce minimum display height */
  }
}