.page-blog {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  max-width: 1390px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #1F2D3D;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9; /* Default aspect ratio for hero */
  object-fit: cover;
  object-position: center;
}

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

.page-blog__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
}

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

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

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

.page-blog__latest-posts-section {
  padding: 40px 15px;
  background-color: #F4F7FB;
  border-radius: 12px;
  margin: 0 15px 40px 15px;
}

.page-blog__section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
}

.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-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  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 8px 30px rgba(0, 0, 0, 0.1);
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-blog__post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

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

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

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

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

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

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

  .page-blog__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

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

@media (max-width: 768px) {
  .page-blog {
    padding: 0 12px;
  }
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-card img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-blog__hero-section {
    padding: 0 10px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__latest-posts-section {
    margin: 0 10px 30px 10px;
    padding: 25px 10px;
  }
  .page-blog__post-title {
    font-size: 1.15rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }
}