.page-blog-latest-articles {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0A192F; /* Inherited from shared, ensuring consistency */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog-latest-articles__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-blog-latest-articles__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog-latest-articles__hero-button {
  display: inline-block;
  background-color: #1E90FF; /* Blue auxiliary color */
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #1E90FF;
}

.page-blog-latest-articles__hero-button:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #0A192F;
  transform: translateY(-3px);
  border-color: #FFD700;
}

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

.page-blog-latest-articles__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-blog-latest-articles__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog-latest-articles__article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog-latest-articles__article-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-blog-latest-articles__article-title a:hover {
  color: #1E90FF;
}

.page-blog-latest-articles__article-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-latest-articles__read-more {
  display: inline-block;
  background-color: #1E90FF;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog-latest-articles__read-more:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-blog-latest-articles__cta-section {
  background: linear-gradient(135deg, #1E90FF, #0A192F);
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  color: #ffffff;
}

.page-blog-latest-articles__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: 700;
}

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

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

.page-blog-latest-articles__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  transition: all 0.3s ease;
  min-width: 180px;
}

.page-blog-latest-articles__cta-button--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-blog-latest-articles__cta-button--primary:hover {
  background-color: transparent;
  color: #FFD700;
  transform: translateY(-3px);
}

.page-blog-latest-articles__cta-button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-blog-latest-articles__cta-button--secondary:hover {
  background-color: #1E90FF;
  border-color: #1E90FF;
  transform: translateY(-3px);
}

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

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

.page-blog-latest-articles__resource-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-blog-latest-articles__resource-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-blog-latest-articles__resource-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-blog-latest-articles__resource-item h3 a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-latest-articles__resource-item h3 a:hover {
  color: #1E90FF;
}

.page-blog-latest-articles__resource-item p {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-articles__hero-title {
    font-size: 3em;
  }
  .page-blog-latest-articles__hero-description {
    font-size: 1.2em;
  }
  .page-blog-latest-articles__section-title {
    font-size: 2.2em;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog-latest-articles__hero-title {
    font-size: 2.5em;
  }
  .page-blog-latest-articles__hero-description {
    font-size: 1em;
  }
  .page-blog-latest-articles__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-blog-latest-articles__section-title {
    font-size: 2em;
  }
  .page-blog-latest-articles__grid-container {
    grid-template-columns: 1fr;
  }
  .page-blog-latest-articles__article-image {
    height: 200px; /* Ensure content images are not too small */
  }
  .page-blog-latest-articles__article-card img,
  .page-blog-latest-articles__articles-grid img,
  .page-blog-latest-articles__more-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 2em;
  }
  .page-blog-latest-articles__cta-description {
    font-size: 1em;
  }
  .page-blog-latest-articles__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog-latest-articles__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog-latest-articles__resources-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-blog-latest-articles__hero-title {
    font-size: 2em;
  }
  .page-blog-latest-articles__hero-description {
    font-size: 0.9em;
  }
  .page-blog-latest-articles__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-blog-latest-articles__section-title {
    font-size: 1.8em;
  }
  .page-blog-latest-articles__cta-title {
    font-size: 1.8em;
  }
  .page-blog-latest-articles__article-title {
    font-size: 1.4em;
  }
  .page-blog-latest-articles__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog-latest-articles__article-image {
    height: 200px; /* Minimum height for article images */
  }
}