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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #000000;
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5; /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  color: #FFFFFF;
  max-width: 900px;
}

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

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__hero-cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

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

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

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

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

.page-blog__article-card:hover, .page-blog__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-blog__article-content, .page-blog__guide-content {
  padding: 25px;
}

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

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

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

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

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

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

.page-blog__news-item {
  display: flex;
  align-items: flex-start;
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.page-blog__news-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-blog__news-content {
  padding: 20px;
}

.page-blog__news-title {
  font-size: 1.4em;
  margin-bottom: 8px;
  line-height: 1.3;
}

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

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

.page-blog__news-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-blog__read-more-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #e0a53b;
  text-decoration: underline;
}

.page-blog__cta-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-blog__cta-content {
  max-width: 800px;
  color: #FFFFFF;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #F0F0F0;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  margin: 0 10px;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-blog__cta-button--register:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

.page-blog__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__news-item {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__news-image {
    width: 100%;
    height: 200px;
  }
  .page-blog__news-content {
    padding: 15px;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-button {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__articles-grid, .page-blog__news-list {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__guide-image {
    height: 180px;
  }
  .page-blog__news-image {
    height: 180px;
  }
  .page-blog__news-item {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__news-image {
    width: 100%;
    max-width: 100%; /* Ensure mobile content images do not overflow */
    height: auto;
  }
  .page-blog__article-card img, .page-blog__guide-card img, .page-blog__news-item img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  .page-blog__cta-button {
    display: block;
    width: calc(100% - 20px); /* Adjust for margin */
    margin: 10px auto;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Specific overrides to ensure content images are not too small */
  .page-blog__article-image, .page-blog__guide-image, .page-blog__news-image {
    min-height: 200px;
    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-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title, .page-blog__guide-title {
    font-size: 1.3em;
  }
  .page-blog__news-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
}