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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #000000; /* Main color for contrast */
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  z-index: 1;
  max-width: 80%;
}

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

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

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

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

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: #E0A030;
}

.page-blog__posts-section, .page-blog__more-resources {
  padding: 80px 20px;
  background-color: #FFFFFF;
}

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 20px auto 0;
}

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

.page-blog__post-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px 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.8em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.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: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  height: 120px; /* Fixed height for consistent card appearance */
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.page-blog__cta-banner {
  background-color: #000000;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-banner-content {
  position: relative;
  z-index: 1;
}

.page-blog__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-blog__cta-text-overlay {
  position: relative;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-blog__cta-banner-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__button--cta:hover {
  background-color: #E0A030;
}

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

.page-blog__resource-card {
  background-color: #F0F0F0;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__resource-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-blog__resource-description {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
}

/* Media Queries for Responsiveness */
@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: 2.2em;
  }
  .page-blog__cta-banner-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-blog__hero-content {
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__posts-section, .page-blog__more-resources {
    padding: 60px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-blog__post-excerpt {
    height: auto;
  }
  .page-blog__cta-banner {
    padding: 40px 15px;
  }
  .page-blog__cta-banner-title {
    font-size: 1.8em;
  }
  .page-blog__cta-banner-description {
    font-size: 0.95em;
  }
  .page-blog__button--cta {
    padding: 15px 30px;
    font-size: 1em;
  }

  /* Ensure images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-blog__cta-banner-image {
    height: 100%;
  }
  /* Content area images must not be smaller than 200px */
  .page-blog__post-image,
  .page-blog__cta-banner-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@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.5em;
  }
  .page-blog__post-title {
    font-size: 1.5em;
  }
  .page-blog__cta-banner-title {
    font-size: 1.5em;
  }
  .page-blog__button--cta {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
}