.page-blog {
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color); /* Matches body background #FFFFFF */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #000000; /* Dark background for hero for strong contrast */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  gap: 40px;
  flex-wrap: wrap;
}

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

.page-blog__hero-content {
  width: 40%;
  text-align: left;
}

.page-blog__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-blog__intro-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #E0E0E0;
}

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

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

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

.page-blog__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

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

.page-blog__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

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

.page-blog__featured-posts,
.page-blog__latest-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

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

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

.page-blog__post-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 10px;
}

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

.page-blog__articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__list-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-3px);
}

.page-blog__list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.page-blog__list-content {
  padding: 20px;
}

.page-blog__list-meta {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 8px;
}

.page-blog__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__list-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-blog__list-excerpt {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 15px;
}

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

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    width: 100%;
  }
  .page-blog__hero-content {
    width: 100%;
    text-align: center;
  }
  .page-blog__hero-actions {
    justify-content: center;
  }
  .page-blog__main-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
  }
  .page-blog__hero-container {
    padding: 30px 15px;
    flex-direction: column;
    gap: 20px;
  }
  .page-blog__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .page-blog__hero-content {
    padding: 0;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__intro-description {
    font-size: 1em;
  }
  .page-blog__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__list-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .page-blog__list-content {
    padding: 15px;
  }
  .page-blog__list-meta,
  .page-blog__list-excerpt {
    text-align: center;
  }
  .page-blog__read-more {
    align-self: center;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__btn {
    width: 100%;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__list-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}