/* style/blog-latest-news.css */

.page-blog-latest-news {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-latest-news__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A1931, #1a2b45);
}

.page-blog-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-blog-latest-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-blog-latest-news__hero-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog-latest-news__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog-latest-news__hero-button:hover {
  background-color: #e6c200;
}

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

.page-blog-latest-news__section-title,
.page-blog-latest-news__cta-title,
.page-blog-latest-news__about-title {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-blog-latest-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc;
}

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

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

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

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

.page-blog-latest-news__article-body {
  padding: 20px;
}

.page-blog-latest-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

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

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

.page-blog-latest-news__read-more {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-blog-latest-news__read-more:hover {
  background-color: #e6c200;
}

.page-blog-latest-news__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-blog-latest-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #0A1931;
  color: #FFD700;
  border-radius: 5px;
  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: #FFD700;
  color: #0A1931;
}

.page-blog-latest-news__cta-section {
  background: linear-gradient(90deg, #0A1931, #1a2b45);
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 50px;
  margin-bottom: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog-latest-news__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: #f0f0f0;
}

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

.page-blog-latest-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-latest-news__cta-button--primary {
  background-color: #FFD700;
  color: #0A1931;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-blog-latest-news__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.page-blog-latest-news__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.page-blog-latest-news__cta-button--secondary:hover {
  transform: translateY(-3px);
  background-color: #FFD700;
  color: #0A1931;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

.page-blog-latest-news__about-us-summary {
  margin-top: 80px;
  padding: 40px 20px;
  background-color: #0A1931;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #cccccc;
}

.page-blog-latest-news__about-text {
  margin-bottom: 20px;
  font-size: 1em;
}

.page-blog-latest-news__about-link {
  display: inline-block;
  margin-top: 20px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog-latest-news__about-link:hover {
  color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-news__hero-title {
    font-size: 2.4em;
  }
  .page-blog-latest-news__hero-description {
    font-size: 1.1em;
  }
  .page-blog-latest-news__section-title,
  .page-blog-latest-news__cta-title,
  .page-blog-latest-news__about-title {
    font-size: 2em;
  }
  .page-blog-latest-news__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog-latest-news__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-blog-latest-news__hero-image {
    max-height: 300px;
  }
  .page-blog-latest-news__hero-content {
    position: static;
    transform: none;
    background: none;
    padding: 20px;
  }
  .page-blog-latest-news__hero-title {
    font-size: 2em;
    margin-top: 20px;
  }
  .page-blog-latest-news__hero-description {
    font-size: 1em;
  }
  .page-blog-latest-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog-latest-news__section-title,
  .page-blog-latest-news__cta-title,
  .page-blog-latest-news__about-title {
    font-size: 1.8em;
  }
  .page-blog-latest-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog-latest-news__article-image {
    height: 200px;
    max-width: 100%; /* Ensure mobile images do not overflow */
  }
  .page-blog-latest-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog-latest-news__cta-button {
    width: 100%;
    max-width: 300px;
  }
  /* Enforce mobile image responsiveness for all content images */
  .page-blog-latest-news img {
    max-width: 100%;
    height: auto;
  }
  /* Content area must not cause horizontal scroll */
  .page-blog-latest-news {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog-latest-news__hero-title {
    font-size: 1.6em;
  }
  .page-blog-latest-news__hero-description {
    font-size: 0.9em;
  }
  .page-blog-latest-news__section-title,
  .page-blog-latest-news__cta-title,
  .page-blog-latest-news__about-title {
    font-size: 1.5em;
  }
  .page-blog-latest-news__article-title {
    font-size: 1.2em;
  }
  .page-blog-latest-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
}