.page-blog {
  /* Default text color for light body background */
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff; /* White text for better contrast on potentially darker image */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for title */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #0056b3; /* Darker primary color on hover */
}

/* Section Titles & Intros */
.page-blog__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  text-align: center;
  margin-bottom: 15px;
  margin-top: 60px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eeeeee;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333333;
}

.page-blog__article-title a {
  text-decoration: none;
  color: #007bff; /* Primary color for links */
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__read-more {
  display: inline-block;
  color: #ffc107; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
}

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

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-title a {
  text-decoration: none;
  color: #007bff;
}

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

.page-blog__category-description {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-blog__category-button {
  display: inline-block;
  background-color: #ffc107;
  color: #333333;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__category-button:hover {
  background-color: #e0a800;
}

/* Featured Article Section */
.page-blog__featured-article {
  padding: 60px 0;
  background-color: #f0f8ff; /* Light blue background for emphasis */
}

.page-blog__featured-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.page-blog__featured-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__featured-text {
  flex: 1;
  min-width: 300px;
}

.page-blog__featured-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-blog__featured-description {
  font-size: 1em;
  color: #444444;
  margin-bottom: 25px;
}

.page-blog__featured-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.page-blog__featured-button:hover {
  background-color: #0056b3;
}

/* Download CTA Section */
.page-blog__download-cta {
  padding: 80px 0;
  background: linear-gradient(90deg, #007bff, #0056b3); /* Primary color gradient */
  color: #ffffff;
  text-align: center;
}

.page-blog__download-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-blog__download-content {
  max-width: 600px;
  text-align: left;
}

.page-blog__download-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color */
}

.page-blog__download-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-blog__download-button {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #333333;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__download-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* More Articles/List Section */
.page-blog__more-articles {
  padding: 60px 0;
}

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

.page-blog__article-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-blog__article-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__item-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-blog__item-title a {
  text-decoration: none;
  color: #007bff;
}

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

.page-blog__item-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__item-link {
  display: inline-block;
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__item-link:hover {
  color: #b38705;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__download-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__article-grid,
  .page-blog__category-grid,
  .page-blog__article-list {
    grid-template-columns: 1fr;
  }
  .page-blog__featured-content {
    flex-direction: column;
  }
  .page-blog__featured-image {
    max-width: 100%;
  }
  .page-blog__download-flex {
    flex-direction: column-reverse;
  }
  .page-blog__download-content {
    text-align: center;
  }
  .page-blog__download-title {
    font-size: 1.8em;
  }
  .page-blog__download-description {
    font-size: 1em;
  }
  .page-blog__download-button {
    padding: 15px 30px;
    font-size: 1em;
  }
  /* Mobile images must not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure no content area image is smaller than 200px */
  .page-blog__article-image, 
  .page-blog__category-image, 
  .page-blog__featured-image, 
  .page-blog__download-image {
    min-width: 200px;
    min-height: 200px;
  }
}

/* Ensure all content area images have min-width/height 200px */
.page-blog img:not(.shared-header img, .shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}