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

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  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-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
}

.page-blog__hero-button--primary {
  background-color: #000000; /* Main color for primary action */
  color: #FFFFFF; /* Register button text */
  border: 2px solid #FFFFFF;
}

.page-blog__hero-button--primary:hover {
  background-color: #FCBC45; /* Login color for hover */
  transform: translateY(-3px);
  color: #000000;
}

.page-blog__hero-button--secondary {
  background-color: #FCBC45; /* Login color for secondary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__hero-button--secondary:hover {
  background-color: #000000; /* Main color for hover */
  transform: translateY(-3px);
  color: #FFFFFF;
}

.page-blog__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
  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: #FCBC45;
  border-radius: 2px;
}

.page-blog__latest-posts-section,
.page-blog__featured-article-section,
.page-blog__categories-section,
.page-blog__cta-section {
  padding: 80px 0;
}

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

.page-blog__post-card,
.page-blog__category-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__post-image,
.page-blog__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title,
.page-blog__category-title {
  font-size: 1.7em;
  margin-bottom: 15px;
  color: #000000;
}

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

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

.page-blog__post-excerpt,
.page-blog__category-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-blog__featured-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #000000;
}

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

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

.page-blog__article-paragraph {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

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

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

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__featured-content {
    flex-direction: column;
  }
  .page-blog__featured-image,
  .page-blog__featured-text-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust padding for smaller header on mobile */
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 0.9em;
    margin: 0 5px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image,
  .page-blog__category-image {
    height: 200px;
  }
  .page-blog__post-title,
  .page-blog__category-title {
    font-size: 1.5em;
  }
  .page-blog__featured-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }

  /* Ensure images in content area do not overflow on mobile */
  .page-blog__latest-posts-section img,
  .page-blog__featured-article-section img,
  .page-blog__categories-section 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__hero-button {
    display: block;
    margin: 10px auto;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
}