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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-bottom: 60px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text */
  border-radius: 10px;
}

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

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

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

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

.page-blog__hero-button--primary {
  background-color: #FFD700; /* Gold button */
  color: #0D1117;
}

.page-blog__hero-button--primary:hover {
  background-color: #e6c200;
}

.page-blog__hero-button--secondary {
  background-color: #0D1117; /* Dark button */
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-blog__hero-button--secondary:hover {
  background-color: #1a1f26;
  color: #fff;
}

.page-blog__latest-articles,
.page-blog__categories,
.page-blog__featured-content,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #0D1117;
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__article-card,
.page-blog__category-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,
.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #0D1117;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: inherit;
  text-decoration: none;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__category-card {
  text-align: center;
  padding: 25px;
  text-decoration: none;
  color: #0D1117;
  justify-content: center;
  align-items: center;
}

.page-blog__category-icon {
  width: 200px; /* Minimum size for content images */
  height: 150px; /* Minimum size for content images */
  object-fit: contain;
  margin-bottom: 15px;
}

.page-blog__category-name {
  font-size: 1.3em;
  font-weight: bold;
}

.page-blog__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-blog__featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-blog__featured-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-blog__featured-text {
  padding: 30px;
  text-align: left;
}

.page-blog__featured-title {
  font-size: 2em;
  color: #0D1117;
  margin-bottom: 20px;
}

.page-blog__featured-description {
  font-size: 1.1em;
  color: #666666;
  margin-bottom: 25px;
}

.page-blog__cta-section--bottom {
  background-color: #0D1117;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FFD700;
  color: #0D1117;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-blog__featured-item {
    flex-direction: row;
    text-align: left;
  }

  .page-blog__featured-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-blog__featured-image {
    width: 50%;
    height: auto;
  }

  .page-blog__featured-text {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-buttons {
    flex-direction: column;
  }

  .page-blog__hero-button {
    width: 100%;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__section-subtitle {
    font-size: 0.9em;
  }

  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image,
  .page-blog__category-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
  }

  .page-blog__featured-title {
    font-size: 1.5em;
  }

  .page-blog__featured-description {
    font-size: 0.9em;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}