.page-blog-latest-articles {
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background as per custom color */
}

.page-blog-latest-articles__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* Light text for hero content */
  text-align: center;
}

.page-blog-latest-articles__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 20px;
}

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

.page-blog-latest-articles__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

.page-blog-latest-articles__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

.page-blog-latest-articles__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog-latest-articles__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog-latest-articles__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-blog-latest-articles__button--promotions {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog-latest-articles__button--promotions:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

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

.page-blog-latest-articles__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-blog-latest-articles__article-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog-latest-articles__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-blog-latest-articles__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog-latest-articles__article-content {
  padding: 20px;
}

.page-blog-latest-articles__article-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog-latest-articles__article-excerpt {
  font-size: 1em;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit excerpt to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog-latest-articles__read-more {
  color: #FCBC45;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

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

.page-blog-latest-articles__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

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

.page-blog-latest-articles__pagination-link:hover,
.page-blog-latest-articles__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-blog-latest-articles__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

.page-blog-latest-articles__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-blog-latest-articles__button--cta:hover {
  background-color: transparent;
  color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-articles__hero-title {
    font-size: 2.8em;
  }
  .page-blog-latest-articles__hero-description {
    font-size: 1.1em;
  }
  .page-blog-latest-articles__section-title {
    font-size: 2em;
  }
  .page-blog-latest-articles__article-image {
    height: 220px;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 2.2em;
  }
  .page-blog-latest-articles__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog-latest-articles__hero-section {
    padding: 40px 15px;
  }
  .page-blog-latest-articles__hero-title {
    font-size: 2.2em;
  }
  .page-blog-latest-articles__hero-description {
    font-size: 1em;
  }
  .page-blog-latest-articles__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog-latest-articles__button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog-latest-articles__content-area {
    padding: 40px 15px;
  }
  .page-blog-latest-articles__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog-latest-articles__article-image {
    max-width: 100%;
    height: auto; /* Allow height to adjust for mobile */
  }
  .page-blog-latest-articles__cta-section {
    padding: 60px 15px;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 1.8em;
  }
  .page-blog-latest-articles__cta-description {
    font-size: 1em;
  }
  .page-blog-latest-articles__button--cta {
    font-size: 1.1em;
    padding: 12px 25px;
  }

  /* Critical: Mobile content area images must not overflow */
  .page-blog-latest-articles img {
    max-width: 100%;
    height: auto;
  }
  .page-blog-latest-articles__hero-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog-latest-articles__hero-title {
    font-size: 1.8em;
  }
  .page-blog-latest-articles__section-title {
    font-size: 1.8em;
  }
  .page-blog-latest-articles__article-title {
    font-size: 1.3em;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 1.6em;
  }
}