.page-blog {
  color: #333333; /* Dark text for light background */
}

.page-blog__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: #FFFFFF;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

.page-blog__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
  color: #555555;
}

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__call-to-action {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

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

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
}

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

.page-blog__category-card {
  background-color: #000000;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__category-card:hover {
  background-color: #333333;
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FCBC45;
}

.page-blog__category-description {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-blog__call-to-action {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  border-radius: 10px;
  margin: 80px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 50px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-blog__posts-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 15px 40px;
    font-size: 1.1em;
  }
  .page-blog__latest-posts, .page-blog__categories, .page-blog__call-to-action {
    margin: 40px auto;
  }
  .page-blog__hero-image, .page-blog__post-image, .page-blog__cta-container img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content area images are not smaller than 200px on mobile */
  .page-blog img {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__post-image {
    min-width: 200px;
    min-height: 200px;
    height: auto; /* Allow auto height for aspect ratio */
  }
  .page-blog__category-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__post-excerpt {
    font-size: 0.85em;
  }
  .page-blog__category-title {
    font-size: 1.5em;
  }
  .page-blog__category-description {
    font-size: 0.9em;
  }
  .page-blog__call-to-action {
    padding: 50px 15px;
  }
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog img {
    min-width: 200px;
    min-height: 200px;
  }
}