.page-blog {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000080; /* Fallback background for hero */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-blog__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(rgba(0, 0, 128, 0.5), rgba(0, 0, 128, 0.8)); /* Midnight blue overlay */
  color: #ffffff;
}

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

.page-blog__hero-intro {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #000080;
  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-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000080;
  text-align: center;
  margin: 60px 0 40px;
  font-weight: bold;
}

.page-blog__latest-posts {
  padding: 60px 0;
}

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

.page-blog__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__card-title a {
  color: #000080;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

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

.page-blog__pagination {
  text-align: center;
  margin-top: 50px;
}

.page-blog__pagination-link {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 5px;
  border: 1px solid #000080;
  border-radius: 6px;
  color: #000080;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #FFD700;
  color: #000080;
  border-color: #FFD700;
}

.page-blog__featured-topics {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

.page-blog__topic-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__topic-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__topic-description {
  font-size: 0.95em;
  color: #666666;
}

.page-blog__newsletter-cta {
  background-color: #000080;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-blog__newsletter-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-blog__newsletter-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__newsletter-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-intro {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__card-title {
    font-size: 1.4em;
  }
  .page-blog__newsletter-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-intro {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__blog-grid,
  .page-blog__topic-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-image, .page-blog__blog-card img, .page-blog__topic-card img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__newsletter-title {
    font-size: 2em;
  }
  .page-blog__newsletter-description {
    font-size: 1em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__newsletter-input,
  .page-blog__newsletter-button {
    width: 90%;
    max-width: 300px;
  }
  .page-blog__newsletter-input {
    margin-bottom: 10px;
  }
  /* Ensure all content images in main area are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-intro {
    font-size: 0.9em;
  }
  .page-blog__hero-cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__card-title {
    font-size: 1.3em;
  }
  .page-blog__newsletter-title {
    font-size: 1.8em;
  }
  .page-blog__newsletter-description {
    font-size: 0.9em;
  }
  .page-blog__newsletter-input,
  .page-blog__newsletter-button {
    padding: 12px 15px;
    font-size: 0.9em;
  }
  .page-blog__pagination-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}