.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
  background-color: #f8f8f8; /* Light background for readability, contrasts with dark primary color */
  color: #333333; /* Dark text for light background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A2B4C; /* Dark background for hero */
  color: #ffffff;
  padding-bottom: 60px;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  max-height: 500px; /* Limit height to keep it a hero image */
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-blog__hero-content {
  padding: 20px;
  max-width: 800px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A2B4C; /* Dark text on gold */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-button:hover {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-2px);
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #1A2B4C; /* Dark primary color for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-blog__article-card {
  background-color: #fefefe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.6em;
  color: #1A2B4C;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Limit excerpt to 6 lines */
  -webkit-box-orient: vertical;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #1A2B4C; /* Dark primary color for read more */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #0d1a2f; /* Darker primary on hover */
  transform: translateY(-2px);
}

.page-blog__cta-section {
  background-color: #1A2B4C; /* Dark background for CTA */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

.page-blog__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--primary {
  background-color: #FFD700;
  color: #1A2B4C;
}

.page-blog__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A2B4C;
  transform: translateY(-2px);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-blog__article-content {
    padding: 20px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__article-excerpt {
    font-size: 0.9em;
    -webkit-line-clamp: 5; /* Adjust line clamp for mobile */
  }
  .page-blog__read-more-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__container {
    padding: 0 15px;
  }

  /* Ensure all content area images are responsive and not too small */
  .page-blog__articles-grid img, .page-blog__hero-image {
    max-width: 100%;
    height: auto; /* Prevent images from overflowing or being squished */
    min-width: 200px; /* Enforce minimum size for content images if they were smaller in original design */
    min-height: 200px; /* Ensure images are not tiny */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.5em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-excerpt {
    -webkit-line-clamp: 4;
  }
}

/* Ensure all images within .page-blog are at least 200px in width/height */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover */
}

/* Specific overrides for smaller images if they exist, but ensuring min-size */
.page-blog__article-image {
  width: 100%; /* Take full width of its container */
  height: 250px; /* Desired display height */
  object-fit: cover;
}

/* Ensure no filter is applied to images */
.page-blog img {
  filter: none; /* Explicitly remove any default filters */
}