.page-blog {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 400px; /* Minimum height for hero section */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Constrain max width for aesthetics */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
  color: #FFFFFF;
}

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

.page-blog__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-actions {
  display: flex;
  gap: 15px;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.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-radius: 10px;
  box-shadow: 0 4px 15px 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 {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  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: 0.95em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

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

.page-blog__button--register:hover {
  background-color: #E0A83A;
  border-color: #E0A83A;
}

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

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

.page-blog__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  align-self: flex-start; /* Align button to start within flex column */
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-blog__button--read-more:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-blog__cta-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.page-blog__cta-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.page-blog__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__cta-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  padding: 20px;
  box-sizing: border-box;
  color: #FFFFFF;
  border-radius: 10px;
}

.page-blog__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-actions {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 300px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 250px;
  }
  .page-blog__content-area {
    padding: 0 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 10px;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image, .page-blog__cta-image, .page-blog__hero-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    max-width: 100%; /* Important for mobile overflow */
    height: auto; /* Maintain aspect ratio */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
}