.page-blog {
  color: #ffffff; /* Light text for dark body background #1a1a1a */
  padding-top: var(--header-offset, 120px);
}

.page-blog__hero-section {
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.8), rgba(255, 215, 0, 0.6)); /* Blend of auxiliary and primary colors */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Make image subtle behind text */
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Primary color */
  color: #000080; /* Auxiliary color for button text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__introduction-section,
.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__more-resources-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  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: #000080;
  border-radius: 2px;
}

.page-blog__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-blog__text-content:last-of-type {
  margin-bottom: 0;
}

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

.page-blog__article-card,
.page-blog__resource-card {
  background-color: rgba(0, 0, 128, 0.2); /* Semi-transparent auxiliary color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image,
.page-blog__resource-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

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

.page-blog__article-title,
.page-blog__resource-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-blog__article-title a:hover,
.page-blog__resource-title a:hover {
  color: #e6c200;
}

.page-blog__article-excerpt,
.page-blog__resource-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button,
.page-blog__read-more-link {
  display: inline-block;
  background-color: #000080; /* Auxiliary color */
  color: #FFD700; /* Primary color for text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-blog__read-more-button:hover,
.page-blog__read-more-link:hover {
  background-color: #000066;
  color: #ffffff;
}

.page-blog__cta-section {
  background-color: #FFD700; /* Primary color for CTA background */
  color: #000080; /* Auxiliary color for CTA text */
  text-align: center;
  padding: 80px 20px;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000080;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #333333;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #000080; /* Auxiliary color */
  color: #FFD700; /* Primary color for button text */
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  background-color: #000066;
  transform: translateY(-5px);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__introduction-section,
  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__more-resources-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__text-content {
    font-size: 1em;
  }
  .page-blog__article-grid,
  .page-blog__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image,
  .page-blog__resource-image {
    height: 200px;
  }
  .page-blog__article-title,
  .page-blog__resource-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Content area images must not cause horizontal scroll */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    min-height: 350px;
    padding: 40px 10px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.95em;
  }
  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
}