.page-blog {
  color: #333333; /* Dark text for default light body background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 20px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff; /* White text on hero for contrast with image */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with secondary color */
  line-height: 1.2;
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-blog__button--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-blog__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: #ffc107;
  color: #333333;
  border: 2px solid #ffc107;
}

.page-blog__button--secondary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
}

.page-blog__button--inline {
  margin-top: 20px;
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-blog__button--inline:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-blog__content-area {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.7;
  font-size: 1.1em;
}

.page-blog__article-heading {
  font-size: 2.2em;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-blog__article-subheading {
  font-size: 1.8em;
  color: #ffc107;
  margin-top: 35px;
  margin-bottom: 20px;
}

.page-blog__article-paragraph {
  margin-bottom: 20px;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-blog__call-to-action {
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 60px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__call-to-action-heading {
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 20px;
}

.page-blog__call-to-action-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__related-articles {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.page-blog__related-heading {
  font-size: 2.2em;
  color: #007bff;
  margin-bottom: 40px;
  text-align: center;
}

.page-blog__article-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;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__card-title {
  font-size: 1.4em;
  color: #007bff;
  margin: 15px 15px 10px 15px;
  flex-grow: 1;
}

.page-blog__card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #ffc107;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__article-heading {
    font-size: 1.8em;
  }
  .page-blog__article-subheading {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__content-area {
    padding: 15px;
    font-size: 1em;
  }
  .page-blog__article-heading {
    font-size: 1.6em;
  }
  .page-blog__article-subheading {
    font-size: 1.3em;
  }
  .page-blog__article-image,
  .page-blog__card-image {
    max-width: 100%;
    height: auto;
  }
  /* Enforce minimum image size for content images in mobile */
  .page-blog__content-area img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__call-to-action-heading {
    font-size: 2em;
  }
  .page-blog__call-to-action-description {
    font-size: 1em;
  }
  .page-blog__related-articles {
    padding: 15px;
  }
  .page-blog__related-heading {
    font-size: 1.8em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.5em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    width: 100%;
  }
  .page-blog__article-heading {
    font-size: 1.4em;
  }
  .page-blog__article-subheading {
    font-size: 1.2em;
  }
  .page-blog__call-to-action-heading {
    font-size: 1.8em;
  }
  .page-blog__call-to-action-description {
    font-size: 0.9em;
  }
  .page-blog__related-heading {
    font-size: 1.6em;
  }
}