.page-blog {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000; /* Dark background for hero section */
  padding: 80px 20px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: brightness(0.7); /* Darken image to ensure text readability, not changing color */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #FFFFFF;
}

.page-blog__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color */
  color: #000000;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-blog__articles-section,
.page-blog__guides-section,
.page-blog__cta-section,
.page-blog__about-section,
.page-blog__newsletter-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__articles-section {
  background-color: #f5f5f5;
}

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

.page-blog__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__article-card,
.page-blog__guide-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eeeeee;
}

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

.page-blog__article-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

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

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

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

.page-blog__guide-card {
  padding: 30px;
  text-align: center;
}

.page-blog__guide-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-blog__guide-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-blog__guide-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__guide-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000, #333333);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  border-radius: 15px;
  margin: 60px auto;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 45px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__cta-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-blog__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-blog__about-section {
  background-color: #FFFFFF;
}

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 25px;
}

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

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  width: 100%;
  max-width: 400px;
  margin-right: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
}

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

.page-blog__newsletter-button {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

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

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

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

  .page-blog__hero-image,
  .page-blog__article-image,
  .page-blog__cta-section img { /* Ensure all content images are responsive */
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-blog__hero-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }

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

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

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

  .page-blog__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }

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

  .page-blog__guide-title {
    font-size: 1.6em;
  }

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

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

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
    margin: 0 auto;
  }

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

  .page-blog__newsletter-input {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-blog__hero-image,
  .page-blog__article-image,
  .page-blog__cta-section img,
  .page-blog__guides-section img,
  .page-blog__about-section img,
  .page-blog__newsletter-section img {
    max-width: 100%;
    height: auto;
  }
  
  /* Ensure all img elements within .page-blog are responsive and not smaller than 200px */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}