.page-blog {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Main background color */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 0;
}

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

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

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

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

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

.page-blog__latest-articles,
.page-blog__categories,
.page-blog__newsletter-cta,
.page-blog__final-cta {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

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

.page-blog__article-card {
  background-color: #1a1a1a; /* Darker background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* 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;
  font-weight: bold;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFFFFF;
  background-color: #FCBC45;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: #1a1a1a;
  border-radius: 25px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

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

.page-blog__category-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__newsletter-cta {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__newsletter-content {
  flex: 1;
  min-width: 300px;
}

.page-blog__newsletter-title {
  font-size: 2em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-blog__newsletter-form {
  display: flex;
  gap: 10px;
}

.page-blog__newsletter-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #000000;
  color: #ffffff;
  font-size: 1em;
}

.page-blog__newsletter-input::placeholder {
  color: #888888;
}

.page-blog__button--subscribe {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}

.page-blog__button--subscribe:hover {
  background-color: #e0a030;
}

.page-blog__newsletter-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__final-cta {
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0a0a;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 80px;
}

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

.page-blog__final-cta-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

@media (max-width: 768px) {
  .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__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__newsletter-cta {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
  }
  .page-blog__newsletter-input, .page-blog__button--subscribe {
    width: 100%;
  }
  .page-blog__newsletter-image {
    margin-top: 30px;
  }
  .page-blog__final-cta-title {
    font-size: 2em;
  }
  .page-blog__final-cta-description {
    font-size: 1em;
  }
  /* Ensure content area images are responsive and do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    height: auto; /* Allow height to adjust naturally */
  }
  .page-blog__newsletter-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    padding: 10px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__newsletter-title {
    font-size: 1.8em;
  }
  .page-blog__final-cta-title {
    font-size: 1.8em;
  }
}