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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
}

.page-blog__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
  border-radius: 10px;
  color: #FFFFFF;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-blog__articles-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-blog__articles-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__articles-subtitle {
  font-size: 1.1em;
  color: #555555;
}

.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: 1px solid #E0E0E0;
  border-radius: 8px;
  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 {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__article-heading {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent card height */
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  min-height: 70px; /* Ensure consistent card height */
}

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

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

.page-blog__cta-section {
  background-color: #000000; /* Main color for CTA background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-blog__cta-title {
  font-size: 3em;
  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: 18px 35px;
  background-color: #FCBC45; /* Login color for CTA button */
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__articles-section {
    margin: 20px auto;
    padding: 15px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-heading {
    min-height: auto;
  }
  .page-blog__article-excerpt {
    min-height: auto;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__hero-image,
  .page-blog__articles-section img,
  .page-blog__article-card img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  /* Ensure content images are not smaller than 200px on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__article-image {
    height: auto; /* Allow auto height for responsive images */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}