/* style/blog-latest-news.css */
.page-blog-latest-news {
  color: #333333; /* Dark text for light body background */
}

.page-blog-latest-news__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  padding-bottom: 40px;
}

.page-blog-latest-news__hero-content {
  max-width: 900px;
  padding: 20px;
}

.page-blog-latest-news__hero-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog-latest-news__hero-description {
  font-size: 1.1em;
  color: #666666;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-blog-latest-news__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1em;
}

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

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

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

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

.page-blog-latest-news__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-blog-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-blog-latest-news__articles-section {
  background-color: #F8F8F8;
  padding: 60px 0;
}

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

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

.page-blog-latest-news__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-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

.page-blog-latest-news__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog-latest-news__article-content {
  padding: 25px;
}

.page-blog-latest-news__article-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-blog-latest-news__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-blog-latest-news__read-more {
  display: inline-block;
  color: #FCBC45;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-blog-latest-news__read-more:hover {
  color: #e0a030;
  border-color: #e0a030;
}

.page-blog-latest-news__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-blog-latest-news__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog-latest-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-blog-latest-news__button--subscribe:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog-latest-news__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-blog-latest-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-latest-news__button {
    width: 100%;
    max-width: 250px; /* Constrain button width on mobile */
  }

  .page-blog-latest-news__articles-section {
    padding: 40px 0;
  }

  .page-blog-latest-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog-latest-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog-latest-news__article-image {
    height: 200px;
  }

  .page-blog-latest-news__article-title {
    font-size: 1.2em;
  }

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

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

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

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