.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

.page-blog__hero-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.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.page-blog__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

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

.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__call-to-action,
.page-blog__about-blog,
.page-blog__categories {
  padding: 60px 0;
}

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

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

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  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 {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
  color: #555555;
  margin-bottom: 20px;
}

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

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

.page-blog__article-list {
  display: grid;
  gap: 40px;
}

.page-blog__list-item {
  display: flex;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-5px);
}

.page-blog__list-image {
  width: 300px; /* Fixed width for list items */
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__list-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

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

.page-blog__list-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__list-excerpt {
  color: #555555;
  margin-bottom: 15px;
}

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

.page-blog__call-to-action {
  background-color: #000000; /* Black background for CTA */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

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

.page-blog__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-blog__about-blog {
  background-color: #f8f8f8;
  padding: 80px 0;
}

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  text-align: justify;
}

.page-blog__categories {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-blog__category-tag {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

  .page-blog__list-image {
    width: 250px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }

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

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 200px;
  }

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

  .page-blog__list-image {
    width: 100%;
    height: 250px; /* Ensure content images are not too small */
    max-width: 100%; /* Important for mobile overflow */
    height: auto; /* Important for mobile overflow */
  }

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

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

  .page-blog__cta-description {
    font-size: 0.95em;
  }

  .page-blog__category-list {
    gap: 10px;
  }

  /* Ensure all images within .page-blog are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  /* Override for specific image sizes if needed to ensure minimum 200px display */
  .page-blog__article-image,
  .page-blog__list-image {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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

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

  .page-blog__about-text {
    font-size: 1em;
  }
}