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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px);
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

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

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

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

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

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

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

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

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

.page-blog__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 60px;
  color: #000000;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__featured-articles-section, .page-blog__categories-section, .page-blog__main-content, .page-blog__related-posts-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-blog__article-card, .page-blog__category-card, .page-blog__detail-item {
  background-color: #f9f9f9;
  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;
}

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

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

.page-blog__article-content, .page-blog__category-content, .page-blog__detail-item {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__article-title, .page-blog__category-title, .page-blog__detail-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__article-title a, .page-blog__category-title a, .page-blog__detail-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt, .page-blog__category-description, .page-blog__detail-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__button--view-details, .page-blog__button--browse, .page-blog__button--details {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-size: 0.9em;
  align-self: flex-start;
}

.page-blog__button--view-details:hover, .page-blog__button--browse:hover, .page-blog__button--details:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__main-content {
  background-color: #f2f2f2;
}

.page-blog__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #444444;
}

.page-blog__content-heading {
  font-size: 2.2em;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #000000;
}

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

.page-blog__list-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #444444;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-blog__button--join-now, .page-blog__button--view-promos {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
}

.page-blog__button--join-now:hover, .page-blog__button--view-promos:hover {
  background-color: #000000;
  color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__content-heading {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
  }
  .page-blog__hero-content {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-blog__articles-grid, .page-blog__categories-grid, .page-blog__detail-list {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__category-image {
    height: 180px;
  }
  .page-blog__article-title, .page-blog__category-title, .page-blog__detail-title {
    font-size: 1.4em;
  }
  .page-blog__article-excerpt, .page-blog__category-description, .page-blog__detail-description, .page-blog__paragraph, .page-blog__list-item {
    font-size: 0.95em;
  }
  .page-blog__content-heading {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }
  .page-blog__button--join-now, .page-blog__button--view-promos {
    width: 100%;
  }
  /* Ensure all images within .page-blog are responsive and do not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    position: static; /* Remove absolute positioning for mobile hero image */
    min-height: auto;
  }
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-content {
    padding: 40px 10px;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__content-heading {
    font-size: 1.4em;
  }
}