/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a1a; /* Ensure consistency with body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0A192F;
  padding-bottom: 60px; /* Add some padding below content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text readability, not color change */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Auxiliary color for hero title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for button */
  color: #0A192F; /* Main color for button text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-blog__article-card {
  background-color: #0A192F; /* Main color for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent title height */
}

.page-blog__article-title a {
  color: #FFD700; /* Auxiliary color for article titles */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #ffffff;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 20px;
  min-height: 100px; /* Ensure consistent excerpt height */
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700; /* Auxiliary color for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #ffffff;
}

/* Featured Topics Section */
.page-blog__featured-topics {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-blog__topic-card {
  background-color: #0A192F;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-blog__topic-card:hover {
  transform: translateY(-5px);
}

.page-blog__topic-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  min-height: 50px;
}

.page-blog__topic-title a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__topic-title a:hover {
  color: #ffffff;
}

.page-blog__topic-description {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 25px;
  min-height: 80px;
}

.page-blog__topic-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__topic-button:hover {
  background-color: #e0b800;
  transform: translateY(-2px);
}

/* Call to Action Section */
.page-blog__call-to-action {
  padding: 80px 0;
  background-color: #0A192F; /* Main color for CTA background */
  text-align: center;
}

.page-blog__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-text {
  max-width: 700px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 18px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
}

/* More Articles Section - Reuses article card styles */
.page-blog__more-articles {
  padding: 80px 0;
  background-color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__articles-grid,
  .page-blog__topics-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image,
  .page-blog__article-card img,
  .page-blog__cta-image,
  .page-blog__more-articles img {
    max-width: 100%;
    height: auto;
  }

  .page-blog__article-title,
  .page-blog__topic-title {
    min-height: auto;
  }

  .page-blog__article-excerpt,
  .page-blog__topic-description {
    min-height: auto;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }

  .page-blog__hero-description {
    font-size: 0.9em;
  }

  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__article-content,
  .page-blog__topic-card {
    padding: 20px;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__cta-description {
    font-size: 0.9em;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}