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

.page-blog__hero-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient for hero */
  color: #ffffff;
  padding: var(--header-offset, 120px) 20px 60px; /* Top padding for fixed header, plus general padding */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for highlight */
}

.page-blog__hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__button--login:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  display: block; /* Ensure it's a block element */
}

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

.page-blog__introduction-section,
.page-blog__recent-articles-section,
.page-blog__categories-section,
.page-blog__featured-guides-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__section-title,
.page-blog__cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
}

.page-blog__paragraph,
.page-blog__cta-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__paragraph:last-child {
  margin-bottom: 0;
}

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

.page-blog__article-card,
.page-blog__category-card,
.page-blog__guide-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__category-card:hover,
.page-blog__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image,
.page-blog__category-image,
.page-blog__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-blog__guide-image {
  height: 300px;
}

.page-blog__article-content,
.page-blog__guide-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__category-card .page-blog__category-title,
.page-blog__article-title,
.page-blog__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #000000;
}

.page-blog__article-title a,
.page-blog__guide-title a,
.page-blog__category-card .page-blog__category-title {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__guide-title a:hover,
.page-blog__category-card:hover .page-blog__category-title {
  color: #FCBC45;
}

.page-blog__article-excerpt,
.page-blog__category-description,
.page-blog__guide-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-blog__category-title {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-blog__category-description {
  text-align: center;
  font-size: 0.9rem;
  color: #666666;
}

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

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

.page-blog__cta-description {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
}

.page-blog__button--signup {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__button--signup:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: var(--header-offset, 80px) 15px 40px;
  }
  .page-blog__hero-title {
    font-size: 2.2rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-blog__introduction-section,
  .page-blog__recent-articles-section,
  .page-blog__categories-section,
  .page-blog__featured-guides-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__paragraph,
  .page-blog__cta-description {
    font-size: 0.95rem;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image,
  .page-blog__category-image,
  .page-blog__guide-image {
    height: 180px;
  }
  .page-blog__guide-image {
    height: 250px;
  }
  .page-blog__article-content,
  .page-blog__guide-content {
    padding: 20px;
  }
  .page-blog__article-title,
  .page-blog__guide-title {
    font-size: 1.2rem;
  }
  .page-blog__category-title {
    font-size: 1.1rem;
  }
  .page-blog__article-excerpt,
  .page-blog__category-description,
  .page-blog__guide-excerpt {
    font-size: 0.85rem;
  }
  .page-blog__cta-title {
    font-size: 2rem;
  }

  /* Ensure content images are not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image, .page-blog__category-image, .page-blog__guide-image {
    min-height: 200px; /* Ensure images are not too small */
    width: 100%;
  }
}