.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  padding-bottom: 50px; /* Ensure space above footer */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #FFFFFF;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  /* clamp for responsive font size */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--button-color);
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: var(--background);
}

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

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 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;
}

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

.page-blog__article-title {
  font-size: 1.375rem;
  font-weight: bold;
  color: var(--custom-color_1776249996415);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-blog__article-summary {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--secondary-color);
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.page-blog__view-all-button:hover {
  background-color: var(--secondary-color);
}

.page-blog__cta-section {
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-blog__cta-button--secondary {
  background: var(--button-color);
}

.page-blog__cta-button--secondary:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

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

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

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

  .page-blog__article-image {
    height: 200px;
    max-width: 100%;
  }

  .page-blog__article-title {
    font-size: 1.25rem;
  }

  .page-blog__article-summary {
    font-size: 0.95rem;
  }

  .page-blog__section-title, .page-blog__cta-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

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

  /* Ensure all content area images are responsive */
  .page-blog__articles-grid img,
  .page-blog__article-card img,
  .page-blog__hero-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }

  /* Override specific image sizes to ensure min 200px for content images */
  .page-blog__article-image {
    width: 100%; /* Ensure it fills its container */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content,
  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-blog__view-all-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}