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

.page-blog__hero-section {
  background-color: #000000; /* Main color as background for hero */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  text-align: center;
  color: #FFFFFF; /* White text for dark hero background */
  position: relative;
  overflow: hidden;
}

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

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

.page-blog__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Dark text for yellow button */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__hero-cta-button:hover {
  background-color: #FFD700;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #FFFFFF; /* Auxiliary color as background */
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #000000; /* Main color for titles */
}

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

.page-blog__post-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #000000;
}

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

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

.page-blog__post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45; /* Login color for read more */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

.page-blog__cta-section {
  background-color: #000000; /* Main color as background */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
}

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

.page-blog__cta-button--login {
  background-color: #FCBC45; /* Login color */
  color: #000000;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3rem;
  }

  .page-blog__hero-description {
    font-size: 1.1rem;
  }

  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__post-image {
    height: 220px;
  }

  .page-blog__post-title {
    font-size: 1.3rem;
  }

  .page-blog__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure mobile hero respects header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: 2.5rem;
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-blog__latest-posts {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-image {
    height: 200px; /* Minimum size for content images */
    max-width: 100%; /* Ensure images don't overflow */
  }

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

  .page-blog__post-title {
    font-size: 1.2rem;
  }

  .page-blog__cta-section {
    padding: 60px 20px;
  }

  .page-blog__cta-title {
    font-size: 1.8rem;
  }

  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
  }

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

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2rem;
  }

  .page-blog__hero-description {
    font-size: 0.9rem;
  }

  .page-blog__section-title {
    font-size: 1.5rem;
  }

  .page-blog__cta-title {
    font-size: 1.6rem;
  }
}