.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__hero-section {
  background-color: #0A2463; /* Main brand color for hero background */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect for background image */
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #E3B23C; /* Accent color for CTA button */
  color: #0A2463; /* Dark text for accent background */
  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__cta-button:hover {
  background-color: #f0c96e;
  transform: translateY(-2px);
}

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

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #E3B23C;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-blog__featured-posts,
.page-blog__latest-news,
.page-blog__guides-strategies,
.page-blog__about-vipph {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-blog__post-card,
.page-blog__guide-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-card img,
.page-blog__guide-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #0A2463;
}

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

.page-blog__card-title a:hover,
.page-blog__news-title a:hover,
.page-blog__guide-title a:hover {
  color: #E3B23C;
}

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

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

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

.page-blog__categories {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: #f0f0f0;
  color: #0A2463;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.95em;
}

.page-blog__category-item:hover {
  background-color: #E3B23C;
  color: #ffffff;
}

.page-blog__news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog__news-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-blog__news-title {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #0A2463;
}

.page-blog__news-meta {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 15px;
}

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

.page-blog__guide-card {
  background-color: #f9f9f9;
  border: 1px solid #dcdcdc;
}

.page-blog__guide-card .page-blog__card-content {
  padding: 20px;
}

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

.page-blog__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(10, 36, 99, 0.8), rgba(227, 178, 60, 0.2)); /* Subtle gradient overlay */
  z-index: 1;
}

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.page-blog__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-blog__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
  display: block;
}

.page-blog__about-vipph {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.page-blog__about-text {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 25px;
}

.page-blog__about-link {
  display: inline-block;
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 2px solid #E3B23C;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__about-link:hover {
  color: #E3B23C;
  border-color: #0A2463;
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__post-grid,
  .page-blog__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-title {
    font-size: 1.3em;
  }
  .page-blog__news-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button--large {
    padding: 15px 25px;
    font-size: 1.1em;
  }
  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__category-item {
    width: 80%;
    text-align: center;
  }
  /* Ensure content images are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-card img, .page-blog__guide-card img, .page-blog__cta-image img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
  }
  /* Any img within .page-blog must be at least 200px wide/high */
  .page-blog :is(img, .page-blog__post-card img, .page-blog__guide-card img, .page-blog__cta-image img) {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    width: 100%;
    padding: 12px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__news-item {
    padding: 20px;
  }
  .page-blog__news-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
}