.page-blog {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  position: relative;
  background-color: #0A2463; /* Primary color as background fallback */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%; /* Prevent horizontal overflow */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Darken image for text readability, does not change color */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #E5A000; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__hero-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.3s ease;
}

.page-blog__hero-button--primary {
  background-color: #E5A000;
  color: #0A2463;
  border: 2px solid #E5A000;
}

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

.page-blog__hero-button--secondary {
  background-color: transparent;
  color: #E5A000;
  border: 2px solid #E5A000;
}

.page-blog__hero-button--secondary:hover {
  background-color: rgba(229, 160, 0, 0.1);
  transform: translateY(-3px);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #0A2463;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__article-card, .page-blog__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333333;
}

.page-blog__article-card:hover, .page-blog__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__article-title {
  font-size: 1.5em;
  color: #0A2463;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A2463;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #1a3c7c;
}

.page-blog__category-card {
  text-align: center;
}

.page-blog__category-image {
  height: 150px;
}

.page-blog__category-title {
  font-size: 1.4em;
  color: #0A2463;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-description {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px 20px;
}

.page-blog__call-to-action-section {
  background-color: #0A2463;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #E5A000;
  margin-bottom: 25px;
}

.page-blog__cta-description {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-blog__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-blog__cta-button--primary {
  background-color: #E5A000;
  color: #0A2463;
  border: 2px solid #E5A000;
}

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

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #E5A000;
  border: 2px solid #E5A000;
}

.page-blog__cta-button--secondary:hover {
  background-color: rgba(229, 160, 0, 0.1);
  transform: translateY(-3px);
}

.page-blog__faq-section {
  margin-bottom: 60px;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-question {
  font-size: 1.3em;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-blog__faq-answer a {
  color: #0A2463;
  text-decoration: none;
}

.page-blog__faq-answer a:hover {
  text-decoration: underline;
}

.page-blog__community-section {
  background-color: #f0f5f9; /* Light background for contrast */
  padding: 60px 20px;
  text-align: center;
}

.page-blog__social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__social-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0A2463;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__social-button:hover {
  background-color: #1a3c7c;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 30px 20px;
    background-color: rgba(10, 36, 99, 0.7); /* Semi-transparent background for text */
    border-radius: 0;
  }
  .page-blog__hero-image {
    filter: brightness(0.5); /* More darken image on mobile */
  }
  .page-blog__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__articles-grid, .page-blog__categories-grid, .page-blog__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__category-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    min-height: 200px; /* Minimum height for content images */
  }
  .page-blog__article-card img, .page-blog__category-card img, .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__faq-question {
    font-size: 1.1em;
  }
}