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

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

.page-blog__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Ensures hero section has presence */
}

.page-blog__hero-container {
  max-width: 800px;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for CTA */
  color: #000000; /* Dark text for the button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__cta-button:hover {
  background-color: #e6a73c;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin: 60px 0 40px;
}

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

.page-blog__article-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;
}

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

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

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

.page-blog__article-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  text-decoration: underline;
}

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

.page-blog__read-more {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
}

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

.page-blog__latest-posts {
  margin-bottom: 60px;
}

.page-blog__post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__post-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.page-blog__post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-blog__post-thumbnail {
  width: 200px; /* Minimum 200px */
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-blog__post-details {
  flex-grow: 1;
}

.page-blog__post-item-title {
  font-size: 1.2em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-blog__post-item-title a {
  color: #000000;
  text-decoration: none;
}

.page-blog__post-item-title a:hover {
  text-decoration: underline;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 0.9em;
  color: #666666;
}

.page-blog__categories {
  margin-bottom: 60px;
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-blog__category-card {
  display: block;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 25px 15px;
  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__category-card:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 0;
}

.page-blog__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-blog__cta-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-blog__cta-button--large:hover {
  background-color: #e6a73c;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }
  .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;
    min-height: 300px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    max-width: 400px; /* Ensure content images are not too small */
    height: auto; /* Maintain aspect ratio */
    margin-right: 0;
    margin-bottom: 20px;
  }
  .page-blog__post-details {
    width: 100%;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  /* Mobile content area images must be responsive */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-thumbnail {
    max-width: 100%;
    height: auto; /* Ensure content images are not too small and prevent overflow */
  }
  .page-blog__article-image {
    max-width: 100%;
    height: auto; /* Ensure content images are not too small and prevent overflow */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__post-item-title {
    font-size: 1.1em;
  }
  .page-blog__category-card {
    font-size: 1em;
    padding: 20px 10px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}