.page-blog {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f8f8f8;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
  border-radius: 8px;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  max-width: 80%;
  z-index: 10;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Black text for FCBC45 background */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e6a73c;
  transform: translateY(-3px);
}

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

.page-blog__about-section {
  background-color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-blog__sub-section-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-text {
  font-size: 1em;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__categories-section,
.page-blog__featured-articles-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

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

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

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

.page-blog__category-image,
.page-blog__article-image {
  width: 100%;
  height: 250px; /* Consistent height for card images */
  object-fit: cover;
  display: block;
}

.page-blog__category-title,
.page-blog__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #000000;
}

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

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

.page-blog__category-description,
.page-blog__article-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__category-button,
.page-blog__article-button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__category-button:hover,
.page-blog__article-button:hover {
  background-color: #333333;
}

.page-blog__long-form-content {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e6a73c;
  transform: translateY(-5px);
}

/* Responsive Design */
@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__sub-section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .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-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__container {
    padding: 30px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-section-title {
    font-size: 1.6em;
  }
  .page-blog__categories-grid,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__category-image,
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__category-title,
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__category-description,
  .page-blog__article-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    filter: brightness(0.5); /* More darken image for mobile text contrast */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__sub-section-title {
    font-size: 1.4em;
  }
  .page-blog__category-title,
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__category-description,
  .page-blog__article-description {
    font-size: 0.85em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}