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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding-bottom: 40px; /* Space below 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;
  max-width: 1400px;
  margin: 0 auto;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  padding: 30px;
  border-radius: 8px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

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

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

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

.page-blog__featured-content {
  padding: 25px;
  flex-grow: 1;
}

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

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

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

.page-blog__featured-excerpt {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 20px;
}

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

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

.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-blog__post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-blog__post-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__categories {
  margin-bottom: 60px;
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__category-image {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-blog__category-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #000000;
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 60px;
}

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

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

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  font-size: 1.1em;
  padding: 15px 35px;
}

.page-blog__button--cta:hover {
  background-color: transparent;
  color: #FCBC45;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-blog__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__featured-card {
    flex-direction: row;
  }

  .page-blog__featured-image {
    width: 40%;
    height: auto;
    max-height: 280px;
  }

  .page-blog__featured-content {
    width: 60%;
  }
}

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

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

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
  }

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

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

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

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

  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}