.page-blog {
  color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 80px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  z-index: 1;
  margin-top: 20px; /* Small offset from header if needed */
  margin-bottom: 20px;
}

.page-blog__hero-content {
  color: #FFFFFF; /* Light text on dark overlay */
}

.page-blog__hero-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-blog__button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Dark text on light button */
}

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

.page-blog__button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text on light button */
}

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

.page-blog__button--promo, .page-blog__button--join {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__button--promo:hover, .page-blog__button--join:hover {
  background-color: #e0a53a;
}

.page-blog__button--learn-more, .page-blog__button--register-info {
  background-color: #000000;
  color: #FFFFFF;
}

.page-blog__button--learn-more:hover, .page-blog__button--register-info:hover {
  background-color: #333333;
}

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

.page-blog__section-title, .page-blog__content-heading {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__content-area {
  padding: 60px 0;
  line-height: 1.7;
}

.page-blog__sub-heading {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000000;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-blog__action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }

  .page-blog__hero-container {
    padding: 60px 15px;
  }

  .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%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 20px;
  }

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

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

  .page-blog__sub-heading {
    font-size: 1.5em;
  }

  .page-blog__paragraph, .page-blog__list-item {
    font-size: 1em;
  }

  .page-blog__post-thumbnail, .page-blog__content-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure mobile images are not too small */
    min-height: 200px; /* Ensure mobile images are not too small */
  }

  .page-blog__action-buttons {
    flex-direction: column;
    gap: 15px;
  }
}