.page-blog {
  color: #ffffff; /* Body background is dark (#000000), so text should be light */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000;
  text-align: center;
  padding-bottom: 60px;
}

.page-blog__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
  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: #FCBC45; /* Login button color used for register as a primary CTA */
  color: #000000; /* Dark text for light background button */
}

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

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

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

.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* White background for content section */
  color: #000000; /* Dark text for white background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-30px);
  position: relative;
  z-index: 1;
}

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

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

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

.page-blog__image-wrapper {
  margin: 40px 0;
  text-align: center;
}

.page-blog__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

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

.page-blog__category-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #000000;
}

.page-blog__category-link {
  color: #000000;
  text-decoration: none;
}

.page-blog__category-link:hover {
  color: #FCBC45;
}

.page-blog__category-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__button--view-details {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__button--view-details:hover {
  background-color: #e0a33a;
}

.page-blog__call-to-action {
  background-color: #000000; /* Main dark background for CTA */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
}

.page-blog__call-to-action-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__call-to-action-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-blog__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__button--join-now:hover {
  background-color: #e0a33a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-section-title {
    font-size: 1.6em;
  }
  .page-blog__paragraph {
    font-size: 1em;
  }
  .page-blog__call-to-action-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__content-area {
    padding: 30px 15px;
    transform: translateY(-20px);
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-blog__sub-section-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-blog__paragraph {
    font-size: 0.95em;
  }
  .page-blog__category-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__call-to-action {
    padding: 40px 15px;
    margin-top: 40px;
  }
  .page-blog__call-to-action-title {
    font-size: 1.8em;
  }
  .page-blog__call-to-action-description {
    font-size: 1em;
  }
  .page-blog__button--join-now {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure images do not overflow on mobile */
  .page-blog__content-area img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    width: 90%;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__call-to-action-title {
    font-size: 1.5em;
  }
}