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

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

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

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-blog__hero-content {
  color: #FFFFFF; /* Light text for dark hero background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__main-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
}

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

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

.page-blog__button--secondary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border-color: #FCBC45;
}

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

.page-blog__articles-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  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: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.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: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-blog__read-more:hover {
  color: #e0a53a;
  text-decoration: underline;
}

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

.page-blog__cta-title {
  font-size: 2.8rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  font-size: 1.2rem;
  padding: 18px 35px;
  border-radius: 50px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 3rem;
  }
  .page-blog__section-title {
    font-size: 2.2rem;
  }
  .page-blog__cta-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__articles-section {
    padding: 60px 15px;
  }
  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 1.4rem;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 2rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Ensure content area images are responsive and do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 2rem;
  }
  .page-blog__hero-description {
    font-size: 0.9rem;
  }
  .page-blog__button {
    width: 90%;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__article-title {
    font-size: 1.2rem;
  }
  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-description {
    font-size: 0.9rem;
  }
  .page-blog__button--cta {
    font-size: 1.1rem;
    padding: 15px 25px;
  }
}