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

.page-blog-articles__hero-section {
  position: relative;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

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

.page-blog-articles__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-blog-articles__hero-button {
  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.2s ease;
  margin: 0 10px;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-blog-articles__hero-button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
}

.page-blog-articles__hero-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog-articles__hero-button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
}

.page-blog-articles__hero-button--login:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

.page-blog-articles__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

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

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

.page-blog-articles__article-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog-articles__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, min 200px satisfied */
  object-fit: cover;
  display: block;
}

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

.page-blog-articles__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
  min-height: 50px; /* Ensure title has some space */
}

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

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

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

.page-blog-articles__read-more {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog-articles__read-more:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-blog-articles__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-blog-articles__cta-button {
  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.2s ease;
  min-width: 200px;
}

.page-blog-articles__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog-articles__cta-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog-articles__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog-articles__cta-button--login:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

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

  .page-blog-articles__cta-title {
    font-size: 2.4em;
  }

  .page-blog-articles__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog-articles__article-image {
    height: 200px; /* Adjust height but keep above 200px if possible for content images */
  }
}

@media (max-width: 768px) {
  .page-blog-articles__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-blog-articles__hero-button {
    width: 100%;
    margin: 10px 0;
  }

  .page-blog-articles__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog-articles__content-area {
    padding: 15px;
  }

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

  .page-blog-articles__article-title {
    font-size: 1.4em;
  }

  .page-blog-articles__cta-section {
    padding: 60px 15px;
  }

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

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

  .page-blog-articles__cta-buttons {
    flex-direction: column;
  }

  .page-blog-articles__cta-button {
    width: 100%;
    margin: 10px 0;
  }

  /* IMPORTANT: Mobile content area image overflow prevention */
  .page-blog-articles__articles-grid img,
  .page-blog-articles__hero-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }

  /* Ensure no image selector makes display size smaller than 200px */
  .page-blog-articles img {
    min-width: 200px;
    min-height: 200px;
  }
  /* Specific overrides for smaller elements if they exist, to ensure minimum size */
  .page-blog-articles__article-image {
    height: auto; /* Allow auto height for responsive scaling */
    min-height: 200px; /* Ensure a minimum display height */
  }
}

@media (max-width: 480px) {
  .page-blog-articles__hero-title {
    font-size: 1.8em;
  }

  .page-blog-articles__hero-button {
    font-size: 1em;
    padding: 12px 25px;
  }

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

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

  .page-blog-articles__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}