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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8; /* Light background for hero */
}

.page-blog__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #000000; /* Main brand color for title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Black text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.page-blog__hero-button:hover {
  background-color: #e0a53b;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1000px; /* Max width for hero image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-blog__articles-overview {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
}

.page-blog__article-list {
  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 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

.page-blog__article-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000; /* Main color for buttons */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  font-weight: bold;
}

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

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

.page-blog__cta-button {
  background-color: #ffffff; /* Register button color */
  color: #000000;
}

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

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-image,
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__articles-overview {
    padding: 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    font-size: 0.95em;
  }
  .page-blog__article-list {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__cta-section {
    padding: 50px 15px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button,
  .page-blog__cta-login-button {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    height: 200px; /* Adjust height for mobile if needed, maintaining min 200px width/height rule */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__cta-button,
  .page-blog__cta-login-button {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}