.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #ffffff); /* Assuming a light background from shared.css */
}

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding: 80px 0;
  background-color: #000000; /* Dark background for hero content */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image to make text pop */
  z-index: 1;
}

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

.page-blog__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-blog__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text */
  border-color: #FCBC45;
}

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

.page-blog__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Main color for text */
  border-color: #FFFFFF;
}

.page-blog__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

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

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

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

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

.page-blog__featured-card:hover {
  transform: translateY(-5px);
}

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

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

.page-blog__featured-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__featured-title a {
  color: #000000; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
  color: #FCBC45; /* Login button color */
}

.page-blog__featured-excerpt {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  color: #FCBC45; /* Login button color */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

.page-blog__latest-posts {
  padding: 60px 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 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #000000; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FCBC45; /* Login button color */
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__call-to-action {
  background-color: #000000; /* Main color */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  margin-top: 60px;
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color */
}

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__featured-image {
    height: 350px;
  }
  .page-blog__featured-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__main-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-blog__featured-card {
    flex-direction: column;
  }
  .page-blog__featured-image {
    height: 280px;
  }
  .page-blog__featured-content {
    padding: 20px;
  }
  .page-blog__featured-title {
    font-size: 1.4em;
  }
  .page-blog__post-image {
    height: 200px; /* Ensures content images are not smaller than 200px height */
    max-width: 100%; /* Prevents image overflow on mobile */
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }

  /* Critical: Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__featured-image {
    height: 220px;
  }
  .page-blog__featured-title {
    font-size: 1.2em;
  }
  .page-blog__post-image {
    height: 180px; /* Smallest acceptable height for blog post cards */
  }
  .page-blog__post-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
  }
}