.page-blog {
  color: #333333; /* Dark text for default white body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #8B0000; /* Auxiliary color for hero background */
  padding-bottom: 40px;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1400px;
  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;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

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

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

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

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

.page-blog__button--primary {
  background-color: #FFD700; /* Main color for primary button */
  color: #8B0000; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Main color for secondary button text */
  border: 2px solid #FFD700;
}

.page-blog__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

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

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Auxiliary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 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, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.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: #8B0000; /* Auxiliary color for article titles */
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700; /* Main color for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

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

.page-blog__view-all-button {
  text-align: center;
  margin-top: 40px;
}

.page-blog__featured-content {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #444444;
}

.page-blog__text-content strong {
  color: #8B0000;
}

.page-blog__sub-title {
  font-size: 1.8em;
  color: #8B0000; /* Auxiliary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__centered-button {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog__cta-section {
  background-color: #8B0000; /* Auxiliary color for CTA background */
  padding: 80px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  filter: grayscale(100%);
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #FFD700; /* Main color for CTA title */
  margin-bottom: 20px;
}

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    padding: 12px 25px;
    width: 80%; /* Make buttons take more width on mobile */
  }
  .page-blog__hero-content {
    padding: 15px;
    max-width: 90%;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    height: 400px; /* Adjust hero image height for mobile */
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__cta-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    width: 95%;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}