.page-blog {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: 'Roboto', sans-serif;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

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

.page-blog__hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  /* Using clamp for responsive font size if absolutely necessary, but preferring font-weight/line-height */
  font-size: clamp(2rem, 5vw, 3rem); 
}

.page-blog__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px #A5C4FF;
  border: none;
  cursor: pointer;
}

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

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

.page-blog__section-title {
  font-size: 2.25rem;
  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;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

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

.page-blog__post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

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

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

.page-blog__post-info time {
  font-size: 0.875rem;
  color: #6FA3FF;
  font-weight: 500;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  background: #6FA3FF;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-blog__cta-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
}

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

.page-blog__cta-description {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #FFFFFF;
}

.page-blog__cta-button--large {
  padding: 16px 36px;
  font-size: 1.15rem;
}

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

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

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

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

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

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

  .page-blog__post-card img {
    height: 200px; /* Adjust height for mobile */
  }

  .page-blog__post-card img,
  .page-blog__hero-visual img {
    max-width: 100%;
    height: auto;
    display: block;
  }

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

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.5rem;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 280px;
  }
}