/* style/blog-latest-news.css */
.page-blog-latest-news {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog-latest-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding: 60px 20px;
}

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

.page-blog-latest-news__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF; /* White text over dark/rich image background */
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-blog-latest-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45;
}

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

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

.page-blog-latest-news__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;
  white-space: nowrap;
}

.page-blog-latest-news__button--register {
  background-color: #FFFFFF;
  color: #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;
}

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

.page-blog-latest-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr; /* Main content and sidebar */
  gap: 40px;
}

.page-blog-latest-news__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
  text-align: center;
  grid-column: 1 / -1; /* Span across both columns */
}

.page-blog-latest-news__intro-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: justify;
  grid-column: 1 / -1;
}

.page-blog-latest-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  grid-column: 1 / 2; /* Main content column */
}

.page-blog-latest-news__news-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;
}

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

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

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

.page-blog-latest-news__news-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-blog-latest-news__news-card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 20px;
}

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

.page-blog-latest-news__news-card-link:hover {
  color: #e0a53b;
  text-decoration: underline;
}

.page-blog-latest-news__pagination {
  grid-column: 1 / 2;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

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

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

.page-blog-latest-news__sidebar {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog-latest-news__sidebar-widget {
  background-color: #F8F8F8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-blog-latest-news__sidebar-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 20px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-blog-latest-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog-latest-news__category-list li {
  margin-bottom: 10px;
}

.page-blog-latest-news__category-list li a {
  color: #444444;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-blog-latest-news__category-list li a:hover {
  color: #FCBC45;
}

.page-blog-latest-news__button--subscribe {
  background-color: #FCBC45;
  color: #000000;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.page-blog-latest-news__button--subscribe:hover {
  background-color: #e0a53b;
}

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

.page-blog-latest-news__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-blog-latest-news__cta-description {
  font-size: 1.3em;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-blog-latest-news__button--register-large {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-blog-latest-news__button--learn-more {
  background-color: #FFFFFF;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog-latest-news__hero-title {
    font-size: 3em;
  }
  .page-blog-latest-news__content-area {
    grid-template-columns: 1fr;
  }
  .page-blog-latest-news__news-grid {
    grid-column: 1 / -1;
  }
  .page-blog-latest-news__sidebar {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-blog-latest-news__sidebar-widget {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-blog-latest-news__hero-title {
    font-size: 2.2em;
  }
  .page-blog-latest-news__hero-description {
    font-size: 1em;
  }
  .page-blog-latest-news__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog-latest-news__button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog-latest-news__section-title {
    font-size: 2em;
  }
  .page-blog-latest-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-blog-latest-news__news-card-image,
  .page-blog-latest-news__news-card {
    max-width: 100%;
    height: auto;
  }
  .page-blog-latest-news__news-card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-blog-latest-news__news-card-title {
    font-size: 1.3em;
  }
  .page-blog-latest-news__sidebar {
    flex-direction: column;
  }
  .page-blog-latest-news__sidebar-widget {
    flex: 1 1 100%;
  }
  .page-blog-latest-news__cta-title {
    font-size: 2.5em;
  }
  .page-blog-latest-news__cta-description {
    font-size: 1.1em;
  }
  .page-blog-latest-news__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog-latest-news__button--register-large,
  .page-blog-latest-news__button--learn-more {
    width: 80%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure all content area images are responsive and not too small */
  .page-blog-latest-news img {
    max-width: 100%;
    height: auto;
  }
  .page-blog-latest-news__news-card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog-latest-news__hero-title {
    font-size: 1.8em;
  }
  .page-blog-latest-news__hero-description {
    font-size: 0.9em;
  }
  .page-blog-latest-news__section-title {
    font-size: 1.8em;
  }
  .page-blog-latest-news__cta-title {
    font-size: 2em;
  }
}