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

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

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim image to make text pop */
  z-index: 0;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-blog__tagline {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.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;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

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

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

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

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

.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__categories-section,
.page-blog__newsletter-section,
.page-blog__about-section {
  padding: 60px 0;
}

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

.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: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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.1);
}

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

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent title height */
}

.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;
  color: #555555;
  margin-bottom: 20px;
  min-height: 90px; /* Ensure consistent excerpt height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit to 4 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: #e6a73a;
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
}

.page-blog__cta-content {
  padding: 60px 20px;
}

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

.page-blog__cta-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

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

.page-blog__newsletter-section {
  background-color: #f8f8f8;
  text-align: center;
}

.page-blog__newsletter-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
}

.page-blog__newsletter-input::placeholder {
  color: #999999;
}

.page-blog__button--subscribe {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__button--subscribe:hover {
  background-color: #333333;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }

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

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

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

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

  .page-blog__tagline {
    font-size: 1em;
  }

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

  .page-blog__button {
    width: 100%;
  }

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

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

  .page-blog__newsletter-form {
    flex-direction: column;
  }

  .page-blog__newsletter-input,
  .page-blog__button--subscribe {
    width: 100%;
  }

  /* Ensure content images do not overflow on mobile */
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card img,
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 50px 0;
  }

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

  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__categories-section,
  .page-blog__newsletter-section,
  .page-blog__about-section {
    padding: 40px 0;
  }

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

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

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

  .page-blog__article-title {
    font-size: 1.2em;
  }
}