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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
  color: #FFFFFF; /* White text on dark image overlay */
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  min-height: 400px; /* Minimum height for hero section */
  z-index: 2;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__featured-articles,
.page-blog__latest-news,
.page-blog__categories,
.page-blog__cta-section,
.page-blog__about-us {
  padding: 60px 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: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

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

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

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

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

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

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

.page-blog__news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog__news-item {
  display: flex;
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-blog__news-image {
  width: 300px;
  height: 169px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__news-content {
  padding: 20px;
}

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

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

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

.page-blog__news-date {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

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

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

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  display: block;
  background-color: #000000; /* Main color for category cards */
  color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-7px);
  background-color: #1a1a1a;
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-blog__category-description {
  font-size: 1em;
  color: #CCCCCC;
}

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

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

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color */
  color: #000000;
  padding: 18px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0 10px;
  transition: background-color 0.3s ease;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 3em;
  }

  .page-blog__hero-description {
    font-size: 1.2em;
  }

  .page-blog__section-title {
    font-size: 2.2em;
  }

  .page-blog__cta-title {
    font-size: 2.5em;
  }

  .page-blog__news-item {
    flex-direction: column;
  }

  .page-blog__news-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensure mobile offset */
  }

  .page-blog__main-title {
    font-size: 2.5em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__articles-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__news-item {
    flex-direction: column;
  }

  .page-blog__news-image {
    width: 100%;
    height: 180px;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-button {
    display: block;
    margin: 15px auto;
    width: calc(100% - 40px);
  }
  
  /* Critical: Prevent content images from overflowing on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  /* Specific override for hero image if needed, but hero image is already handled by object-fit */
  .page-blog__hero-image {
    max-width: none; /* Allow hero image to stretch beyond 100% width if needed for cover effect */
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__hero-content {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__article-content,
  .page-blog__news-content,
  .page-blog__category-card {
    padding: 20px;
  }
}