.page-blog {
  background-color: #FFFFFF;
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding to avoid header overlap */
}

.page-blog__hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-blog__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  color: #FFFFFF;
}

.page-blog__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 900px;
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-blog__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin-bottom: 20px;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog__articles-section {
  padding: 40px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #017439;
  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: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
  font-weight: bold;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-blog__read-more {
  color: #017439;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #017439;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.page-blog__article-link:hover .page-blog__read-more::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-blog__pagination-link--active {
  background-color: #017439;
  color: #FFFFFF;
}

.page-blog__cta-section {
  background-color: #017439;
  padding: 60px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-blog__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 1200px; /* Display width */
  height: 600px; /* Display height */
  object-fit: cover;
}

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

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register and login font color */
  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;
  border: none;
  cursor: pointer;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-thumbnail {
    height: 200px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-image {
    width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
  }
}

@media (max-width: 768px) {
  .page-blog__articles-section img, .page-blog__cta-section img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__articles-grid {
    gap: 20px;
  }
  .page-blog__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
  .page-blog__container {
    padding: 0 12px;
  }
}

@media (max-width: 549px) {
  .page-blog__hero-overlay {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.8rem, 4vw, 1rem);
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__article-content {
    padding: 15px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}

/* Ensure all content images are at least 200px */
.page-blog__articles-section img, .page-blog__cta-section img {
  min-width: 200px;
  min-height: 200px;
}