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

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #f8f9fa; /* Light background for hero section */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

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

.page-blog__hero-title {
  font-size: 2.8em;
  color: #007bff; /* Brand primary color */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #ffc107; /* Brand auxiliary color */
  color: #333333;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__latest-articles-section,
.page-blog__cta-section,
.page-blog__resources-section,
.page-blog__about-bingo-plus-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #007bff; /* Brand primary color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffc107; /* Brand auxiliary color */
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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 5px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  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.4em;
  margin-bottom: 10px;
  color: #007bff; /* Brand primary color */
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__read-more-button {
  display: inline-block;
  background-color: #007bff; /* Brand primary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__cta-container {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  border-radius: 10px;
  padding: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  text-align: left;
}

.page-blog__cta-text-content {
  flex: 1;
  min-width: 300px;
  margin-right: 30px;
}

.page-blog__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__cta-button--primary {
  background-color: #ffc107; /* Brand auxiliary color */
  color: #333333;
}

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

.page-blog__cta-button--secondary {
  background-color: #ffffff;
  color: #007bff; /* Brand primary color */
  border: 2px solid #007bff;
}

.page-blog__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #0056b3;
  border-color: #0056b3;
}

.page-blog__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__resource-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-blog__resource-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #007bff; /* Brand primary color */
}

.page-blog__resource-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__resource-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
}

.page-blog__about-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-text-content {
    margin-right: 0;
    margin-bottom: 30px;
  }
  .page-blog__cta-container {
    text-align: center;
    flex-direction: column;
  }
  .page-blog__cta-image-wrapper {
    text-align: center;
  }
  .page-blog__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__latest-articles-section,
  .page-blog__cta-section,
  .page-blog__resources-section,
  .page-blog__about-bingo-plus-section {
    padding: 15px;
    margin: 30px auto;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__articles-grid,
  .page-blog__resources-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__cta-container {
    padding: 30px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-blog__about-description {
    font-size: 1em;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}