.page-blog {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--color-secondary, #0d0d0d); /* Assuming shared body background is dark */
  padding-top: var(--header-offset, 120px); /* Offset for fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  padding: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  width: 90%;
  z-index: 10;
  padding: 20px;
}

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

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

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

.page-blog__btn {
  display: inline-block;
  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;
  white-space: nowrap;
}

.page-blog__btn--register {
  background-color: #FCBC45; /* Login color for Register */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-blog__btn--register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__btn--login {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__btn--login:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for sections */
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #FCBC45;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__article-card {
  background-color: #000000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-10px);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

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

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

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

.page-blog__post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__post-item {
  background-color: #000000;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateX(10px);
}

.page-blog__post-link {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: #FFFFFF;
}

.page-blog__post-heading {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

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

.page-blog__post-date {
  font-size: 0.9em;
  color: #999999;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-blog__btn--view-all {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
  padding: 12px 25px;
}

.page-blog__btn--view-all:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-section {
  text-align: center;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-blog__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-blog__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
  border: none;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn {
    width: 100%;
    padding: 12px 20px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-subtitle {
    font-size: 1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  /* Ensure all content area images are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Specific rule to prevent content images from being too small in mobile */
  .page-blog__article-image, 
  .page-blog__cta-image, 
  .page-blog__hero-image {
    min-width: 200px;
    min-height: 200px; /* Enforce minimum size for content images */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__post-heading {
    font-size: 1.1em;
  }
}