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

.page-blog__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #000000; /* Dark background for hero content area */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #FFFFFF; /* Light text on dark hero background */
  padding: 20px;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-blog__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000;
  font-weight: bold;
}

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

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

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

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

.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;
  line-height: 1.3;
  font-weight: bold;
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.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: #000000;
}

.page-blog__featured-post {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__featured-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  height: auto; /* Maintain aspect ratio */
}

.page-blog__featured-text {
  flex: 1;
  max-width: 50%;
}

.page-blog__featured-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-blog__featured-paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 20px;
}

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

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

.page-blog__category-item {
  background-color: #000000;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item a {
  display: block;
  padding: 12px 25px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.page-blog__category-item:hover a {
  color: #000000;
}

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

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

.page-blog__cta-description {
  font-size: 1.3em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-blog__cta-actions {
  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, color 0.3s ease, transform 0.2s ease;
}

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

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

.page-blog__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000; /* Dark text for secondary button */
  border: 2px solid #FFFFFF;
}

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

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

.page-blog__about-us-summary {
  padding: 80px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-blog__about-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #444444;
  max-width: 900px;
  margin: 0 auto 25px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__featured-content {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__featured-image,
  .page-blog__featured-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  /* Mobile image overflow prevention */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__featured-image {
    width: 100%;
  }
  /* Ensure no image is smaller than 200px in content area */
  .page-blog__article-image, .page-blog__featured-image, .page-blog__related-posts .page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__category-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px; /* For scroll indicator */
    white-space: nowrap;
  }
  .page-blog__category-item {
    flex-shrink: 0;
  }
}

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