.page-blog {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  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 {
  background-color: #0A2463; /* Main brand color for hero background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

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

.page-blog__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, color 0.3s ease;
}

.page-blog__button--primary {
  background-color: #FFD700; /* Accent color for primary button */
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-blog__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-blog__button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

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

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

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

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

.page-blog__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__article-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-blog__article-image {
  width: 300px; /* Fixed width for article list images */
  height: 169px; /* Maintain aspect ratio (16:9) */
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
}

.page-blog__article-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: #FFD700;
  border-radius: 25px;
  padding: 10px 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-blog__category-item a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
}

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

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

.page-blog__cta-description {
  font-size: 1.15em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-blog__article-image {
    width: 100%;
    height: 180px;
    border-radius: 12px 12px 0 0;
  }
  .page-blog__article-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .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__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px 0;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__article-item {
    margin-bottom: 20px;
  }
  .page-blog__article-image {
    height: 160px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__category-list {
    justify-content: flex-start;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* Ensure all images within .page-blog are responsive */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image,
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not too small */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__article-content {
    padding: 15px;
  }
  .page-blog__article-title {
    font-size: 1.1em;
  }
  .page-blog__category-item {
    padding: 8px 20px;
    font-size: 0.95em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}