.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-blog__hero-section {
  background-color: #000000; /* Primary color background for hero */
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Constrain hero container width */
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight title with login color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
}

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

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

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for article section */
}

.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-bottom: 40px;
  font-weight: bold;
}

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

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

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

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

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45; /* Highlight read more with login color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom of card */
}

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

.page-blog__cta-section {
  background-color: #000000; /* Primary color background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight CTA title */
}

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  min-width: 150px;
}

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

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

.page-blog__cta-button--login {
  background-color: transparent;
  color: #FCBC45; /* Login color for border and text */
  border: 2px solid #FCBC45;
}

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

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

  .page-blog__hero-description {
    font-size: 1.1em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__article-title {
    font-size: 1.3em;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }

  .page-blog__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 15px;
  }

  .page-blog__hero-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 180px;
  }

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

  .page-blog__article-title {
    font-size: 1.2em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Ensure content images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}