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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #FFFFFF;
  padding: 20px;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.page-blog__about-section,
.page-blog__featured-posts-section,
.page-blog__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-blog__about-section {
  background-color: #f8f8f8;
}

.page-blog__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #000000;
  font-weight: bold;
}

.page-blog__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
  text-align: left;
}

.page-blog__featured-posts-section {
  background-color: #FFFFFF;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-blog__post-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

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

.page-blog__post-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #000000;
  font-weight: bold;
}

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

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

.page-blog__post-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__post-cta-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.page-blog__post-cta-button:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 100px 20px;
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 25px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.4em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 15px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-blog__cta-button--primary {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-blog__cta-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FCBC45;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__about-section, .page-blog__featured-posts-section, .page-blog__cta-section {
    padding: 50px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__section-text {
    font-size: 1em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.5em;
  }
  .page-blog__post-description {
    font-size: 0.95em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    display: block;
    margin: 15px auto;
    width: 80%;
    max-width: 300px;
    font-size: 1.1em;
  }
  /* Ensure images in content do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__content-wrapper {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .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__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    width: 90%;
  }
}