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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

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

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

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

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.2;
}

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

.page-blog__latest-articles {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

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

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

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

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

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  min-height: 50px; /* Ensure consistent height for titles */
}

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

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

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  min-height: 120px; /* Ensure consistent height for excerpts */
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-blog__view-all-button {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: #333333;
}

.page-blog__categories {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  background-color: #f0f0f0;
  color: #333333;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

.page-blog__category-item a:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-blog__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 16px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15em;
  margin: 0 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__latest-articles,
  .page-blog__categories,
  .page-blog__cta-section {
    padding: 20px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-image {
    height: 200px;
  }
  .page-blog__card-title {
    font-size: 1.4em;
    min-height: auto;
  }
  .page-blog__card-excerpt {
    min-height: auto;
    -webkit-line-clamp: 4; /* Adjust line clamp for mobile */
  }
  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  .page-blog__cta-button {
    margin: 10px 0;
    width: 100%;
    max-width: 280px;
  }
  .page-blog__hero-image img,
  .page-blog__article-card img,
  .page-blog__cta-section img { /* Apply to all content images */
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__hero-button,
  .page-blog__view-all-button,
  .page-blog__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-blog__card-content {
    padding: 15px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__card-excerpt {
    font-size: 0.9em;
  }
}