.page-blog {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #1F2D3D;
  background-color: #F4F7FB;
}

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

.page-blog__hero-section {
  padding-top: 10px;
  padding-bottom: 40px;
  background-color: #F4F7FB;
  text-align: center;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1920/600;
  fetchpriority: high;
}

.page-blog__hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1F2D3D;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__posts-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600;
  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;
  margin-bottom: 40px;
}

.page-blog__post-card {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #D6E2FF;
}

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1F2D3D;
  margin: 15px;
  line-height: 1.4;
  text-decoration: none;
}

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #1F2D3D;
  margin: 0 15px 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.9rem;
  color: #6FA3FF;
  margin: 0 15px 15px;
  display: block;
}

.page-blog__view-all-wrapper {
  text-align: center;
}

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.page-blog__view-all-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__cta-section {
  background-color: #F4F7FB;
  padding: 80px 0;
  text-align: center;
}

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

.page-blog__cta-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 20px;
}

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.page-blog__button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
}

.page-blog__button--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-blog__button--secondary {
  background-color: #FFFFFF;
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
}

.page-blog__button--secondary:hover {
  background-color: #2F6BFF;
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__hero-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.3rem, 4.5vw, 2rem);
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__cta-title {
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  }
}

@media (max-width: 549px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__posts-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px; /* Ensure min size */
  }
  .page-blog__post-title {
    font-size: 1.1rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__cta-section {
    padding: 60px 0;
  }
  .page-blog__cta-title {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }
  .page-blog__cta-description {
    font-size: 1rem;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 280px; /* Constrain button width on small screens */
    margin: 0 auto;
  }
}

/* Mobile content area images anti-overflow */
@media (max-width: 768px) {
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image {
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
  }
}