.page-blog {
  color: #333333; /* Dark text for default light body background */
  padding-top: var(--header-offset, 120px);
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background-color: #f8f9fa; /* Light background for the hero section */
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%; /* Ensure it does not cause horizontal scroll */
  margin: 0 auto;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff; /* White text for contrast against potential dark image areas */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-blog__hero-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #ffc107; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-button,
.page-blog__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color for buttons */
  color: #007bff; /* Primary color for button text */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__hero-button:hover,
.page-blog__cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-blog__articles-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-blog__articles-heading {
  font-size: 2.5rem;
  color: #007bff; /* Primary color for heading */
  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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #007bff; /* Primary color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #0056b3;
}

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

.page-blog__article-read-more {
  display: inline-block;
  color: #ffc107; /* Auxiliary color for read more links */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__article-read-more:hover {
  color: #e0a800;
  text-decoration: underline;
}

.page-blog__cta-section {
  background-color: #007bff; /* Primary color for CTA background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

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

.page-blog__cta-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for CTA title */
}

.page-blog__cta-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3rem;
  }
  .page-blog__hero-description {
    font-size: 1.1rem;
  }
  .page-blog__articles-heading {
    font-size: 2rem;
  }
  .page-blog__cta-title {
    font-size: 2.2rem;
  }
  .page-blog__cta-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    padding: 15px;
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2.2rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-blog__hero-button,
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-blog__articles-section {
    padding: 15px;
  }
  .page-blog__articles-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3rem;
  }
  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8rem;
  }
  .page-blog__hero-description {
    font-size: 0.9rem;
  }
  .page-blog__articles-heading {
    font-size: 1.5rem;
  }
  .page-blog__article-title {
    font-size: 1.2rem;
  }
  .page-blog__cta-title {
    font-size: 1.6rem;
  }
}

/* Ensure all content images within .page-blog are at least 200px wide/high on desktop */
.page-blog__articles-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific image sizes if they fall below 200px implicitly */
.page-blog__article-image {
  width: 100%; /* Ensures it fills card width */
  height: 225px; /* Consistent height, >200px */
}

/* Mobile specific image handling to prevent overflow */
@media (max-width: 768px) {
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__articles-grid img {
    max-width: 100%;
    height: auto;
  }
}