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

.page-blog__hero-section {
  background-color: #f8f8f8; /* Light background for hero section */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #000000; /* Main brand color for title */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__button--register {
  background-color: #FCBC45; /* Login color for register button */
  color: #000000;
}

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

.page-blog__button--login {
  background-color: #000000; /* Main color for login button */
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

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

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

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

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-blog__article-card, .page-blog__promo-card, .page-blog__rg-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__article-card:hover, .page-blog__promo-card:hover, .page-blog__rg-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-blog__article-image, .page-blog__promo-image, .page-blog__rg-image {
  width: 100%;
  height: 200px; /* Minimum height for content images */
  object-fit: cover;
  display: block;
}

.page-blog__article-content, .page-blog__promo-content, .page-blog__rg-content {
  padding: 25px;
}

.page-blog__article-title, .page-blog__promo-title, .page-blog__rg-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent card height */
}

.page-blog__article-title a, .page-blog__promo-title a, .page-blog__rg-title a {
  text-decoration: none;
  color: #000000; /* Dark color for link text */
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover, .page-blog__promo-title a:hover, .page-blog__rg-title a:hover {
  color: #FCBC45;
}

.page-blog__article-excerpt, .page-blog__promo-excerpt, .page-blog__rg-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  min-height: 120px; /* Ensure consistent card height */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;
}

.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: #e0a63b;
  text-decoration: underline;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-blog__button--cta:hover {
  background-color: #e0a63b;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog__container {
    padding: 30px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-blog__article-grid, .page-blog__promo-grid, .page-blog__rg-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-blog__article-image, .page-blog__promo-image, .page-blog__rg-image {
    height: 220px;
  }
  .page-blog__article-title, .page-blog__promo-title, .page-blog__rg-title {
    font-size: 1.3em;
    min-height: auto;
  }
  .page-blog__article-excerpt, .page-blog__promo-excerpt, .page-blog__rg-excerpt {
    min-height: auto;
    -webkit-line-clamp: 4; /* Adjust line clamp for mobile */
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100%;
    max-width: 300px;
  }
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
}

/* Ensure content area images are not too small */
.page-blog__article-card img, .page-blog__promo-card img, .page-blog__rg-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile specific content image constraint for content area */
@media (max-width: 768px) {
  .page-blog__article-card img, .page-blog__promo-card img, .page-blog__rg-card img {
    max-width: 100%;
    height: auto;
  }
  .page-blog {
    overflow-x: hidden;
  }
}