.page-blog {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1390px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
  text-align: center;
}

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

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

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

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

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #1F2D3D;
}

.page-blog__cta-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: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

.page-blog__posts-section {
  max-width: 1390px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

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

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

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2F6BFF;
}

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #4A8BFF;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #2F6BFF;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-blog__view-all-button:hover {
  background-color: #4A8BFF;
  transform: translateY(-2px);
}

.page-blog__cta-section {
  background-color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #D6E2FF;
  border-bottom: 1px solid #D6E2FF;
  margin-bottom: 40px;
}

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

.page-blog__cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  margin-bottom: 30px;
}

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

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

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

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

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

  .page-blog__post-title {
    font-size: 1.2rem;
  }

  .page-blog__cta-section {
    padding: 40px 15px;
  }

  .page-blog__cta-title {
    font-size: 1.8rem;
  }

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

  /* Ensure content area images do not overflow */
  .page-blog__posts-grid img,
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
}

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