.page-blog {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-bottom: 40px; /* Add some padding below the content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

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

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

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

.page-blog__hero-button:hover {
  background-color: #E74C3C; /* Accent red */
  transform: translateY(-3px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #2C3E50;
  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;
  border-radius: 2px;
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__call-to-action {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

.page-blog__article-excerpt {
  color: #555555;
  margin-bottom: 15px;
}

.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: #E74C3C;
}

.page-blog__posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__post-item {
  display: flex;
  align-items: flex-start;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-3px);
}

.page-blog__post-image {
  width: 300px;
  height: 169px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 8px;
}

.page-blog__post-title a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__post-date {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

.page-blog__call-to-action {
  background-color: #2C3E50;
  color: #ffffff;
  padding: 60px 40px;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
}

.page-blog__cta-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #2C3E50;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__cta-image {
  width: 600px;
  height: 338px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* 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.2em;
  }

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

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

  .page-blog__hero-content {
    width: 95%;
    padding: 15px;
  }

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

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-blog__featured-articles,
  .page-blog__latest-posts,
  .page-blog__call-to-action {
    margin: 40px auto;
    padding: 0 15px;
  }

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

  .page-blog__post-item {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__post-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-blog__post-content {
    padding: 15px;
    text-align: center;
  }

  .page-blog__call-to-action {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .page-blog__cta-content {
    text-align: center;
    max-width: 100%;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-blog__cta-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-top: 20px;
  }
  
  /* 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: 1.8em;
  }

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

  .page-blog__article-title {
    font-size: 1.3em;
  }

  .page-blog__post-title {
    font-size: 1.1em;
  }

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