.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 space for fixed header */
}

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

.page-blog__hero-section {
  background-color: #1A1A1A; /* Dark background for hero */
  color: #ffffff;
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

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

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

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

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__featured-posts-section,
.page-blog__about-blog-section {
  padding: 80px 0;
}

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

.page-blog__article-card,
.page-blog__category-card,
.page-blog__featured-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px 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,
.page-blog__featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-blog__article-title a,
.page-blog__featured-title a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-meta,
.page-blog__featured-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 10px;
}

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

.page-blog__read-more-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__category-card {
  text-align: center;
  text-decoration: none;
  color: #1A1A1A;
}

.page-blog__category-image {
  height: 200px; /* Fixed height for category images */
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-top: 20px;
  padding: 0 15px 20px;
}

.page-blog__cta-section {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

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

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-blog__newsletter-section {
  background-color: #f0f0f0;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__newsletter-title {
  font-size: 2.5em;
  color: #1A1A1A;
  margin-bottom: 20px;
}

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

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  flex-grow: 1;
  max-width: 400px;
}

.page-blog__newsletter-input:focus {
  border-color: #FFD700;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-blog__newsletter-button {
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }

  .page-blog__hero-title {
    font-size: 2.5em;
  }

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

  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__featured-posts-section,
  .page-blog__about-blog-section,
  .page-blog__cta-section,
  .page-blog__newsletter-section {
    padding: 60px 0;
  }

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

  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__featured-card {
    margin-bottom: 20px;
  }

  .page-blog__article-image,
  .page-blog__category-image,
  .page-blog__featured-image {
    height: 200px; /* Ensure images are not too small */
    max-width: 100%; /* Prevent overflow */
  }

  .page-blog__article-title,
  .page-blog__featured-title {
    font-size: 1.4em;
  }

  .page-blog__category-title {
    font-size: 1.6em;
  }

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

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

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

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

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__newsletter-input,
  .page-blog__newsletter-button {
    width: 100%;
    max-width: none;
  }

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

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

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

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

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

  .page-blog__newsletter-title {
    font-size: 1.8em;
  }

  .page-blog__hero-cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }
}