.page-blog {
  color: #333333; /* Dark text for default light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

.page-blog__hero-button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.2);
  transform: translateY(-3px);
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

.page-blog__article-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;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #0A2463;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #f1f1f1;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #0A2463;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-blog__category-card:hover {
  background-color: #1a3c7a;
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-blog__cta-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-color: #0A2463;
  color: #ffffff;
  overflow: hidden;
}

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

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2463;
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__newsletter-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

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

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 2px solid #0A2463;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
}

.page-blog__newsletter-input::placeholder {
  color: #888888;
}

.page-blog__newsletter-button {
  background-color: #0A2463;
  color: #FFD700;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__newsletter-button:hover {
  background-color: #1a3c7a;
  color: #ffffff;
}

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

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

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__hero-button {
    width: 80%;
    max-width: 300px;
  }

  .page-blog__latest-articles, .page-blog__categories-section, .page-blog__cta-section, .page-blog__newsletter-section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__articles-grid, .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }

  .page-blog__article-title {
    font-size: 1.2em;
  }

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

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

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__newsletter-input, .page-blog__newsletter-button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Ensure all images in content area are responsive and not smaller than 200px */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
}

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

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

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

  .page-blog__newsletter-input, .page-blog__newsletter-button {
    font-size: 0.9em;
  }
}