.page-blog {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000; /* Dark background for hero content area */
  color: #FFFFFF;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text readability */
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-blog__hero-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;
}

.page-blog__hero-button:hover {
  background-color: #FFD700;
}

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__cta-section,
.page-blog__about-blog {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.page-blog__posts-list {
  display: grid;
  gap: 30px;
}

.page-blog__post-item {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  align-items: flex-start;
}

.page-blog__post-thumbnail {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__post-details {
  padding: 20px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

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

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

.page-blog__post-meta {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__cta-section {
  background-color: #000000; /* Primary dark background */
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  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;
  margin: 0 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-blog__cta-button--register:hover {
  background-color: #F0F0F0;
}

.page-blog__cta-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-blog__cta-button--login:hover {
  background-color: #FFD700;
}

.page-blog__about-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
}

.page-blog__about-content p {
  margin-bottom: 20px;
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    height: 200px;
  }
  .page-blog__post-details {
    padding: 15px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    margin: 10px 0;
    width: 100%;
    max-width: 250px;
  }
  .page-blog__hero-image, .page-blog__article-image, .page-blog__post-thumbnail {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-item img, .page-blog__featured-articles img {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__cta-button {
    font-size: 0.9em;
  }
}