.page-blog {
  color: #333333; /* Dark text for light body background */
  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;
  min-height: 400px;
}

.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;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 20px;
  color: #FFFFFF;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

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

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

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

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

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

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

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

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

.page-blog__latest-articles-section,
.page-blog__deep-dive-section {
  padding: 60px 0;
}

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

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #555555;
}

.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: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  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-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__sub-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-blog__feature-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

.page-blog__feature-list li::before {
  content: '✔';
  color: #FCBC45;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-blog__deep-dive-section p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #444444;
}

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

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 15px;
  color: #FCBC45;
}

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

.page-blog__button--join-now {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  font-size: 1.1em;
  padding: 15px 35px;
}

.page-blog__button--join-now:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

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

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__section-intro {
    font-size: 1em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__sub-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__button {
    width: 100%;
    text-align: center;
  }

  /* Mobile content image constraint */
  .page-blog__container img, .page-blog__content-image, .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__button {
    padding: 10px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}