.page-blog {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken image slightly for text readability, not color change */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  z-index: 2;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for highlight */
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for CTA */
  color: #0A192F; /* Main color for text on CTA */
  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: #e6c200;
  transform: translateY(-2px);
}

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

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

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__call-to-action,
.page-blog__about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-blog__article-card {
  background-color: rgba(10, 25, 47, 0.8); /* Semi-transparent main color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
}

.page-blog__article-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.6em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

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

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

.page-blog__read-more:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-blog__posts-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-blog__post-item {
  display: flex;
  background-color: rgba(10, 25, 47, 0.8); /* Semi-transparent main color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-5px);
}

.page-blog__post-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.page-blog__post-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

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

.page-blog__post-excerpt {
  font-size: 0.9em;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__call-to-action {
  text-align: center;
  background: linear-gradient(135deg, #0A192F, #000000);
  padding: 80px 20px;
  border-radius: 15px;
  margin-top: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-blog__about-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-blog__about-content p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* 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__article-title {
    font-size: 1.4em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
  }
  .page-blog__post-image {
    width: 100%;
    height: 250px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image, .page-blog__post-image {
    height: auto; /* Allow height to adjust proportionally */
    min-height: 200px; /* Ensure minimum size */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
}