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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #fcfcfc;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.page-blog__hero-title {
  font-size: 2.8em;
  color: #CC0000; /* Main brand color */
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 180px;
}

.page-blog__button--primary {
  background-color: #CC0000; /* Main brand color */
  color: #ffffff;
}

.page-blog__button--primary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__button--secondary {
  background-color: #FFD700; /* Accent brand color */
  color: #333333;
}

.page-blog__button--secondary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__button--text {
  color: #CC0000; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  padding: 0;
  background: none;
  box-shadow: none;
  min-width: unset;
}

.page-blog__button--text:hover {
  text-decoration: underline;
  background: none;
  transform: none;
  box-shadow: none;
}

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__deep-dive-section,
.page-blog__cta-section,
.page-blog__related-posts-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #CC0000; /* Main brand color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-blog__article-card,
.page-blog__related-post-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px 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,
.page-blog__related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-blog__article-content,
.page-blog__related-post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__article-title,
.page-blog__related-post-title {
  font-size: 1.4em;
  color: #CC0000; /* Main brand color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-title a,
.page-blog__related-post-title a {
  color: #CC0000;
  text-decoration: none;
}

.page-blog__article-title a:hover,
.page-blog__related-post-title a:hover {
  text-decoration: underline;
}

.page-blog__article-excerpt,
.page-blog__related-post-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-blog__category-button {
  background-color: #FFD700; /* Accent brand color */
  color: #333333;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-blog__category-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__intro-text {
  font-size: 1.1em;
  color: #444444;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__deep-dive-content {
  padding: 20px 0;
}

.page-blog__sub-title {
  font-size: 1.8em;
  color: #CC0000; /* Main brand color */
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

.page-blog__deep-dive-content p {
  margin-bottom: 20px;
  color: #333333;
  font-size: 1em;
}

.page-blog__deep-dive-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.page-blog__cta-section--bottom {
  margin-top: 60px;
  padding: 50px 20px;
  background: linear-gradient(135deg, #CC0000, #FFD700); /* Gradient background */
  color: #ffffff;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-section--bottom .page-blog__section-title {
  color: #ffffff;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-section--bottom .page-blog__button--primary {
  background-color: #333333;
  color: #FFD700;
}

.page-blog__cta-section--bottom .page-blog__button--primary:hover {
  background-color: #000000;
  color: #ffffff;
}

.page-blog__cta-section--bottom .page-blog__button--secondary {
  background-color: #ffffff;
  color: #CC0000;
}

.page-blog__cta-section--bottom .page-blog__button--secondary:hover {
  background-color: #f0f0f0;
  color: #a30000;
}

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
  }
  .page-blog__hero-section {
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-blog__articles-grid,
  .page-blog__related-posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image,
  .page-blog__related-post-image {
    height: 180px;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__deep-dive-content p {
    font-size: 0.95em;
  }
  .page-blog__cta-section--bottom .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__article-image,
  .page-blog__related-post-image {
    height: 160px;
  }
  .page-blog__article-title,
  .page-blog__related-post-title {
    font-size: 1.2em;
  }
  .page-blog__sub-title {
    font-size: 1.3em;
  }
  .page-blog__cta-section--bottom .page-blog__section-title {
    font-size: 1.8em;
  }
}